Apr
03
2011
0

iPhone templates for UI prototypes

I’ve recently started doing a lot of development for the iPhone and iPad and I wanted to be able to sketch layouts on paper.

Now it’s one thing to draw a rough iPhone layout, but it’s another to actually have them looking like an iPhone.

I started using the A4 iPhone Template from http://www.uistencils.com, but soon wanted something more photo realistic.

Behold my designs…..
(more…)

Written by John Burns in: Tips |
Nov
13
2010
0

Converting PDF files to HTML on Ubuntu

It’s very easy to convert PDFs to HTML on Ubuntu.

The command is pdftohtml
(more…)

Written by John Burns in: Linux Tips |
Nov
10
2010
0

Downloading routes from a GlobalSat DG-100 with gpsbabel on Linux

This is a GlobalSat DG-100

It’s an amazing piece of Kit, but the software that comes with it is absolutely rubbish.

You can download all of the routes (and delete them from the unit) in one simple command with gpsbabel.

gpsbabel -t -i dg-100,erase -o gpx /dev/ttyUSB0 outputfile2.gpx

You’ll still need to set up the times/distance for recording for the switch positions A,B & C. I have mine set to 1,5 and 10 seconds. Easiest way to set these up is on a windows machine with DG Manager.

Written by John Burns in: General Randomness,Linux Tips,Tips |
Oct
17
2010
0

Stopping Javascript from resizing the window in Firefox

One of my pet hates on the internet is shopping sites which resize the window when you’re looking at a zoomed in image. Not all of us still use a windowed browser, in fact, most people now use a tabbed one.

Here’s how to stop javascript from taking control of your window size in firefox….
(more…)

Written by John Burns in: Linux Tips,Mac OS X Tips,PC Tips |
Jun
09
2010
0

Combining two images with ImageMagick

To combine two images of the same size with ImageMagick, you simply do the following:

The following will overlay overlay.png on top of output.png

mogrify -draw "image SrcOver 0,0 0,0 'overlay.png'" output.png

While this one will overlay overlay.png on top of input.png and save it as output.png

convert input.png -draw "image SrcOver 0,0 0,0 'overlay.png'" output.png

You can download imagemagick from http://www.imagemagick.org/

Written by John Burns in: General Randomness,PC Tips |
Jun
07
2010
0

Selective colour replacement with imagemagick

Selective colour replacement is easy from the command line with imagemagick.

You can download imagemagick from http://www.imagemagick.org/

The following will replace all red (#FF0000) pixels with blue (#0000FF)

convert sourceimage.png -fill "#FF0000" -opaque "#0000FF" destimage.png
Written by John Burns in: General Randomness,Linux Tips,Mac OS X Tips,PC Tips |
Jun
02
2010
0

Deleting folders recursively

I needed recursively delete folders named .svn within a directory structure.

The following will allow you dto do this from a command prompt:

FOR /F "tokens=*" %G IN ('DIR /B /AD /S .svn') DO RMDIR /S /Q %G

Remember, if you’re doing it from a batch file, you’ll need to double up the percent signs, thus:

FOR /F "tokens=*" %%G IN ('DIR /B /AD /S .svn') DO RMDIR /S /Q %%G
Written by John Burns in: PC Tips |
Apr
26
2010
0

IIS 6- Setting up a write only FTP directory

So, you want to set up a write only ftp directory on IIS? One where you can upload files, but not list them?

Easy…
(more…)

Written by John Burns in: PC Tips,Tips |
Apr
25
2010
0

WordPress Super Cache plugin – Performance Benchmarking

I’ve been doing some performance tests on WordPress to see how much of a difference the WordPress Super Cache plugin made.

It turns out that the plugin makes a huge difference. (more…)

Written by John Burns in: General Randomness,Linux Tips,PC Tips,Tips |
Apr
22
2010
0

WordPress not sending emails on ubuntu – nrcpts=0

So, you’re using sendmail to try and send emails from php/wordpress and it’s not working?

Are your mail logs (/var/log/mail.log) showing nrcpts=0 ??

Make sure the sendmail_path in your php.ini file (/etc/php5/apache2/php.ini) is set up correctly.

It should probably be…

1
sendmail_path = /usr/sbin/sendmail -t -i
Written by John Burns in: Linux Tips,Tips |