These last few days have been really cold, I’m hoping this cold front blows over pretty soon. Theres only so many pairs of socks I can fit on my feet.
Category: Uncategorized
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.
Worst game of volleyball EVAR!
Well that was pretty bad, periods of crap punctuated with pockets of utter rubbish. I don’t think I’ve played that bad in quite a while.
Ah well, here’s hoping next week I play a little bit better.Testing from Gnome-blog
I’m posting this entry from gnome-blog from my laptop. Seems to work just fine now im going to bed.
Shifting to typo
Well I was going to just use this for Crayon’s blog, but I think I might shift my blog to it instead. Im bored with the old one.
Blink by Malcolm Gladwell
Not a bad read, its very very anecdotal, but thats what makes it a fun read. Dont base your life on it, but it does raise some interesting points.
Amigos Chilean Cafe’s Completos
While the sausages in this hotdog arent anything super special, the
combination of it and the bun, plus avocado, mayonaise and green chili make
a fantastic meal. In fact anything from this cafe is great, including the
service and attitude.
Crayon
This is a new blog written using ruby on rails, its called typo, and its pretty cool. I plan to use it for Crayon’s blog.
Heres a bit of a blast from the past
Motivated by Pauls cvs statistics pages, I dug up the old Koha repository,
back from when it was called Kumara, before it got released to the world,
and ran cvschangelogbuilder over it. The results of that are here . Look at
that big spike before Jan 2000 and those 4am commits, … those were the
days 🙂