As I’m working at the office at the moment, I don’t have my tracbal and am using a tiny usb mouse. I’ve been doing that for about a week and yesterday evening I had enough and went on the hunt for another Microsoft trackball explorer to keep in the office. Nobody sells it anymore as it looks like it has been discontinued so I hit ebay. There was one up for auction @£9.99 wih 4 days. It was in good condition and I was not letting it go. After some email bartering, I got it for £30 delivered. I paid at 4pm and I had it connected and tracking and balling about by 10am, truly awesome. well done ebay user golfbidder_2000. Ebay focking rooools. On another note my mum and I got my bro a new laptop for his 21st and I have it untill then to set it up etc. I’ll post a full review in the next few days. It’s a acer, it’s a beast and it is truly excellent.
Addicted to http data
Addicted to http data
I got into work today and I could not get access to the internet. I was flumuxed. What am I meant to do now. I knew I had plenty to do that didn’t need net access but the first thing I do when I get in is check my mail, check digg and check some of my feeds. I felt utterly lost. Does anybody else feel like this when their net connection goes down.
I can’t remember having this kind of dependency when I was on dial-up (dial-up, hi hi…. what fools we were :))
Thankfully downtime was limited to 19 minutes but still, it was touch and go for a while there.
Update:
Look slike there is a clinical (kind of) name for this – Hyperconnectia
Bobby .. again
Not much but work going on lately so here’s another picture of Bobby.
XSLT output CDATA sections
I was transforming some xml to xml another format and some of the text nodes could potentially contained invalid characters, so placing them in CDATA sections would be wise. I tried the following –
[code lang=”xml”]
…….
< ![CDATA[
]]>
[/code]
which of course did not work and resulted in what you see below. I knew this would happen but I was real busy and figured it worth a shot.
[code lang=”xml”]
<xsl:value-of select=”fields/field[normalize-space(@name)=’Description’]/value/text()” />
[/code]
Some digging resulted in the finding of the “cdata-section-elements” attribute which contains a whitespace-separated list of QNames so using –
[code lang=”xml”]
…….
[/code]
I get the desired result
[code lang=”xml”]
[/code]
Marvellous I tell you, It’s amazing what you can actually learn when you RTFM , in this case the XSL W3C recommendation.
ValueError: bad marshal data
Very strange error happened today – I was running a few python scripts I was writing when I suddenly started getting a “ValueError: bad marshal data” error .
It was due to libxml2 but I didn’t know why. I deleted the “C:\Python24\Lib\site-packages\libxml2.pyc” and the “C:\Python24\Lib\site-packages\libxml2.pyo” file which solved the problem. No idea why as the error message means nothing to me.
Viking Textorizer
Textorizer is a tool that was linked to on Digg. It converts an image to SVG but the lines in the image are replaced with text that the user supplies. I tried it out with the viking head image and the words “philroche”, “philip”, “roche” and it out put an svg file which I opened in illustrator and saved for web. It works really well, shows how good SVGis.
CD image files from the Microsoft Download Center
Security and critical updates are available on ISO-9660 CD image files from the Microsoft Download Center
Security and critical updates are available on ISO-9660 CD image files from the Microsoft Download Center
As my mum is on dial up and I now have 2Mb ADSL, these isos will be invaluable when setting up her new computer.
LibXML2 and LibXSLT documentation
If you use libxml2 and libxslt (windows binaries) in python, you’ll know how annoying it is trying to figure out how to do something as the documentation is quite limited.
You can find out what is available in the python shell using dir() and __doc__ and help() but that’s a pain so I wrote a script to output a HTML file with the complete listing of the methods and prperties that libxml2 and libxslt have. Run it on your machine and you’ll have a ful list of all the methods (with __doc__ output) available with a permalink to each one and a link to google searching for references to that method.
Hope it helps
Bobby Super Dog
After much persuasion and torture, we are now the proud parents of “Bobby”, An 8 week old golden labrador. He is sleeping at my feet as I type. He does wake and start barking incredibly early but fingers crossed that will end soon. He’s only 8 weeks but already I have hime sitting, giving paw, playing football and pissing and pooping everywhere he sees fit (Gill taught him that).
New Desk
New Desk from Ebay, I pick it up tomorrow morning…. bargain £100