Ajaxterm

Ive been playing with Ajaxterm today. Its really kinda cool, I have it running behind some password auth and over ssl now. Which is good, it means that in places where they have an aggresive outbound firewall stance I can still get to a terminal on my machine and ssh from there.

Long Weekend

It started with a late finish from work on Friday, we didn’t get back to Wellington until about 7.30pm. I then met up with Laurel at Melissa’s farewell drinks at the Good Luck Bar.

But then when I got home at 11pm I still had some work to do for the library. Plus some work for the Horowhenua Library Trust also. So I went to bed around 1am.

I was up again at 7am to be ready for the library to open and keep an eye on how they went on their first day of using Koha fulltime. It went pretty well, so by 1pm I decided it was safe to stop watching.

That evening I went down to Waitangi park to watch the Matariki concert. It was a great line up, The Maori Volcanics, Whirimako Black, and finishing up with Katchafire. It was freezing but there was fry bread, soup, hangi and coffee to keep yourself warm with.

Then it was off to Matt’s for their midwinter Christmas party which was a lot of fun. Got home from that around 12.

And this morning I was up at 6.30am to head to the Hope Brothers pub to watch the Brazil vs France football match with Jeremy.

Consequently I’m pretty knackered now. Early night I think.

Working on site

Although I spend 90% of my working life in my office at home, occasionally I need to work on site.

Sometimes you can’t beat being there and person and face to face. For example today I spent about 5.5 hours on site and got quite a lot done. It would have still been about 5.5 hours work, but it would have taken me at least 10 hours to do.

Weird problem

So tonight we came across a weird problem. This chunk of code in one of the Koha modules was causing a script that called it to hang. Only when called from the web though, it works fine from the command line

my $query =
“Select quantity,datereceived,freight,unitprice,listprice,ecost,quantityreceived
as qrev,subscription,title,itemtype,aqorders.biblionumber,aqorders.booksellerinvoicenumber,
quantity-quantityreceived as tleft,aqorders.ordernumber
as ordnum,entrydate,budgetdate,booksellerid,aqbasket.basketno
from aqorderbreakdown,aqbasket,aqorders
left join biblioitems on biblioitems.biblioitemnumber=aqorders.biblioitemnumber
where bookfundid=? and aqorders.ordernumber=aqorderbreakdown.ordernumber and
aqorders.basketno=aqbasket.basketno and (budgetdate >= ? and budgetdate < ?)
and (datecancellationprinted is NULL or datecancellationprinted='0000-00-00')
";
warn $query;

If the warn is commented out it works fine, I think there is a bug in the apache installed on the machine this was happening on.

Testing the code tag

Just testing out the code tag here. Here is some perl

use Getopt::Long;
my ($input_marc_file,$number,$nowarning) = (”,0);
my $version;
GetOptions(
‘file:s’ => $input_marc_file,
‘n:s’ => $number,
‘v’ => $version,
‘w’ => $nowarning,
);

Here is some ruby

class Foo
def bar
“abcde”
end
end

Here is a snippet of xml

some stuff

Thats really pretty cool, I can see Ill be using it a lot more.