Didn’t do anything, but these people did:
Author: steven
Running
Next week Dam Tot Dam Loop, so training has now become earnest.
Today I ran 14.5 km in 1h43m, that’s a rough 8.5 km/h. Not too shabby, my calves hurt a bit, and I’m a bit stiff, but overall it’s not bad at all.
I’m beginning to think I might actually make it… 🙂
XML::Parser or XML::LibXML?
That’s an easy question to answer: XML::LibXML!
I have over 10,000 lines of XML input. Parsing it into a tree with XML::Parser takes about 0.77 seconds, while XML::LibXML is over ten times faster, clocking in at 0.07 seconds.
#!/usr/bin/perl use strict; use Benchmark qw( cmpthese timethese :hireswallclock ); use XML::Parser; use XML::LibXML; sub xml_parser { my $p1 = new XML::Parser(Style => 'Tree'); my $tree = $p1->parsefile('database.xml'); } sub xml_libxml { my $p1 = new XML::LibXML; my $tree = $p1->parse_file('database.xml'); } my $results = timethese(15, {<tt> 'XML::LibXML' => \&xml_libxml, 'XML::Parser' => \&xml_parser, }, 'noc', ); print "\n"; cmpthese($results);
The results are pretty damning:
XML::LibXML: 1.06607 wallclock secs ( 1.01 usr + 0.03 sys = 1.04 CPU) @ 14.42/s (n=15) XML::Parser: 11.5305 wallclock secs ( 9.20 usr + 1.14 sys = 10.34 CPU) @ 1.45/s (n=15) Rate XML::Parser XML::LibXML XML::Parser 1.31/s -- -91% XML::LibXML 14.4/s 1005% --
Now it’s off to write a schema for our wondrous XML dialect.
Fotozondagavond #37: Scary/Creepy/Narrow (“Eng”)
I figured I’d find some spiders and do a close-up of them, but then I realised they don’t scare me at all. Death does scare me a bit, but the Grim Reaper was not willing to pose.
In any case, last week we did have something that classifies as scary as well as narrow…
Take a look at this:
This is what Betta discovered last week when cleaning out one of our wardrobes. Note that the carpet and chipboard have already been removed here: the water had soaked through those and created mouldy patches. On first inspection we suspected a leaky pipe in the wall, but that wasn’t the problem.
I decided to take a peek under the floor in the crawl space (click to enlarge):
Yep, the water from this tiny leak had been spraying against the bottom of our floor for who knows how long, soaking the wooden beams thoroughly.
Fortunately, a plumber was able to fix it in no time and now we have to wait for the floor to dry before we can cover it again.
Also, the plumber mentioned that the only piece of lead pipe we still have is from the front door to that leak. The rest (including
the pipe going up to the other appartments) is already made of copper. So replacing that piece of lead is going to be relatively
painless and quick.
Fotozondagavond #36: Still Life
Fotozondagavond #35: Depth of Field (DOF)
Fotozondagavond #34: Holiday Mood
Hah, just as the weather turned really nasty, Mjan picks “holiday mood” as the theme. Thanks! I pretty much gave up on this week’s theme, when lo and behold, this morning I saw this on my way to the office:
The sight of a Tuk Tuk gives me happy memories and gets me in a real holiday mood.
More holidaze:
Fotozondagavond #33: Money
No picture (yet). Too late, too late. But there’s at least one bloggo with pecunia:
Sorry, FJ, didn’t have time to take any pix this weekend.
Fotozondagavond #32: “Rij” (row, line, queue)
Shot quite some stuff this weekend, however nothing having to do with our theme. In any case, this morning in the office I found my inspiration:
Note the truck-surfing smurfs at the back. These guys turned 50 this year; you’d think Papa Smurf would know better than that. Don’t try this at home, folks!
More queues:
Fotozondagavond #31: “Eten”
Food or eating, take your pick. While I was playing with my new camera, Elisabetta was playing with her Big-F*ck-Off Kenwood KM020 kitchen machine. It kneads dough, it blends, it does everything short of giving you a foot rub. The gnocchi were quite a success, as was the very light chocolate cake (no butter, no oil, no chocolate apart from cacao powder).
(By the way, Wild Pig’s Merlot is quite nice.)
More food: