• About
  • Archives
Ted Carnahan
Missional church, Technology, and Music
  • Church
  • Family
  • Tech
  • Music
Browse: Home / perl

perl

Installing BackupPC on OpenWRT

By Ted Carnahan on July 9, 2009

I wanted to have a backup server for my church that would automatically take backups when computers came on to our new wireless network. BackupPC immediately sprang to mind, but it only runs on Linux. How could I get a Linux server into the church in a very low cost way? Answer: An Asus wireless [...]

Posted in Tech | Tagged backuppc, busybox, luci, openwrt, perl | 7 Responses

Hacker Alarm Clock

By Ted Carnahan on August 25, 2007

I was at the ELCA Central States Synod Candidacy Retreat with my wife last night, and we realized far too late that we lacked a travel alarm clock. Also lacking an internet connection, it was impossible to download an alarm clock program from the Ubuntu apt repositories. Instead, I quickly coded up this Hacker Alarm [...]

Posted in Tech | Tagged alarm clock, hack, perl | 2 Responses

Template Toolkit: how to generate static HTML on any path

By Ted Carnahan on April 4, 2007

My company generates our website using Template Toolkit‘s ttree tool. We want our site to be built with absolute paths in the HTML, so we need to be able to accomodate that with file:// URLs when we test it. We use code like this: The script to invoke ttree in our testing environment: #!/bin/bash cd [...]

Posted in Tech | Tagged perl, tt, ttree | Leave a response

The Value of Community, or Why I Love Perl

By Ted Carnahan on March 31, 2007

I’ve been asked a number of times recently why I chose to use Perl to develop SAGrader, my company’s flagship essay grading product. I’ll be the first to admit that Perl tends to permit bad (unreadable, unmaintainable, overly terse) code in more ways then, say, Java. I think that those problems are mitigated by keeping [...]

Posted in Tech | Tagged cpan, ideaworks, oss, perl | Leave a response

Using next_successor with Graph::Traversal

By Ted Carnahan on January 17, 2007

I recently needed to do a graph traversal using the excellent perl Graph library, but I needed to determine the order for visiting new nodes in the fringe myself. Graph::Traversal provides a next_successor attribute which takes a code ref so that you can specify this behavior yourself. Unfortunately, in version 0.80 that feature isn’t well [...]

Posted in Tech | Tagged cpan, graph, perl | Leave a response

Dynamic CSS/JS/HTML in Template Toolkit wrappers

By Ted Carnahan on December 19, 2006

I’ve been asked about this a few times on #tt, so I thought I’d provide it for future Googlers. If you’re looking to optionally include certain files in a Template Toolkit wrapper, it’s very easy. You just provide the file names as a parameter to the WRAPPER call. First, the wrapper file itself, wrapper.tt: <!DOCTYPE [...]

Posted in Tech | Tagged perl, tt | 4 Responses

Debugging long-running perl programs in Debian

By Ted Carnahan on December 15, 2006

One of the slicker ways I’ve seen of trying to figure out what Perl is doing in a long-running process is defining a signal handler, like so: use Carp (); $SIG{‘USR2′} = sub { Carp::confess(“Caught SIGUSR2: Dumping stacktrace and dieing:”); }; It works great, dumping the current stacktrace to STDERR. But if you’re stuck in [...]

Posted in Tech | Tagged debian, debug, perl, software | Leave a response

My first CPAN acknowledgement

By Ted Carnahan on October 2, 2006

It’s a small thing, but I’m listed in the acknowledgements for Test::Class, an excellent little xUnit-with-a-decisively-perl-twist module that we use at work. A star is born?

Posted in Tech | Tagged cpan, perl, software | 2 Responses

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

@tedcarnahan on Twitter

  • Ahead in Mission - This Week at Spirit of Grace p0.vresp.com/a0ZZNu 4 hours ago
  • Charting our Future - This Week at Spirit of Grace p0.vresp.com/Dc7XNG 1 week ago
  • RT @EveryTweet_Ever: I am up at an unreasonable hour for an unreasonable reason. 1 week ago
  • @Metzgirl But to pull it off convincingly? (Also, vid or it didn't happen) 1 week ago
  • Happy Mother's Day - This Week at Spirit of Grace p0.vresp.com/v7txzg 2 weeks ago

Copyright © 2013 Ted Carnahan.