When I recently benchmarked several Perl website development tools, HTTP::Engine had dismal performance. The slowest performer, it took 1.5 seconds just to print "Hello World" in a CGI environment and took 14.6 megs of memory to it.
Today the first HTTP::Engine release appeared that replaces Moose with Shika . Shika provides the essential class-building tools that HTTP::Engine need...... [Show More]
After going over some of the recent and not-so-recent XML::RSS bugs , I noticed a common pattern of people wanting support for replicable XML elements. What they wanted was that when two elements with identical names were specified (in many RSS use cases where doing this would make sense), then the value pointed by the keyname would become a reference to an array instead of just concatena...... [Show More]
OSDC Talk - The Art of Klingon Programming
For some reason, the OSDC 2008 Programme is missing talk abstracts. However I don’t believe the world should miss out on mine.
My talk is on Friday, 5th December, at 11:30am.
The art of Klingon Programming
A good programmer needs many qualities: intelligence, foresight, dedication, and the ability to fight off a hundred angry targh arm...... [Show More]
From Encapsulation, Inheritance and the Platypus effect :
It’s common practice to develop extensive in-house class libraries. However, when one examines the code in a typical class library, one finds a lot of excess generality and functionality which not only makes the code inefficient, but cluttered and hard to read, or even to debug.
The article itself is short, clear, and hel...... [Show More]
Due to some issues in Test::Builder , Test::Most ’s "die on failure" option has a curious behavior which was a right pain to work around, but basically means that we don’t really die on failure. We can’t because we’d lose our diagnostic information. Instead, we die when the next test is run or when the test run is finished. It’s generally transparent to th...... [Show More]
testmost 0.20 02 Post Source: use.perl.org Posted: Nov 27 2008 14:52:04
I’ve released a new developer version of Test::Most , 0.20_02. This offers the feature I was promising a few days ago :
use Test::Most ’no_ plan&rsquo ;;
ok 1;
my ( $foo, @bar ) = qw( this is a list );
show $foo, @bar;
__END__
# $foo = ’this’;
# @bar = (
# ’is’,
# &...... [Show More]
Mojolicious and Catalyst actions have always been very similar since i’ve basically cargo culted them both from Maypole. But we’ve never been happy with the idea of explicitly passing around the context object in Mojolicious.
sub list {
my ($self, $c) = @_;
$self-> _list( $c);
$c->ren der;
}
su b _list {
my ($self, $c) = @_;
$c->stas...... [Show More]
Today, my lovely wife found her weblog does not accept OpenID authorization anymore, and so runs out of comments. I believe that’s a result of upgrade to yet another "latest, bug fixed, and more secure (of course)" version of MovableType . I can’t say which exact update made the OpenID stuff broken because I had to update several blogs several times lately. Anywa...... [Show More]
Before I start, let’s agree on what a test harness is, taken from the Wikipedia description of test harnesses :
In software testing, a test harness or automated test framework is a collection of software and test data configured to test a program unit by running it under varying conditions and monitoring its behavior and outputs. It has two main parts: the Test execution engine and th...... [Show More]
Summary: my local version of Test::Most can do this (note the variable names!), but I am pondering the interface:
use Test::Most ’no_ plan&rsquo ;;
ok 1;
my ( $foo, @bar ) = qw( this is a list );
explain $foo, @bar;
__END__
# $foo = ’this’;
# @bar = (
# ’is’,
# &n...... [Show More]
redland help Post Source: use.perl.org Posted: Nov 21 2008 18:30:26
Does anyone know anything about Redland ? It looks like it would be fantastic, but fails virtually every install . I’ve now received instructions for how to install it for OS X, but these are manual instructions and not good for general use. I’ve contacted the author (he’s also the author of the Redland C library) and hope to hear from him, but if anyone can offer sugge...... [Show More]
It was over four years ago that I first had problems installing the DBD::mysql Perl module on Mac OS X 10.3 Panther. Some things don’t change for the better and I spent most of this afternoon struggling to get up and running DBD::mysql on Mac OS X 10.5 Leopard.
I apparently installed both DBI and DBD::mysql fine but when I tried to access the Movable Type CGIs I was trying to run IR...... [Show More]
oh god please no. Post Source: use.perl.org Posted: Nov 21 2008 00:46:00
Struggling all day with Gutenberg. Someone (not naming them as I don’t have permission) sent me code to let me use Redland for my RDF parsing and it looks lovely. Too bad Redland doesn’t compile for anyone . Didn’t compile for me, either.
I put this aside for a bit and tried parsing result pages.
Tried to use the Web::Scraper module to at least pull results from ...... [Show More]
Last week I was using XML::Simple to do some simple
XML manipulation tasks in Perl. This week I needed to do the
same thing, but as the file size went from 11k to over 80 megs
I ran into a genre of problems I haven’t ever dealt with before:
really large files 1 .
You’d imagine that someone passing themself off as a professional
developer would have experienced thi...... [Show More]
My "XMPP - Hands on" presentation at Codebits 2008 is online . You can find it at GitHub and download the tarball (the big Download button). Its in Portuguese so most of you can ignore the PDF and dig straight through to the code .
I didn’t have Keynote.app on the laptop where I wrote it so I decided to try S5 to write my slides.
The HTML version is great, and w...... [Show More]
Recently I uploaded the new Test::Most . From the end user perspective, the only real change (aside from being a touch easier to install), is that if you ask it to die when a test fails, it no longer just dies. Instead, it throws a Test::Most ::Exceptio n . The vast majority of people will never, ever need this feature. However, our test suite gets a bit tricky at times and we do things li...... [Show More]
open source uddi Post Source: twit88.com Posted: Nov 16 2008 15:06:29
jUDDI
jUDDI (pronounced “Jud y” 41; is an open source Java implementation of the Universal Description, Discovery, and Integration (UDDI) specification for Web Services.
Open Source
Platform Independen t
Supports for JDK 1.3.1 upto JDK 1.5
UDDI version 2.0 compliant implementation
Use with any relational database that supports ANSI standard SQL (MySQL, DB2, Sybase,...... [Show More]
I recently found myself wishing for an async library for MySQL. My goal is to be able to fire off queries to a group of federated servers in parallel and aggregate the results in my code.
With the standard client ( DBD::mysql ), I’d have to query the servers one at a time. If there are 10 servers and each query takes 0.5 seconds, my code would stall for 5 seconds. But by using ...... [Show More]
a case for catalyst Post Source: feeds.feedburner.com Posted: Nov 11 2008 06:51:16
By Jay Shirley
Software is like any other product that is depended upon for doing any particular function. Software, vehicles and computer hardware are all simply tools intended for a particular audience; audiences that tend to become polar, enthusiastic and fanatical. Whether it is the car tuning crowd, the overclockers or the Perl hackers, they share the same thing in common: being devoted to...... [Show More]
Un domaine dot?? d’un nombre impressionnant d’outils libres est celui de la sauvegarde. Et pourtant, lorsque l’on fait tourner sa petite toutouille perso, des monstres comme Amanda font l’effet de massues ?? ??craser les mouches. L’objectif de ce billet est donc le m??me que ??a pr??c??dent version : permettre de faire nos sauvegardes en tout simplicit??, en mettant...... [Show More]
i hate c Post Source: use.perl.org Posted: Nov 10 2008 08:22:56
I’m in C portability hell with Time::y2038 . The code to test the usable limits of the system time functions is touching off all sorts of fascinating bugs in various operating systems, many of which cause the test program to hang.
Oh, and then there’s reports that "old" (read 2002) versions of Visual C++ don’t speak C99 but some Microsoft extension gibberish...... [Show More]
Feeds and posts are not affliated with ://URLFAN. They are displayed here simply for informational purposes, if you would like to remove your feed please contact us.