enlightened perl organisation

enlightened |en'litnd|: adjective:
having or showing a rational, modern, and well-informed outlook

  

Planet Perl Iron Man

signup banner
Join |  About |  Update your blog feed |  Report a problem

Only showing posts tagged "perl", "cpan" or "ironman" (or containing those words).

Older posts >
Louis Erickson (laufeyjarson): PBP: 105 Avoid string eval
The Best Practices suggest avoiding string eval. This is, in my opinion, a good idea, although I may not be as absolute as many people who follow the perlcritic rule are. In general, if you find yourself using string eval, I worry your design could b [...]
Dave Jacoby (/var/log/rant): Fixing an old logic issue
I am not especially proud of the code below.
It does it's job. Give it a request and a number of accessions and the names you want them to go by, and it changes them in the database.

Except...

Accessions are defined as zero-padded six-digit numbers, so [...]
Dave Rolsky (autarch): Managing Many .travis.yml Files
If you have a lot of distributions, you may also have a lot of .travis.yml files. When I want to update one file, I often want to update all of them. For example, I recently wanted to add Perl 5.22 to the list of Perls I test with. Doing this by hand [...]
Alberto Simões (ambs): CPAN PR-Challenge: June Report
I know this is getting a lame excuse. But with lack of time, the patch I had time to prepare this month is, again, small. It is mostly some extra tests: https://github.com/szbalint/WWW--Curl/pull/10 But better few than nothing......
Sinan Unur (Sinan): Include image data in your Perl script or module

Include image data in your Perl script or module

@kobame asks "What is a recommended method of storing binary data in the __DATA__ section?"

Following that principle, @DavidO posted an answer recommending Base64 encoding the binary data, and using MIME [...]

Sinan Unur (Sinan): Can the creators of Quorum write programs in Quorum?

Can the creators of Quorum write programs in Quorum?

A. Sinan Unur

June 10, 2015

Quorum is a programming language created by Stefik et al. In a 2011 paper, the authors infamously proclaimed:

Results showed that while Quorum users were afforded significan [...]

Sinan Unur (Sinan): Then they came for your Java and Ruby

Then they came for your Java and Ruby

A. Sinan Unur

June 08, 2015

Recently, brian d foy posted a challenge to rewrite a Perl example in Stefik et al. (2011). In that paper, the authors infamously proclaimed:

Results showed that while Quorum users were af [...]

Sinan Unur (Sinan): Multiple cohabitating versions of Perl on Windows

Multiple cohabitating versions of Perl on Windows

A. Sinan Unur

June 02, 2015

I just built my shiny new Perl 5.22.0 on my 64-bit Windows 8.1 system using Visual Studio 2013 Community Edition.

First, and foremost, thank you to all who contributes to the d [...]

Sinan Unur (Sinan): C++: Walking the filesystem with Boost

C++: Walking the filesystem with Boost

A. Sinan Unur

May 31, 2015

Last time, I left after putting together a short but complete program that processed command line arguments, and showed a help message.

Eventually, the program is supposed to walk director [...]

Sinan Unur (Sinan): Who is testing the tests?

Who is testing the tests?

A. Sinan Unur

May 26, 2015

I have no qualms with the basic premise of test-driven development. However, it doesn't take long before one realizes that any test that is even moderately complicated can itself become a source of bu [...]

Sinan Unur (Sinan): Golfing a word count program

Golfing a word count program

A. Sinan Unur

May 18, 2015

In "Can C++ become your new scripting language?", I put together a couple of short programs to compare some of the more modern features of C++ with some of the conveniences of using Perl.

The post g [...]

Sinan Unur (Sinan): Can C++ become your new scripting language?

Can C++ become your new scripting language?

A. Sinan Unur

May 16, 2015

Some background

The first programming language I truly loved was C. It took a while to get there: As a child, I started with Z80 assembly on the venerable ZX Spectrum. Those were the [...]

Sinan Unur (Sinan): Sending faxes using Perl on Windows

Sending faxes using Perl on Windows

A. Sinan Unur

April 23, 2015

Here is a minimal script to send a fax using Perl on Windows:

#!/usr/bin/env perl

use strict;
use warnings;

use Win32::OLE;
$Win32::OLE::Warn = 3;

my $doc = Win32::OLE->new('FaxComEx [...]
Sinan Unur (Sinan): Can programmers do statistics?

Can programmers do statistics?

A. Sinan Unur

April 11, 2015

I have a feeling that most programmer types assume Stats is trivial because the arithmetic involved in most of the basic concepts they have occasion to use is trivial.

In reality, people who ass [...]

Sinan Unur (Sinan): Windows does have symlinks

Windows does have symlinks

A. Sinan Unur

April 07, 2015

This morning's cpan-outdated | cpanm using my 64-bit Perl 5.20.2 built with Visual Studio 2013 brought with it a spurious test failure in Mojolicious:

t\mojo\daemon.t ............................ 1 [...]
Sinan Unur (Sinan): Highlight Perl source code using PPI::HTML

Highlight Perl source code using PPI::HTML

A. Sinan Unur

March 27, 2015

On my blog, I use the excellent highlight.js library to apply syntax highlighting to source code in the browser. This has the benefit of being able to copy & paste source code d [...]

Sinan Unur (Sinan): How you average numbers matters

How you average numbers matters

A. Sinan Unur

March 20, 2015

Every now and then, I end up having to explain to skeptical people why it matters how their programs treat the numbers they ingest. With IEEE 754 and doubles, people seem to think that one can [...]

Sinan Unur (Sinan): It all boils down to stat vs fstat from MSVCRT on Windows

It all boils down to stat vs fstat from MSVCRT on Windows

A. Sinan Unur

March 14, 2015

Last time, I had just noticed that my perl's stat $filename and stat $fh did not agree on the modification time of a given file.

This turns out to be due to a differen [...]

Sinan Unur (Sinan): Time zone insanity on Windows

Time zone insanity on Windows

A. Sinan Unur

March 12, 2015

Today's cpan-outdated | cpanm brought with it an interesting test failure in Mojolicious:

#   Failed test 'Last-Modified: Sat, 21 Feb 2015 05:08:18 GMT'
#   at t\mojolicious\app.t line 405 [...]
Sinan Unur (Sinan): Fixing an oversight in Math::Int64

Fixing an oversight in Math::Int64

A. Sinan Unur

March 11, 2015

Ever since ETHER told me about it, I have been diligently using cpanm-reporter to report the results of running cpan-outdated | cpanm, and reporting any bugs I find.

Today's batch brought in [...]

Sinan Unur (Sinan): Do you uuencode? Perl's pack does!

Do you uuencode? Perl's pack does!

A. Sinan Unur

March 11, 2015

In my previous post, I presented what I thought was a cute way to include encoded binary data in the __DATA__ section of a Perl file.

On /r/perl, kazuma_k pointed out that I could have just [...]

Older posts >