Memcache(d) to store PHP sessions

Edit: as of July 2014, there is a recent article discussing the use of php5-memcache instead of php5-memcache to store sessions on this blog. There are many posts around on the web about using memcached to store sessions data on high-availability servers, but few actually cover the whole topic and there are some elements that I thought might be of interest in the form of a quick recap. Memcached allows you to store frequently-used data in memory (RAM).

HOWTO Use gThumb to rename pictures in Ubuntu 10.10 (Maverick)

I'm used to gThumb to rename lots of pictures from camera's filename to something including the date, hour taken and a sequence number, like this one: 2011-02-27--16.24.51_007.JPG. Basically, simply select pictures you want to rename and press F2 (or Edit->Rename). Previous to version 2.11, gThumb was using a vastly simpler syntax expression for renaming (they name it Template in the Rename dialog).

Import MySQL tables from .myd

This is an easy procedure to import any MyISAM table that you would have in .myd, .myi and .frm format, into a local database. I assume you have MySQL server and a MySQL client on your local machine.
  • First, identify the name of the table (that's the name before the ".myd" extension).
  • Connect to your local database and create a dummy database (let's call it "import")
  • Create a table inside that database with the exact same name as the one you need to import.