Javascript: Add URL parameter
Here’s a handy function for adding a new parameter to a URL: function addUrlParam(param, value) { var url = location.href; if (location.search.indexOf(param) != -1) return url; var hash =...
View ArticleApache “rewrite rule” for REST API
Here’s how you can configure your Apache webserver for a REST API, without using rewrite rules (thus: you don’t need the rewrite engine). Simply add the following line to your <VirtualHost>:...
View ArticleCodeMirror plugin for TinyMCE 4
I’ve written a CodeMirror plugin for the new TinyMCE4 WYSIWYG editor. You can read all about it here, there’s a free download as well.
View ArticleSmart Roadster Brabus Pictures
Here are some pictures of my Smart Brabus Roadster. The pictures were taken and photoshopped by my friend Oskar de Waal.
View ArticleMy Smart Roadster in Autoweek
My Smart Roadster is featured in Dutch car magazine Autoweek. Here is the video that goes with the article.
View ArticleQuickly replace strings in many/all files
This is mainly a note to self, maybe it helps someone else. Here’s a one-liner to replace a string in a lot of files at once: Replace replaceFrom with replaceTo in all writable files in the current...
View ArticleCheck syntax of all PHP files, recursively
Here’s a one-liner to check/validate the syntax of all your PHP files at once. It simply runs php -l on all files with extension .php: find . -type f -name "*.php" -exec php -l {} \; | grep -v 'No...
View ArticleContrast and Brightness plugin for fabric.js
I’ve written a small plugin for the excellent fabric.js canvas library. Here’s the code you need, add it to your page after fabfic is loaded. fabric.Image.filters.BrightnessContrast =...
View ArticleHTML5 Webapp too wide on iPad with iOS7?
I ran into a very nasty issue with iOS7 on an iPad today: My webapp would render way too wide, causing scrollbars, where it would fit perfectly on older iOS versions. Turns out that the culprit is in...
View ArticleProudly introducing: WebGear.nl
I’ve had my own company called WebGear since 2000. I’ve never bothered with getting my company “known” to the world, as I was full time employed with Web Power for over 10 years. Now that I am...
View ArticleDon’t trust Nathan Howards
I’ve been approached by Nathan from liaisons.co to buy my avoid.org domain. After a few emails back and forth we settled on a price for the purchase. Then I heard nothing for a while, when I finally...
View Article
More Pages to Explore .....