Archive for January, 2008

A bit about Google

picture-2.png
Was searching for a calculator that has Hex & Decimal conversion and found out that Google actually has it.

e.g. type “0×6eec in base 10″ in the search field and it will return the result. FYI, 0x means the digits follow are in Hex and base 10 means Decimal

For more information about other Google useful function, check here.

Downgrade package in Debian

 getthunderbird.png

For some reason, the recent Icedove (aka Thunderbird) version 20.0.0.9-3 in Debian does not work with the latest Enigmail version 0.95.6. No choice, got to downgrade it back to Icedove version 1.5. How ? No worries, apt is a flexible package manager, just “apt-get -t <distribution> install <package name>”.

e .g. apt-get -t unstable install icedove

Have fun !!!

vim - search & replace

was searching what is the escape sequence for tab & return, found this cheat sheet. Anyway, below are the common ones :

shamelessly plug it from Laurent Grégoire home page. Thanks Laurent !!!

Apple Macbook Air

Anyone interested to pre-order Apple Macbook Air?

symfony / propel with RAND()

previously mentioned, symfony framework is really cool. Lately I am working on a simple online test system which doesn’t take up much of my to write the code from scratch. One of my favorite is using propel to generate the admin panel, it’s so easy, quick and code management is clean and neat.

i have a set of questions, for example 100 security related questions but some of the engineer may only need to answer 20 out of 100. And each engineer shouldn’t get the same question and using RAND() is easier for me in order to write - less code.

here is an example how you select random questions from database using propel;

$c = new Criteria();
$c->addAscendingOrderByColumn(’rand()’);
$c->setLimit(20);

start having fun coding with symfony framework.

Next Page »