RT initialdata and Perl’s nested map

Request Tracker (aka RT) comes with a very powerful, yet not too widely known tool – initialdata.  This helps with automating configuration of the new system and data migration.  Combined with the power of Perl’s map() function, some really awesome things can be done in a jiffy.

Here is a snippet I’ve used recently, to set a list of access rights to a list of queues:

push @ACL, map {
  my $queue = $_;
  map {
    {
      GroupDomain => 'SystemInternal',
      GroupType => 'Everyone',
      Queue => $queue,
      Right => $_,
    }
  } qw(
    CreateTicket
    ReplyToTicket
  )
} qw(
  dpt-Support-EN
  dpt-Support-RU
  dpt-Support-FR
);

Mail::RFC822::Address: regexp-based address validation

This is pure gold!  Check out the regular expression for an RFC822 email address validation. I’m not going to paste it here, being concerned that it will open the gates of hell or something, but here is a sneak preview of about the first third or so.

regex

TestFrameworkInATweet.php – a PHP unit testing framework in a tweet

TestFrameworkInATweet.php – a PHP unit testing framework in a tweet.  This is brilliant in its own way.  It reminds me of the Perl Golf Apocalypse.

List of minimalist web frameworks

List of minimalist web frameworks

  • Framework for CSS
  • Web Framework for C
  • Frameworks for Front-end JS
  • Web framework for Go
  • Web framework for Haskell
  • Web framework for Java
  • Web framework for Javascript
  • Web framework for Lua
  • Web framework for Node.js
  • Web framework for Perl
  • Web framework for PHP
  • Web framework for Python
  • Web framework for Ruby
  • Web framework for Scala
  • Web framework for .NET (C#)