Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

da (1525)

da
  (email not shown publicly)
http://coder.com/daniel/
AOL IM: daatcoderdotcom (Add Buddy, Send Message)
Public Calendar: Subscribe, Download

Linux and perl guy working for the Computer Science department [uwaterloo.ca] at the University of Waterloo [uwaterloo.ca]. For resume check here [coder.com].

Journal of da (1525)

Friday September 12, 2003
09:00 AM

Can I get a stuffed bear too?

I got some digital photos back from the local developer. On the inside flap of the Kodak envelope (emphasis added):

"Submitting any film, print, negative or digital image to our company ... any damage or loss by our company ... wlil only entitle you to replacement with a like amount of unexposed film and processing. "

Cool! No mention of digital media, just the image. Either that means they'll give me free reprints and a bunch of zeros, or they'll give me free reprints and a roll of film.

Sunday May 11, 2003
09:42 PM

Six signs

Signs that I should pass up on a project offer. This was a phone interview by the lead perl developer of $company.

1) He asked for a phone interview at 9:30pm (local timezone for both of us).

2) "We don't have funding for the project yet, but I'll know in the next two days. Can I interview you on Saturday?"

3) "We want to have this done in four weeks. How many hours are you available between now and then?"

4) $company was so secret he couldn't tell me the industry or size, "but it was big".

5) "how old are you?" (this interview question is still illegal in US and Canada).

At this point, I know I don't want the project, but maybe I knew somebody to recommend to him who likes this sort of atmosphere. Then comes:

6) "I'm thinking this could be a project for 3 people. But I might add a few more people if it looks like it isn't going fast enough."

As quickly and politely as I could, I removed myself from the conversation.

Sunday January 05, 2003
04:58 AM

Linux Journal

Blah. Can't sleep, nervous energy. Been happening a lot lately. I can't say it's from job stress, since strictly speaking, I don't have one. (just a monotonically increasing number of projects).

This last week has been an interesting one, for the new projects I've added.

Last Monday I found myself volunteering to advise a Linux trainer who wants to host an "Intro to Linux" afternoon seminar for the larger local businesses, later this month. Ideally, I'll be useful during the Q&A session afterward; and somebody will want to hire me for a software consulting gig.

Item number two- A while ago I sent an offer to the Linux Journal to write them a couple of articles, which I previously gave as talks to my local LUG and Perl Mongers group. On Tuesday, much to my surprise, I got the go-ahead to write them. First is "11 Ssh Tricks". The second one is an intro article on the Perl Debugger. I probably have a month to write the first one.

Tuesday October 29, 2002
08:47 PM

mapcar- not new, but new to me

I overheard this on "Fun with Perl" today.  The 'mapcar' ideom looks incredibly
useful for traversing more than one list at a time.

--------------
Date: Tue, 29 Oct 2002 14:24:13 -0500
From: Evan A. Zacks <e@zacks.org>
To: fwp@perl.org
Subject: Re: Iterating down two lists at the same time

On Tue, Oct 29, 2002 at 01:05:12 PM, Bernie Cosell wrote:

> I was wondering if there's any fun to be found in elegant/clever ways to
> traverse two lists at the same time...  I envisioned something like:
>    map2 {stuff} \@list1, \@list2
> where inside the map maybe you had $a and $b aliased appropriately
> or something
> like that.  Or perhaps:
>    mapn {stuff} list-of-listrefs
> where you aliased $1, $2, $3, ... to the parallel entries from the different
> lists...

Hello Bernie,

You may be interested in mapcar, a module written by Tye on Perlmonks:

   http://www.perlmonks.org/index.pl?node_id=44763
   http://www.perlmonks.org/index.pl?node_id=44763&displaytype=displaycode

You call the mapcar function as you specified above:

    use mapcar;

    my @a= qw( foo bar baz  );
    my @b= qw( qux quux quo );

    print mapcar { "@_\n" } \@a, \@b;

    __END__
    foo qux
    bar quux
    baz quo

Inside the block that you pass to mapcar, the two elements from
the lists you are traversing are stored in @_.

>From Perlmonks:

    mapcar is from lisp. It is like map but works on more than
    one list. While map loops setting $_ to successive elements of a
    list, mapcar loops setting @_ to successive elements of several
    lists (but since you can only pass one list to a subroutine,
    mapcar expects a list of references to one or more arrays). Both
    map and mapcar collect the values returned by the code block or
    subroutine and then return the collected values.

Hope this helps,
-E
Sunday August 18, 2002
12:48 AM

Yapc 2002 photos

Maybe better late than never, some pictures from YAPC 2002. See the knife-wielding Australian! See Pudge multitask, twice, once with a baby and once with a guitar! See me photograph R. Spier as he audio-records us, while Gnat video-records me, and later R. Spier completes the cycle by impersonating Gnat in a well-received talk on optimization not meant for young ears. Be amazed and distressed at Larry Wall, much larger than life.

I guess that's all I've got to say. Sorry it took me 50 days, anyway.

Thursday June 27, 2002
11:40 AM

YAPC day 2

I don't have a journal entry for day one because day one, I spent my time hacking on some code that I promised would be done Monday. I like this wireless network.

Tuesday-

I actually left Brown 100; I went to Dave Rolsky's "Alzabo: Less SQL, more (Data Modelling and OO)" which is a project worth investigating. Alzabo is sort of an alternative to DBIx::RecordSet; it's a RBDMS data modeller, that also creates OO methods to manipulate the database. Cool looking stuff, and at least with HIS demos, it seemed to make hard stuff easy. Sort of worried by the program docs, where he says you should wrap Alzabo calls inside an 'eval'...

MJD's Tie::File talk is good.

Update after lunch...

"Something Something, Faster"- Robert Spier did an impression of gnat, which I have an excellent picture of (which I will upload tonight).

This was an Optimization talk gnat gave at OScon earlier this year. It took three hours then. Robert did it in 40 minutes. It was excellent. (more later).