css (1) jQuery (7) linux (38) mac (70) php (29) python (1) svn/git (9) trac (4) ubuntu (1) virtualbox (6) vista (2) windows (14)

Monday, 31 August 2009

OS X 10.6 - Snow Leopard

I've just updated from OS X 10.5 Leopard to 10.6 Snow Leopard, the installation took around 45 minutes, and immediately after installation my hard drive was 7 GB smaller which is a blessing.

I immediately decided to launch all my applications, now on leopard, this would lock up the laptop after I launched all the applications in the adobe master collection CS4 (photoshop, dreamweaver, illustrator, flash etc...). Snow leopard managed to survive up to Opera (I was opening alphabetically), that's around 80 (yes 80!) applications open at once! So that impressed me.

Out of my 200ish applications the following have compatibility problems

  1. Cyberduck - needs updating to the latest beta to run, the stable version doesn't open
  2. Coolris - not available for snow leopard yet
  3. Techtool delux - informs you it's not tested with snow leopard hopefully a new version will be out soon
  4. iStat menus - not compatible, new version should be out soon.
One last thing of note, snow leopard only contains java 6 (both 32 and 64 bit), leopard contains java 5 as well, if you're a java developer you may want to take note of that (I use java 5 for my degree work).

All in all it's pretty, faster, but nothing too flashy, for 99 NZD for a family pack, I'd say it's worth it.

Tuesday, 25 August 2009

PHP Variable Variables and superglobals

While writing for a PHP project I needed to access one of the super globals i.e. $_POST, $_GET etc without knowing which so I planned to use a variable variable i.e


Unfortunately this was inside a class function and low and behold it doesn't work! Unfortunately this is documented so I can't report it as a bug. Luckily you can do this:


Monday, 24 August 2009

Killing processes inside netbeans

For my degree one of the questions was to create a basic ftp server in Java. Since the server is designed to always run when compiling a new version I have to kill the old process, now either I can close/reopen netbeans but that takes too long, instead if you go to window > runtime you can terminate the processes there.

Sunday, 23 August 2009

Apple Mobile Me email and Thunderbird SMTP connection fails

I've been looking for a new email address that's not one of the free ones i.e. gmail, hotmail etc since I need some sort of SLA.

So since I'm a mac user, came to mind.

I set up the free trial etc etc, then went to Mozilla Thunderbird my email client of choice, and set up my account, DARN I can't send

Send Message Error

Sending of message failed.
he message could not be sent because connecting to the SMTP server failed. The server may be unavailable or is refusing SMTP connections. Please verify that your SMTP server setting is correct and try again or else contact your network administrator.

How how annoying. I piddle around with the settings can't get it right.

So I go to the mobile me website, it says set up with SSL port 587, ok try that, still doesn't work. So I notice this little button on the mobile me site saying chat with support.

Cutting a long story short, I explain my problem the tech support says they don't support 3rd party clients, I get annoyed and say they must support since they have documentation, after diagnostics he says try TLS on 587, low and behold it works and I feel stupid for not trying it in the first place.

Thank You Jesus! (The rep's name was Jesus, never thought I'd say that in my life)

Friday, 21 August 2009

Using grep to not show lines

If you want to view a file without certain lines in it, i.e. an error log you can pipe it through grep and use the -v option, i.e.

cat /path/to/file | grep -v 'no such file or directory'

that will omit any lines containing no such file or directory.

Saturday, 8 August 2009

Lynx and Mac OS X

Since our net now has a bandwidth cap (20GB/month) and we hit this it's now the speed of dialup..ugh! So since most of the time I don't need fancy graphical net so I decided to check out installing Lynx on OS X.

Now if you want lynx with ssl the ssl libraries with mac os x don't seem to agree with lynx, so download openssl, compile and install it to a temporary directory then configure linx with ./configure --with-ssl=/path-to-where-you-install-openssl

And there you go! You have lynx

Friday, 7 August 2009

Growl Notify NSPortTimeoutException

Recently I've been experimenting with growlnotify to send notifications across my network and had the following error

growlnotify[5502:10b] Exception: NSPortTimeoutException
Segmentation fault

To resolve it simply stop and restart growlnotify, note the receiving computer has to have listen for incoming connections enabled under the "network" tab of the growl preference panel.

Sunday, 2 August 2009

CSS Attribute selectors for label "for" attribute and IE7

I just discovered something really annoying. When using the label[for="something"] CSS attribute selector in IE7 it doesn't work! You have to use the DOM name htmlFor so it would be label[htmlFor="something"].

Thank god for IE conditional statements adding another stylesheet with the CSS required for IE7 fixes it.

Kudos to Microsoft for IE8, it doesn't have the problem and it's developer tools make life easier, I just wish it had an IE6 rendering mode as well as IE7.

Saturday, 1 August 2009

Winload.exe error vmware fusion boot camp

Recently after re-installing windows on my mac's bootcamp partition VMWare fusion started reporting winload.exe was missing.

To fix this, close vmware fusion, delete the
/Users/(your user)/Library/Application Support/VMWare Fusion/Virtual Machines/Boot Camp
folder, then restart vmware fusion and launch the bootcamp machine.