After successfully updating my Ubuntu 10.04.02 64-bit VM with the usual:

sudo apt-get update && sudo apt-get upgrade

The message of the day (MOTD) did not reset the number the number of packages that required updating. Mine was stuck on:

30 packages can be updated.
23 updates are security updates.

To remedy this, clear out /etc/motd.tail with this command:

cat /dev/null > /etc/motd.tail

When you login again, all will be right with your MOTD.

Reloading your development database from a copy on the staging or production server can be done with a single command. With the magic of ssh, key pair authentication, and .my.cnf files on the server and your development box, you can execute the following:

ssh -C username@remotehost.com 'mysqldump myapp_staging' | mysql myapp_development

Let’s examine the entire command in pieces. ssh followed by a command allows you to execute that remote command and have its output sent to the originating server’s stdout. mysqldump myapp_staging is executed on the remote server and the -C flag instructs ssh to compress the data from the remote server. Then, mysql executes locally to run the sql statements on the myapp_development database. Voilà, you have reloaded your development database with a copy from the staging server with a single command.

Apparently, this only works on the OS X and Linux versions of Skype. If you want to edit the last chat message you sent, you can use this syntax:

s/mistaek/mistake/

Skype will then update the last message you sent. However, the recipient will see a message indicating that it was edited. This is equivalent to right-clicking on the message and selecting Edit. However, for someone who uses vim all day, this Skype feature is awesome.

© 2011 Technically Speaking Suffusion theme by Sayontan Sinha