From rkleeman at energoncube.net Thu Nov 11 13:24:24 2004 From: rkleeman at energoncube.net (Bob Kleemann) Date: Thu Nov 11 13:24:32 2004 Subject: [San-Diego-pm] Meeting Next Week Message-ID: <20041111192424.GC6394@energoncube.net> Hey Folks, Just a reminder that there's a meeting on Tuesday, 7PM at Callahan's. I'll send out a reminder early next week. Think about any Perl related issues you may have and we can discuss them at the meeting. Between now and then though we should discuss possibly moving the meeting time. Some members had mentioned conflicts with other meetings/activities, so I'm asking everyone when might be a better time to meet? Let me know your thoughts. Also, would anyone be up for skipping the normal meeting next month and doing something more fun? If you have ideas, please send them my way. From menolly at mib.org Thu Nov 11 13:44:56 2004 From: menolly at mib.org (Menolly) Date: Thu Nov 11 13:46:20 2004 Subject: [San-Diego-pm] Meeting Next Week In-Reply-To: <20041111192424.GC6394@energoncube.net> References: <20041111192424.GC6394@energoncube.net> Message-ID: Monday evenings would work better for me. On Thu, 11 Nov 2004, Bob Kleemann wrote: > Hey Folks, > > Just a reminder that there's a meeting on Tuesday, 7PM at Callahan's. > I'll send out a reminder early next week. Think about any Perl related > issues you may have and we can discuss them at the meeting. > > Between now and then though we should discuss possibly moving the meeting > time. Some members had mentioned conflicts with other meetings/activities, > so I'm asking everyone when might be a better time to meet? Let me know > your thoughts. > > Also, would anyone be up for skipping the normal meeting next month and > doing something more fun? If you have ideas, please send them my way. > _______________________________________________ > San-Diego-pm mailing list > San-Diego-pm@mail.pm.org > http://www.pm.org/mailman/listinfo/san-diego-pm > -- menolly@mib.org http://www.livejournal.com/~nolly/ On that day, many will say to me, "Lord, Lord, did we not prophesy in your name, and cast out demons in your name, and do many mighty works in your name?" And then will I declare to them, "I never knew you; depart from me you evildoers." -- Matt 7:20-23, RSV From christopher.hahn at peregrine.com Thu Nov 11 14:00:55 2004 From: christopher.hahn at peregrine.com (Christopher Hahn) Date: Thu Nov 11 14:01:46 2004 Subject: [San-Diego-pm] Meeting Next Week Message-ID: Well, I have only made one meeting, so plan according to your own needs first, but I will not drive on Fridays. -----Original Message----- From: Menolly [mailto:menolly@mib.org] Sent: Thursday, November 11, 2004 11:45 AM To: Bob Kleemann Cc: Perl Mongers Subject: Re: [San-Diego-pm] Meeting Next Week Monday evenings would work better for me. On Thu, 11 Nov 2004, Bob Kleemann wrote: > Hey Folks, > > Just a reminder that there's a meeting on Tuesday, 7PM at Callahan's. > I'll send out a reminder early next week. Think about any Perl > related issues you may have and we can discuss them at the meeting. > > Between now and then though we should discuss possibly moving the > meeting time. Some members had mentioned conflicts with other > meetings/activities, so I'm asking everyone when might be a better > time to meet? Let me know your thoughts. > > Also, would anyone be up for skipping the normal meeting next month > and doing something more fun? If you have ideas, please send them my way. > _______________________________________________ > San-Diego-pm mailing list > San-Diego-pm@mail.pm.org > http://www.pm.org/mailman/listinfo/san-diego-pm > -- menolly@mib.org http://www.livejournal.com/~nolly/ On that day, many will say to me, "Lord, Lord, did we not prophesy in your name, and cast out demons in your name, and do many mighty works in your name?" And then will I declare to them, "I never knew you; depart from me you evildoers." -- Matt 7:20-23, RSV _______________________________________________ San-Diego-pm mailing list San-Diego-pm@mail.pm.org http://www.pm.org/mailman/listinfo/san-diego-pm From christopher.hahn at peregrine.com Thu Nov 11 14:05:40 2004 From: christopher.hahn at peregrine.com (Christopher Hahn) Date: Thu Nov 11 14:05:49 2004 Subject: [San-Diego-pm] Meeting Next Week Message-ID: BTW: is anyone on the list well acquainted with Parse::RecDescent grammars? -----Original Message----- From: Bob Kleemann [mailto:rkleeman@energoncube.net] Sent: Thursday, November 11, 2004 11:24 AM To: Perl Mongers Subject: [San-Diego-pm] Meeting Next Week Hey Folks, Just a reminder that there's a meeting on Tuesday, 7PM at Callahan's. I'll send out a reminder early next week. Think about any Perl related issues you may have and we can discuss them at the meeting. Between now and then though we should discuss possibly moving the meeting time. Some members had mentioned conflicts with other meetings/activities, so I'm asking everyone when might be a better time to meet? Let me know your thoughts. Also, would anyone be up for skipping the normal meeting next month and doing something more fun? If you have ideas, please send them my way. _______________________________________________ San-Diego-pm mailing list San-Diego-pm@mail.pm.org http://www.pm.org/mailman/listinfo/san-diego-pm From sandrewz at yahoo.com Thu Nov 11 16:07:12 2004 From: sandrewz at yahoo.com (sandrewz) Date: Thu Nov 11 16:07:22 2004 Subject: [San-Diego-pm] Output Remote File Descriptors Message-ID: <20041111220712.33482.qmail@web41003.mail.yahoo.com> Hello fellow PM'ers, I'm wondering if it is possible to capture a file descriptor from a remote machine via ssh and use that information locally. Is there a module I have to bring in to do this? Thanks, Steve __________________________________ Do you Yahoo!? Check out the new Yahoo! Front Page. www.yahoo.com From tkil-sdpm at scrye.com Thu Nov 11 17:01:47 2004 From: tkil-sdpm at scrye.com (Tkil) Date: Thu Nov 11 17:01:55 2004 Subject: [San-Diego-pm] Output Remote File Descriptors In-Reply-To: <20041111220712.33482.qmail@web41003.mail.yahoo.com> (sandrewz@yahoo.com's message of "Thu, 11 Nov 2004 14:07:12 -0800 (PST)") References: <20041111220712.33482.qmail@web41003.mail.yahoo.com> Message-ID: >>>>> "Steve" == sandrewz writes: Steve> I'm wondering if it is possible to capture a file descriptor Steve> from a remote machine via ssh and use that information locally. File descriptors in the traditional sense only make sense to one process on a given machine. There are ways to pass descriptors between processes on a single machine (more precisely, any single system image) but since they are effectively indexes into kernel structures, it wouldn't do much good to take a descriptor (which is, really, just an integer) to another machine. What are you actually trying to accomplish? 'ssh' itself redirects its input and output streams appropriately, so you can do things like: ssh remotehost 'cat > /tmp/from-elsewhere.txt' < stuff.txt (Occasionally complicated by the need to read passwords, but that's usually handled either by ssh opening the tty and reading from that (instead of from "standard input" in the usual sense) or by using private keys so that you don't need passwords at all.) You can also use 'ssh' to redirect ports off one machine to another. If you don't have firewalling and don't need encryption, you can do that with 'nc' ("netcat"). A typical example of the former is using IRC over an SSH tunnel: ssh remotehost -L6667:irc.mozilla.org:6667 This initiates a shell on remotehost, but also listens on local (thus the "-L") port 6667; whenever someone connects to that port, sshd on remotehost connects to irc.mozilla.org port 6667 and proxies the conversation. For the latter, I've done stuff like this to quickly transfer files from one machine to another. On the server, I type this and it waits for a connection... server$ nc -l -p 3000 | tar xvf - Which I provide on the local host like so: local$ tar cvf - .... | nc server 3000 If you actually have state on a local connection that you want to transfer to a different machine, there is no way I know of doing so. (There are some exotic options, but if you were involved with that stuff [message passing; single system image; NUMA; etc], you'd already know about them. :) t. From christopher.hahn at peregrine.com Thu Nov 11 23:13:34 2004 From: christopher.hahn at peregrine.com (Christopher Hahn) Date: Thu Nov 11 23:13:43 2004 Subject: [San-Diego-pm] Meeting Next Week Message-ID: Hey, I am trying to use Parse::Recdescent on fairly simple data, but am getting stuck on capturing an escaped carriage return. I am not able to make too many assumptions about the structure of the data, or I would probably just us a regexp. Here is a sample snippet: ---------------------------------------------- use strict; use warnings; $::RD_ERRORS = 1; # Make sure the parser dies when it encounters an error $::RD_WARN = 1; # Enable warnings. This will warn on unused rules &c. $::RD_HINT = 1; # Give out hints to help fix problems. use Parse::RecDescent; my $grammar = q{ DiffOutput: StrVal(s) /\Z/ StrVal: Words | EscCR | EscQt Words: /[\w\s\.\,]+/ { print "String!\n"; } EscCR: /\\\\n/ { print "Escaped CR!\n"; } EscQt: /\\\"/ { print "Escaped QT!\n"; } }; my $parser = new Parse::RecDescent($grammar); while() { chomp; print "\n\nActing on data line\n>>>$_<<<\n\n"; defined $parser->DiffOutput($_) or print "\n\nBAD DATA!!\n"; } __DATA__ This action may be \\ndefaulted to \"always print\" or \"never print\" in the company record. ---------------------------------------------- The results are: ---------------------------------------------- C:\L10n\Automation>perl RecDescTest3.pl Acting on data line >>>This action may be \\ndefaulted to \"always print\" or \"never print\" in the company record.<<< String! BAD DATA!! ---------------------------------------------- In simplifying this example, I removed the printing of what was matched, but string "This action may be " is matched by the Words rule, and then it cruds out. If anyone can give me the kick in the head that something this simple must be, then please heave ho. No problem either way....I will fall back on a few assumptions about the data and a regexp. I hope to see you at the meeting, Christopher -----Original Message----- From: Christopher Hahn Sent: Thursday, November 11, 2004 12:06 PM To: Perl Mongers Subject: RE: [San-Diego-pm] Meeting Next Week BTW: is anyone on the list well acquainted with Parse::RecDescent grammars? -----Original Message----- From: Bob Kleemann [mailto:rkleeman@energoncube.net] Sent: Thursday, November 11, 2004 11:24 AM To: Perl Mongers Subject: [San-Diego-pm] Meeting Next Week Hey Folks, Just a reminder that there's a meeting on Tuesday, 7PM at Callahan's. I'll send out a reminder early next week. Think about any Perl related issues you may have and we can discuss them at the meeting. Between now and then though we should discuss possibly moving the meeting time. Some members had mentioned conflicts with other meetings/activities, so I'm asking everyone when might be a better time to meet? Let me know your thoughts. Also, would anyone be up for skipping the normal meeting next month and doing something more fun? If you have ideas, please send them my way. _______________________________________________ San-Diego-pm mailing list San-Diego-pm@mail.pm.org http://www.pm.org/mailman/listinfo/san-diego-pm From rkleeman at energoncube.net Tue Nov 16 12:54:11 2004 From: rkleeman at energoncube.net (Bob Kleemann) Date: Tue Nov 16 12:54:20 2004 Subject: [San-Diego-pm] Meeting Next Week In-Reply-To: <20041111192424.GC6394@energoncube.net> References: <20041111192424.GC6394@energoncube.net> Message-ID: <20041116185411.GA31811@energoncube.net> Just another reminder folks, the meeting is tonight. Send me an email if you intend to come, if you'd like the meetings on a different day, or if you have any other ideas that you'd like to discuss. I'll see everyone at Callahan's tonight at 7PM. On Thu, Nov 11, 2004 at 11:24:24AM -0800, Bob Kleemann wrote: > Hey Folks, > > Just a reminder that there's a meeting on Tuesday, 7PM at Callahan's. > I'll send out a reminder early next week. Think about any Perl related > issues you may have and we can discuss them at the meeting. > > Between now and then though we should discuss possibly moving the meeting > time. Some members had mentioned conflicts with other meetings/activities, > so I'm asking everyone when might be a better time to meet? Let me know > your thoughts. > > Also, would anyone be up for skipping the normal meeting next month and > doing something more fun? If you have ideas, please send them my way. > _______________________________________________ > San-Diego-pm mailing list > San-Diego-pm@mail.pm.org > http://www.pm.org/mailman/listinfo/san-diego-pm From david_roe at mac.com Tue Nov 16 16:57:27 2004 From: david_roe at mac.com (Dave Roe) Date: Tue Nov 16 16:58:42 2004 Subject: [San-Diego-pm] Meeting Next Week In-Reply-To: References: Message-ID: On Nov 11, 2004, at 9:13 PM, Christopher Hahn wrote: > I am trying to use Parse::Recdescent on fairly simple data, but am > getting > stuck on > capturing an escaped carriage return. if you turn on $::RD_TRACE, you can see what is going on. it seems the answer is to double-up your back-slashes: EscCR: /\\\\\\\\n/ { print "Escaped CR!\n"; } from perldoc Parse::RecDescent: It is important to remember that, since each grammar is specified in a Perl string, all instances of the universal escape character '\' within a grammar must be "doubled", so that they interpolate to single '\'s when the string is compiled. For example, to use the grammar: word: /\S+/ | backslash line: prefix word(s) "\n" backslash: '\\' the following code is required: $parser = new Parse::RecDescent (q{ word: /\\S+/ | backslash line: prefix word(s) "\\n" backslash: '\\\\' }); HTH, /dave From bruce at brtnet.org Sun Nov 21 20:08:08 2004 From: bruce at brtnet.org (Bruce Timberlake) Date: Sun Nov 21 20:08:22 2004 Subject: [San-Diego-pm] Free to a good home - 6 issues of The Perl Journal et al. Message-ID: <200411211808.09283.bruce@brtnet.org> I have a few old issues of TPJ that I'm looking to unload (spring cleaning my office a season or two early)... Summer 1999 Fall 1999 Winter 1999 Spring 2000 Fall 2000 Fall 2001 I live in Carlsbad; first person who contacts me that can come get them within the next week (I work from home, so I'm almost always here) can have them. Alternatively, I will be in the Kearny Mesa area one or two afternoons a week starting the week after Thanksgiving, and could arrange to drop them someplace near there. Or I can try to make the next meeting; haven't done that in a *long* time though, so I'm not sure it'll work this time. OT, but I also have a couple of years worth of ACM pubs (Dec 2002-current of "Communications of the ACM" and "Queue"), and almost every issue of the short-lived Embedded Linux Journal (Jan/Feb 2001 - May/Jun 2002, missing Jan/Feb 2002). If anyone wants them, let me know. Otherwise they will all be put in the recycling bin next week.