Pither.com / Simon
Articles tagged with "technology"


Extracting a subdirectory from git as a new git repository

Some time ago (about 2 years according to the file timestamps) I created a git repository to house all of my random personal files (letters, tax returns, random notes, etc).

Unfortunately at some point in the last two years I started to add in assorted other bits that really didn't belong, just because I needed somewhere to put them. To …

full article



My phone runs Android

Sort of! It boots most of the time (via HaRET) and produces a desktop with some menus that can be navigated and applications that can be launched. The controls on the front of the phone seem to do useful things and the slide out keyboard works . The touchscreen however is far from right with touches causing random things to happen …

full article


Crazy filesystems

Recently I invested in some new hard disks for my file server. The idea being to increase capacity (1.1TB to 1.9TB) and to decrease the power usage (10 disks to 3).

I finally got around to fitting them at the end of last week and set the computer copying all my existing data from old to new over …

full article


Web browsers to scream at

Thankfully I don't have to play with the details of web user interfaces all that often. But occasionally, they are forced upon me. Thankfully I know enough HTML and CSS to be dangerous!

Even with such knowledge I am still frequently amazed at the obscure browser (in this case IE6) bugs that have to be worked around.

Today's IE6 bug …

full article

Tags: css technology

RoR nearly falls early

While trying to get a new Ruby on Rails application up and running on one of my servers, I came across this:

$ ruby script/server   
./script/../config/boot.rb:29: undefined method `gem' for main:Object (NoMethodError)
        from script/server:2:in `require'
        from script/server:2

Being the first thing I ran after rails <myapp> this is quite an …

full article


Multiple page scan to PDF

Xsane does do this, but it's an awful lot of clicks, even between pages and that's after you've got to the right screen and before you eventually output the file.

So here's a simple bash script to the rescue...

#!/bin/bash

export DEVICE="device, use 'scanimage -L' to see list"

echo Pages: $1
echo Filename: $2

FILENAME_BASE="/tmp/$2"

for …

full article


PNG compression

Having failed to find the option in the GIMP to create colour mapped PNG files, I have just had to discover a couple of handy commands...

  • pngnq - tool for optimizing PNG (Portable Network Graphics) images
  • pngcrush - optimizes PNG (Portable Network Graphics) files

The first of these takes a RGB PNG and gives back a colour mapped (by default, 256 colours …

full article