Favourite Extension of the day: Firebug

For those of you loving the Firefox extension Aardvark, this extension might be of interest: FireBug

FireBug lets you explore the far corners of the DOM by keyboard or
mouse. All of the tools you need to poke, prod, and monitor your
JavaScript, CSS, HTML and Ajax are brought together into one seamless
experience, including a debugger, error console, command line, and a
variety of fun inspectors.


  • Some Fun Features
  • Logging for web pages
  • JavaScript Debugging
  • Errors at your fingertips
  • Inspectors galore
  • Command line
  • Ajax Request Spy
  • Live Editing

[Link FireBug – JoeHewitt.com]

Published in: on May 30, 2006 at 5:49 am  Comments (1)  

Tutorial: Step-by-step setup of a MySource Matrix CMS on a blank debian 3.1

I wanted to try out the MySource Matrix CMS. But I couldn't find a demosite or something else, just the flash demo on the website. So I decided to install it on a fresh Debian 3.1 installation. Since the whole process was a little tricky, I want to share this step-by-step guide.

First Steps

  • I started with a netinst Debian image. And installed it in a VMWare.
  • I ran the command base-config and chose the predefined sollections of software Web server and SQL database


The following steps are important to comply with the requirements.

apt-get install php-mail-mime mime-support
apt-get install php4-cli php4-common php4-pear
apt-get install php4-pgsql apache2-mpm-prefork

Preparation for the Postgres DB

Switch user to postgres:

$ su postgres

Run the steps basically described here.

$ createuser -U postgres matrix
Shall the new role be a superuser? (y/n) n
Shall the new role be allowed to create databases? (y/n) n
Shall the new role be allowed to create more new roles? (y/n) n
$ createuser -U postgres matrix_secondary
Shall the new role be a superuser? (y/n) n
Shall the new role be allowed to create databases? (y/n) n
Shall the new role be allowed to create more new roles? (y/n) n
$ createdb -U postgres -O matrix mysource_matrix
$ createlang -U postgres plpgsql mysource_matrix

Switch user back to root.

$ su root

This thread suggests to allow connections to PostgreSQL from the local server without a password. Edit this file

vi /var/lib/postgres/data/pg_hba.conf

and change the upper two "local" lines and change "ident sameuser" to "trust".
Restart the postgres server.

/etc/init.d/postgresql restart

Download and install.

Basically described here.
I installed version 3.8.2. The latest version is to find here.

$ cd /var/www
$ wget http://matrix.squiz.net/__data/assets/file/8162/mysource_3-8-2.tar.gz
$ tar -zxvf mysource_3-8-2.tar.gz
$ cd /var/www/mysource_matrix
$ php install/step_01.php .

Edit this file

$ vi data/private/conf/main.inc

and change these settings:

define('SQ_CONF_DB_DSN', 'pgsql://matrix@unix()/mysource_matrix');
define('SQ_CONF_DB2_DSN', 'pgsql://matrix@unix()/mysource_matrix');
define('SQ_CONF_DB3_DSN', 'pgsql://matrix_secondary@unix()/mysource_matrix');

Note: The address/ip in this example is the local address of my installation. Find out the ip of your machine with the command ifconfig.

$ php install/step_02.php .
$ php install/compile_locale.php .
$ php install/step_03.php .
$ php install/compile_locale.php .
$ chmod -R 755 /var/www/mysource_matrix

$ cd /var/www/mysource_matrix
$ chown -R www-data:www-data data cache
$ chmod -R g+w data cache

Apache Configuration

Edit the file


paste these lines

<VirtualHost *>
     DocumentRoot /var/www/mysource_matrix/core/web
<Directory "/var/www/mysource_matrix">
            Options Indexes FollowSymLinks
            Order deny,allow
            Deny from all
     <Directory "/var/www/mysource_matrix/core/web">
            Options Indexes FollowSymLinks
            Order allow,deny
            Allow from all
     <Directory "/var/www/mysource_matrix/core/lib">
            Options Indexes FollowSymLinks
            Order allow,deny
            Allow from all
     <Directory "/var/www/mysource_matrix/data/public">
            Options Indexes FollowSymLinks
            Order allow,deny
            Allow from all
     <Directory "/var/www/mysource_matrix/fudge">
            Options Indexes FollowSymLinks
            Order allow,deny
            Allow from all

Alias "/__data"    "/var/www/mysource_matrix/data/public"
     Alias "/__lib"     "/var/www/mysource_matrix/core/lib"
     Alias "/__fudge"   "/var/www/mysource_matrix/fudge"
     Alias "/"          "/var/www/mysource_matrix/core/web/index.php/" 


restart Apache

/etc/init.d/apache2 restart


If everything worked well, you should see this when entering your local address in your browser URL field. In our case the URL ist

The UID/password is root/root by default.

The initial Admin Interface looks like this:

MySource Matrix Admin Interface

Published in: on May 28, 2006 at 8:54 am  Comments (7)  

It’s getting time for some search engine emancipation

Google is everywhere.

What about some search engine emancipation with this European approach:


Very impressive alternative to google.

Published in: on May 22, 2006 at 9:01 pm  Leave a Comment  

FF Extension of the day: Paste and Go

Paste and Go extension

This extension lets you paste an URL from the clipboard into the address bar and load it as a single step, either via the adress bar's context menu or by pressing Ctrl-Shift-V. Similarly, you can "Paste and Search" via the search bar's context menu or Ctrl-Shift-S.

Published in: on May 22, 2006 at 7:53 pm  Leave a Comment  

Useful C# CodeSnippets for VS2005

For any reason VS 2005, doesn't ship with code snippets for C#, although it does for Visual Basic. There is a huge package of useful snippets ready for download on MS's Visual Studio page: Visual Studio 2005: Visual Studio 2005 Code Snippet


E.g. inserting the code snippet "Search a Directory for a file recursively" inserts this code to your class file:

System.Collections.ArrayList files = new System.Collections.ArrayList();
 DirSearch(@"C:",ref files);
//Method to Search Directory for specified file Type.Paste it outside the function
public void DirSearch(string sDir,ref System.Collections.ArrayList files)
	   foreach (string d in System.IO.Directory.GetDirectories(sDir))
		foreach (string f in System.IO.Directory.GetFiles(d, "*.txt"))
		DirSearch(d,ref files);
	catch (System.Exception excpt)
Published in: on May 21, 2006 at 9:41 am  Leave a Comment  

Free Change Detection Notification Service

ChangeDetection is a really easy to setup service which notifies you about changes to any website via email.

Website: changedetection.com

Published in: on May 20, 2006 at 3:06 pm  Leave a Comment  

Nice Property Grid for ASP.NET

There are a couple of commercial Property Grids out there. This one, published on Code Project, leaves a good first impression. xacc.propertygrid – The Code Project – ASP.NET

[via Code Project]

Published in: on May 20, 2006 at 2:33 pm  Leave a Comment  

Tweaking Firefox

Whilst tweaking my friend's notebook, I stumbled over this interesting blog entry: "This May Help Your Firefox Memory Leak". This setting obviously helps freeing some memory consumed by Firefox.

[via CyberNet Technology News]

Published in: on May 20, 2006 at 2:02 pm  Leave a Comment