I want it!

January 4, 2010 · 0 min · 0 words

YouTube >> The Go Programming Language

A video that I need to watch myself (I just managed to watch 25% of it), but I thought was good to post it here: just to remind how good it is to think “out of the box”. Even in Programming Languages. Presenter: Rob Pike Presented on: 30th Oct 2009 Go is a new experimental systems programming language intended to make software development fast. Our goal is that a major Google binary should be buildable in a few seconds on a single machine. The language is concurrent, garbage-collected, and requires explicit declaration of dependencies. Simple syntax and a clean type system support a number of programming styles. For more on Go including FAQs, source code, libraries, and tutorials, please see:http://golang.org ...

January 2, 2010 · 1 min · 120 words

Find the non repeating char in O(n) time and O(1) space - v2

My colleague and friend Luca (@lucabox) described a better solution to the problem of "Finding the first non repearing char in a string in O(n) time and O(1) space". It uses smartly the space, making the solution nicer and slicker. Or we are just 2 geeks that need to give more attention to their girlfriends :P Luca’s solution description The logic of this solution is based on the usage of an array of unsigned chars. Every char (assumed to be lowecase) has an associated small byte (1 char = 8 bits), where the bits 0x1 and 0x2 (the 2 least significant) represents, respectively, “present once in the input string” and “present multiple times in the input string”. After the input is “scanned” once, and every letter is marked with the correspondent “presence bit” (once, multiple or none), it get’s scanned a second time to find the first char of the input which has the bit “present once” set to “1”. ...

December 18, 2009 · 3 min · 503 words

AES explains itself

This guy, Jeff Moser, is mental! He made a loooong comic strip to make AES explain itself: from a very high level, non technical explanation, deep down to mathematical details. Worth a read for sure! ;)

September 23, 2009 · 1 min · 36 words

Just added support for Tweetable

What’s Tweetable? It’s a plugin that integrates Twitter into my blog.

August 14, 2009 · 1 min · 11 words

QDetroBro: Experimenting with Qt on S60

The best way to learn a new language or a new framework is to find an idea and implement it. So I’m doing for Qt on S60. So I decided to implement a dummy browser that has some smart/attractive/peculiar/interesting/funny bits. QDetroBro Because I’m lazy to package and attach code, and because is always good the evolution of a project from the ground-up, I decided to post it on my GitHub account. You can find it at: http://github.com/detronizator/QDetroBro/tree/master. ...

August 13, 2009 · 1 min · 183 words

Git-over-SSH through Socks 5 Proxy on Windows

Because of my work, I use crappy M$ Windows in my office. And we are behind a bidirectional firewall. So, how do you do if you need to pull/push code with Git-over-SSH in this scenario? You need a Socks 5 that passes the firewall, and some scripting. First, you need to install: Git on Windows - http://code.google.com/p/msysgit/ Connect.c - http://bent.latency.net/bent/darcs/goto-san-connect-1.85/src/connect.html Then, you need a script that connects to the Socks 5 server. Like: [sourcecode lang=‘bash’] #!/bin/sh ...

August 13, 2009 · 1 min · 200 words

Snippet: fix Screen Orientation in a Qt/S60 app

I follow the Qt/S60 Mailing list, that is turning out to be a very interesting and active ML, and the Qt Labs blog, always full of very good code, written directly by the guys of Qt Software. I thought could be nice to start to post some of the stuff I’m learning. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 #include <eikenv.h> #include <eikappui.h> #include <aknenv.h> #include <aknappui.h> // ... // lock orientation CAknAppUi* appUi = static_cast<caknappui *>( CEikonEnv::Static()->AppUi() ); if ( appUi ) //< Actually, this will always pass. It's a "static_cast" after all... { appUi->SetOrientationL( CAknAppUi::EAppUiOrientationPortrait ); } // ... Today's source is: [Nokia Forum](http://discussion.forum.nokia.com/forum/showthread.php?t=164499).</caknappui></aknappui></aknenv></eikappui></eikenv>

August 11, 2009 · 1 min · 116 words

How to understand Berlusconi

Last episode of the latest “Passate Parola” episode of the great Marco Travaglio. I wish it was in English: it would simplify a lot the life of who would like to understand the “Berlusconi’s Story”. There are Italian subtitles though: it could be useful for someone that is able to read Italian at lease.

May 29, 2009 · 1 min · 54 words

At the Google I/O 2009

Just a quick one. First day of the Google I/O 2009 in San Francisco (CA). Apart from a lot of informative and interesting topics and breakout sessions (I mainly focused on App Engine and Android), I came back at home full of: Stickers T-shirt Google Chrome comic paperback version A brand new “Google I/O device”, that is a black HTC Magic sim and firmware unlocked for developers + Android Market with Paid Apps support + Amazon Mp3 store +…!!!. How much? For FREE, of course!!! ...

May 28, 2009 · 1 min · 98 words