Unexpected $end errors in create_function calls
I recently ran across an odd situation while working on a PHP based project. A couple of places I had to use create_function() to create anonymous functions as callbacks for content buffering with...
View ArticleA couple of great articles about using OOP in PHP
I was going through some older items in my RSS reader and noticed a couple of excellent articles about using Object Oriented Programming in PHP over at the Think Vitamin blog.
View ArticleFacebook's XHP adds XML to PHP's syntax
I recently came across a very interesting post about XHP on the Facebook Engineering's Notes blog. XHP is a PHP extension they have developed which adds XML comprehension to PHP, allowing you to...
View ArticlePure CSS3 tab widget with :target
In recent years it has become fashionable to take content on a page and put it into a tabbed widget for display. This is usually done using JavaScript. There are a number of plug-ins for jQuery that do...
View ArticleUCSV 1.0.2 released
After much procrastination, I am releasing version 1.0.2 of UCSV. This version makes a few small but important changes. In previous versions csvToArray() would insert an empty string into the resulting...
View ArticleStrange Chrome bug with text-shadow and the 'IM Fell DW Pica' web-font
While working on a new design for my portfolio site I came across an odd bug in Google Chrome. I had used one of the web fonts that Google supplies via the Google Font API for the text in the page...
View ArticleEnrober v1.0.0 released
After a long delay due to feature creep and massive re-factoring, I'm happy to announce that Enrober v1.0.0 is now available; it is licensed under the Apache License, version 2. The README and API...
View ArticleEnrober 1.1.0 released
Version 1.1.0 of Enrober is complete and available at the Enrober homepage. This version adds a couple of features, a bugfix and a major change in the file layout used by Enrober. I thought about...
View ArticleSecuring your user's passwords
The guys over at the F-Secure labs posted a great article entitled: Are you sure SHA-1+salt is enough for passwords?. It's quite interesting; anyone who has anything to do with back-end development,...
View ArticleEnrober basics tutorial posted, Small update released
The first of a series of tutorials about using Enrober has been posted. This first tutorial covers the basics of using Enrober.
View ArticleChrome truncates prompt pre-filled values longer than 2000 characters
The window.prompt() DOM method creates a simple modal pop-up for user input. The first parameter you pass to it is the text displayed in the prompt, the second allows you to pre-fill a value for the user.
View ArticleEnrober 1.2.0 Released
Enrober 1.2.0 has been released. This release adds a few new features and contains a major change in the way filters are handled. The internal changes have allowed the head, body and footer to be...
View ArticleUCSV 1.1.0 released
Version 1.1.0 of the UCSV JavaScript CSV library is now available. Version 1.1.0 adds support for use as a CommonJS module.
View ArticleUcsv 1.2.0 released
I've been busy with a number of other projects but I have finally gotten around to a new update to Ucsv. This version fixes a couple of small bugs and adds the new csvToObject and objectToCsv methods.
View ArticleES6 spread operator + Date constructor = awesome
I've been working with the Date constructor a lot recently and I discovered something. The new spread operator is extremely useful when dealing with the Date constructor.
View ArticleThe pitfalls of the HTML5 autofocus attribute
The autofocus attribute that HTML5 adds to input elements is a nice convenience feature, but it has its drawbacks.
View ArticleConverting the UselessCode.org Blog to a static site
If you've visited this blog before you might notice something is different about it. It's not just a new theme, previously it had been running on WordPress but has now been refactored into a static...
View ArticleSpotting bad JavaScript tutorials
It used to be that you could find very few truly good JavaScript tutorials online. Thankfully, the state of JavaScript documentation has greatly improved in the last few years, thanks in part to a...
View ArticleAlways declare your variables in JavaScript!
One mistake many people who are new to JavaScript often make is forgetting to declare their variables before using them. It is a mistake I often see when browsing through questions on StackOverflow....
View Article