Offer of the Day

This turned up in my inbox this morning and I thought I would share it with people.

Good day

I have on several occasions received email from some other debian consultants not just you they've all been asking me to introduce debian to every institution in my country; you must understand that though am very interested, we are talking about a number that would almost run into infinity.

It is true that my Government can bear the cost of importing up to 500Million CDs but the fact remains that I personally do not understand the Software or what it's used for, as such I can't propose it to the senate this is one aspect that we have to discuss in detail about, preferably via my private email which am presently using to write you.

Kindly get back to me so we can discuss about this software and it's benefit to the users if it's beneficial then I promise we can impose it on my country just like Microsoft and make money out of it like you proposed but most important is that you get back to me with details.

Best regards

Abubakar Maikafi
Email: [email protected]
Phone: +234-07025419252.

He is obviously after full CD sets of Debian if he wants half a billion CDs. I am not in a position to supply this quanity of discs, but if you are, please feel free to contact Abubakar Maikafi about his needs.

Usually I only get unrelated spam or resumes from Indian coders looking for .NET on Windows work via my Debian Consultants listing. This even slipped past spam assassin and made my morning.

Essential Tools for a PHP Developer

Tobias Schlitt has just posted some slides from his talk entitled "6 essential PHP development tools in 60 minutes". I flicked the 90 or so slides in PDF format, they pretty much mirror my development environment.

Tobias left out 2 must haves from my personal list. Vim, the only editor I can use for any prolonged period of hacking (go easy emacs fanbois). Although not really a PHP tool, Firebug, is an essential tool for any serious modern web application developer,

With this environment hacking on PHP based web apps should be a breeze.

As a side note I am starting to play with git after watching Linus' Google Tech Talk on it, and I am starting to like a it, so maybe soon it will be s/svn/git for me.

Using Gigabyte BIOS Updates on Linux Boxes

Update: Comments suggest that gigabyte are now using 7zip, not rar as their archive format.

Dealing with Gigabyte support can be a frustrating experience. They only offer support via their website. Once they reply to your enquiry which can take several days, you get a response telling you to visit their website to read the response, and you can reply. This process means it can take several weeks to get a clear and final answer.

In my case I was trying to get a fix for what I thought was a flakey BIOS in my Gigabyte GA-M68SM-S2L. Although Gigabyte claim that their QFlash BIOSes can be loaded independently of the OS the box is running, they only supply them as Windows binary self extracting archives. Gigabyte tech support aren't much help, suggesting that users can just extract it on a Windows box. There is an alternative.

The Gigabyte QFlash binaries are simply self extracting rar files. The following steps make it easy to update Gigabyte QFlash BIOSes on a linux box (albeit with non free software).

  • Download the firmware from Gigabyte
  • cd /path/to/gigabyte-fw.exe
  • unrar e gigabyte-fw.exe
  • cp firmware.fw /path/to/usbstick
  • Reboot computer and select flash BIOS from USB

If all goes to plan you should now have a new BIOS and not had to use a Windows machine to do it.

Classic Javascript Games

A post today on the Ajaxian blog about a javascript based version of Super Mario Kart, reminded me of some of the other great classic games ported to javascript. Below is a quick list based on my bookmarks and other stuff kicking around on my laptop.

I wish you luck getting away with slacking off in the office while playing these in the office.

Feel free to suggest others in the comments

A Virtual Host per Project

Not long before my old laptop got to the end of it usable lifespan I started playing with the Zend Framework in my spare time. One of the cool things about ZF is that it wants to use friendly URLs, and a dispatcher to handle all the requests. The downside of this approach, and how ZF is organised, it works best if you use a Virtual Host per project. At first this seemed like a real pain to have to create a virtual host per project. One Saturday afternoon I worked through the apache docs and found a solution - then I found it fantastic. Rather than bore you with more of my views on Zend Framework, I will explain how to have a virtual host model that requires a little work up front and is very low maintenance.

It gets tedious copying and pasting virtual host config files each time you want to start a new project, so instead I let Apache do the work for me.

I added a new virtual host config file called projects to

. The file contains

UseCanonicalName Off

LogFormat "%V %h %l %u %t \"%r\" %s %b" vcommon

<Directory /home/dave/Projects>
Options FollowSymLinks
AllowOverride All

	ServerName projects

	CustomLog /var/log/apache2/access_log.projects vcommon

	VirtualDocumentRoot /home/[username]/Projects/%1/application/www
	AccessFileName     .htaccess

The important bit is the VirtualDocumentRoot directive which tells Apache to map a hostname to a path. I use an IP address from the range for the virtual host, so they aren't accessible to the outside world and I don't have to worry about it changing every time I check locations.

All of my projects live under ~/Projects and each one gets a directory structure that looks something like this.

  +- notes - coding notes, like grep output when refactoring etc
  +- resources - any reference material or code snippets
  +- application - the code for the project
     +- www - document root for vhost

There are usually other paths here too, but they vary from project to project.

To make this work there are few more steps. First enable the new virtual host

$ sudo a2ensite projects

Don't reload apache yet.

Next you need to add the apache module

$ sudo a2enmod vhost_alias

Time to edit your

file so you can find the virtual hosts. Add a line similar to this projects phpgw-trunk.project [...] phpgw-stable.project

Now you can restart apache.

$ sudo /etc/init.d/apache2 reload

This is handy for developing client sites - especially using drupal.

Now my

is just an empty file.

I am getting a bit bored with adding entries to

all the time. If I get around to adding dnsmasq with wildcard hosts to the mix, I will post a follow up.

This setup is based on my current dev environment (Ubuntu Hardy), but it also works on older versions of Ubuntu. The steps should be similar for Debian and derivatives. For other distros, it should work, just how to make it work may be a little different. Feel free to post tips for others in the comments.

Day 2 at PHP Unconference Hamburg

I arrived back in Bergen late last night after spending another day the PHP Unconference in Hamburg. I even managed to get one speaker to do his talk in English, which made things a lot easier for me.

My brain started to adjust to German a bit more, which made things easier than on day 1. Overall I think I understood about 25% of what was being discussed, which sound like a waste of time, but that 25% was pretty good quality. Also the discussions in the corridors was great too. At the end of the day the language spoken isn't very important when compared to the ideas shared.

For me, the only attraction of web based social networks, is to provide a backup of my addressbook online. FOSS on the other hand is a global "social network" that is real. Events like, the PHP Unconference in Hamburg, Bar Camp Melbourne and other similar events are a vital part of the networks - they provide the space for us to meet and discuss ideas.

I also used the trip as an opportunity to catch up with Christian Böttger, Release Coordinator for phpGroupWare. Not only did we discuss the project, but we caught up on how business and life in general was going. It is always good to catch up with Christian, I just wish I had more than a couple of hours to spare.

My next couple of events are locked in. Wednesday night is drinks with Johan Gunnarsson from phpGroupWare, at the airport in Copenhagen. Overnight Google emailed me a confirmation for the Google Developer Day 2008 in Sydney on June 18, there is some interesting stuff on there too - less FOSS centric but still seems pretty cool.

PHP Unconference Hamburg Day 1

I spent yesterday at the PHP Unconference in Hamburg. None of the sessions were in English, so that meant I really struggled with some of the sessions, while some of the others I could pick up some of it.

Between sessions I meant to meet a few people I had chatted with in IRC, but never met in meatspace. I always like to be able to put a face to a nick or blog, then have a beer or 2. This is exactly what happened last night.

I managed to land a big thick Ajax book (in English), which was pretty cool - something to read on the plane back to Australia

It is sad that phpGroupWare doesn't have the "brand recognition" it once had. Hopefully we can turn that around later this year if we get a release out.

I am skipping the morning session, and hope to catch some good sessions this afternoon.

For the record, the Norwegian company I work for isn't eZ.

Snakker du englesk?

The title will become my most used phrase over the next couple of weeks. As I bash this out, I am on the train to catch a flight to Bergen, Norway. Over the next 2 and a bit weeks I will be meeting with Sigurd and the guys from Resight to discuss the project and the next stage of development.

I will be making a side trip to Hamburg, Germany to attend the PHP Unconference on the 26/27th April. As it is an unconference, the program isn't decided, but the attendees list looks interesting.

During this trip I have decided to give twitter a try. I have had an account for almost a year, but never used it. When travelling I want to blog, but usually don't have the time, now I don't have an excuse. You can keep up on what I am doing via my twitter stream.

In more web 2.0 compliance news, I have started using my flickr account. I have installed the flick posting client on my N95. Combine that with the location tagger, it should be easy to keep track of what I was doing when and where.

At this stage I won't be linking either service into my RSS feed, but that may change if I really like them.

PS Watch this space for some geek posts in the coming weeks. I hope to blog about my new Dell D830 running AMD64 Ubuntu Hardy once I get all the issues resolved.

Google adds custom 404 handler

Tonight I was trying to get to Google translate, but was trying - which doesn't work.

Unlike last time it didn't work, now tried to suggest the right url for me, which was nice. It looks like Google has recently added a better 404 handler.

It only seems to work for not (I didn't try other local versions). Here are some examples.

  • Translation - com | local
  • Shopping - com | local
  • Crap Code - com | local
    (is google really claiming that they have no crap code?)

Interestingly URLs containing Google's more popular products/services (such as maps, mail, calendar and jobs) redirect straight to the service. As the rest of the urls are returning results based on keywords, why doesn't google just redirect them too?

I would upload screenshots, but I am in the country on a sub standard GPRS connection this week. Click the links and you can make your own screenies.

I have no idea how long this has been available, but I think it is handy and more user friendly.

Windows 8 to be Written in LOLCODE?

On Saturday at BarCamp Melbourne, Nick Hodge, from the evangelist team at Microsoft, gave a lightning talk about something that makes the geeks at MS very excited - LOLCODE.

Soon you won't need Visual Studio any more, you can just code in MSN^H^H^HWindows Live Messenger. twitter is fast becoming the distributed version control system of choice.

Afterwards I was talking to Nick about it and he suggested that Windows 8 might be written in LOLCODE. Apparently LOLCODE is a bit too cutting edge for Windows 7. You heard it here first!

For those of you still considering switching from PHP to Ruby, don't! Instead you can try out LOLCODE from the comfort of PHP. Check out Jeff Jones' implementation. Does this mean that one day you could run Windows under PHP, under Linux, now that would be a crazy new virtualisation engine.

<insert appropriate LOLCat here />