Blog
Change template if content exists in Typo3
If you build sites with Typo3 you might want to use a smart template that uses different markup for different pages. Of course you can define as many templates as you like in Typo3. But what if you want to use a two and a three-column layout, depending on if … more
Git clone, ssh: Could not resolve hostname
Now this was annoying. I tried a git clone ssh://user@my.host:/path/to/repository and it failed with Initialized empty Git repository in /current/path/repository/.git/ ssh: Could not resolve hostname my.host:: Name or service not known fatal: The remote end hung up unexpectedly The solution was rather easy, see man 1 git-clone. A valid git … more
Moving WordPress comments
Edit: I wrote a plugin to make this easier, see the move WordPress comments plugin page. Do you sometimes get comments that should be on a different post or page on your WordPress blog? I get such posts from time to time and always wondered how to move them to … more
About the nonsense of blocking and annoying IE6 users
I know why most people who do web design, JS coding etc. loathe Internet Explorer 6. I hate having to fix stuff for any IE at all, the web would be a better place if that piece of software just died. I welcome efforts to decrease the market share of … more
Displaying a smaller banner in an Openx zone
Did you ever want to chain a zone with smaller banners after a zone with big banners in Openx? This sounds like useful feature. We don't live in the 90s anymore where every page had a pixel-precise table layout. The world has learned how to build fluid layouts. One the … more
Using any Debian box as a wireless access point
I just lost an hour trying to configure a Thinkpad T41 as a wireless access point. Most of that time was due to problems with the built-in wlan interface and a kernel recompile to use a prism54-based PCMCIA card. This is mostly a post to remind myself what to do, … more
Preview Openx geotargeting for different countries
Openx is an open source ad server. If you have more than one website or simply want a flexible system for targeting your ads to the right audience, it's worth a look. One of many features is the built-in Geotargeting plugin. Of course, after adding local ads to your database, … more
Include typo3 content elements on every page
You often want to include some content on every page of your website. There are a lot of different ways to accomplish this with typo3. Here's one quick solution: You create a hidden page or a page outside of your site tree, so that it doesn't show up in your … more
Redirecting all subdomains to the main domain
Using the canonical hostname for websites isn't an obvious problem. After all, who really cares if your site is accessible at www.domain.com and domain.com? Search engines, for example, could penalize you for having the same content on both domains. I think that today they are smart enough to discover this … more
Opera and the <noscript> tag
When you build websites and test them in various browsers there always are some problems in some browsers. Usually it's the one you expect who displays things incorrectly. But a few days ago I was surprised when Opera insisted on showing me the contents of a <noscript> tag . The … more