Here’s a small tip: If you want to convert SVG to PNG on OSX there are several things you could try. One of those is a tiny ‘secret’ app build natively into OSX: qlmanage . This app is used by the system to generate (PNG) thumbnails of your files, but can also be used on the read further ...
Recently I’ve been upgrading the way I write code. I’ve been programming for a while now, but there’s always room for improvement. Lucky for us developers, there are numerous tools for us we can use to aid us in our development. Things like unit testing and coding standards are great of course. But there’s also read further ...
I already wrote a number of posts about unit testing in Magento, but as with everything in Magento, some things are tricky to do, especially when it comes to unit tests. So the other day I wrote a module that needed to do certain actions according to the value of some product attributes. Needless to 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 ...
Got an ever-growing core_url_rewrite table in Magento? Don’t know what’s going on? I encountered this problem today: when I re-indexed my catalog URL’s, for some reason Magento added some extra rows. And it would keep on doing this each time I re-indexed it, when no product were even added, deleted or even modified. This was read further ...
Here’s a little trick when you need to mass rename files in Unix: for example, if you have a bunch of files where you need to replace the word “foo” with “bar” you can do as such: read further ...
So I wrote a simple piece of JavaScript the other day that showcases a neat star rating effect. In this article I’ll not only showcase this effect, but I’ll also explain some of the code that’s going on in it.read further ...
As some of you might know, the get_template_part() -function of WordPress doesn’t allow you to pass variables. This can be quite annoying sometimes when you want to include a template several times, but each time with different parameters. Imagine a situation for example where you want to show 3 category blocks next to each other, that read further ...
I already covered this topic before for Magento Enterprise, but of course: there are cases you need to import 301 redirects into Magento Community at some point. Here’s how to do this:read further ...