How to easily detect mobile devices

In this article I show how you can easily detect mobile devices using your website or web applications by implementing the Tera-WURFL service. This service uses the visitor’s User Agent string to determine the device being used and it’s capabilities.

Nowadays people want to offer mobile versions of their websites or web applications to their mobile users. Even though some mobile vendors explicitly state it is not necessary to develop a trimmed down version because they want their users “to experience the real internet”. But in most cases you don’t want your mobile visitors to stop from returning because they went through their data plan to quickly because of all the extra “bulk” on your site. They just want your content. Continue reading “How to easily detect mobile devices”

Choosing a license for your next project

Not so long ago I started working on a new project which I wanted to release under an open source license. But when I went over to the Open Source Initiative I was amazed by the dozens of licences they have for software. Nevertheless I decided to dive into the matter and came up with some guidelines.

Not so long ago I started working on a new project which I wanted to release under an open source license. But when I went over to the Open Source Initiative I was amazed by the dozens of licences they have for software. Nevertheless I decided to dive into the matter and came up with some guidelines. Continue reading “Choosing a license for your next project”

WordPress plugin: LDB External Links

Now available for download : LDB External Links. After my post on how to clean up the target=’_blank’ in a WordPress post I decided to turn my code into a WordPress plugin.

After my post on how to clean up the target=”_blank” in a WordPress post I decided to turn my code into a WordPress plugin.

WordPress is my CMS of choice but I also love XHTML 1.1 which means that the default way WordPress handles for opening links in a new window doesn’t validate. That’s why I wrote this plugin. Continue reading “WordPress plugin: LDB External Links”

How to zero fill a number in PHP

A while ago I needed to automatically zero fill a number for a quoting system I was working on. I decided to browse the internet to search for a simple code snippit but I could only find code with a while loop that would keep adding zeroes untill the desired string length was reached. Although this seemed okay, I realized it could be done much cleaner, and most important, less draining for system resources. So I wrote my own function.

A while ago I needed to automatically zero fill a number for a quoting system I was working on. I decided to browse the internet to search for a simple code snippit but I could only find code with a while loop that would keep adding zeroes untill the desired string length was reached. Although this seemed okay, I realized it could be done much cleaner, and most important, less draining for system resources. So I wrote the following function. Continue reading “How to zero fill a number in PHP”

A testdrive with W3C’s Unicorn

A quick review about W3C’s new validation service Unicorn. Plus I show how you can easily add it to the Webdeveloper Toolbar by Chris Pederick so you can check your HTML, CSS and feeds at once.

It’s been about two weeks since the World Wide Web Consortium released Unicorn, it’s new all-in-one validator. The new service combines W3C’s markup validator, CSS validator, mobileOk checker, and feed validator. I’ve been using those services for a long time and use them on a daily basis. I’ve even incorporated the markup validator and the CSS validator in my semi-automated SEO scan. Continue reading “A testdrive with W3C’s Unicorn”