Archive for the ‘Programming’ Category

Job Interview Question #11 - Summing Numbers

Tuesday, July 8th, 2008

I've recently started following a blog which sets weekly programming challenges. I'm getting sick of Nintendo DS brain training and thought I'd try something more relevant to my line of work. Also, this gives me a good opportunity to learn more about my favoured scripting language at present, which is ...

RailsCamp 08

Friday, June 27th, 2008

Went to the third RailsCamp held in a scout hall near Gosford NSW last weekend; my brain has just about got back to normal after 3 solid days of drinking and coding =) RailsCamp is a get together of mostly Rails developers, but also a fairly eclectic mix of Ruby hackers ...

Capturing Screenshots in Watir

Monday, June 2nd, 2008

Recently I noticed some discussion in the watir user group about trying to capture screenshots when running automated tests. For such a simple requirement, it's frustrating that solutions available either cost money (such as the purchase of SnagIt) or are a tad complicated in implementation requiring the installation of some out ...

An Alternative for Mercury Virtual Table Server

Thursday, April 3rd, 2008

Mercury's Virtual Table Server (VTS) provides the following functionality when sharing data between vusers in your typical LoadRunner scenario ... Virtual Table Server (VTS) first edition, introduced the capability for LoadRunner virtual users, WinRunner and XRunner, to communicate in real time. Data extraction and communication was simplified but limited to column/queue ...

Speeding Up Script Development Time in LoadRunner

Tuesday, February 26th, 2008

If you've ever had to write lots of LoadRunner scripts you'll probably be interested in this snippet of code. Imagine you're in a situation where you need to produce many LoadRunner scripts each with multiple actions. Normally, once you've got all your custom correlations down pat (I hate correlation studio ...

TextMate Alternative for Windows

Tuesday, February 19th, 2008

Well as you know, I've become a bit of a Mac zealot (thanks Ted) and strongly favour TextMate as my preferred editor for coding and scripting ... Unfortunately, my real job is in a pure Windows environment, so if you're after a hit of TextMate-like functionality, try Intype ... It's ...

[Bump] MyThree Bandwidth Usage Widget

Thursday, February 7th, 2008

Download it 'ere... I currently have a mobile broadband account (HSDPA) provided by three.com.au, and after a hexy surcharge from the previous month when exceeding my limit, thought it would be prudent to build a dashboard widget that tracks my monthly bandwidth usage. Building on a previous post that automates calls to ...

An exercise in correlation - playing MySpace music via iTunes

Thursday, February 7th, 2008

[UPDATE] Mr Gecko, has since implemented this logic and sorted out downloading woes (for u US folk) in a nifty little OSX app here ... In between contracts, I have been practicing the art of correlation by scraping data from public web sites. The legality of this is perhaps a little ...

Another chart API for your performance metrics

Tuesday, December 18th, 2007

Google have got some charting code worth looking at, which basically allows you to create charts by modifying parameters in the query string. Something as simple as this: http://chart.apis.google.com/chart?chtt=Tim's%20Beer%20Intake&cht=p3&chd=s:9h&chs=250x100&chco=00ff00&chl=Unemployed|Employed produces this: Being on holidays at the moment, I'm lacking the um, 'project' on which to apply this technology, but am curious ...

Leopard Perl 5.8.8 installation throws errors when compiling (makefile)

Thursday, December 6th, 2007

If you're stuck with this error when trying to compile your own apps: No rule to make target `/System/Library/Perl/5.8.8/darwin-thread-multi-2level/CORE/config.h', needed by `Makefile'. You will probably find that your Leopard installation is lacking some necessary files. If you copy the files from your old(er) installation of perl (5.8.6) you should be able to ...

Turning off Mac OSX text anti aliasing selectively

Monday, October 15th, 2007

I've been experimenting with a couple of different IDEs lately for Java development, and the two at the top of my list are NetBeans and Eclipse. A frustrating thing is that Mac OSX tends to ignore anti aliasing rules for text in these applications. I think it has something to ...

Installing the CVS bundle for TextMate for Mac OSX

Monday, October 15th, 2007

More for my own reference than anything else, here is how you install the CVS bundle for TextMate using a subversion client. 1. If you don't already have a subversion, try the precompiled version here. 2. Set the LC_CTYPE variable to use UTF-8 export LC_CTYPE=en_US.UTF-8 3. Make a bundles directory if you have not ...

Don’t forget Perl one liners

Friday, May 18th, 2007

If you have the requirement to manipulate multitudes of input messages / log files / data templates with dynamic variables, you may be left wondering what is the best approach. One could argue in a friendly way for hours about which language is the best to achieve this outcome (almost ...

NuSOAP and PHP5

Friday, March 30th, 2007

When installing the NuSOAP class on a system with PHP5, you may get the following error: "Fatal error: Cannot redeclare class soapclient in ../nusoap.php on line 7240" A quick google search will reveal the following cause. As PHP5 already has a built in class called soapclient, this is where the clash is... The ...

A Perl of an idea for try … catch clauses

Wednesday, January 3rd, 2007

The try...catch...finally clause found in languages like Java are very handy for error handling. In scripting languages like Perl you can achieve the same effect using the eval function as the following code snippet demonstrates. eval{ &yourSubRoutine($parameters); }; $@ ? $yourLogObject->yourErrorMethod("I failed with reason: $@") ): ...