Posts by Year

2020

Back to Top ↑

2017

The must-read Python’s PEPs

6 minute read

As Python developer, you should know what a PEP is. In case you don’t, “PEP stands for Python Enhancement Proposal. A PEP is a design document providing i...

Goodbye Wordpress, hello Github (Jekyll)

2 minute read

It has been a while I’m not writing in this blog. I have my reasons but the main one is because I’ve been busy migrating the whole website from Wordpress to ...

Back to Top ↑

2015

On El Capitan, bash, and history

1 minute read

As explained in this reddit, Apple made some changed for bash users especially on saving bash sessions/history. Whenever a user exits, it saves the history i...

My CV on github

less than 1 minute read

I’ve always had my CV versioned. In the early days I used svn and then I moved to git. I had my own private repository but recently I have decided to move it...

Back to Top ↑

2014

HOWTO: restore a deleted file in git

less than 1 minute read

$ git rev-list -n 1 HEAD -- path_to_file #this gives you the commit's hash $ git checkout commit_hash^ -- path_to_file # it restores the file

HOWTO: print the nth line of a file

less than 1 minute read

$ awk 'NR==1524' file.txt # print the 1524th line of the file using awk $ sed -n '1244p' file.txt # print the 1244th line of the file using sed

HOWTO: drop all tables in MySQL

less than 1 minute read

Unfortunately MySQL doesn’t have any command to drop all tables or to truncate the database. It has just DROP TABLE and DROP DATABASE.

HOWTO: AutoVivification in python

less than 1 minute read

```python class AutoVivification(dict): “"”Implementation of perl’s autovivification feature.””” def init(self,arg,**kw): super(AutoVivific...

HOWTO: recover data from RAID1

1 minute read

Scenario: two or more HDs configured as RAID1. One of them gets broken and the computer doesn’t boot for any reason. Problem: access data in the partition to...

useful git aliases

less than 1 minute read

Copy and paste the following code into ~/.gitconfig

Back to Top ↑

2013

HOWTO: yolk, manage your python modules

less than 1 minute read

Installing pyhton modules is very easy and straightforward. The problem is keeping them up to date, list the installed modules, etc. For all these tasks ther...

Back to Top ↑

2012

HOWTO: Italian gestures

less than 1 minute read

Gestures have been always very important in communication. They preceded the spoken language and human beings used gestures to communicate with their fellows.

HOWTO: gestos italianos

less than 1 minute read

Los gestos han sido siempre muy importante importantes en la comunicación. Ellos precedieron la lengua hablada y los seres humanos los utilizaban gestospara ...

Europython’s report: a general feedback

6 minute read

What: Europython conference Where: Florence, Hotel Mediterraneo When: from 1st July to 8th July 2012 Who: me and other 750+ nerds, worldwide Why: we love pyt...

HOWTO: Terminal’s tips in OSX

1 minute read

Another useful and quick post about tips from OSX Terminal that let you to save a lot of time. So just open a Terminal and try them.

Back to Top ↑

2011

How i’ve got a job at ARM Ltd

5 minute read

It’s been long time that I don’t write on my blog. I know, I’m bad guy even after all the pressure from my 2 readers :P I waited because this post is particu...

Come ho ottenuto lavoro in ARM Ltd

5 minute read

Sono mesi che non scrivo più sul blog. Lo so, sono un delinquente anche dopo tutte le varie pressioni di quei 2 lettori del mio blog :P Volevo aspettare perc...

HOWTO: import old logs in AWStats

less than 1 minute read

AWStats is a great software to analyse Apache logs for having statistics about your sites. Unfortunately it doesn’t offer a tool to import old logs into AWSt...

HOWTO: postgresql on Dremhost Private Server

less than 1 minute read

If you have a PS with DreamHost and you need to use PostgreSQL as database, you’ll see that’s impossible to login with postgres user and so you won’t able to...

HOWTO: using telnet to make HTTP request

less than 1 minute read

Telnet is an old utility used in local network to offer a bidirectional communication text-oriented using a terminal. Can be used also to make an http call t...

#codemotion: tiriamo le somme

3 minute read

Sabato 5 Marzo 2011 ho partecipato al Codemotion (ex Javaday), un evento per sviluppatori (e non solo). Consisteva di talk, più o meno approfonditi, su vari ...

HOWTO: run cron job in seconds

less than 1 minute read

If you know what cron is, you also know that the minimum time to execute a job is a minute. There is a small trick to execute a cron job every X seconds. For...

HOWTO: protect a web url with a password

less than 1 minute read

Today I show you how to protect a web url with a password. This can be done in several ways (you can find it in Google) and in this post I use Apache2. Follo...

HOWTO: change in a minute

1 minute read

To improve yourself little changes are enough (less than a minute each one). Richard Wiseman wrote about that in “59 seconds”. Below, ten points that italian...

HOWTO: cambiar en un minuto

1 minute read

Para mejorarte están suficiente cambios pequeños (menos de un minuto cada uno). Richard Wiseman escribí sobre esto en “59 seconds” (59 segundos). A continuac...

Codemotion: ci sarò!

less than 1 minute read

Chi partecipà al Codemotion sa che prenderà parte ad una maratona tecnica davvero unica. Il programma del Codemotion prevede più di 65 interventi distribuiti...

HOWTO: cuenta lineas de código

1 minute read

Desde hoy no deberas enojarte mas para escribir uno script que cuente las lineas de codigo de tu último projecto. No, porque hay “CLOC” que las cuenta para t...

HOWTO: count lines of code

1 minute read

From today you will not go mental anymore to write a script that count lines of code of your last project. No, because there is “CLOC” that counts them for y...

HOWTO: conta le linee di codice

1 minute read

Da oggi non ti dovrai più arrabbiare per scrivere un script che conti le linee di codice del tuo ultimo progetto. No, perché c’è “CLOC” che conta per te. É u...

HOWTO: restore Mail.app content indexing

less than 1 minute read

Mail is a great mail client provided with OSX. It works very well, fully integrated and fast. Sometimes it goes crazy and doesn’t indexing mails’ content wit...

HOWTO: emulate a slow connection on OSX

less than 1 minute read

In Italy, where I live (for now), it’s not difficult to “emulate” a slow connection. Anyway if you want test your new webapp or you want see the behavior of ...

HOWTO: emular una conexión lenta en OSX

less than 1 minute read

En Italia, donde vivo (por ahora), no está dificil “emular” una conexión lenta. De toda maneras si quieres probar tu nueva webapp o quiere ver como se compor...

HOWTO: fix offending key in SSH

less than 1 minute read

When you perform an ssh connection to a remote machine, the first time you will be prompted to say ‘yes’ to authenticate the remote host. This feature is con...

Back to Top ↑

2010

HOWTO: Installare LaTeX in OSX

1 minute read

LaTeX è un linguaggio di markup per la produzioni di testi basato su TeX. É usato soprattutto da scienziati, matematici ed ingegneri in quanto si presta molt...

HOWTO: Disinstallare fink in OSX

less than 1 minute read

Fink è un’applicazione per OSX che ti permette di installare software opensource ed è basato sulla gestione dei pacchetti presenti in Debian. Personalmente u...

HOWTO: Stranezze in Google Earth

less than 1 minute read

Google Earth è un fantastico programma per “viaggiare” ed “esplorare” per il pianeta Terra stando comodamente seduti davanti al proprio computer. Si basa su ...

HOWTO: Creare un’immagine HDR

2 minute read

Con l’avvento della fotografia digitale molte tecniche sono state “digitalizzate” e messe alla portata di tutti. Tra le tante, quelle che hanno catturato la ...

HOWTO: Il modello di branching di Git

12 minute read

“Questo post è la traduzione del post originale ‘A successful Git branching model’ di Vincent Driessen.” Se trovi errori o incomprensioni nella traduzione ti...

HOWTO: Scrivere nativamente su NTFS con OSX

1 minute read

In OSX (sia Leopard che Snow Leopard) manca per default il supporto per la scrittura su partizioni NTFS. Per fare ciò esistono sono molte soluzioni di terze ...

HOWTO: Il comando “open” in OSX

1 minute read

Dopo un po’ di post non tecnici, eccomi di nuovo con un piccolo howto. Se hai OSX ed usi spesso il Terminale il comando open può esserti molto utile per “apr...

HOWTO: Abilitare SSL in Apache su OSX

less than 1 minute read

In passato già ho scritto qualche cosa riguardante il server web Apache integrato in OSX. Oggi vedrai come abilitare il supporto ad SSL su questo server web....

HOWTO: “Certificate error” su Nokia S60

1 minute read

Se sei possessore di un Nokia (con S60) questo post ti potrebbe far molto comodo. Il “Certificate Error” ti capita quando vuoi installare applicazioni .SIS o...

HOWTO: Configurare VirtualHost su OSX

less than 1 minute read

OSX, come molte distribuzioni linux hanno integrato il webserver Apache. Apache ha centinaia di opzioni e configurazioni disponibili per la gestione di quals...

HOWTO: Software Open Source su OSX

less than 1 minute read

Chi passa, come me, da un sistema linux ad un sistema OSX la prima cosa che va a cercare sono le applicazioni open source che possono farti comodo. In OSX, f...

Back to Top ↑

2009

HOWTO: Piccoli trucci per Google Wave

1 minute read

Google Wave, anche se in preview, sta prendendo molto piede nella comunità. Molti lo hanno scambiato per un social network, ma questa è un’altra storia. Comu...

HOWTO: “import this” in Python

1 minute read

Più che howto, questa è una piccola curiosità sul Python, noto linguaggio di programmazione ad oggetti famoso per la sua semplicità e velocità di sviluppo. O...

HOWTO: Elenco comandi vocali di iPhone 3gs

1 minute read

Come detto nel post precedente, iPhone 3gs ti da la possibilità di impartire comandi vocali. Sicuramente ti starai chiedendo… “Ma quali sono questi comandi v...

HOWTO: Installare mod_wsgi in OSX

less than 1 minute read

Il mod_wsgi è un modulo di Apache per far girare applicazioni Python che supportano l’interfaccia WSGI. A me personalmente è servito per far girare Django su...

HOWTO: Autenticazione SSH tramite chiave

2 minute read

Già ho parlato di SSH in questo post. Oggi vedrai impostare il tuo client ed il tuo server per accedere in maniera sicura e veloce tramite l’autenticazione c...

HOWTO: Cosa è Growl?

1 minute read

Growl è un sistema di notifica per OSX. Permette a tutte le applicazioni che lo supportano di inviarti delle notifiche riguardante l’applicazione stessa. Le ...

HOWTO: Creare un disco criptato in OSX

less than 1 minute read

É comodo avere una parte del disco cryptata dove poterci mettere i documenti con una elevata sensibilita (ad esepio password di vari servizi, certificati dig...

HOWTO: Attivare il DHCP server in OSX

less than 1 minute read

Se hai necessità di usare un server DHCP in OSX (sia Leopard che Snow Leopard) allora non devi installare nessun software aggiuntivo. Infatti OSX ne ha uno i...

HOWTO: Fixare Macfusion su Snow Leopard

less than 1 minute read

Macfusion è un applicazione open source (solo per Mac) che ti permette di lavorare con file che si trovano su server remoti, come se fossero nel tuo computer...

HOWTO: Primi passi su iPhone

4 minute read

Giusto oggi mi è capitato di rispondere a delle domande che un mio amico mi ha fatto sull’iPhone. Visto la quantità di domande e la loro utilità ho deciso di...

HOWTO: Geek Tool per OSX

1 minute read

In questo post vedrai un’applicativo per OSX molto utile per il monitoraggio della tua macchina o di sistemi remoti. Il programma si chiama Geek Tool e non è...

HOWTO: Sbrandizzare il Nokia E71

2 minute read

Ci sono dei cellulari che sono venduti con il brand dell’operatore. Questo, oltre a vedere il marchio dell’operatore sul cellulare implica anche una serie di...

HOWTO: Tunneling con ssh

2 minute read

Il tunnel ssh e un modo sicuro per raggiungere un host che normalmente non potrebbe essere raggiunto. Il metodo sfrutta una canale (tunnel) sicuro tra la tua...

HOWTO: Wake On Lan (WOL)

1 minute read

Il Wake On Lan (WOL) è un protocollo standard multipiattaforma e indipendente dal sistema operativo. E’ una di quelle cose che senti sempre nominare, che ne ...

HOWTO: Da Postbox a Thunderbird 3

1 minute read

Da qualche tempo il famoso client di Posta elettronica per OSX Postbox ha annunciato l’uscita dalla fase di beta per rilasciare la prima release. Per questa ...

HOWTO: Editor di default in SVN

1 minute read

Se sei un programmatore come me sicuramente ti sei imbattuto in subversion. Subversion (per gli amici, svn) è un sistema di controllo di versione, ed è usato...

HOWTO: Programmare in python da console

1 minute read

Oggi voglio segnalarti alcune utility che ti aiuteranno a programmare in Python dalla console di un sistema Unix-like (Linux, BSD, OSX etc). Molti preferisco...

HOWTO: Installare Gears su Prism

less than 1 minute read

Ho già discusso qui e qui sull’utilità di Gears su alcuni siti e/o piattaforme. Prism invece e software che ti permette di trasformare qualsiasi sito web in ...

LCS-BB: LCS su un insieme di stringhe

less than 1 minute read

Questo post prende spunto dal progetto di Programmazione Avanzata che ho dato qualche tempo fa all’università. Lo scopo del progetto è trovare una lista di L...

HOWTO: Spegnere il mac con degli shortcut

less than 1 minute read

Questo howto è indicato per tutti i mac user. Dunque se hai un mac sicuramete questi shortcut ti faranno molto comodo. I tasti vanno premuti tutti contempora...

HOWTO: Cartelle compresse in MS Windows XP

less than 1 minute read

Non è mio solito scrivere HOWTO su MS Windows. Oggi vorrei fare un’eccezione. Da Windows XP in qua esiste una comoda libreria per comprimere e decomprimere l...

HOWTO: Il comando “defaults” su OSX

2 minute read

Eccomi di nuovo con un HOWTO sui comandi da terminale in OSX. Ho sempre considerato il terminale (o shell, chiamatela come volete) un potentissimo strumento....

HOWTO: Mettere un alias di rete su OSX

less than 1 minute read

Poco tempo fa hai visto come impostare un alias di rete su linux. Oggi vedrai come fare la stessa cosa su OSX. Sostanzialmente ci sono due modi per impostare...

HOWTO: Mettere un alias di rete su linux

less than 1 minute read

In questo howto vedrai come impostare un alias sulle interfacce di rete sotto Linux. L’alias è il modo per impostare più indirizzi IP sulla stessa interfacc...

HOWTO: Come scrivere mail in modo corretto

2 minute read

In questo piccolo howto imparerai a scrivere una mail in maniera corretta, che rispetti gli standard e che sia veramente letta dal tuo destinatario. Qui di s...

HOWTO: DropBox, condividi i tuoi file

less than 1 minute read

DropBox è un servizio che ti permette di condividere e sincronizzare i tuoi file tra vari computer. Esistono due tipi di servizi:

HOWTO: Zeroshell su Xen

1 minute read

Ciao, oggi vi spiego come far girare Zeroshell su una macchina virtuale basata su XEN. Zeroshell è una distribuzione linux interamente sviluppata da un itali...

Back to Top ↑