user-pic

David Cantrell

  • Commented on Instant podcasts, in 50 lines of perl
    Or perhaps not. Silly website are the link. Here: https://github.com/ben-xo/dir2cast/blob/master/dir2cast.php...
  • Commented on Instant podcasts, in 50 lines of perl
    Sure. It does do a bit more than mine, but mine does what I need and I'm not sure that the extras are worth 1250 lines of code!...
  • Posted Instant podcasts, in 50 lines of perl to David Cantrell

    I have a directory full of stuff that I've recorded off the radio. I'd like to listen to it on my phone on the way to work. And the most convenient way to do that is to create a podcast of that directory. That way, whenever I record more stuff, I just have to update the podcast and the files…

  • Posted CPANdeps and cpXXXan scheduled downtime to David Cantrell

    CPANdeps and cpXXXan will be unavailable for some of the evening of the 28th of May, for a data centre move.

  • Posted Meta-testing to David Cantrell

    A year and a bit ago I wrote about measuring the coverage not of the code I was testing but of my tests, and how doing so had helped me find some problems. Today I dived further down that…

  • Posted CPANdeps pass/fail display now working again to David Cantrell

    Some months ago the way that third parties got access to the CPAN-testers results database changed. Instead of just downloading a SQLite database, there is now an API. This is good. It means that to get all the new reports since your last query, for example, you only need to transfer a few…

  • Posted Bugs in the compiler to David Cantrell

    After I posted my previous blog entry a couple of things were pointed out to me, to do with my fourth point about ignoring warnings.

    It turns out that unreachable code doesn't necessarily produce wa…

  • Posted Lessons to learn from Apple to David Cantrell
    Apple's most recent iOS software update which fixes a horrible security flaw has been all over the interwebs recently. This is yet another post about it. Here's the buggy code:
    static OSStatus
    SSLVerifySignedServerKeyExchange(SSLContext *c…
  • Commented on Software Test Podcast
    Most programmers in almost all languages are artisans (the exceptions being those who use Ada and those who work in safety-critical areas where people can die expensively, like avionics and railway signalling), but I agree, perl programmers are even more...
  • Posted Another great podcast to David Cantrell

    I've recommended Disastercast here before, and I know that some of you have since subscribed. However, for those that haven't, episode 13 is worth listening to. It is about…

  • Commented on The Problem With Perl Testing
    Bravo, sir! Bravo. We both appear to be thinking about the same thing - quality control vs quality assurance. The perl community does quality control pretty well, but most of us have barely heard of quality assurance, and fewer of...
  • Posted Software Test Podcast to David Cantrell

    I've recently been listening to Software Test Podcast. And I was particularly struck by episode 41, in which the presenters interview James Whittaker. He used to be Head…

  • Commented on Who's relying on that CPAN release?
    Making CPANdeps do recursive reverse deps is on my to-do list....
  • Commented on My Love/Hate Relationship with CPAN Testers
    Let me address one of your points in detail, before I get to the over-arching point: Or maybe in the summary for this package the line listing 5.19.0 should note that this release was more unstable than the others? This...
  • Commented on <sigh> META.yml is not my friend today
    The gory details: ExtUtils::Makemaker uses the v1.4 META spec, whereas CPAN::Meta::Spec documented the v2 META spec. They are very different. I see that on Github EU::MM has been patched to support both....
  • Commented on <sigh> META.yml is not my friend today
    And here's the fix, thanks to the lovely Mr. Deflatermouse: https://github.com/DrHyde/perl-modules-CPAN-ParseDistribution/commit/818bfda6febd7e5b645c6d44af59a1454a9d3e1b Executive summary: ignore CPAN::Meta::Spec....
  • Posted <sigh> META.yml is not my friend today to David Cantrell

    I want my github repo to show up in a module's META.yml file. And given that META.yml is generated by ExtUtils::MakeMaker, I put some META_MERGE stuff in my Makefile.PL, having carefully checked the documentation in CPAN::Meta::Spec to see what we're supposed to do this week (META.yml's structure…

  • Posted Small but hideously formed to David Cantrell

    For several years I've been using a shell script that runs once a day from a cron job, and automagically subscribes me to the RSS feeds that rt.cpan creates for my modules. That means that whenever I release a new module, within a day or two I'll be subscribed to its bug reports, and within…

  • Posted Learning from other industries, part 1 of n to David Cantrell

    My first job was as a bus conductor, and my second one was as a student trainee in an engineering company - proper engineering, with production lines, big machines, hot things, and "danger of death" notices on equipment. In both of these, safety was an important concern, and especially in the…

  • Commented on Three-value logic in Perl
    anyone who puts interns and volunteers into the list of empoyees should be fired too! if they're employees they get minimum wage and can't be got rid of on a whim....
  • Commented on Devel::Cover and meta-testing
    Forgot to add the footnote ... * the debugger fails horribly when you use anonymous subroutines which have :Attributes. This is a bug in perl itself, not in Devel::Cover....
  • Posted Devel::Cover and meta-testing to David Cantrell

    At work I recently set up a Jenkins instance to run all our tests whenever someone pushes changes to the master branch of our git repo. And, after changing some stuff in our code that made the perl debugger cry*, I added

  • Commented on CPANdeps DoS
    I was apologising for being lazy and not bothering to take the time to only list the offending machines. I could have done, because they were all in my logs, but I just couldn't be bothered with writing a very...
  • Posted CPANdeps DoS to David Cantrell

    Why anyone would want to spider CPANdeps is beyond me, but a load of idiots in the Ukraine do want to, and their bot, as well as ignoring robots.txt (just like all the other search engines in the entire world, it seems) sends requests as fast as it can. All the timeouts and the errors about…

  • Commented on CPANdeps now links to the right bug-tracker
    yay! wordpress (or whatever the hell this site uses) ate my link! google for "david cantrell cpan r2e"....
  • Commented on CPANdeps now links to the right bug-tracker
    If you use Github for your code then it's *really* convenient to also use Github for your bug reports, especially when those reports come with a "pull request" so you can merge a patch with just one click. I also...
  • Posted CPANdeps now links to the right bug-tracker to David Cantrell

    CPANdeps has for ages had links to each distribution's bug tracker. Trouble is, it always just linked to rt.cpan. Lots of people don't use that any more, preferring to, for example, use the one that github creates for each repository hosted there. META.yml (and…

  • Commented on CPANdeps now understands META.json files
    I updated it to continue to use YAML to read META.yml, but to also use JSON to read META.json. Anything else would be, frankly, crazy. And the code is horrible enough already without adding an extra dose of lunacy. As...
  • Posted CPANdeps now understands META.json files to David Cantrell

    Because YAML isn't hip and trendy enough, at some point recently the toolchain started using META.json files as well as META.yml. Some foolish module authors only use META.json. Because CPANdeps didn't know about this file, their dependency graphs weren't being generated. Well, now…

  • Posted I love Github to David Cantrell

    Github makes accepting patches from other people and applying them soooooo easy!

    Instead of having to extract the patch from an email onto my workstation and manually apply it, applying this contribution was a simple matt…

Subscribe to feed Recent Actions from David Cantrell

  • Toby Inkster commented on The Problem With Perl Testing

    For the last 6 months or so, I've almost always included pod in my test files with a brief explanation of what's being tested; though it's usually very brief.

    Some of my better test suites are the ones where I've structured the tests along the same lines as the module documentation. So for each section of the documentation, there's a test file with a similar name.

  • jakoblog.de commented on The Problem With Perl Testing

    The best way to improve tests in Perl projects is to provide better tests as examples. Best practice comes from practice and many programmers prefer to read and adopt code instead of reading manuals and instructions. Which Perl projects have good tests to learn from?

    BTW the quality of tests could also be improved by showing tests more prominently in metacpan. Given a start page of a release, such as Moops one needs to manually browse to directory t/. There should be a mor…

  • afoolishmanifesto.com commented on The Problem With Perl Testing

    I really like this blog post because it gave me a good excuse to finally try out Test::Routine (actually Test::Roo, but no real difference in my mind.) I also reorganized my DBIx::Class::Helpers test suite to be basically t/$foo from lib/$foo. After doing this I have come to the conclusion that a project needs a lot of moving parts to make Test::Routine worth the effort. In my test suites I tend to make a t/lib dir that has code to reuse in tests. They tend to be functions that will prepopulate databases, create mock data, etc. I'm going to try again with DBIx::Class::DeploymentHelper…

  • Tatsuhiko Miyagawa commented on Instant podcasts, in 50 lines of perl

    Here's my 140-line Ruby version :) It extracts mp3 EXIF to fill up iTunes metadata as well.
    https://github.com/miyagawa/dircaster

  • Tatsuhiko Miyagawa commented on Instant podcasts, in 50 lines of perl

    Ugh, s/EXIF/ID3/

Subscribe to feed Responses to Comments from David Cantrell

About blogs.perl.org

blogs.perl.org is a common blogging platform for the Perl community. Written in Perl and offering the modern features you’ve come to expect in blog platforms, the site is run by Dave Cross and Aaron Crane, with a design donated by Six Apart, Ltd.