Archive for December, 2007

Bad error messages

Writing error messages is very hard if you check the list of error screenshots collected on the iarchitect page from Isys IA Inc.

My personal favorites is generated by Lotus notes: Mail engine: no error.

Some useful guidelines for printing error messages can be found on the Cranky Users article: could you repeat that in English, or the guidelines for error messages from Norman Nielsens’ alertbox.

Getting IDs in html attribute IDs

Prefix your numeric id’s (int) with a letter if you plan to use them as html id attributes, because you should.
ID’s are not supposed to start with a number.

ID and NAME tokens must begin with a letter ([A-Za-z]) and may be followed by any number of letters, digits ([0-9]), hyphens (“-”), underscores (“_”), colons (“:”), and periods (“.”).

W3 HTML 4.01 Specs

The web that wasn’t

The Web that wasn’t, a presentation about the concept and the history of the internet as we know it, is really one to watch. The Google Tech Talks go beyond the subject of the internet, but some of them are really interesting.


The web that wasn’t

Alex Wright goes through several names that wrote about concepts like a keyboard, networks, terminals even before a computer was even thinkable.
If you need more stuff, here is a list of some names and their corresponding Wikipage:

Ask the SME’s to write content for the web

I found an old draft for a post that I was going to publish a loooong time ago, but it still makes sense:

  • Make sure you have a web governance models which supports a distributed web authoring model
  • Emphasize the benefits of distributed web authoring to SMEs
  • Make sure you have appropriate training and tools for new web authors
  • Try out the new publishing paradigm on a few “ringer” SMEs who you know will do a good job and use them as success stories to recruit others
  • Make a business case for formally distributing web authoring in your organization and present it to management
  • And, if all else fails, turn off their lights.

Ask Tony — CMS Watch

XSLT and PHP on a Mac, Part 2

Now that I installed MySQL, got the apache server running and Wordpress installed, I am facing another problem.

The version of PHP included in Mac OS X seems to be an old one (that’s fine) without XSL transformations support (not ok) as it is not compiled into the module.

The one programming language I continuously use during the day is XSLT combined with a lot of XML documents and webservices. I need XSL, really, and I cannot live without XSL support, no way.

I could download the source code, find all the libraries, find the commands to compile and fix everything manually. But it is just easier to download the PHP package from Marc Liyanaga.

First you should disable the PHP4 module in the Apache config file, because if you install on top of that it will give you some strange errors. It will not remove the Apple module, but Apache will try to load both modules and that is something to avoid.

Download the package [PHP 5.2.4 for Apache 1.3], install and try the phpinfo file you created before, and you will see that you have a running version of PHP5.
I checked the configuration and it seems to have XSL support.

None of the code I wrote before ran without problems, everything resulted in a fatal error. After some time I figured out that the XSL module has changed extensively
As a result of that none of the code I wrote before will work, ever again.

At the moment I have PHP4 without XLST support installed, and a PHP5 version with XSLT support.

I tried Fink with the Finkcommander but they only have PHP modules for Apache 2, so no luck with that either.

This might not be a big problem for you, but I want to make sure the plugin I am writing, works on as many platforms as possible. and that includes PHP4.
I could not find any statistics on how many hosts have switched to PHP4, I think not they are many.

The PHP website mentions that PHP4 will no longer be supported from January 2008, so I guess I am going to develop for PHP5 and hope for the better.

Categories

About

My name is Len Dierickx and this is my personal blog. I studied Musicology at the UG, long time ago but got more and more into webdevelopment. I started this blog because the EuroIA summit in Brussels (Belgium, Oct 2005), was such an inspiration. And I was thinking about a blog on IA a while now, so that was the extra kick I needed to get it actually done.

Powered by WordPress