I’ve been toying slightly with the design recently, and I just noticed today that it’s pretty obvious that almost any browsing I do happens in Firefox. The site (well top menu anyway) looks awful in Internet Explorer – auch. Better fix that some time in 2005.
So I thought I did a decent job of cleaning up and recovering the site after the evil crash a few months ago. Browsing through the 404 (file-not-found) logs sadly tells a different story. Damn. I was hoping to be fully recovered by New Years Eve. That’s probably a little too ambitious.
An odd discovery today – if you don’t specify a protocol in your links, the browser apparently suppose it’s the same (be that http or https) as the current page. You can se it in action on Slashdot by viewing their source – none of the regular links has protocol specification – they just start with two slashes and the hostname (ie. //netfactory.dk/).
In the case of Slashdot I suppose they don’t use it to save bandwidth, but in most cases it’s probably useless.
(Discovered by mkyed).
Mysql is usually pretty fast by default, but to keep performance to the max sometimes requires knowledge on how mysql works and how to write queries that does their job most efficiently. Today we ran across a simple example which illustrates that mysql’s ability to use an index depends on the way you write the query.
Continue reading Mysql: (date) functions and indexes
Most databases seems to be well designed when the systems needing them are launched in the first version – but the slowly as the systems evolve (often grow beyond their initial requirements) – the database design seems to go down the drain. Here are a few tips on what to think about when you design a database or alter it.
Continue reading A database styleguide
Today’s evil headache was caused by something as simple – yet annoying – as a two HTML form elements having the same name (but different types and uses in the form). The lesson learned is that if a field in a form is submitted but contains nothing – check if another object in the form has the same name and make changes if you need to.
So, I’ve been wondering if I should by a Mac. Windows works for me, but causes a fairly large number of headaches. Linux is nice for server use, but I’m not nerdish enough to get a desktop running. With the many positive reviews, switching stories and others I was thinking of going Mac.
Continue reading To Mac or not
For the Danish and English reading folks there’s a new combined feed available which sources news from both the Danish and the English track of this site. Enjoy.