Semantically incorrect

If you are creating (X)HTML code, you always have to make sure that you use the right elements to specify the meaning of certain parts of the text. After that you can use stylesheets to determine how these parts will look. This is what they call the semantics of the text.

A lot of web designers abuse tags to accomplish a certain look. If they want a bigger text, they use the <h2> element, while the text is not a header at all, if they want to indent a text, they use <blockquote>, even though they are not quoting. I won’t go into detail why this is a bad thing, there are plenty of resources explaining this better than I could. But a lot of designers like me who try to do it correctly still make some mistakes. Today I realised that my pages have two semantically errors:

For my navigation lists, I use—as many other sites—unordered lists ( <ul><li>XXX</li></ul>). But my navigation links do have an order! My archive links are ordered chronological, so the correct thing would be to use the ordered list (<ol><li>XXX</li></ol>) instead.

By default, an ordered list is shown with numbers in front of each item, but it is very easy to remove them, just as I removed the bullets from my unordered navigation lists. I have seen many sites doing this wrong, and most examples of you will find on internet also use unordered lists.

Another thing I thought about today is that when I display trackbacks (comments on another site about my text) I am quoting another site. Therefore, I should be using the <blockquote> element (or <q>). I have looked around at other sites, but nowhere have I found trackbacks marked up as quotes.

You might think that these are minor issues, but since I am rewriting my templates anyway, I better do it right, not?

Advertisements

You might already have noticed it: I added some advertisements to this site.

Since now I am paying a hosting provider to host this site, I thought that I might try to get back at least some of the money I spend for it.

The advertisements are related to the contents of the page, so I only added them the pages of the individual items. This makes the chance bigger that they may actually be useful for my visitors as well.

I decided to give it a try for about two months; if I notice at that moment that they are not working, I will remove them.

People using a modern browser won’t see the advertisements, since the advertisement script does not work when the page is processed ad XML.

Holidays in the Netherlands

One more week to go, and we have our second short vacation of this year!!!

After going to Croatia in July, we will visit the good ol’ Netherlands this time. From September 9 until 16 you will have a bigger than normal chance of seeing us in the north of Europe.

We didn’t make an exact planning of what we are going to do, but we have made two short lists.

One with some practical things I have to arrange, and one with some places we want to visit. The first list has to be followed, and the second list will almost surely change on a day-by-day basis.

application/xhtml+xml

The moment I changed the looks of this site, I also changed the version of the code used for these pages.

My site is now made up in XHTML version 1.1. I only forgot to change one thing.

I did change some elements to their new variants, and of course I included the right DTD. But my pages were still served to your browser with the text/html MIME type, while the specification tells me that I should serve my pages as application/xhtml+xml.

The specification is quite clear in this, but as usual the reality is more complicated. I could simple change the file extensions to .xhtml, which are automatically send with the right MIME type. But at this moment a lot of browsers (including IE6) are not able to handle this kind of documents.

So I need to distinguish browsers that can handle application/xhtml+xml from those that cannot handle it. Fortunately, most browsers send a list of MIME types they can handle each time they request a file from the server; so all I have to do is look at this list, and change the MIME type for modern browsers.

Therefore I added the following lines to my .htaccess file:

RewriteCond %{HTTP_ACCEPT} application/xhtml+xml RewriteCond %{HTTP_ACCEPT} !application/xhtml+xml\s;\sq=0 RewriteCond %{REQUEST_URI} .html$ RewriteCond %{THE_REQUEST} HTTP/1.1 RewriteCond %{HTTP_HOST} !photos.braintags.com RewriteRule .* - [T=application/xhtml+xml]

The first line looks whether the MIME type is in the accepted list of the browser.

The second lines looks whether it does not have q=0 (q stands for quality), which means that the browser does not want to use this MIME type.

The third line limits the requests to .html files only, since we do not want to change the MIME type for images, stylesheets and other files.

The fourth line limits the requests to HTTP version 1.1.

The fifth line excludes my photo pages, since I haven’t updated them to XHTML1.1 yet.

And the last line finally specifies the right MIME type for requests that satisfy all conditions above.

CD List

Throught the wonderful Internet Archive Wayback Machine, I was able to visit my old site again.

My biggest proud of that site was the big list of all the CD’s I own. So here it is, the list of March 12, 2001!

Artist Title
Misc. Artists Alternator
Misc. Artists Best of Lounge
Misc. Artists Better Read Than Dead
Misc. Artists Big Cat Five
Misc. Artists Blues 2 - Rockin' The Blues
Misc. Artists Blues Collection
Misc. Artists Blues Legends
Misc. Artists Cheap Shots IV
Misc. Artists Cutting Edge
Misc. Artists Ein Abend In Wien
Misc. Artists Fat Music For Fat People
Misc. Artists Folk Box
Misc. Artists Give 'em The Boot Vol. 1
Misc. Artists Give 'em The Boot Vol. 2
Misc. Artists I'm Sure We're Gonna Make It
Misc. Artists Live Hate
Misc. Artists Lucho Collected No. 1
Misc. Artists Millennium Party
Misc. Artists Music In Motion I
Misc. Artists Nieuw Nederlands Peil Vol. 5
Misc. Artists Nieuw Nederlands Peil Vol. 6
Misc. Artists Nieuw Nederlands Peil Vol. 7
Misc. Artists Nieuw Nederlands Peil Vol. 8
Misc. Artists Nieuw Nederlands Peil Vol. 9
Misc. Artists Overzicht Van De 20ste Eeuw
Misc. Artists Pinkpop & Dynamo Free Sampler
Misc. Artists Points In Time Mix
Misc. Artists Points In Time Vol. 4
Misc. Artists Punk Chartbusters Vol. 2
Misc. Artists Punk-O-Rama Vol. 1
Misc. Artists Punk-O-Rama Vol. 2
Misc. Artists Punk-O-Rama Vol. 3
Misc. Artists Punk-O-Rama Vol. 4
Misc. Artists Punk-O-Rama Vol. 5
Misc. Artists Ready To Go (Women Of The 70's &am; 80's
Misc. Artists Relax With The Classics
Misc. Artists Romantic Classics
Misc. Artists Romeo + Juliet
Misc. Artists Rough Trade
Misc. Artists Short Music For Short People
Misc. Artists Sixties Album
Misc. Artists Ska Crazy!
Misc. Artists Skaters Have More Fun
Misc. Artists Symphony Masters
Misc. Artists This Is Ska
Misc. Artists Vivamania
Acda En De Munnik Naar Huis
ApeSjit De Leukste Luisterliedjes
Arling & Cameron Music For Imaginary Films
Bad Religion Stranger Than Fiction
Bad Religion Tested
Bad Religion The New America
Beatbusters Skangbang
Bert En Ernie Bert En Ernie Vervelen Zich Nooit
Bert En Ernie Kompe Dompe Doeli
Bettie Serveert Lamprey
Bettie Serveert Dust Bunnies
Bettie Serveert Private Suit
Bizet, Georges Bizet
Black Crowes By Your Side
Blur The Best Of...
Breakbeat Era Ultra-Obscene
Brandsteder, Ron Liedjes Die Iedereen Kent
Brel, Jaques De 24 Grootste Successen
Chiro Geen Maat Voor Niks!
Chiro Rond En Niet Te Duur
Cohen, Leonard Greatest Hits
Cooder, Ry Buena Vista Social Club
Costello, Elvis The Very Best Of...
Cramps Big Beat From Batsville
Cramps Stay Sick!
Dead Kennedys Bedtime For Democracy
Dead Moon Nervous Sooner Changes
Debussy, Claude Debussy
Eels Beautiful Freak
Eels Beautiful Freak Bonus
Faith No More Album Of The Year
Faith No More Who Cares A Lot?
Fischer, Jaap De Liedjes Van Jaap Fischer
Golden Earring Naked Truth
Green Day Dookie
Heideroosjes Choice For A Lost Generation
Heideroosjes Fifi
Heideroosjes Kung-Fu
Heideroosjes Noisy Fairytales
Heideroosjes Schizo
Heideroosjes Smile... You're Dying!
Hendrix, Jimi Experience Hendrix
Hepcat Push 'N Shove
Heroes Del Silencio Parasiempre
Hersch, Kristin Hips And Makers
Holt, Simeon ten Canto Ostinato
Hooker, John Lee Blues Is My Favourite Colour
Jordan, Sass Racine
Jordan, Sass Rats
K's Choice Cocoon Crash
K's Choice Paradise In Me
Korn Issues
Kravitz, Lenny 5
Krezip Nothing Less
Krezip Run Around
Krust Coded Language
Kula Shaker Hush
Kula Shaker K
Ladysmith Black Mambazo Heavenly
Levellers The Fiddle And The Drum
Levellers Zeitgeist
Liberator Too Much Of Everything
Madness The Business
Maná Unplugged
Manic Street Preachers This Is My Truth Tell Me Yours
Me First And The Gimme Gimmes Are A Drag
Metallica Black Album
Metallica Garage Inc.
Ned's Atomic Dustbin Brainbloodvolume
Nofx So Long And Thanks For All The Shoes
Osdorp Posse Afslag Osdorp
Pearl Jam Live On Two Legs
Pets Bon dia
Pixies At The BBC
Pixies Death To The Pixies
Postmen Documents
Proclaimers Hit The Highway
Prodigy The Fat Of The Land
R.E.M. Monster
Rammstein Herzeleid
Red Devils King King
Red Hot Chili Peppers Californication
Reed, Lou Transformer
Rimsky-Korsakov, Nikolai Rimsky-Korsakov
Sade The Best Of Sade
Los Secretos A Tu Lado
Sixteen Horsepower Low Estate
Size, Roni / Reprazent New Forms
Sonic Youth NYC Ghosts & Flowers
Sonic Youth Screaming Fields Of Sonic Love
St. Germain Tourist
Teeuwen, Hans Hard & Zielig
Terry, Todd Resolutions
This Mortal Coil Blood
Toten Hosen Reich & Sexy
Toy Dolls One More Megabyte
Toy Dolls Twenty Two Tunes Live From Tokyo
U2 The Best Of 1980-1990
Veen, Herman van Nu En Dan
Voices Of Ireland Riverdance
Voodoo Glow Skulls Exitos Al Cabron
Waits, Tom Franks Wild Years
What About Bob? Goes... Bad Enough Live
Williams, John Schindler's List
Wipneus & Pim Get Dancin'
Zita Zwoon I Paint Pictures On A Wedding Dress

HTTP Error 411: Length required

Today I noticed something strange in the access report of this site. In the error codes list I found error 411.

Since I haven’t seen this error code before, I googled on internet for some more information.

The official RFC 2616 says the following: The server refuses to accept the request without a defined Content-Length. The client MAY repeat the request if it adds a valid Content-Length header field containing the length of the message-body in the request message.

It appears that a server is returning code 411 when a client (=browser) tries to send data to the server without specifying the size of the data. Normally a client only receives data from the server (reading pages), and all common modern browsers are programmed in such a way that they include the data length when sending data.

Therefore I suspected that somebody with a home-grown application had tried to mess with my site. I did a quick grep in my Apache log files and found out that somebody had accessed the file mt-xmlrpc.cgi with an application that identified itself as Java/1.4.1_01.

This file is a XML-RPC interface to Movable Type, allowing other applications to interact with MT, for example to publish entries on this site from a special desktop client.

Since I am the only responsible for this site, nobody but me has any reason to use this file. This visitor also triggered my Spam trap, and was already blocked from my system, but if not, his badly programmed application did ring the alarm bell.

Pentagrama

I just found a small list on my desk, and remembered that I wrote it last Friday (or better said! Saturday morning) to publish it later on this site.

The aim was to make it clear that I had a great night, visiting my favourite club Pentagrama again.

These are the titles and artists of some songs they played, and people who know me and these songs can imaging that I was enjoying a lot.

  • London calling — Clash
  • Personal Jesus — Depeche Mode
  • Black Betty — Ram Jam
  • Tunnel of love — Dire Straits
  • Should I stay or should I go — Clash
  • Entre dos tierras — Héroes del Silencio

[Update 2003.08.28]: Coen van Kuijk sent me a list which contained only one mistake. After a small hint he was able to give me all the names of the artists.

[Update 2003.09.03]: Since I haven’t received any other messages, I decided to fill in the artists and close the competition.

Work to do

When I designed this site, I of course tested the layout on my Windows computer. I know that it looks alright with IE6 and Mozilla, and I suspect that it looks acceptable in most other OS/browser combinations.

If I would be a professional designer, I would run it through the famous BrowserCam, but my little site is not worth the money.

Of course there are some emulators available, which might give you an idea of how your site looks, but remember that if something looks wrong you never know for sure whether it is your code or the emulator.

A new emulator I found today, shows how this site looks on an iPaq PDA.

Mmmm. Header to big, no skip navigation link, useless side column, font too big, … But still readable. I also loaded the Fimcap site, which still has a tables based layout, and that looked way worse. To read the text you have to keep on scrolling.

I guess I will have to make a new stylesheet, or maybe serve PDA’s the print stylesheet. But the print stylesheet removes all the navigational elements…

Anyway, the coming days I will tweak this site so it will look better for my mobile readers — do I have any?

Copy protection

First a question for the music industry: “What the heck are you doing?”

Yesterday MJ gave me a present; the CD Fleshwounds from Skin.

Of course I was really happy with it, but I immediately noticed a big label on both sides with the words COPY CONTROLLED. In the specifications I read that this CD would work in any CD-player, the latest Macs and PCs with minimal Pentium II, 233 MHz and 64MB RAM. I am perfectly happy with my Cyrix P133+ with 48MB RAM, and until now I was able to play any CD I liked.

Of course I tried to play the CD, but my computer could not find the CD. 🙁

I really like buying CD’s; I prefer to buy one to using a copied CD. Because for me the CD is more than just the disk with the bits and bytes. I like to look at the artwork in the booklet, and no inkjet printed paper gives me the same feeling as the original CD.

And because I usually buy older CD’s, I never feel that I pay a lot; of course I wouldn’t complain if they became cheaper.

So I buy the original CD’s because of the better quality of the total product.

But now the record companies are throwing in their own windows, because they decrease the quality of their product. And why would I want to pay a lot for something that is broken?

I don’t have any problem yet, since there are so many old CD’s out there that I still want to buy. But I can assure that I am never ever going to buy a copy protected CD anymore. Not because I want to copy it, which I feel is my right, but because it is essentially a broken product.

You can read more about copy-protected CD’s at Kuro5hin or if you truely want to know everything you can go to the UK campain for Digital Rights.

corrupt disc

Viruses

Most viruses that replicate themselves through e-mail forge the from: field of their messages. Usually they take a random address, or pick one from your address book or web cache. Therefore, a virus appearing to come from jeroen@example.com, rarely really originates from this address.

I can image that some users don’t know this, and when they receive a virus from me they send me a reply with a warning that I have a virus.

Usually I explain these people the story above and tell them, of course after checking that my anti-virus software is up-to-date, that I don’t have a virus. No problem for me.

What I don’t understand is that some people who are responsible for really big mail servers also don’t understand that viruses forge headers, and have their servers configured in such a way that they reply to me.

Of course they have the right to block a message with a virus to protect their customers. But please don’t bother me with these messages. I can assure you that I am not the one sending these messages; just check the mail headers and you will see that they originate from a completely different server.

This morning somebody who apparently had visited my site cached a virus and started sending out the virus in my name. Luckily for him, his provider scans all incoming SMTP mail and intercepted all messages.

Instead of simply not accepting these messages, they had configured procmail to send a warning to the address mentioned in the from-field (me) including the virus!!!!!

As a result, my inbox is flooded with viruses from this server (mail.infosys.tuwien.ac.at).

Once again, none of my computers is infected with a virus.