"Le cordonier est le plus mal chaussé" would be a great analogy of me and my web presence right now.

Sunday, October 31, 2004

Kernel vs USB, USB wins.

An update of the nvidia driver was made available through pacman today that works with the latest kernel. However, the latest kernel also breaks USB. So I can't use my keyboard nor use my mouse. I don't have time to arse about with this issue, so I just rolled back my kernel to get my USB to work again. I'll deal with this later.

I've installed ubuntu on Mel's laptop. First impression is good. For a new distro it's looking great. It has lots of potential. Mel is happily chatting away on gaim and checking her email with evolution while I'm typing this :)

Friday, October 29, 2004

Kernel vs. nvidia. Kernel wins.

Updated my Arch box today. pacman -Syu, new kernel and hey, what do you know, the new kernel breaks the nvidia driver. While Microsoft bends over backwards and resorts to ugly hacks to maintain compatibility, arguably at the expense of stability, the Linux community is hell-bent on writing beautiful code even if it means breaking compatibility, hence, also at the expense of stability.

Before any smarty-pants point out that I shouldn't have updated my kernel (if it ain't broke, don't fix it), let me mention the recent kernel vulnerability. So, yeah, please update your kernels if you are affected.

Some days Linux is just too much of a hassle. Since I have to do real work like right now, I'll be using Windows. It's a pity that Windows has lost the ability to wow the geek in me. Longhorn is already looking long overdue. OS X is looking like a good choice right now. Maybe my next box will be a mac.

Friday, October 22, 2004

Whiteness

Screenshot


A white desktop to brighten my mood. Click image for full version.

Monday, October 18, 2004

Dreamweaver Templates

I’ve been doing a fair bit of PHP hacking lately, and I’ve been thinking about workflow and methodology. How do I make something reusable and maintainable? Putting my coder’s hat on, I am tempted to break everything down into small components, and code them as such. I took my design, then started breaking the html down into chunks to be printed by functions like printHtmlHeader(), printNavBar(), etc. After everything has been made modular, printing out a page is easy. The code is elegant – reusable and maintainable. Any given page is just a series of calls to html-printing functions But is it the right way?

No it’s not. I’m the only one working on the project, so I’m both designer and coder. However, in most projects, the designer is not also the coder. The designer may not even know PHP. If the background colour needs to be changed, will you want the designer to have to hack your printHtmlHeader() function? No you don’t. Using functions to print out static bits on the page is not a good idea, because these static bits are typically maintained by a designer.

Enter Dreamweaver templates. Dreamweaver templates are to designers what classes are to the coders. You create a template, then ‘instantiate’ pages from them. If you change something in the template, the change also affects all the pages that use the template. You can also define editable regions in your template. Think of them as object attributes – these editable regions hold different things depending on the page. The best thing is that you are able, to a large extent, to separate design from business process. The PHP bits fit into the editable regions of the template, and the static bits remain as part of the template, to be maintained by the designer. It is much better to tweak the design from the WYSIWYG Dreamweaver environment than having to pore over html-printing PHP code. With Dreamweaver templates we achieve reusability and maintainability for the design while keeping the design environment designer-friendly.