HTTP Error 410: Gone

It has been a while since I changed the backend of my site from NewsPro to Movable Type.

A side effect of this change was that all pages changed URL, which I considered a minor problem since most people enter the site through the home page (which did not change).

Normally I try to keep URL’s the same, but the old system used horrible filenames like 1025286960,58049,.html and stored all files in a single directory.

Like I said, most visitors enter the site through the front page, but there are some people looking for specific information with search engines. Until today these visitors were presented a ‘404 Page not found’ error page of my provider directly followed by the homepage of my provider. In other words, these visitors end up at a completely useless page, and won’t ever visit my site anymore!!!!

Something had to change. First, I wanted to change the error message from 404 (Not Found) to 410 (Gone), since the latter message is more precise. All visitors looking for never-existing files will still get the old 404 message. I read about this code a while ago on dive into mark, and I kept it in mind for using it on m own site.

Secondly, I want to show them another page, which at least links to my site. For the moment I chose to present them the search page, so at least they can search my site for the information they are looking for.

I am planning to create a separate error page explaining what has happened in more detail, but until now I will just show the search page.

So how did I set this all up?

The Apache server has the ability to specify configuration options in a file called .htaccess. The settings in this file are valid for the current and all underlying directories, and thus can be overruled by another file.

I created this file in the root directory of my site and added the following information:

ErrorDocument 410 /cgi-bin/mt/mt-search.cgi RewriteEngine on RewriteBase / RewriteCond %{REQUEST_URI} ^/cgi-bin/newspro RewriteRule cgi-bin/newspro/(.*) - [G,L]

In ’normal’ language, these lines say the following:

The first line says that the page at /cgi-bin/mt/mt-search.cgi (which is my search page) has to be shown in case a request has status ‘410: Gone’.

The second and third lines activate and configure a module for the Apache webserver calles mod_rewrite, which allows me to process the next two lines.

The fourth line defines the condition to me used for the rewrite. It says: if the requested URL starts with /cgi-bin/newspro.

The last line specifies what has to happen if the condition above is met: rewrite cgi-bin/newspro/. with nothing (-). Besides the rewrite (which does nothing) two options have been specified: G and L. The first changes the status to Gone (410), and the L tells that this is the last rule to process.

In short: if the URL contains /cgi-bin/newspro, the status will be changed to Gone, and when error 410 (Gone) occurs, the search page will be shown.

Fancy e-mail

With fancy e-mail I mean HTML mail.

Most mail applications are able to send (and receive) messages in two formats: text only or HTML, and most applications use HTML by default, which is a BAD THING.

People like to use HTML e-mail, because it looks nicer with all those colors, fonts, pictures,… and therefore most software companies like it.

But for writing a simple “Hello, how is life in Lleida?” message you don’t need bold words nor blue titles. Plain text is probably better readable than that piece of art some people create.

There are of course always cases in which HTML mail is better, but usually that has to do with Viagra marketing, and those messages are deleted immediately.

You might think that even if you don’t use fancy effects, HTML mail could not harm anybody, could it? Wrong! There are a number of reasons why I (and many other people) consider HTML mail harmful:

  • HTML mail wastes bandwidth HTML code adds usually 200% to the size of the message. I know, for your short message this is only a very little bit, but if I have been away for the weekend and find tens of HTML messages I urgently want to read, I get nervous when I am waiting 5 minutes (yes, I am using a slow modem) while it could have been finished within 2 minutes!
  • HTML mail is more vulnerable for viruses This is a really important one. By using HTML mail, one of the main security principles are broken: separate code from content. HTML mail (content) can contain scripts (code) that virus writers exploit. Many of the famous Trojan Worms would never have been spread around if people would have used plain text messages by default.
  • HTML mail can connect to the internet This is something used a lot in spam. They include an image which is stored on their server and insert it into the message with some kind of parameter. The moment you read the message, the image is fetched from their server, passing the parameter to the sender of the message. The result is that your e-mail address will be listed as ‘verified’ and therefore will receive more spam.
  • HTML incompatibilities Most people who create websites know how difficult it is to create a page that looks alright on all mayor browsers. Guess what? E-mail clients have the same problems! The message that looks perfect in your Outlook Express can look completely different on the computer of your sister, who uses Eudora to read her mail. And there are still people around with mail applications that don't support HTML at all!
  • HTML mail is slow Plain text messages only have to be shown on screen, but ‘rich’ messages need preprocessing. Especially on old computers the difference is very clear. Wait, hasn't your neighbour still got that old-timer Pentium II? Better send him plain text next time, I am sure he will appreciate it! This does not only go for old computers, but more and more people start reading their mail using PDA's or cellphones.

In short: unless you have very good reasons to use HTML mail, I would ask you to send plain text messages. If the appearance of the message is so important, you’re probably better off by sending it as a PDF attachment or publishing it on a web page; those media are suited better for this task.

Go ahead, configure your mail client to send plain ASCII text.

Berry & Manon

The reason we went to Harmelen last weekend was of course the wedding of Berry and Manon. Besides that, we took the opportunity to rest a little bit after the last busy weeks.

As a result, we have spent most of our time (except for Friday) on the terras in the garden of the house of my parents.

But Friday was different, since that was the big day; the day we came for.

After getting up late, taking a North-European breakfast, and waking up under the shower we realised that most of the morning already has passed, so we started to run to get ready in time.

Thursday we had a lot of time to wrap our presents in paper and prepare our contribution to the book with personal notes from the guests, but as usual I waited with these things until the very last moment.

With a little bit of running we arrived exactly on time at the house of Manon’s parents.

Together with the family of Berry and Manon and some of their best friends we drunk a cup of coffee with some cake. We talked a little bit with Ton and Mirjam, who had brought their two children, of which I haven’t seen the youngest (Daphne) yet. As you can imagine there were lots of things to talk about. After a while Berry and Manon arrived from their photo tour, and they looked gorgeous! Of course they were really happy to see us, and we had a small opportunity to talk a little bit.

Because the weather was great, we were able to walk to the centre of Harmelen, were the old ‘monastery farm’ (now a restaurant) provided a beautiful ambiance for the official ceremony.

There were barely enough chairs to fit all the people present, and the ceremony was not too oficial with regular jokes about Berry’s talent for playing darts, friends through thick and thin, and of course the hassle with the ‘stoofje’ under Manon’s feet.

Since we were in such a romantic place, Berry and Manon had chosen to use some time for some pictures together with the family, witnesses and friends in different combinations.

After sending Loek to the supermarket to get us some water, we walked to the church.

The mass was also really nice, although a little bit long. I participated as a witness, but was surprised to see that my role was only that: witness the rituals. I did not have to sign any document! Maybe if I would have been on the oposite site, I could have had an additional function by trying to catch Berry when he accidentally almost fell from the altar.

Anyway, after hearing them say “yes” and seeing them exchange rings for the second time, we were absolutely sure that they were married, so it was time to party.

Besides that we were very thirsty, and as a result we arrived first in ‘De Putcop’, where the reception would take place. Since it was already late, we quickly sung the welcome song prepared by the family, cut the pie, congratulated the couple and sat down to (finally) have a drink.

While we were relaxing and talking at our table, more and more people entered. Both Berry and Manon are very active Harmelen, Berry in Jong Nederland, SCH, the Pirates, de Kwakbollen, and Manon in EHBO.

After filling our stomachs we were ready again for the final party, with even more people than appeared on the reception. I tried to speak at least some minutes with all my old friends, but one evening is by far too short for this. At least I (and Maria José as well) had a lot of fun.

Sunday before leaving home again we visited Berry and Manon at home. We watched (parts of) the video made and talked a lot about the day…

Wednesday they will leave to Florida, where they will visit Disney World (they are huge fans of Disney) and have a cruise through the Caribbean.

I wish them a good time, and hope to see them soon again.

[Update 2004.01.21]: Changed link to JNH

Photo Gallery #2

A while ago I wrote about my old Image gallery, and gave a link to the gallery since I didn’t create the navigation tabs yet.

The gallery was created using a script called ‘Image Arcadia’ which is not supported on a public site anymore. Although it worked alright, it still needed a lot of customisation to fit into the rest of the site.

Recently I run across PhotoBlog from Quixotic Pixels. This is a set of Movable Type templates, allowing me to manage my images the same way I manage my texts, without having to install extra scripts.

I uploaded some photo’s from my old Photo Gallery and used the default blue style, and it looks alright.

The next time I will add all other photo’s and I will adjust the look of the pages little by little until it fits with the rest of the site. There is still a lot to be done…

Only a few days to go…

Two more days working and we will go for a short trip to Holland!!!

The reason is of course the wedding of Berry and Manon on Friday. We will leave Thursday early in the morning, giving us one day to travel, shop, talk with my parents and of course to prepare us (physically and mentally) for the big day.

Berry and Manon will get married ‘for the law’ in Restaurant de Kloosterhoeve, which I consider a good choice, since it has a lot more atmosphere than the town hall in Woerden and is situated in the centre of Harmelen.

The religious part of the day will take place in the St. Bavo church, and the party will be in Restaurant De Putkop.

I am really looking forward to this day, firstly because it is an important day for some of my best friends and secondly because I will meet a lot of people to whom I haven’t spoken for some time. And finally, I always like to go back to Harmelen.

Weekend

The calendar shows it is weekend…

Time to arrange our house and enjoy the weather. We urgently need a sun tan before leaving to Holland next Thursday. Can you imagine that we will be the whitest persons on the wedding of Berry and Manon? Nobody will believe we are living in the south of Europe.

Therefore we will be going to the beach tomorrow. Usually we go to Vilafortuny, which is a quiet place between Salou and Cambrils, about 70 km from Lleida. Surely we will leave early in the morning, as we expect whole Lleida to head to the water, and stay there until the early afternoon. The afternoon we will probably spent walking through the village, sitting on a terras or enjoying our life in another way.

Web designers obsolete?

Many companies pay a lot of many to have somebody design their web site. This person has to decide on the colours, structure, fonts and page layout used. It takes a lot of experience to get this right.

But now there is a new method, which is way cheaper: StrangeBanana: Computer-generated webpage design. Just let Strange Banana create some random designs for you, and pick the one you like. Simple as that…

New look

And, do you like the new look of the site? Drop a comment and let me know what you think of it.

I planned to do everything in the most logical order: first decide what has to be shown on each page, and then create the looks of the site. But playing with colours and images is more fun than programming templates, so in between I worked little by little on this new look.

I still have some more ideas in my mind, concerning both content as style, so don’t be surprised if things change (a little bit) again…

Aplec del Caragol

The lesson of this weekend is: always study the program carefully.

Of course I looked at the program of the Aplec del Caragol, but I quickly came to the conclusion that we would only join the meals on Saturday evening and Sunday afternoon, and of course the parties on Saturday night.

We decided to skip the parade on Sunday morning, simply because we didn’t want to wake up at 8 o’clock after a ‘heavy’ night. If I would have read the program better, I would have known that I could just as well have joined the parade, since they were passing our house anyway.

The parade is a quite curious thing, and there is no way to continue sleeping when they pass your house. You have to imagine that the world famous Kwakbollen Brass Band is passing your window 20 times in half an hour, with in between hundreds of people who continued partying the whole night without sleeping. Noise enough…

A funny habit is to throw water on the persons passing your window (ours was just too far from the street to do this), so all participants will be ‘fresh’ again for another day on the Aplec.

When we were cleaning the space of our colla after the Aplec, bad news arrived. The parents of Maria José had an accident with their car and had to go to the hospital for some research. While her brother and sister went to the hospital, Maria José and I went to their house to take care about the grandmother and the dog.

Last night Maria José slept in the hospital in the room of her parents, and I stayed in Alpicat. Both of them are reasonable OK, with a lot of browses and glass cuts in their faces. The mother of Maria José has a broken shoulder and will probably be operated this week.

Food on my mind

Eating and drinking…

I guess that will be the central theme for today and the coming days.

This lunchtime I went to restaurant ‘La Tapa’ with 23 colleagues to say goodbye to a colleague. For me this was a great opportunity to see my other colleagues again, since I work only with a few people in the commercial department, and all the others are in another building. It also was nice to see the new faces and connect them to the voices I have heard over the telephone.

Tonight we are going to have a supper at the house of the parents of Maria José, to celebrate the birthday of her grandmother. We will be bringing some coca de recapte, and together with some tortilla’s and a little bit of Cava (Catalan Champagne) my first culinary day will be complete.

But after that the party will begin. This weekend is the weekend of the Aplec del Caragol, the snail party. The motto of the weekend says it all: 12.000 participants, 100 clubs, 200.000 visitors, 12 tons of snails.

To get a better impression, change the word club in something like ‘group of friends with their family who has their own place to eat, drink, meet, listen to (live) music…’. There is no way to describe the Aplec, it is something you have to experience, and preferably in a colla (group). As any year, we will be with the whole family in the colla called ‘Picarol’.