I Like To Build Things

Buffoon discovered hiding with monkeys

Posted by matt on Thu, 25/09/2008 - 10:21pm in

In a shocking development in the race to the Presidential election today, digital enhancement of a recent nature photograph which had captivated the World's attention has revealed a well known buffoon attempting to hide amongst a community of monkeys.

According to latest reports, the last 8 years have finally proven too much for the former human, and the daily ridicule appears to have finally taken it's toll.

"Yeah I'm happier back here livin' with these here gorillas" he was quoted as saying by Reuters in today's earlier interview.


(Click for large image)

Paris Hilton Has Baby Girl

Posted by matt on Fri, 19/09/2008 - 2:56pm in

American socialite Paris Hilton has today wooed crowds with her new baby girl, Candice. Mother and child are now reportedly resting in seclusion in an undisclosed location in the South of France. If babies first appearance was anything to go by, it won't be long till she is gracing the catwalks of the World, and setting the hottest trends for girls everywhere.

How to play HD-DVD .evo video files

Posted by matt on Thu, 18/09/2008 - 4:22pm in

While currently most of the video playing software available such as Video Lan Client (VLC) and Windows Media Player Classic cannot play HD-DVD .evo files, there is one which does work.

You can play .evo files successfully using the new version of MPlayer, which is another of the free open source video programs available.

Remember to think for yourself

Posted by matt on Tue, 02/09/2008 - 6:00pm in

Culture is not your friend.

Determine your own points of view, and don't succumb to others ideology. It's your life after all.

Test your website in other browsers online

Posted by matt on Sun, 09/03/2008 - 1:57pm in

As we all know, not all browsers are created equal. Some refuse to play nice, or follow the standards of the internet, and instead mangle our websites beyond all recognition.

In order to test out what our site looks like in each of the different browsers, we need to either keep a room full of PCs, Macs, Linux boxes etc, with all the different browsers on them for testing purposes - or we can use the variety of online browser testing websites.

Browsershots is probably the most fully featured one, but there is usually a bit of a wait for screenshots to be processed, and sometimes (unless you hit the Extend button a few times), some of your screenshot requests will expire:
http://browsershots.org/

Another handy one for testing the IE range (including IE6, IE7, IE8) is the netrenderer:
http://ipinfo.info/netrenderer/index.php

Enjoy, and may your websites be free from browser anguish!

Get Google maps and PNGfix working together

Posted by matt on Fri, 07/03/2008 - 4:04pm in

Its often what happens when building websites which feature a range of different components, that some won't play nice with others.

How to generate Drupal pages from CSV

Posted by matt on Thu, 21/02/2008 - 3:51pm in

This is probably common knowledge to those of you who are very familiar with Drupals variety of modules, but its new to me, so I'm posting about it!

How to add subtitles into a video file

Posted by matt on Mon, 11/02/2008 - 9:20pm in

If you've got a video file that has an accompanying subtitle file which is separate, that's usually preferable to "hardcoded" subs (which are in the actual video itself).

How to customize Drupal forms

Posted by matt on Fri, 25/01/2008 - 4:36pm in

After trying to figure out how to customize node input forms for Drupal for a while by using form_alter, I eventually stumbled across the formfilter module.

The formfilter module appears to be perfect for what I needed. Its a simplified point and click interface visible to admins only, which allows virtually any form field to be hidden.

Obviously when creating a website aimed at a less techy user audience, we're wanting to keep it simple. First impressions of the formfilter module for this seem to be pretty good.

How to block a bad bot or spider

Posted by matt on Thu, 24/01/2008 - 5:08pm in

Whenever we put our websites online, we open the doors for any and all spiders and bots to start trawling our content. Most of the time this is not too much of a bother, as long as they don't get stuck in broken loops which can burn up bandwidth, or slow down servers.

In theory we're able to use robots.txt rules to tell spiders what they're allowed to look at, and what they're not welcome to... of course plenty of spiders completely ignore robots.txt and do whatever the creator has instructed them to do... whether it's something shady, or even simply gathering data and/or files for a privately run search engine.

This is where other useful tools such as htaccess and modrewrite come in. A lot of spiders do actually include an identifying "useragent", and so by adding the following lines to our htaccess file we can deny access to a list of these "bad bots".

In this case we're blocking a couple of spambots and a media file crawler called asterias, which is associated with Singingfish - an mp3 search engine. Singingfish has the totally idiotic habit of crawling websites looking for mp3 files, and then immediately downloading every single one they find. Nice.


# Turn on mod_rewrite
RewriteEngine On
# Expandable bot list (Note: no OR on the last one)
RewriteCond %{HTTP_USER_AGENT} asterias [NC,OR]
RewriteCond %{HTTP_USER_AGENT} Exabot [NC,OR]
RewriteCond %{HTTP_USER_AGENT} nicebot [NC]
RewriteRule .* - [F]

Its a good idea to double check that only the correct useragents are being blocked, and you haven't accidentally banned every visitor and search engine under the sun!

Here's a handy HTTP request viewer which can be used to do just that.

Syndicate content