I just wanted to share this with you guys, because otherwise I might forget it: This is a simple method to prefix the src -attribute of an img -tag with a specific domain name. This method takes HTML like: And prefixes it like this: This is ideal for when you got HTML from WYSIWYG-editors for read further ...
In MySQL when you are fetching a result set and you need to order a result set that is grouped by a column, you might notice some unexpected behaviour. Take the following dataset: person_id score 1 100 2 120 2 180 1 150 3 200 3 150 2 140 1 130 Now we have the read further ...
So today I was asked the question to add the transaction ID and order amount of a Magento order to some specific tracking pixel on the checkout page of Magento. However, the client already was using Google Tag Manager to put this pixel on the checkout page, and I already had a dataLayer present in Magento. read further ...
So today I stumbled into another fine situation: I had an input-field in a form that would only require numbers. To prevent the user from entering numbers I created a simple JavaScript method that looked something like this: This works fine. Except for some Android phones. Not all. Some. So what was going on?read further ...
When it comes to JavaScript, I’ve come a long way. When I was a kid, I wrote my first sample of JavaScript with a simple alert() -method. Later, at school, I learned using different frameworks to accomplish various tasks, like MooTools for accordeon menu’s and Prototype for my first taste of AJAX. And in the end I – like many others read further ...
So you’ve got PhpStorm and you’re writing your tests with PHPUnit. But how do you get the code completion to work? Well, the solution is very simple:read further ...
A while ago, I wrote an article about a basic Grunt setup for building. But as some of you might already know for some time now, the streamed task runner Gulp is winning more and more popularity in the fields of web development. I’ve also tasted a bit of Gulp myself (not as much as Grunt read further ...
As some of you might know, I use Vagrant to setup my local environment, and Jenkins for my continuous integration. One major part of this setup is to automatically run tests after Jenkins is done building – and before it deploys the website to the production server. In this article I am going to share with read further ...