From casey at geeknest.com Mon Nov 1 10:29:47 2004 From: casey at geeknest.com (Casey West) Date: Mon Nov 1 10:25:20 2004 Subject: [pgh-pm] November is Upon Us! Message-ID: <20041101162947.GX11073@geeknest.com> It's November and that means we should think about the November meeting. But, before we do that, I'd like to take this opportunity to present a PSA: If you do not vote tomorrow, and you are capable, I will flog you.* * Unless you're dead. Anyway, does anyone want to present? I was thinking about "10, no 11 ways to recount in Perl." :-) The floor is open for suggestions. Casey West -- Good Idea: Tossing a penny into a fountain to make a wish. Bad Idea: Tossing your cousin Penny into a fountain to make a wish. From schwern at pobox.com Mon Nov 1 11:36:45 2004 From: schwern at pobox.com (Michael G Schwern) Date: Mon Nov 1 11:36:41 2004 Subject: [pgh-pm] November is Upon Us! In-Reply-To: <20041101162947.GX11073@geeknest.com> References: <20041101162947.GX11073@geeknest.com> Message-ID: <20041101173645.GA23396@windhund.schwern.org> On Mon, Nov 01, 2004 at 11:29:47AM -0500, Casey West wrote: > If you do not vote tomorrow, and you are capable, I will flog you.* > > * Unless you're dead. Your clarification seems to imply that the dead are capable of voting. [ ] Kerry [ ] Bush [*] Brains -- Michael G Schwern schwern@pobox.com http://www.pobox.com/~schwern/ Welcome to the Office Of Naval Contemplation From casey at geeknest.com Mon Nov 1 11:59:27 2004 From: casey at geeknest.com (Casey West) Date: Mon Nov 1 11:55:02 2004 Subject: [pgh-pm] November is Upon Us! In-Reply-To: <20041101173645.GA23396@windhund.schwern.org> References: <20041101162947.GX11073@geeknest.com> <20041101173645.GA23396@windhund.schwern.org> Message-ID: <20041101175927.GY11073@geeknest.com> It was Monday, November 01, 2004 when Michael G Schwern took the soap box, saying: : On Mon, Nov 01, 2004 at 11:29:47AM -0500, Casey West wrote: : > If you do not vote tomorrow, and you are capable, I will flog you.* : > : > * Unless you're dead. : : Your clarification seems to imply that the dead are capable of voting. : : [ ] Kerry : [ ] Bush : [*] Brains That was the intent, yes. I had to add some humor, since I'm not actually likely to flog anyone. But I may hire floggers. But on topic, is anyone interested in a talk titled "Using Perl to Write Scripting Lanauges" ? I've got some stuff on that and I think it's pretty slick. Casey West -- Shooting yourself in the foot with PHP If you're lucky and the HTTP connection doesn't time out, you shoot yourself in the foot. From chris at cwinters.com Mon Nov 1 12:59:59 2004 From: chris at cwinters.com (Chris Winters) Date: Mon Nov 1 12:56:17 2004 Subject: [pgh-pm] November is Upon Us! In-Reply-To: <20041101175927.GY11073@geeknest.com> References: <20041101162947.GX11073@geeknest.com><20041101173645.GA23396@windhund.schwern.org> <20041101175927.GY11073@geeknest.com> Message-ID: <16790.209.166.178.1.1099335599.squirrel@www.cwinters.com> > ... > But on topic, is anyone interested in a talk titled "Using Perl to > Write Scripting Lanauges" ? I've got some stuff on that and I think > it's pretty slick. Do you mean domain-specific languages? Something like controlling a soda machine using a language specific to the soda machine (e.g., a 'eject_drink' function) that's translated into Perl code without the user's knowledge? Or for the Pragmatic Programmers among you: Item 17: Program close to the problem domain. That would be cool. Chris -- Chris Winters (chris@cwinters.com) Building enterprise-capable snack solutions since 1988. From casey at geeknest.com Mon Nov 1 13:02:33 2004 From: casey at geeknest.com (Casey West) Date: Mon Nov 1 12:58:06 2004 Subject: [pgh-pm] November is Upon Us! In-Reply-To: <16790.209.166.178.1.1099335599.squirrel@www.cwinters.com> References: <20041101175927.GY11073@geeknest.com> <16790.209.166.178.1.1099335599.squirrel@www.cwinters.com> Message-ID: <20041101190233.GZ11073@geeknest.com> It was Monday, November 01, 2004 when Chris Winters took the soap box, saying: : > ... : > But on topic, is anyone interested in a talk titled "Using Perl to : > Write Scripting Lanauges" ? I've got some stuff on that and I think : > it's pretty slick. : : Do you mean domain-specific languages? Something like controlling a soda : machine using a language specific to the soda machine (e.g., a : 'eject_drink' function) that's translated into Perl code without the : user's knowledge? Or for the Pragmatic Programmers among you: : : Item 17: Program close to the problem domain. : : That would be cool. Yeah, Item 17 style. A howto that uncovers some of the complexities of loving Perl but wanting to write other scripting languages. I'd need maybe 20-30 minutes, so I'm looking for another talk if anyone has ... anything. :-) Casey West -- Shooting yourself in the foot with Prolog You attempt to shoot yourself in the foot, but the bullet, failing to find its mark, backtracks to the gun, which then explodes in your face. From schwern at pobox.com Tue Nov 2 15:06:16 2004 From: schwern at pobox.com (Michael G Schwern) Date: Tue Nov 2 15:06:08 2004 Subject: [pgh-pm] PAT is doomed Message-ID: <20041102210616.GI4723@windhund.schwern.org> As some of you may be aware, PAT is more doomed than usual. They didn't get the funding they needed and now they're slashing services. But I took a look at their scenarios for fixing this and their current choice (increase fare to $2.50 while decreasing service by 31%) seems not to be the optimal choice. I figured there might be someone here who knows something more about this. If you do, please comment. http://use.perl.org/~schwern/journal/21664 -- Michael G Schwern schwern@pobox.com http://www.pobox.com/~schwern/ "May you eat three balanced meals a day and have healthful, regular bowel movements." -- Gimlet, son of Groin, "Bored of the Rings" From laweber at switch.com Wed Nov 3 06:57:23 2004 From: laweber at switch.com (Weber, Larry A) Date: Wed Nov 3 06:57:27 2004 Subject: [pgh-pm] Perl OLE Message-ID: <03F517C72D42284EBB48800AEF3E7D1D84D206@exchptc1.switch.com> I have a task where I need to read and rewrite Word Documents, preserving the original document's format. I have had some success using the Win32::OLE module but need a good reference to Word's OLE functions (create_style, set_style, insert_picture, etc.). I have found a few examples on the web but no complete listing that explains function and parameters. Does anyone know where to find complete documentation? -laweber From casey at geeknest.com Thu Nov 4 11:36:12 2004 From: casey at geeknest.com (Casey West) Date: Thu Nov 4 11:31:39 2004 Subject: [pgh-pm] [job] Message-ID: <20041104173612.GE11073@geeknest.com> These folks will be at the Pittsburgh Supercomputing Convention in 2004. He's looking for people to work for him in Seattle and contacted me to ask if I knew anyone who'd be interested. Here's the info: http://www.isilon.com/careers/qa_engineer.html Here's Seattle, he swears it's beautiful. :-) http://fricative.org/chris/gallery/slideshow.php?set_albumName=helitour Chris Metcalfe is the name of the requester. Email him at chris@isilon.com for more information. Casey West -- Good Idea: Going trick-or-treating on Halloween. Bad Idea: Going trick-or-treating on St Patrick's Day. From casey at geeknest.com Wed Nov 10 09:19:29 2004 From: casey at geeknest.com (Casey West) Date: Wed Nov 10 09:14:43 2004 Subject: [pgh-pm] Re: meeting tonight! In-Reply-To: <63310.209.166.178.1.1100093150.squirrel@www.cwinters.com> References: <63310.209.166.178.1.1100093150.squirrel@www.cwinters.com> Message-ID: <20041110151929.GB96622@geeknest.com> It was Wednesday, November 10, 2004 when Chris Winters took the soap box, saying: : We're having a meeting tonight, right? Unfortunately I don't have any : presentations inline to fill out the extra time, but we never seemed to : have trouble filling it with random talk... Yes, yes we are! Same bat place, same bat time! I'll get the site updated today, I swear. :-) I'm talking about writing mini-langauges in Perl. It will rock, and have trade secrets. Casey West -- "Drill for oil? You mean drill into the ground to try and find oil? You're crazy." -- Drillers who Edwin L. Drake tried to enlist to his project to drill for oil in 1859. From tom at moertel.com Wed Nov 10 22:30:02 2004 From: tom at moertel.com (Tom Moertel) Date: Wed Nov 10 22:30:11 2004 Subject: [pgh-pm] More shebang fun Message-ID: <4192EACA.3080806@moertel.com> Perl mongers, Inspired by Casey's hackrifficly splendid talk tonight, I hacked up the following alternative method for using shebang notation to run scripts that are written in Perl-based languages. The idea is to minimize the amount of work that we must do in C by immediately handing off to a Perl-based handler. The C program is tiny: #include #include #include int main(int argc, char* argv[]) { char* cmd = malloc(strlen(argv[0]) + 4); strcat(strcpy(cmd, argv[0]), ".pl"); execv(cmd, argv); perror("exec"); /* shouldn't get here */ return 1; } The C program retrieves the pathname under which it was invoked, appends a ".pl" suffix to it, and then hands off to that program. To use the program, we create a script handler in Perl. It runs the actual scripts, which it receives via its first argument. Then we create a symlink from the C program to the script handler, but leaving off the handler's ".pl" suffix. When we write scripts in our scripting language, we place the path to the handler -- again minus the ".pl" suffix -- in their shebang section. That's it. When we run a script, here's what happens. First, the shell finds the shebang section of the script, which points to the symlink, and executes it, thereby invoking the C program. The C program tacks a ".pl" suffix onto the name under which it was invoked and executes that program, thereby handing off to our Perl-based script handler. The handler receives the path to our original script as its first argument and runs the script. The enclosed script shows how it all works. When the script is done, you can "cd /tmp/shebanger" to examine the setup more closely. Cheers, Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: shebang-test.sh Type: application/x-sh Size: 2100 bytes Desc: not available Url : http://mail.pm.org/archives/pgh-pm/attachments/20041110/6e2b6271/shebang-test.sh