• 25 Apr 2014 » Bypass Fn keys volume malfunctioning on Ubuntu 14.04

  • After upgrading my laptop OS (previously Ubuntu 12.04 and now the new long term support version of it), I found an annoying bug with volume control via function keys. At first, I thought was the usual bug related to the GRUB bootloader that gave similar symptoms even in later versions, and that can be solved with these simple steps: sudo nano /etc/default/grub then, edit GRUB_CMDLINE_LINUX_DEFAULT="quiet splash" to GRUB_CMDLINE_LINUX_DEFAULT="quiet splash acpi_osi=" And finally, updating GRUB with sudo update-grub but when I reboot, the problem wasn't solved. So I decided to do not waste more time and use the xbindkeys utility that...

  • 27 Mar 2014 » Set up a basic linux nginx web server on Debian Wheezy

  • Set up a basic linux webserver on Debian Wheezy is nothing but "fun", basically because you can do that with just a few simple commands on shell. First of all, we have to download and install the HTTP server and reverse proxy: nginx sudo apt-get install nginx Now we have to check if www-data user and group exist: sudo useradd www-data && sudo groupadd www-data and sudo usermod -g www-data www-data Next step is to create the /var/www/ path that will contain the actual webserver, and of course we also have to set the right permissions: cd /var/ sudo mkdir...

  • 16 Mar 2014 » Download subtitles from subscene.com

  • Few days ago I needed to download subtitles for some movies on my Raspberry Pi, so i decided to make a command-line Python script to extract them with a simple search on terminal. Code is pretty simple: it crawls the subscene.com HTML page to search the corresponding title and basically asks you if you're looking for a film or a TV-series. For the latter case, it will also ask you the season in relation to the tv-series you've chosen, downloading subsequently the zip file with subs. Usage (from command-line) : python stpy.py -q "query" -l "language" python stpy.py -q the-wolf-of-wall-street...

  • 20 Nov 2013 » octomat : A C++ library to solve linear algebra problems

  • I worked for a while to this library to solve linear algebra problems and finally i released a publishable version, so, the library contains all the main features you need to consider it more or less "useful". Briefly, the functioning is very simple: you have to import only the library in a file, because it alredy includes all the needed standard libraries. Then you can call any function inside it: #include <iostream> #include "octomat.hpp" using namespace std; using namespace octomat; int main(){ Matrix a(3,3); Matrix b(3,3); Matrix final(3,3); a.fill_matrix(); b.fill_matrix(); final = a + b; final.print_matrix(); return 0; } In...

  • 16 Nov 2013 » Jekyll is here

  • Jekyll is here. I moved the entire blog and website on my github page, using this great blog platform written in Ruby. The domain is not changed, always provided by OVH, so I just create an A record on my DNS zone to point it towards Github IP address. gabriele @ osiris { ~ } [ sab nov 16 ] [ 07:50 ] > dig salvatorigabriele.com +nostats +nocomments +nocmd ; <<>> DiG 9.8.1-P1 <<>> salvatorigabriele.com +nostats +nocomments +nocmd ;; global options: +cmd ;salvatorigabriele.com. IN A salvatorigabriele.com. 80895 IN A 204.232.175.78

  • 06 Oct 2013 » Maker Faire @ Palazzo dei Congressi, Rome

  • Today I had the pleasure to attend one of the greatest events on innovation and technology, which took place at the Congress Palace in Rome. Directly from the home page: « Maker Faire is first of all an explosion of ideas, energy, creativity, fun. An event open to the public where protagonists are makers. People who have the vision, the ability and the courage to transform the possibilities offered by technology and by digital technology, into objects, machines and physical products. » The event lasted four days, with the presence of two hundred European makers selected and invited to present...

  • 11 Sep 2013 » A temperature detector with Arduino and LM35DZ sensor

  • Today I wrote a very simple guide (in Italian language) that explains how to create a homemade temperature monitoring system using Arduino and LM35DZ sensor. You can find the entire PDF file here.

  • 13 Jun 2013 » Upper-Triangular Matrix

  • This is a simple python snippet to check if a N*N matrix is ​​upper triangular. It's an integrate part of a project I'm developing at the moment and hope will be completed very shortly: a Python class to solve linear algebra problems. Code is very simple. It is composed by three functions, the first check if all pivots of the matrix are different from zero: def check_pivot ( matrix ): for x in range(0,len(matrix)): if matrix[x][x] == 0: return False return True The second function check if all components below pivots are zero: def check_zero(temp,matrix): k = 0 c =...