Leo's Technical Blog
user

Leo's Technical Blog

Mostly about computer programming.


Featured

tips, ruby

Quick Solution: MySQL gem on Snow Leopard

Posted on .

A few days ago I got the following error on a Rails application (after installing the mysql gem) on Snow Leopard: Error: uninitialized constant MysqlCompat::MysqlRes If you ever encounter this problem, uninstall the gem and reinstall it in the following…

Featured

tips, firefox

Firefox Performance Tip: FlashBlock

Posted on .

I'm the kind of geek who has lots of tabs opened almost all the time. They are either search results, or "ephemeral bookmarks" (pending reads which could turn into permanent bookmarks if they prove to be interesting), pending tasks, or always-open applications…

Featured

tips, flex

Gotcha with Flex, Function Signatures and Method Overriding

Posted on .

Yesterday, I lost around 2 hours debugging a weird problem. When extending flash.utils.Proxy (which allows you to implement dynamic properties/methods on AS3, similar to __getattr__ in Python or method_missing in Ruby) I did the needed implementation of the ca…

Featured

tips, linux

KDiff3 on Ubuntu 8.10

Posted on .

After the good feeling of seeing the new things that Ubuntu 8.10 "Intrepid Ibex" includes (such as ridiculously easy configuration of 3G modems), I had a not-so-good surprise: kdiff3 was removed from the archive, because Intrepid Ibex doesn't include KDE3. I k…

Featured

tips, flex, linux

The Flex Compiler Shell Daemon

Posted on .

Some days ago I created a project on Google Code Hosting: the Flex Compiler Shell Daemon, or fcshd for short. It is a wrapper around Adobe's fcsh, which gives you back the good thing about mxmlc: it's a simple and traditional command line compiler, which comp…

Featured

tips

We Should Master Regular Expressions

Posted on .

When someone tell us that every programmer should know regular expressions, it's not only about using them to validate or match input on our programs. After all, seems like many of us can live using split() and replace() and some ad-hoc code instead of learnin…

Featured

me, tips, linux

Ubuntu: Changing Swap Size Without Loosing Hibernation

Posted on .

Short recipe: After resizing your swap partition (if you resized the swap partition instead of adding another one), use vol_id -u /dev/<device-name> to get the new partion UUID, and put it at the appropriate place on /etc/fstab and /etc/initramfs-tools/c…