James McDonald

Generate Custom XML with Perl CGI.pm

I want to output custom XML without any HTML or DTD tags using CGI.pm Here is my hack to get what I'm after: #!/usr/bin/perl use strict; use CGI qw(:standard -any); # use the -any option to turn on custom tags # e.g. I can use $r->item("Item Content") to create # Item...

Accessing Cisco Clientless SSL VPN from Linux

At home I run Linux pretty much exclusively so anything I do at work tends to run the cross platform compatible path. When configuring a 'clientless' VPN on the ASA you install Cisco provided java plugins for Remote Desktop, ICA (Citrix), VNC and SSH/Telnet access...

Aptana 3 Rocks

Been trying to find a free (as in beer) development environment that is easy to use and configure with sensible defaults. Just downloaded Aptana 3 and after 2 days use. We have a winner. Things I like: Downloaded both Windows and Linux clients - Install was easy on...

jQuery [nodeName=ns1:result] syntax no longer works

Just tried to use [nodeName=namespace:node_name] syntax in Firefox and Chrome to get a result message from a soap responseXML and failed while using jquery-1.6.2.min.js and jquery-1.7.1.min.js: This is the contents from my jQuery.ajax "success:" blocks code success :...

Viewing multi-page tiff files under Linux

I just used my HP Officejet Pro 8500A to scan a 2 page document to tiff format. It drops it into a samba share on my Fedora 16 box. Trying to open the tiff format scan on Linux and i could only see the first page. With the default viewer - which in my case is the...

Perl Switch/Case Satement

for (@ARGV) { if (/^6\d{4}$/) { $item_code = $_; $action = 'load'; } elsif (/^stop$/) { $action = 'stop' ; } elsif (/^start$/) { $action = 'start'; } else { print "Default\n"; } } print "Item : " . $item_code . "\n"; print "Action : " . $action ....

RES:23# I don’t know what it means either

A company named HSAjet has a CU (Control Unit) that drives some expensive print heads for carton labelling. In the documentation that is supplied with the Control Unit it specifies that you can communicate with it via RS232 and Ethernet. The Ethernet part is what I'm...

ABA File Information

Every now and again a business has to change Banks and you are left to figure out what the ABA file format should be and what the different fields mean. Especially annoying is when you have set it up and have been running for years and the meaning has been lost over...

Rackspace Cloud – Uptime

uptime 05:29:01 up 44 days, 4:54, 1 user, load average: 0.07, 0.03, 0.00 Since I went to a small Rackspace cloud server I was concerned whether it would be stable. I have only had the account for a couple of months but the uptime is consistent with my last reboot so...

Wherefore art though php_dbase.dll?

Trying to save some time by installing a pre-configured WAMP environment (Windows Apache MySQL and PHP). I downloaded the latest Bitnami WAMPStack and found that it didn't have php_dbase.dll in the $PHP_DIR/ext/ dir. A planned retreat worked. This version has...