February 9, 2009

Remote control car speedometer

Filed under: Arduino, Electronics — James @ 9:37 pm

For my next project, and this is one I have been wanting to do for while, I will be makeing a speedometer for my remote control car.

“What good is that?” I hear you say, “how are you going to read the speed when it’s going past you at 30 miles per hour!?”

(more…)

Bookmark and Share

February 5, 2009

SD card and Arduino

Filed under: Arduino, Electronics, How To, Linux — James @ 8:23 pm

So, I have not long had my Arduino development board, my first project was to try and get it to log data to an SD card. This will be essential for a few future projects I have in mind. The internal EEPROM is only 512bytes, so not particularly useful for logging large amounts of data.

(more…)

Bookmark and Share

February 1, 2009

Modified ATX PSU

Filed under: Electronics — James @ 2:48 pm

In anticipation of my Arduino development board arriving, I decided I will definitely need a decent power supply. I have loads of old adapters laying around from phones, routers and other old devices, but these are usually quite low voltage and current. I wanted something with a bit more juice, something with some nice high voltages that could really pack a load!

(more…)

Bookmark and Share

November 23, 2008

Explode into associative array

Filed under: How To, Mac OS X, PHP, Programming — James @ 6:32 pm

Simple function to explode a string into an associative array. Works in the same way as the normal explode but takes an extra argument which is an array of keys to use for the returned associative array.

(more…)

Bookmark and Share

November 16, 2008

List files/folders ordered by size

Filed under: Bash, How To, Linux — James @ 11:13 am
du -s * | sort -n
Bookmark and Share

November 11, 2008

Bash script to retry failed command

Filed under: Bash, Programming — James @ 2:09 pm

This was originally developed to retry an rsync command if a network error happened. It’s a mishmash of code found from around the net, and could probably be tidier but it gets the job done.

(more…)

Bookmark and Share

November 9, 2008

Keychain Nightmare

Filed under: Mac OS X — James @ 1:28 am

On Mac OS X 10.5.1 (Leopard) they keychain is great! A central place to store all passwords…

When browsing in Safari, the keychain remembers passwords and pre fills the username and password fields next time you are asked for them, making remembering passwords and logging in to sites easy.

There are two type of passwords the Keycahin can remember for Safari; web form passwords (appear as a form inside a web page) and internet password (apper as the standard server authentication popup window).

This works great until a site that requires both.

(more…)

Bookmark and Share

April 2, 2008

SSH: Unknown option -t

Filed under: Linux — James @ 6:24 pm

Unable to establish an SSH connection to a server, I had to log in locally. I attempted to restart the ssh service but was presented with:

sshd: OpenSSH_4.3p2 on i686-pc-linux-gnu
Unknown option -t

(more…)

Bookmark and Share
« Newer Posts