Google Analytics WordPress Plugin V1.2

January 3rd, 2008 by jr in (6) Blogging, Coding, PHP, Technology, Tools, WordPress

Updated: Some people asked for a zipped’ Version of the plugin instead of a tar’ed one. I updated the link for the new one accordingly.


Google recently added a new tracking code for Google Analytics. In order to enable this, I updated my popular Google Analytics Plugin for WordPress.

The new version lets you select whether you want to use the old (urchin.js) tracking code or the new (ga.js) tracking code.

You can download Google Analytics WordPress Plugin v1.2 here (ZIP-File).


The old version is still available here.

Gallery2: How to really recreate all Thumbnails and Derivatives

December 26th, 2007 by jr in (2) Blogging, PHP

Sheep. Jumping. I have a small, Gallery2 based Image collection on my website. For some time now, I had problems generating scaled versions of the images when uploading new images. Smaller sizes of images with already correct derivatives were generated corrctly, though.

After much fiddling around, reinstalling plugins, deleting caches, upgrading Gallery and more, I finally found the — simple(!) — solution:

DELETE FROM g2_Derivative;
DELETE FROM g2_DerivativeImage;

… then regenerate all the images and you’re set. It took me an evening(!).

Update 27.12.2007: As you can read in the comments of this post and in this thread, there is actually a better way to achieve the same result, all while keeping the database integrity (Something that my approach obviously didn’t ;)). It goes along the following lines:

  1. Set the g_isBroken Flag in the “Derivative”-Table to 1 for all entries: UPDATE g2_Derivative SET g_isBroken = '1';
  2. Clear the complete thumbnail and resize cache by going to http://www.example.com/gallery/lib/support/index.php
  3. Rebuild the thumbnails and resizes via the Maintenance in the Site Administration

This fixed the problem I had. Your mileage may vary.

New hosting

January 20th, 2007 by jr in (0) Blogging, Humour, PHP, Technology

After having serious performance problems w/ my old hoster, I decided to accept the offer Olivier made and to move this server, including mail, to a new home.

There should be more speed, more flexibility and more friendship with the new hoster. Thanks Olivier for providing this service.

If you see this post, then you’re on the new server. If not, you’re toast. :)