Author: Roland Tanner
-
Joomla – prevent it from displaying per-page modules in results
There are a few things I don’t like about Joomla. Well there are quite a lot of things I don’t like about Joomla, although the love-hate is roughly equal to my view of Drupal. They’re powerful tools, but you sometimes feel you waste roughly as much time unpicking another developer’s idea of what makes sense…
-
Rename files to consecutive numbers – bash
I’m always trying to remember this. N=0;for i in *.jpg; do mv “$i” “$N”.jpg; N=$[$N+1]; done
-
Search Engine Optimization (SEO) – what it is, and why anybody can do it
Here are some answers to some of our most frequently asked questions about SEO. How to search engine optimize your site: 1. Most important factor – an interesting website with good content. There’s no secret formula to Google ranking. Search for ‘newspaper‘ on Google, and the highest results go to The New York Times, The…
-
IE z-index bug and how to squash it …
A useful one to remember, because it’s cropped up in multiple sites recently. IE (at least up to 9) does not handle z-index correctly. New *positioned* elements create new stacking contexts, beginning at zero, so you can run into counter-intuitive behaviour like the following: <div id=”positioned-div” style=”position: relative;”> <div id=”inner-div” style=’z-index: 1000′> Hello world </div>…
-
PHP ISBN 10 to ISBN 13 converter
This is a bit of code I wrote a few years ago. I couldn’t find any tool anywhere that would convert old-school ISBN 10s to the new ISBN 13, and check that the numbers have been entered correctly. The algorithm for ISBNs isn’t that complicated, so I came up with the following, which is available…