Märts Musings

Any and all of my blog entries, tutorials or content in general can be found here.

15 Sep 2010 - 09:35

I recently noticed that the main menu of a site I work on had an approximately 5x5 px white box at the beginning of the main menu that shouldn't be there. Some pages had it while others didn't. I tried to right-click and "Inspect element", but my context menu was the kind you get when you right-click on a Flash object. Huh? I didn't have any Flash on that page.

12 Sep 2010 - 15:53

In 2006 a friend needed to get rid of his 1995 Volvo 940. It had about 450 000 km, but drove nicely and was in good shape. At the time, I was driving a 1984 245 GLT and figured it was time to get something "newer". A very modest fee was negotiated and I used the 940 without incident until I left for Estonia in August 2007. It was a good car and I didn't want to get rid of it so I disconnected the battery and stored it on blocks in a barn for 3 years.

23 Jun 2010 - 00:33

My jQuery Internet Explorer warning box politely asking users to upgrade their browser

18 Apr 2010 - 03:25

I implemented a small script to recognise IE 6 or 7 browsers and tell them to upgrade or switch away from IE totally. It's a jQuery fade-in box at the top of the page. After offering that the user should either upgrade or switch to another browser I provide a "hide this warning for the rest of your visit" link. Clicking the link sets a cookie value that is then used to hide the IE warning for the rest of the session. (ie. hide_ie_warning = 1)

14 Apr 2010 - 13:43

This is just a small, personal site built for experimentation and fun, but I already have 8 content types to choose from when I want to add a new article. Without fact checking, I think Drupal has about 3 content types (Page, Story and Blog?) when freshly installed. However, the templating system in Drupal is so powerful and, dare I say it, intuitively structured that - once you get it - it's easy to have an explosion of content types and corresponding template files to suit your needs. But when does it get out of hand?

12 Apr 2010 - 04:46

One of my Drupal modules (combined with a node template) looks for (intra-article) anchor links at the beginning of the article code and then dynamically builds a menu with these links at the top of the article. (This was a somewhat messy but effective way of bringing old content with anchor links into a new environment without having to re-write the old article code.) So what? Well, it turns out a lack of white space / line breaks in my code was messing with my layout. I'll try to show you what I mean.

7 Apr 2010 - 12:42

Browsers come with pop-up blockers and banner ad blockers and all sorts of add-ons to make sites less blinky and less annoying. I can't remember anyone ever saying they like or look at banner ads. (okay, I mainly read web development stuff, but still...) Usability tests show that experienced users have developed banner blindness and don't even look at things with typical banner ad dimensions.

2 Apr 2010 - 02:05

I like Drupal a lot and you could say I am committed to it, but just like in any relationship, there are little things that make you scratch your head. Changing default site text ("Search this site", "Read more" etc.) is one of those things. It should be simple. Perusing Drupal forums and seeing some of the solutions people have resorted to (ie. hacking core, rolling a custom module just to implement hook_form_alter) makes you wonder if this CMS isn't just a bit too complex.

28 Mar 2010 - 08:05

Drupal is known to have a pretty steep learning curve. There's a lot to it and it's hard to get your head around just how it works. "No problem", you think, "I'll just learn as I go." Well, I wish it were that easy. The fact is, in the rush to get things built you might employ a suboptimal solution and later discover there was a great module that would have done things nicely for you.

14 Mar 2010 - 07:22

Yes, I think so. There, I said it. Admittedly, it's a selfish opinion since it would make my life at work as "the web guy" a lot easier. However, I also think it would improve the quality of websites in general.

How about that! I'm a Drupal association member.

Attention IE user!

It turns out you are using an outdated browser and my site might look a bit weird for you. (images are off colour, text gets cut off, layout is wacky) This is because your browser does not implement web standards. Please consider an upgrade.

Alternatively, you can try other browsers like Google Chrome, Mozilla Firefox, Opera or Apple's Safari. Every web developer on the planet will thank you! (and that's not really an exaggeration)

Hide this notice for the rest of your visit