Finding Squares in Matrices
I don’t usually take part in the Perl Weekly Challenge but one of this week’s challenges caught my eye. I thought it could be a fun thing to attempt and decided to use Zydeco to help solve it. The problem…
I don’t usually take part in the Perl Weekly Challenge but one of this week’s challenges caught my eye. I thought it could be a fun thing to attempt and decided to use Zydeco to help solve it. The problem…
In algebra, there’s this pretty funky concept: And I was thinking if $f and $g were coderefs, what could $f + $g be?…
Usually when I blog about programming, it’s Perl stuff, but here’s something that’s mostly Javascript (with a little PHP to act as a shim for WordPress). It’s a script to use Tempus Dominus as a date/time picker for HTML 5 date and time form inputs on Bootstrap/jQuery-based sites. It lets you do stuff like this: […]
Today I released Zydeco::Lite, a re-implementation of Zydeco but just using standard Perl syntax. So for example, class { … } becomes class(sub { …});. This has the advantage of much faster compile time, similar run time speed, fewer dependencies,…
So I like to keep local copies of my blogs.perl.org blog posts as Atom entries, but noticed yesterday that I had a few gaps in my collection. The Atom feeds offered by blogs.perl.org only have the most recent articles though,…
Prompted by a recent question on PerlMonks, I’ve been thinking a bit recently on marshalling and unmarshalling Perl objects. If you’re happy using Data::Dumper’s format, then it’s trivial, but today we’re looking at JSON. If you just want to encode…
Mom is a shortcut for creating Moo classes (and roles). It allows you to define a Moo class with the brevity of Class::Tiny. (In fact, Mom is even briefer.) A simple example:…
Overall, I think the Perl 7 announcement is great news. I only have one small objection:…
I was recently shown this puzzle: There are some things I found a little unclear about it. For example, should the following two circles count as being connected? There is a line between them, even if it’s interrupted by a circle. And what about these two circles? Are they connected? Again, there’s a diagonal line […]
WordPress does have a toolbar for logged-in administrators, but I often like to keep this feature disabled so while I’m viewing the site, I see it like normal visitors do. It’s nice to have a quick way to edit the page you’re currently viewing though. Here’s a way to allow the Ctrl+; keyboard combination to […]