The Cattle Grid

Michele Beltrame's corner

Follow me on GitHub Follow me on Twitter

Latest posts

5-column layout with Bootstrap 4

Bootstrap is an awesome toolkit when it comes to build responsive web pages with little effort. Its grid system is very well crafted, but it doesn’t allow to have a number of same-width columns per row which is not a divisor of 12.

Read article »

Valle della Loira 2014

Ed eccoci… con qualche anno di ritardo arriva anche il diario della Valle della Loira, con aggiunta di qualche giorno trascorso alla Duna di Pyla.

Read article »

URL shortener with Mojolicious

After getting a request of a customer for short URLs (pointing to way longer URLs of their web application) to print on small labels and embed in QR codes, I thought about using an URL shortening service. Then, I realized that in 2 decades of programming I never wrote an URL shortener myself! It didn’t seem a difficult task - especially since I just needed a handful of features - so I decided to go for it.

Read article »

Graphemes, code points, characters and bytes

The origins of Unicode date back to 1987, but it wasn’t until the late ’90s that it became well known, and general adoption really picked on after year 2000. General adoption was possible mainly thanks to UTF-8, the encoding (dating back to 1993, by the way) which provided full compatibility with US-ASCII character set. Anyway, this is an history that most of us know, and now it’s clear to the most that characters do not map to bytes anymore. Here’s a small Perl 5 example for this:

Read article »

Bretagna + Normandia + Guernsey 2012

Ed arriva anche il diario del 2012. Questa volta abbiamo scelto la costa della Francia sulla Manica: da Cognac fino a Dunkirk, con qualche digressione.

Read article »