Technology
Use shared_clone() to Share Variables among Perl Threads
Sharing variables across threads is generally very annoying in Perl. You have to declare the variable as shared before using it, and pay attention to the values you put in it. Things get especially messy with multi-level hashes, since you are obligated to pre-declare each level as shared. Luckily, there is a way to make [...]
Perl: if you chomp() to split(), skip the first
In Perl it is common to write a readline() while loop over a file to read its content in memory. When the file contains tab-separated data, many use chomp() to remove the newline from each input line and then split(/\t/) to separate the values into an array. Today, trying to improve the performances of one [...]
Prostheses Technology, the amazing progresses of last years
Losing my eyesight, my legs or arms has always been among my biggest fears. I would love to be able to do research 24/7 in all the possible fields and help to improve the life of the less fortunates, but my knowledge in the medical field is very limited for now and I still have [...]
Make your Wii play DVD and Nintendo Games
According to some statistics the large majority of Wii’s bought stop being used after about 6 months. Nintendo’s own statistics reveal that the revolutionary Wii Fit is used on average only 4 times by each customer. Pretty lame. But I can understand them: at first, you love the games and the innovative controller, but then [...]
Sockets Connection without Listen()
Today, invited by an apparently impossible condition that showed up on OneRiot‘s servers I pushed my good friend Alessandro to prove me wrong. And as usual, in about 15 minutes, he did. The odd condition was the following: server A was listening on a port and server B was connected to it. We turned off [...]
