Luciano Mammino

Cloud developer, entrepreneur, fighter, butterfly maker!

Simple echo server written in Go, dockerized!

In this post we will see how to write a (very) simple Go server app and how to put it into a Docker container and run it. Disclaimer: I’m an absolute beginner with both Go and Docker and this is just an experiment I did to start to explore this two interesting technologies. If you’ll find something weird or wrong you are very encouraged to scream at me in the comments (Comments), I will be extremely thankful ;) ##Introduction We are going to write a simple echo server in Go and then we will pack it into a…

Luciano Mammino's Profile pictureLuciano Mammino#server, #go, #docker29 June, 20149 min

Read the post →

Transparent pixel response with Symfony, how to track email opening

If you have ever heard about ”transparent pixel”, ”1x1 blank pixel”, ”tracking pixel” or simply ”tracking image” you probably know what we are going to talk about and can just skip to the implementation! Introduction Transparent pixel image is a technique often used to track some user behavior (often visits or views to a certain online content) in scenarios where you can’t use javascript. One of the most common scenarios is probably email opening tracking. Can you put Google Analytics into an email? Well…

Introducing ORM Cheatsheet

This week I received an interesting email from Martin Stradej, the developer of ORM Designer, a tool to design ORM relationships with a simple but powerful graphic user interface. Martin wrote the mail because he wanted to acknowledge me of his latest project: ORM Cheatsheet. ORM Cheatsheet, as the name suggests, is nothing more than a reference website for those who struggles with some of the most common Php ORM libraries (it currently supports Doctrine2 and Doctrine, but it seems that Propel and Cake PHP…

3 invitations to try Atom.io

I have finally got my invitation to try the new text editor Atom.io. Atom is built with web technologies (node.js in it’s core) by the folks at GitHub and it’s somewhat very similar to the famous SublimeText. In my opinion it seems very promising (even if it’s significantly slower than SublimeText), anyway I have to try it a lot more before shaping a serious opinion about it. The point of this topic is that Atom.io is currently in closed beta and I have received 3 invitations to share with whom is willing…

Reset your MySql server password

Few days ago I learned an interesting trick that allows you to reset the password on a MySql server. This trick is pretty useful in case you have lost (or you haven’t ever had) the password of your MySql root user. You just need to throw some commands at the console. Note that I am assuming you are using Ubuntu or some other Debian derivate. Otherwise the commands may change a bit (but not to much I believe). 1. Stop the mysql daemon 2. Disable the security checks The mysqld_safe command will essentially…

Write a console application using Symfony and Pimple

In this article I will show you how to set up a stand alone command line application by using the Symfony Console component and Pimple. Writing console commands for Symfony (full stack framework) is easy and enjoyable. It helps a lot when you need to handle particular collateral tasks that are needed, in a way or another, to make your website running (processing and crunching data, make async requests, create reports, etc.). Anyway I discovered that writing stand alone command line applications using only…

Integrating Twig.js and BazingaJsTranslationBundle

Recently I had the need to run a twig template that uses the trans filter on my frontend using twig.js, a pure JavaScript port of twig written by the good Johannes Schmitt. The JavaScript version does not handle all the functionalities offered by the original PHP version (even if it goes pretty close) and in particular it does not natively handle the trans filter. So, at first, I got a JavaScript runtime exception on my page when trying to use the template. Luckily enough the JavaScript version of twig is…

Symfony security: authentication made simple (well, maybe!)

The Symfony2 security component has the fame of being one of the most complex in the framework. I tend to believe that’s partially true, not because the component is really that complex, but because there are (really) a lot of concepts involved and it may be difficult to understand them all at once and have a clear vision as a whole. I am in the process of writing an OAuth bundle and I faced the need to deeply understand how the authentication process work in Symfony2 to being able to integrate the OAuth…

Writing a new Extractor for PHPoAuthUserData

In my previous post I introduced my latest library PHPoAuthUserData that allows to abstract the process of extracting user profile data from various OAuth providers (Facebook, Twitter, Linkedin, etc). The library still need a lot of work, especially to write the logic to extract data from all the services available in the parent OAuth library. At the moment the library supports only the most common OAuth providers. I would be glad to support all the following services: Amazon, BitBucket, BitLy, Box…

New PHP library: PHPoAuthUserData

I recently wrote a new PHP library to simplify the extraction of user data (name, email, id, etc…) from various OAuth providers such as Facebook, Twitter and Linkedin. Is well know that OAuth 1 and 2 are great standard protocols to authenticate users in our apps. Anyway we often need to go further the authentication process and extract various information about the authenticated users. Unfortunately this is something that is not standardized and obviously each OAuth provider manages user data in very…


Copyright © Luciano Mammino 2014-2022.

Built with Gatsby, Coffee and a lot of ❤︎.

Loige logo designed by Andrea Mangano.

Hosted on GitHub, accelerated by Cloudflare.

Theme inspired by React documentation.

Icons by Font Awesome.

BlogSpeakingAboutComment Policy