Category Archives: Dev

Restore Grub in Gentoo

How to restore your grub installation if you somehow messed with the MBR or grub itself, using a Gentoo minimal install CD.

My Gentoo Experience on Toshiba A100

My experience with Gentoo operating system, from the installation to the daily use. Problems I had, what I don’t like and what I’m excited about this new operating system rolling on my 4-year-old Toshiba A100.

CSS3 @font-face currently sucks!

How to use CSS3 @font-face specification to render the fonts you desire on your website. The problems that still exist and alternatives.

Rails: Migrate between databases

How to migrate a rails app, Redmine, and from Sqlite3 to MySQL effortlessly.

After Sapo Codebits

Summarizing Sapo Codebits 2009 edition…

Creating and Managing a Remote GIT Repository

Using Gitosis to manage a remote repo, with groups of users for each repo, and emailing the revision comments to everyone.

From CSV to SQL statements…easy.

Writing a perl script to transform data from CSV data to SQL statements, and taking a look at mysql procedures and loops to change table structure and data.

Sapo Codebits 2009

I have just submitted my application form to attend Sapo Codebits 2009. Let’s see if I’m accepted Hope so.

CakePHP: how to selectively update record fields without blanking or changing others

When updating a database record, you might not want to update every field. CakePHP has a “not so cool” behaviour when updating records, which might lead to password changing even when user has not updated its password in the form.

CakePHP and Auth Component Password Hashing

Some tips about CakePHP and the Auth component. How to use password validation in the model, overriding the default hashing function.