Feed RSS
Feed RSS
Debian GNU Linux
Play Ogg
Eliminate DRM!
hosted by tuxfamily.org
NeroBmp updated

New update for the bitmap library NeroBmp. The current version is the 0.4. which adds many functionalities like add/remove the alpha channel and mirroring operations. Part of the main code has been rewritten for better efficiency and several bug has been fixed.

Project page
Download page 

New article: Gdb

New article about the basic commands of Gdb published. In here you'll find a quick reference to the basic operations you can perform in Gdb.

New howtos

A couple of new articles are here

Grep everything

Comparative table between all different flavours of grep.


Sintax highlighting

A new sintax highlightning feature is now working on the site. From now on all code snippets will be beautified by the SyntaxHighlighter of Alex Gorbatchev.
Unfortunately a Fortran brush doesn't exist but for everything else (so mainly Bash, C, C++, Python) appearance should be better now.

New articles available

New articles published.

  • Open TCP/UDP sockets using a built-in feature of Bash
    Interesting feature of Bash not so widely known.
  • Signals in Bash
    Beginner article on signals available in the shell.
  • Benchmark snippets
    Benchmarking portions of code (microbenchmarking) is extremely difficult. Here I collect snippets of code taken here and there that I have found useful in my code. Please if you have to add or correct something contact me and I will be happy to add the contribution.

The history of the Unix shell

Nice post about the very early steps of the Unix operating system. I found it interesting.

Update on the site

Updated the Article sections with several corrections here and there.

Added two new Articles about two very important tools in every Unix system: date and time.

Downloads section

Now downloads are available. This small section will be mainly related to the small scripts that sometimes I write. Up to now a backup script is available.

Is a standard backup script to compress folders locally with tar and save them somewhere in the filesystem. Hope it will be helpful.

Compile gcc 4.6 on Lion OS

I received a new MacBook at work that is meant to be used for everything I need to do. I never used Mac before and so there are a lot of thing that I miss from Linux even if the Mac doesn't seems so bad.

One of those is the version of gcc available in Debian. Currently in testing we have the 4.6.2, while on Lion there is the 4.2. The only reason why is so important is that in version 4.6 there is the compatibility with the standard C++11 that is absent in the Lion version.

So I compiled it myself. The compilation went smooth, no problems at all and I finished with the binaries just working. These are the steps I followed.

1. Download everything:
You will need the GMP, MPFR and MPC libraries. Then you'll need the gcc source code to compile.

2. Prepare
Extract all the tarballs where you want to compile. I created an additional folder to put my finished binaries since I didn't want them to go inside the system and I called it gcc-4.6 (great fantasy!).

3. Compile GMP
Enter in the folder for GMP and run

$ ./configure --prefix=../gcc-4.6
$ make
$ make check
$ make install

make check is only to be sure that everything is ok.

4. Compile MPFR
Enter in the MPFR folder and run

$ ./configure --prefix=../gcc-4.6 --with-gmp=../gcc-4.6
$ make
$ make install

5. Compile MPC
Enter in the MPC folder and...

$ ./configure --prefix=../gcc-4.6 --with-gmp=../gcc-4.6 --with-mpfr=../gcc-4.6
$ make
$ make install

6. Ready for gcc
Now go to the folder where you have the gcc sources. Check carefully which compilation options do you need at this page. For many people just the standard options should be fine. Run

$ ./configure --prefix=../gcc-4.6 --with-gmp=../gcc-4.6 --with-mpfr=../gcc-4.6 --with-mpc=../gcc-4.6
$ make
$ make install

In my case I decided to run these lines and everything was fine for me

$./configure --prefix=../gcc-4.6 --with-gmp=../gcc-4.6 --with-mpfr=../gcc-4.6 --with-mpc=../gcc-4.6 \
--enable-checking=release --enable-threads=posix --with-cpu-64=corei7 --with-tune-64=corei7 \
$ make -j 5
$ make install


Everything done!

Le memorie flash superano la barriera dei 20 nm

Guerra aperta tra i produttori di memorie flash.
A metà aprile Intel e Micron hanno annunciato l'inizio della produzione delle prime memorie flash NAND con tecnologia a 20 nm. Pochi giorni fa è toccato a Toshiba e SanDisk che hanno annunciato l'inizio della produzione di memorie a ben 19 nm.
In entrambi i casi la produzione di massa di queste memorie estremamente piccole è previsto per la seconda metà del 2011. Questo significa che a partire dal 2012 si cominceranno a vedere dispositivi portatili con una memoria enorme compattata a dismisura.

Chiunque abbia anche una minima conoscenza dei processi fotolitografici utilizzati per la produzione di questi dispositivi non potrà che stupirsi di fronte alla miniaturizzazione incredibile che si è riusciti ad ottenere al giorno d'oggi. Io una minima idea ce l'ho e sono veramente impressionato.