Skip navigation.
Related Links
Blogs

Removing trailing spaces with vim

16
Jul
2008

Baby Tux

After recently reading about how great VIM is for the three hundredth and fifty second time (I kept count), I decided to take a look.

It really is quite cool! I've also decided to try to log any cool tips I learn about it. Here is the first which I found after running the coder module on one of my modules (Page Title 2) and it threw hundreds of errors about too many trailing spaces on empty lines.

Generate random string in MySQL

10
Jul
2008

Have you ever wanted to generate a random string in MySQL, say for assigning a random password to a list of users? Well here is a usefull tip!

Synergy for OSX Leopard

07
Jul
2008

I recently setup my PC in the living room with my TV so I could play games and watch streamed video from the net (eg, BBC's iPlayer). Unfortunately this always meant having a keyboard and mouse attached.

Then came along Synergy.

Global Redirect Update

03
Jul
2008

Global Redirect Logo

One of my most popular Drupal modules - Global Redirect - has just had an update from 1.2 to 1.3. This update includes several fixes for the following:

My First Drupal Theme

12
Jun
2008

I have just finished commiting my very first theme to the drupal community! I'm not a designer by nature - I prefer to be deep in the code. Thats why I commited this theme - it contains very little design (in terms of Photoshop work). This design is, pretty much, image free! On top of that - its SEO friendly too!

Abessive Screenshot

I say 'Pretty much' because it is still using 3 core image files for the bullet points. But what I'm pleased about is the curved CSS-only corners with a slight gradient on them AND the fact that if you remove content from a column, the content fills out over it automatically.

American Boy Remix

27
May
2008

Kasha LogoMy mate and Kasha have done a REALLY nice remix of the fairly recent song American Boy by Estelle. You can hear it on KashaMusic.co.uk

Page Title 2 for Drupal 6

02
May
2008

I've just released Page Title 2 for Drupal 6. Page Title 2 is still marked as Alpha (as a project) however its in use on a number of my sites and appears to work.

I'd appeciate people's feedback regarding this module. Its a GREAT way to improve your websites SEO!

My iPhone Theme

30
Apr
2008

Dekstop Screenshot ThumbnailI treated myself to a nice new iPhone last week and am LOVING it!

My phone is jailbroken and unlocked now (using PwnageTool). This means I can run all kinda of funky apps and games. I decided recently to design my own theme to make my phone feel more like "mine". Here are some screenshots. I'm working with a friend on how to release this theme along with some he has done too…

Getting Lighttpd working with AWStats

21
Apr
2008

Lighttpd meets AWStats

Following my previous post about configuring Lighttpd on this VPS Webserver to replace Apache I bring you a guide to configuring AWStats under Lighttpd. This process is differs to Apache as control of directories and aliasing is handled differently. There can also be complications if you have previously enabled the Drupal LUA Magnet script on your site for clean URL handling!

How to batch rename files

19
Apr
2008

This afternoon I needed to rename a bunch of files from one form to another in a command shell… Well technically I didn't need to do it in a shell - but, as sure as there is a hole in my ass, I wasn't gonna go through renaming them all manually!

They needed to go from, for example, add.png to add_32.png. After a little research into commands like printf, awk, bison and so on - I suddenly realized that 'cut' held the key!

for i in *; do j=`echo $i | cut -d . -f 1`; j=$j"_32.png"; mv $i $j; done

It'd be nice if you asked before taking stuff from my site. Contact me at webmaster [at] thingy - ma - jig . co . uk

This site was based on the Cobalt 2.0 Theme for phpBB written by Jakob Persson

Free MiniMac

Free MiniMac

Social Statistics
Search
Google



Weblinks

Add to Technorati Favorites

TGC Webring

CMS Drupal Showcase

Feedburner for ThingyMaJig

View Nicholas Thompson's profile on LinkedIn

IconBuffet

Twitter