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
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”
Desktop applications vs. web applications
It’s been a few years since the old desktop application versus web application debate started and it seems we’ve come a long way since then. I was recently talking to some fellow back-end webdevelopers and we came across some interesting changes in the views of clients, employers and ourselves. Continue reading “Desktop applications vs. web applications”
Use PHP to get the number of items for a domain on Digg.com
Whilst working on my semi-automated SEO scan I wanted to get the number of listings for a given domain on some social bookmarking websites. Of course Digg.com is a very well-known and widely-used bookmarking website but sadly they don’t offer a nice XML or JSON API to check the number of listings. That’s why I wrote the following code to retrieve this number. Continue reading “Use PHP to get the number of items for a domain on Digg.com”
Why I prefer SQL Buddy over PHPMyAdmin
I’ve been a PHPMyAdmin user for years now and I’ve embraced it because there didn’t seem to be a better solution, unless you love the command-line, that is. Well those days are over since I found out about SQL Buddy with it’s slick user interface. I switched instantly. Continue reading “Why I prefer SQL Buddy over PHPMyAdmin”