LoigeLoige

Luciano Mammino

Cloud developer, entrepreneur, fighter, butterfly maker!

Extracting data from Wikipedia using curl, grep, cut and other shell commands

In this article I am going to show you how I was able to extract and process some information from Wikipedia only using a combination of common bash utilities like and . The need If you are a sport lover like me I guess your heart is currently being warmed by the Rio 2016 Olympic games. My favourite sport in the games is Judo and now that the competitions are over I was wondering who were the best olympic “judokas” of all the times by number of medals collected during the games (no matter the kind of medal…

Luciano Mammino's Profile pictureLuciano Mammino#bash, #shell15 August, 201615 min

Read the post →

Announcing the book "Node.js design patterns - second edition"

In this post I am going to introduce my last side-project: “Node.js design patterns — second edition”, a technical book about Node.js and design patterns published by Packt. This blog has been a very quite place in the last 8-9 months, this is because almost all my free time has been absorbed by one of my most ambitious side projects: co-writing a book about Node.js and design patterns! I am finally happy to announce that “Node.js design patterns — second edition” has been published. You can keep reading…

6 Tips to Build Fast Web Applications (Php Dublin March 2016 Talk)

Following one of my previous posts about performance in web applications, yesterday night I had the chance to give a related talk at the Php Dublin user group. My talk was preceded by a great talk (and demo) by Ricardo Melo (@rjsmelo) called Docker and Php, a practical use case. If you are interested in the topic, be sure to check it out! It was a great night, I learned a lot and I had a lot of fun, so thank you to everyone involved. If you are interested in having a look at the slides, here they are: http…

To promise or to callback? That is the question...

You are building the next cool JavaScript or Node.js module with a lot of asynchronous functions and you are very happy about it. At some point a terrible doubt assaults you: Should my API offer support for callbacks or should it be promise based? In this article we are going to show a very simple way to add support for both promises and callbacks in our asynchronous modules, this way we can make everyone happy and our libraries much more flexible. The problem Promises can be used as a nice replacement for…

Get an invitation for GitKraken

Axosoft is currently working on GitKraken an innovative multi-platform graphical client for git which is already available for Windows, Linux and Mac OSX in private beta version. The private beta is accessible through an invite code. I was lucky to get an invite for me and I have some extra invites that I am willing to share with the first people who is going to leave a comment on this post. UPDATE 2016-01-19 22:00 GMT: I finished all the invites in less than 1 hour! That’s incredible :O Sorry for whoever…

Introducing Gulp cozy - Manage your gulp tasks in a cozier way

Gulp-cozy is an experimental NPM package that allows you to organize your Gulp tasks in a more modular way with simplicity and “cozyness” in mind. Rationale Ever found yourself digging into a gigantic monstrous with hundreds of functions and tasks scattered all around? If it happened to you I am sure you can tell that it’s not a great feeling… That’s the reason why I created this small module as an attempt to help with keeping yourself cozier (and happier!) when working with Gulp. In a way it tries to…

Gulp and FTP: update a website "on the fly"

In this post I will explain you how to use Gulp to interact with the files on your server through FTP. You will learn how to watch the files you are editing on your local machine and automatically synchronize them with your server as they change and how to setup a task to launch an FTP deploy on demand. Premise Few days ago I was assigned to take care of updating few sections on a legacy website which development environment is currently accessible only through FTP. So no local virtualized development…

Introducing mongo-uri-builder, a Node.js module to easily create mongodb connection strings using objects

A couple of days ago I had the need to store the MongoDB connection string for a Node.js application I am currently building. Of course it was not a big deal and at first I stored it in a file. Anyway at some point I realised that I would needed to override parts of this string to change some settings in production (e.g. adding replicas and authentication settings). For this sake it would have been nice to have a way to store this configuration as a “well organised” object and then override just the…

Having fun with Node.js, Slack and Chuck Norris

I recently wrote a Slack bot in Node.js in collaboration with one of my favourite web development websites: the amazing Scotch.io. It’s a simple and funny experiment I have done in my free time to learn something new. It’s nothing special but it will add a bit of fun inside your Slack organisation… Who doesn’t want to have a bot that tells random jokes about Chuck Norris in his own Company chat room? :) The bot is available on Github (lmammino/norrisbot) and on NPM (norrisbot) and it can be easily installed…

Versioning and deploying a static website with Git, Flightplan and Nginx

Do you ever wondered how to manage the versioning and deployment process of a website? It seems to be a very interesting yet complex topic for which there are already thousands of different solutions. In a recent collaboration with Usersnap I had the pleasure to write a very detailed article for their blog that proposes a solution based on Flightplan.js, Git and Nginx. My solution is very simple, it requires very few dependencies on your system (Git and Node.js) and it has been thought to give you the…