MySQL and File System Backup to FTP Server

Posted by reto on 15 May, 2011 23:45

I've put some shell scripts together to automate the backup process of my root server (basically a LAMP system).

You can read the how-to and get the download links to the backup scripts at mycodedump wiki.

For those how just want the code, fast - here you go:

Any comments or suggestions for improvements etc. are welcome! 

Optimizing PNG Compression

Posted by reto on 06 January, 2008 22:49

While creating some screenshots and saving them with the GIMP, I felt the PNG files were rather big and I was looking for a tool that would do better compression. PNG files usually are saved with lossless compression, not like JPEG files, where you always loose some image information with every percent of higher compression. (More)

Tweaking Firefox Tabs

Posted by reto on 23 January, 2007 21:50

I found it quite annoying that the close-tab buttons (Firefox Close Button) on each tab disappear if tabs get shrinked to the minimum (e.g. if horizontal scrolling of tabs gets activated because of the number of open tabs in one window).

Luckily FF let's you configure about anything related to the UI. It's only a matter of editing two config values to leave the close buttons visible all the time!


Ubuntu PXE install via Windows

Posted by reto on 23 December, 2006 23:10

This article expains in step by step instruction how to install Ubuntu over the network (although it's easy to adapt the how-to to other linux distros) via a Windows 2000/XP client.


Googlebot and Site Redirects

Posted by reto on 02 October, 2003 19:45

At a first glance it seems like there is nothing on the web, that can hide from beeing indexed by Google. Not only html but twelve(!) other filetypes are getting indexed at the moment.
But Google is much pickier as one could assume, whereas its reasons are evident and reasonable:

1. Redirects
Googlebot (Google's Spider) doesn't follow the "http/1.1 302 Found" status code (resource temporarily moved). Instead you should use a "http/1.1 301 Moved Permanently" header to make Google follow the redirect.
To make the long story short: If you're using PHP to do the redirect (and many are using PHP these days) you should add the status code header manually because PHP sends a 302 Found status code by default.

This stops Google and therefore is only usefull if your site is really under maintenance at the moment:


This makes Google follow the redirect and index the Site: 

('HTTP/1.1 301 Moved Permanently');

If you prefer to do the redirects within an .htaccess file (on Apache, of course), you could do it like this. Every Request to is redirected to 

 #Redirect (this will result in a 301 permanently moved status code)
 RedirectMatch permanent ^/$

I expect it's faster and less resource intensive to set up an .htaccess file because there is no need to parse any php code at all. Though it won't matter in most cases anyway. (untested assumption)

2. Sessions
Google doesn't follow links with a session attached. If you've enabled session.use_trans_sid in your php.ini you should check if Google is requesting the page. If your site displays fine without the use of sessions simply don't start one if google is visiting. ;-)

// session is not started to serve google
if( stristr$_SERVER['HTTP_USER_AGENT'], 'google') === false )

Add as many search engine bots as you like. A more sophisticated method (like regular expressions) is not needed here, but would of course work, too.

Some Tips and Tricks for your EPOC Device

Posted by reto on 22 August, 2000 19:43

  • Shortcut Shift+Ctrl+Fn+S:
    Creates a screenshot in mbm format.
  • Shortcut Fn+'app':
    Creates a new file (e.g. type Fn+'Word' for a new Word file)
  • Shortcut Ctrl+Shift+E:
    'Kills' the marked application if you are in the "open files / programs" dialog.
  • Shortcut: Ctrl+Tab:
    Drive 'z' (ROM) is now browseable.
  • Extras bar:
    If you rearrange the Extras bar, make sure you save the settings in the Shell.ini. Simply go to the Control Panel, hit "Extras bar" or "Enter" and close the dialog with "OK". Otherwise you will loose the settings when you do a soft reset.
  • User dictionary:
    You can find the User.dic in c:\system\data\. It is a plain txt-file, which you can import in Word, edit and then export again.




Recent Comments

Feed URL



Useless Info

Bad Behavior has blocked 94 access attempts in the last 7 days.