Latest posts

92 articles

MySQL: "ERROR 1005 (HY000): Can't create table ... (errno: 150)"

There can be a few reasons for this very helpful message. In my case, MySQL's default engine on the production server was MyISAM, while being InnoDB on the development server. MyISAM does not handle foreign keys, thus the above error. The simple fix is to switch engines: mysql> ALTER TABLE…

Execute a local bash script through SSH

Before this blessed day, I lost my time copying my bash scripts on the remote machines where I wanted to execute them through the ssh command. Until now, when I discovered that it is not necessary, thanks to the bash -s flag. Source

Lubuntu (LXDE): restore a logout/shutdown icon in the taskbar

From time to time, an inexperienced user for whom I have set up a Lubuntu 12.04 LTS system, inadvertently mess the layout of her taskbar (a lock feature as in KDE's plasmoids would be nice ;-). While restoring all of her stuff, I couldn't find how to display a shutdown shortcut. This option/item…

Help Preserve the Kalash tribe in Pakistan

Help preserve the Kalash tribe in Pakistan by signing this petition on Avaaz.

Linux/Windows: generate a SSH key for the http (Apache) user

I recently added a feature to a PHP web application, requiring to run an independent bash script, which connects remotely to another machine through SSH. When I tested the bash script in command line, it was running with my credentials and used my ~/.ssh/id_rsa.pub to authenticate itself to the…