I actually took these photos last year before I shifted house, but I only just found the photos ;)

Using a clear CD cover (the little clear plastic cover that sits on top of the spindle of blank CD’s which is shaped the same as a CD but isn’t a CD), we get an interesting effect coming from optical mice. I noticed this because I work at night a lot. This was done with my Logitech MX510 but I’m sure most optical mice would do it: it has to do with the angle and color that the light hits the coaster at. If I remember my Physics 101 correctly, the coaster material and the angle are causing a near critical angle refraction of the red light, meaning that you can’t see the light through the coaster until the edge of the coaster where the light can exit.

We don’t see it at all when the ambient light is high enough because it is absorbed into the rest of the spectrum. Without the lights, we just get a diffusing effect at the edge of the coaster :D

Leave A Comment, Written on November 12th, 2010 , Light

Clydes Party Hire went through several trading name changes over the past several years which resulted in a fragmented business approach and an outdated website. We helped them develop a very simple front end for the visitors to place online orders with and developed a back end CMS in WordPress to be able to cater for this.

Completed: Q2 2010

Leave A Comment, Written on July 3rd, 2010 , Freelance Work

I was going to title this “Unlocking the iPhone 3GS 3.1.3″ and then I realised that there are a billion posts out there like that, and there doesn’t seem to be a one-size-fits-all answer to this. So, here’s what worked on mine.

1. Grab a copy of Spirit (has Mac and Win versions)

2. Make sure you have already activated your iPhone (i.e. turned it on and synched to iTunes and you are able to register with the cellphone network)

3. Connect the iPhone and run Spirit, hit Jailbreak

4. Install Ulstrasn0w and you have unlocked the iPhone :)

NOTE: I’ve discovered and confirmed Ultrasn0w doesn’t work with baseband 05.12.01 yet.

The difficulty for me with the 3GS was that the older methods of unlocking it didn’t work for me, because I have a native 3.1.3 model…which has intermittent success depending on the actual model number. Spirit worked though.

Leave A Comment, Written on May 21st, 2010 , Informative

Yeah, ok, it’s a bit of a gimmicky title :)

With my recent escapades into VOIP though, it quickly became annoying for me to have a desk IP phone and a softphone on my laptop, as well as my normal mobile and landline. Well, asterisk can route the landline as I want, so I guess that doesn’t really count. But given that I use my mobile for almost all of my calls (it is the number I hand out), it’s still annoying to have to swap phones.

Enter Siphon (click for screenies), a VOIP client for the iPhone. It is a real client, not a proxy like Fring (took me a while to figure that out :/). This means if you have a local Asterisk setup, you can use the local IP and actually get a reasonable latency :D The call quality is perfect with Siphon too. And it plugs into the addressbook in the iPhone, even better. The only down side is that apple don’t allow background applications to actually run on the iPhone, so incoming VOIP calls do not get routed through unless the application is left open. Oh well, it’s still a cool app :D

I wonder if I will have problems remembering when I’m calling someone over VOIP and when I’m calling over the mobile network given they are both made with my mobile phone device now…I don’t really want to spend an hour on the phone to a landline thinking I’m talking over VOIP only to discover a bill for $60 ;)

Leave A Comment, Written on May 5th, 2010 , Serious

Another glaring oversight of having a Mac, and one that I think should be exploited by those making parodies of the Mac v PC ads ;)

I have a mac, therefore, I can do “everything” out of the box…except resize an image. Or create an image. Or, edit an image in any way. There is no Mac equivalent to MS Paint. Not that paint is very good, but at least in a pinch you can save a screenshot to paint and then resize it. Sure, the Grab utility in Mac OS X is great, but it’s not very much good to me at full size. Ohhh, right, I’m supposed to buy Photoshop, because that’s the only well known program that PC users are going to recognize that is also on a Mac that can edit images. Or I Google a lot and find a bunch of new programs I’ve never heard of, none of which are endorsed by Apple.

So, anyway, I’ve settled on SeaShore, which is based on GIMP. I didn’t like GIMP because it runs in X11 and doesn’t interpret key commands “properly”. By properly, I mean the same way Cocoa apps behave. You have to click on a window before you can click on any buttons in X11 i.e. if you are looking at the image and want to change tools, you must click the tool twice. One click selects the tool window, and one selects the tool. Then you have to click twice in the image to start using the tool. Annoying. Oh, and all of the commands are mapped to control button, not the command button. Also annoying.

SeaShore is a very cut down version of the gimp, but it’s small, Mac friendly, and allows me to paste and resize my screenshot easily :)

I also stumbled across this blog entry from 2006 that discusses some of the free editing tools for Mac, all of which turned up in my search as well, but it’s easier to link there for a summary.

Leave A Comment, Written on May 3rd, 2010 , Serious

Recently I have started getting into VOIP servers, specifically, Asterisk based VOIP servers. I use a Macbook pro as my everyday work computer (clamshell mode while at the office).

Problem 1) The Macbook Pro has line level inputs not mic level inputs. So when I bought a medium-range Logitech Clearchat headset, it didn’t work.

Attempted solution 1: I have an external Toshiba Dynadock which has a sound card in it, and connects up via USB. The mac detects the sound card. The Sound preferences control panel sees the mic and responds to it. No other application responds to the mic. I’ve absolutely no idea why. The only problem I could find on Google that remotely resembled this was when people are trying to get sound into a sound recording application, and the recording input is set at the wrong sampling rate. I tried modifying this to no joy. I can even hear the mic if I put the input on “passthrough” mode with Rogue Amoeba’s LineIn application, but I simply can’t get it to work in an application. The most simple test I have is using Audacity and recording off that input. Sigh.

Attempted solution 2: I un-clamshelled my mac to use the internal mic. So I have the internal mic and internal speakers and I’m talking and I can hear them, and they can hear me, but they are hearing an echo of themselves. Why? Because the internal mic in a Macbook Pro is in the speaker grill, next to the speaker. So the other person talks, it comes out my speakers, and the mic picks up on some of it and routes it back to the person.

Why put a mic next to the speaker? Lots of people say “oh I used it to record my voice and it was ok”. Yes, but you’re not outputting through the speakers at the same time. Even the normal Macbook has the mic next to the camera. It makes SENSE to put it next to the camera, because when people do video calling, they are looking at (and therefore speaking to) the camera.

As much as I like Mac OS X, I don’t think I’ll buy another mac. I might buy a Vaio instead. Windows 7 is quite nice, and even if it does “go slow” after a year and require a reinstall, I have discovered that a lot of what I do is server-based anyway, meaning that as long as I have a core set of applications on whatever PC I am using, I don’t have to back up / reinstall much.

Leave A Comment, Written on May 2nd, 2010 , Serious

Back In Black London Cabs is a luxury cab service business that went through a change of ownership, and the new owner saw potential to develop an internet presence. Services that lend nicely to internet use are photo galleries, virtual tours, event listings, and online bookings. The idea behind this inception is to begin simple, allowing for easy expansion into these areas as the business grows.

Completed: Q1 2010

Leave A Comment, Written on April 3rd, 2010 , Freelance Work

I had a power outage the other night and it looks like one of my VirtualBox virtual images got a little corrupt and it’s UUID changed. This isn’t espcially a problem, but VirtualBox identifies images by the UUID and therefore refused to start the VM this is attached to throwing the error:

UUID {b6e58671-d821-4dba-b723-f12defc2650a} of the medium ‘/home/admin1/vimages/zen.vdi’ does not match the value {c14b3de3-78c8-40a1-8106-badd0e0fb9c2} stored in the media registry (‘/home/admin1/.VirtualBox/VirtualBox.xml’)

I hacked the VirtualBox.xml file to reflect the new UUID but it still gave me the same error. I guess VirtualBox must cache it somewhere.

I ran:

VBoxManage internalcommands setuuid “/home/admin1/vimages/zen.vdi”

Which said it ran successfully, but then gave me the same error when I tried to start the VM. Weird. Cloning the VDI also fails with the same message, so I can’t generate a new virtual image from this one either.

I have in fact had this issue when using the Mac version of VirtualBox, and I removed the image from the HD listing and re-added it, forcing VirtualBox to accept the new UUID of the image. Unfortunately, I couldn’t find in the manual how to perform this step on the command line. Simly detaching and reattaching the media does not force VirtualBox to change the media registry.

Eventually after molesting Google to broaden my search way beyond my error message (effectively looking at everyone who had UUID errors in VirtualBox!) I came accross the unregisterimage command. Intuitively I discovered there is an identical reverse command called registerimage. These commands control the media library from the command line. They appear to be compeltely undocumented in the VirtualBox Manual. It’s quite stupid really, they should be in the same section where the GUI describes how to do this.
A quick detachment of the drive from my VM:

VBoxManage storageattach zen –storagectl “IDE Controller” –port 0 –device 0 –medium none

Followed by resetting the image registration:

VBoxManage unregister “/home/admin1/vimages/ubuntu.vdi”
VBoxManage register “/home/admin1/vimages/ubuntu.vdi”

And re-attaching the drive:

VBoxManage storageattach zen –storagectl “IDE Controller” –port 0 –device 0 –type hdd –medium “/home/admin1/vimages/ubuntu.vdi”

And all was good!

UPDATE 11th OCT 2011: This won’t work in Virtualbox 4.x as they changed the commands. I cannot see any VBoxManage command to take the place of the register / unregister commands and I have resorted to using PHPVirtualBox to do this as it has a media manager built in but still allows me to run the server headless.

1 Comment, Written on March 25th, 2010 , Informative

Ok, the house move is complete, the DSL is back online. And faster now too :) I don’t think I’ll bother shifting the site off to one of the public hosting servers now :D 24 / 1 at almost full speed. If Amnet are using Annex M I can probably unbalance that a little in favor of the upload throughput given the signal strength :)

Leave A Comment, Written on February 23rd, 2010 , Serious

When my Samsung CLP-300N failed, I had about $200 worth of new unused toner sitting around and so I bought a 2nd hand CLP-300 (the network version is rare and so prohibitively expensive). This worked ok for about another 6 months, but before I can even change the toner, the black imager is dying again. So I investigated sub $500 color laser printers, and I found that the Dell is one of the cheapest capital expenditures while still giving good quality. I think this is because they sell the toner with the imaging unit, which makes the toner about $100 per color, very expensive. However, it should prolong the printer. I saw these on special at $180 from Dell’s site and picked one up last month. I hadn’t set it up because of the shift though. Now, in the new place, in a hurry to print something, I unboxed it and set it up, only to find that:

1) Mac OS 10.5.8 does not support the printer natively

2) The driver disc Dell included includes only the electonic version of the manual, in about 10 languages, in the Mac OS mount partition (obviously the Windows drivers are on the Windows partition).

Googling tells me there is no driver, and to use a Fujixerox driver that uses the same electronics, and so will print, but will not give any options. Great. I couldn’t even find the driver they were talking about. However, dispelling these myths and the myths of Dell’s lack of support for Mac OS X, they do indeed have a Mac OS X driver on their site. And it’s just the driver – 550kb download or so. The application has been split. I like this. It works perfectly now. Thanks Dell! :D

2 Comments, Written on February 22nd, 2010 , Informative

SirSpanky.com – The Secret Diary of James Pearce Aged 20-Something is proudly powered by WordPress and the Theme Adventure by Eric Schwarz
Entries (RSS) and Comments (RSS).

SirSpanky.com – The Secret Diary of James Pearce Aged 20-Something

Personal jorunal of a professional geek – James Pearce in Perth, Australia