A little AppConfig tip

June 20, 2014

I have a little tip for AppConfig, one apparently not everyone knows, as I discovered in a household discussion.

The wonderfully useful module AppConfig reads ini files

bar = 1
baz = 2

derp = 4

and makes them accessible in a configuration object like so:

$cfg->foo_bar; # return 1

Now, if you want parameters not in any section, put those at the top of your config file. For $cfg->hork:

hork = 1
bar = 1

If you put it lower down you’ll end up with $cfg->foo_hork or $cfg->herp_hork.

That is all. Carry on.


June 18, 2014

My first CPAN module, Acme::Buffalo::Buffalo. There’s always room on CPAN for one more silly module.

Years ago I wanted to write Acme::Log4perl::Terror which would peg your application’s log level to the color-coded terror alert issued by the US Department of Homeland Security. Then they stopped issuing them. Oh well. Life is short, write those Acme modules now.

Pale Moon rising

June 15, 2014

At zork*, I am still automating Firefox to perform front-end performance analyses, though barely thanks to instability in the latest versions of Firefox.  With 28 and 29 I experience a lot of frustrating Firefox crashes.  Our front-end developer also reports crashes with Firefox 28 and its recommended version of  Firebug, 1.12.  He reverted to 24 in order to get some work done.

On my Facebook feed, I read that a friend frustrated to madness by 29 had switched to a browser called Pale Moon.  It bills itself as “an Open Source, Firefox-based web browser” and is currently based on 24, the same version that relieved my colleague’s frustration. So I gave it a try.

Pale Moon supports all my extensions: MozRepl, Firebug, PageSpeed, DOMInspector, Yahoo and NetExport. I can generate profiles programmatically with a few small modifications to the script (the profiles.ini is located in a different directory, for example, and palemoon -v doesn’t print ‘Mozilla Firefox’ obviously). MozRepl and its Perl interfaces work like a charm.

I haven’t measured it, but startup time is noticeably faster, and it’s much more stable.  Since it’s being used in an automated fashion I am less concerned about UI and more about stability and speed, so these observations make me happy.

If you work in a shop that frowns on alternative browsers,  or you wish to abstain from Firefox’s rapid upgrades, you may also consider Firefox ESR.


*work typed on an azerty keyboard. I switch keyboards a lot and the ensuing confusion erodes my grip on sanity.

Newest French Perl Mongers board member introduces herself

June 15, 2014

At the General Assemby of the French Perl Mongers (les Mongueurs de Perl) the board put out a call for new candidates. Sébastien Apherghis-Tramoni urged me to throw my hat in the ring. I asked the board if I would be doing something stupid if I did so. No, answered Laurent Boivin, but you can perhaps prevent someone else from doing something stupid. Oh what the hell, I figured, and put my  hand up. I was duly voted in before I could reconsider. 

As it is unseemly (peu convenable) for a newly-minted board member to have a dead blog, and because Wendy G.A. van Dijk urged us all heartily to Publish! Publish! Publish!,  I am reviving PerlGerl.  I’ve been doing a few things lately too, and should really post about them.