Come creare Slide e PDF da un sorgente Markdown

Nella mia attività di trainer ho spesso la necessità di avere della documentazione sia in formato “slide”, per la proiezione durante i miei corsi, e anche in formato “PDF”, da consegnare post-corso al cliente, per dargli la possibilità di usufruire degli appunti in maniera più leggibile. Mantenere una versione separata sia delle slide che degli Leggi tutto…

How to correctly bootstrap an IONIC App when Cordova is ready

When an IONIC application starts becoming complex it involves a lot of asynchronous operation at startup, like doing $http requests or reading cached data from localStorage and also some kind of plugins iteration. To be sure that everything is ready before it can be used, we needs to wait that Cordova emits the deviceready event. Leggi tutto…

Using WordPress and W3 Total Cache with Lighttpd

If you have a small VPS (1 CPU, 1 GB RAM) you may find usufull to drop apache for lighttpd. Lighttpd uses less memory and CPU but unlucky does not have support for apache’s .htaccess config file. To have WordPress running smothly under lighttpd you have to implement some config yourself using its mod_rewrite. This Leggi tutto…

GDB: the GNU debugger

gdb is the command line tool to debug any Linux binary that has not been stripped or a core file. A core is a file left around by an application when it crashes. If your lazy you can use many frontends to gdb for example: cgdb – console debugger ddd – ultra nice graphic debugger Leggi tutto…

usare PGP: GNU Privacy Guard

Installazione da codice sorgente Scaricare da gnupg.linux.it, o altro mirror, il sorgente di GnuPG. Quindi de-comprimere e installare il software: ./configure –prefix=/usr –sysconfdir=/etc –infodir=/usr/share/info –mandir=/usr/share/man –enable-static-rnd=linux –enable-m-guard make su make install Installazione su Debian Lanciare il seguente comando come utente root: apt-get install gnupg il programma verra installato automaticamente e avrete un output simile al Leggi tutto…

VoIP e Software Libero – LinuxDay 2010

Presentazione sul VoIP e le soluzioni di software libero tenuta al Linux Day 2010, scaricabile da slideshare. L’EVOLUZIONE DELLE RETI TELEFONICHE DA PSTN (analogiche)ALLE NUOVE TECNOLOGIE SU IP (digitali) Come funziona la telefonia tradizionale? Quando alziamo la cornetta ci colleghiamo alla centrale telefonica più vicina tramite un circuito elettrico, la centrale ci trasmette il tono Leggi tutto…

Configurare WinSCP per il login automatico come utente root

Su Ubuntu e altri sistemi Linux l’utente “root” non è accessibile direttamente senza prima effettuare un login intermedio tramite un utente con privilegi normali come già descrito in “WinSCP howto login automatically in Ubuntu when root user is disabled“ Quando si usa WinSCP, o altri software per la gestione dei file, se da un lato si Leggi tutto…

How to use codeigniter from an external scripts

If you are looking for a way how to use CodeIgniter from an external scripts to access Session’s data, or some other functions, it could results a little tricky. It depends a lot on your current CodeIgniter’s configuration and expecially if you enabled the output buffering compression. First steps is to create a variations of Leggi tutto…

Algoritmo per il calcolo della Pasqua

Su questo sito trovate precalcolate tutte le date delle prossime pasque: http://www.alfonsomartone.itb.it/ucabld.html per i più pigri riporto le prossime date: anno Ceneri Quaresima Palme Pasqua 2015 18 febbraio 22 febbraio 29 marzo 5 aprile 2016 10 febbraio 14 febbraio 20 marzo 27 marzo 2017 1 marzo 5 marzo 9 aprile 16 aprile 2018 14 febbraio Leggi tutto…

Linux/BSD server SSH best practice

As soon as you get a new Linux server up and running the first things i usually do is to remove all listening services in order to reduce the attack surface as much as possibile. The SSH service is usually the first one i start with. Reducing risks about it involves the following operations: removing Leggi tutto…

mutt: how to automatically change the sender based on the current folder

The mutt e-mail client allow using a trivial configuration to automatically change the sender of the email (the From header) based on the current active folder. The configuration option that allow this is “folder-hook“. It accept two parameters: the folder name that should match, as regular expression a mutt command , we’ll change the From Leggi tutto…

Iniziare con Ubuntu Linux

Se sei nuovo di Ubuntu Linux e vuoi capirne le basi e i concetti fondamentali, qui di seguito troverai alcune semplici pagine scritte per i principianti. Vengono descritte le operazioni e i concetti necessari per iniziare la prima installazione di Linux e una serie di comandi e procedure fondamentali (primi passi) per chi è a completo digiuno dei sistemi Unix.

Hardware, Software e Sistemi Operativi

Hardware e Software Un computer si divide in due parti: l’Hardware ed il Software. L’hardware è tutto quello che è tangibile: cavi, pezzi metallici, schede. Il software è tutto quello che “non vediamo a occhio nudo”, ovvero i programmi e i dati immagazzinati nella memoria, nei chip o sulla superficie magnetica dei dischi. Organizzazione di Leggi tutto…

How to disable codeigniter’s cache

Learn how to disable Codeigniter’s cache for some specific IP address or logged in users and how to implement your own cache logic. Enabling the Codeigniter’s cache Enabling the cache is very easy in your Codeigniter’s application. In any of your controller when you want it enabled just call this function: $this->output->cache($minutes); when your controller Leggi tutto…