My notes

My notes

Something you should see .. selected by me

A great visualization (also interactive) to show all requests coming to your webserver (reading access log file)


Get notified of important events on mobile - Pushover

Usually the de-facto standard to get notifications about important events from your web applications is email. Emails are not really an ideal tool, but they works (soon I will have a big news about that).

Sometimes you don’t need much information about a specific event, you just want to be notified that it happened. A good example of this case is user’s registration.

Probably you don’t need to know much information about your new user (you have valuable information in your database afterall), you just want to know that someone sign up.

Recently I found (and I started to use) Pushover, it’s a tiny application (available both for IOS and Android) to which you can send all notifications you desire.

Integration is really simple, you have just to do an HTTP request with your notification’s data and you will get almost instantly it on your mobile.

Easy and useful!


If you are looking for a fast way to integrate it in your ruby app, I created a little gist with the class I wrote for it.


Why you should customize your fonts (for web development)

Today it’s very common to use fonts to include icons and small images into web pages. At the beginning everyone was excited by this possibility but not many people thought about cons.

Consider one of the most known font for icons FontAwesome, it contains around 350 icons packed in a easy-to-use font file.

As said, including FontAwesome in your page you have access to over 350 icons whenever you need them but probably you will not use more than some of them on your great site.

Let’s suppose you are using 10 icons, this means you are forcing your users to download 340 icons (still packed in your font file) which will never be used. It’s wrong.

The right approach would be to decide which icons you need and to create a custom font file which contains all-and-only icons you are going to use.

To help you doing this (boring) process,

I have still to try it, but it looks great and it will drive you and your user to a better (and faster) user experience on your website!


Emoji on Mac OSX

I just found a very simple way to add Emoji in OSX to (quite) every text box, you have simply to press ctrl + command + space and you will see the list of available Emoji, I think I will never use them but it’s a nice trick to know


Why the OpenSSL Heartbleed Bug is related to marketing (and why it’s a bad thing)

On 7th of April a bug in OpenSSL became public, friendly called “Heartbleed Bug”. In IT world it’s not very rare to find bugs on many layers of an infrastructure. It’s generally a good thing because finding bugs the overall security increases providing a more secure IT world.

In last 2 days there was much much information related to this bug, partially because OpenSSL is a very critical part of anything considered “secure” and partially due marketing.

Internet is generally considered (correctly) an insecure world but thanks to cryptography (which OpenSSL is a very important key) the web became far more secure than before. So it’s important that every people involved in IT know about the bug in order to fix/update what needed.

The problem about this bug is that it was used to make marketing. In last 2 days I received tens of emails from all web-service providers in which they claim/announce they are fixing/already fixed the problem on their end.

If on a perspective it’s good to inform users on some critical fix done on your service, on the other side I’m asking myself why this bug was so advertised. A bug in a webserver or in a database is not less important nor less critical than this one, but nobody alert you when update used db or web server.

I’m for an open, shared and transparent communication (and in general honesty) with customers, but I think that the Heartbleed bug was really treated in a terrible way by everybody and not “by error” but “by marketing”.



Recently I found a very interesting project from @jimaek called jsDelivr.

What is it?
At first it looks like a common CDN service which hosts opensource libraries. You can look for the name of the library and you get urls, not so new but it’s still useful.
Probably you know that other CDN services hosts opensource libraries for free so you could not be so surprised.

Why should I care?
jsDelivr has 40 POPs (Point Of Presence) around the world including POPs from maxcdn AND cloudflare but the really great thing about this project is that it uses all these POPs load balancing them in order to provide to the user the best performing POP (now you should be intrigued).
There are many discussions around if it’s better maxcdn or cloudflare to serve your files but usually the best answer is “it depends”. Using jsDelivr you simply don’t care when is better which service, you can be sure that the best provider will be used based on your visitor’s location/network!

Want more? (really much more)
I was never really interested in hosted libraries because they drive to more requests => many DNS resolutions => many downloads => much more time to complete the page.
The great thing about jsDelivr is that you can combine multiple files into a single request!
Do you need to include bootstrap, jquery, d3js and angularjs? You can do with a single script tag, in a single HTTP request (or HTTPS if you prefer)! (now you should be thrilled)

Probably you understood how interesting is this project and you are thinking “sounds great, how much?” .. good news, it’s totally free!

Included libraries (with surprise)
At the moment jsDelivr hosts 951 opensource libraries but the number is increasing and (great news) you can add them on your own! It’s really simple (I just tried), you can read how to do it in on GitHub. (you should think “oh my ..”)

Last good news
If you like the project and you are thinking to use it to serve your javascript files there is a even better news. It’s not limited to javascript! You can add javascript libraries, CSS frameworks, fonts and even more!

Enjoy jsDelivr and spread the news, this project really deserve more attention!