From jeremygwa at hotmail.com Thu Mar 2 18:13:37 2006 From: jeremygwa at hotmail.com (Jeremy Aiyadurai) Date: Thu, 02 Mar 2006 18:13:37 -0800 Subject: [VPM] regular expression line number in string Message-ID: hello all perl guru's in a regular expression how do I retrieve the line index/number of a match in a multiline(\r\n) string? eg. ------------------- my $line = "asdasdasdasdasdasdasdasdasdasdasdasdasdasdasd asdsadasdasdasdadasdasdasdasdasdasdhereaSDASDAS asdasdasdasdasdasdasdasdasdasdasdasdasdasdasd"; $line =~ m/(here)/ig; ------------------ Thanks in advance for your help. - Jeremy A. From Peter at psdt.com Fri Mar 3 18:22:49 2006 From: Peter at psdt.com (Peter Scott) Date: Fri, 03 Mar 2006 18:22:49 -0800 Subject: [VPM] regular expression line number in string In-Reply-To: References: Message-ID: At 6:13 PM -0800 3/2/06, Jeremy Aiyadurai wrote: >hello all perl guru's > >in a regular expression how do I retrieve the line index/number of a match >in a multiline(\r\n) string? > >eg. >------------------- > >my $line = "asdasdasdasdasdasdasdasdasdasdasdasdasdasdasd >asdsadasdasdasdadasdasdasdasdasdasdhereaSDASDAS >asdasdasdasdasdasdasdasdasdasdasdasdasdasdasd"; > >$line =~ m/(here)/ig; If the pattern you are matching on does not contain newlines, then I would do (untested): for (my $count = 0; $line =~ /(.*\r?\n?)/g; $count++) { print "Found at line $count\n" and last if $1 =~ /here/i; } From Peter at PSDT.com Fri Mar 10 07:49:32 2006 From: Peter at PSDT.com (Peter Scott) Date: Fri, 10 Mar 2006 07:49:32 -0800 Subject: [VPM] March 21 meeting Message-ID: <6.2.3.4.2.20060310074856.023e0ec8@mail.webquarry.com> Suggestions for meeting topic? Seems like a good time to revisit some of the basics, perhaps? -- Peter Scott Pacific Systems Design Technologies http://www.perldebugged.com/ http://www.perlmedic.com/ From darren at DarrenDuncan.net Tue Mar 14 22:56:31 2006 From: darren at DarrenDuncan.net (Darren Duncan) Date: Tue, 14 Mar 2006 22:56:31 -0800 Subject: [VPM] March 21 meeting In-Reply-To: <6.2.3.4.2.20060310074856.023e0ec8@mail.webquarry.com> References: <6.2.3.4.2.20060310074856.023e0ec8@mail.webquarry.com> Message-ID: At 07:49 -0800 10/3/06, Peter Scott wrote: >Suggestions for meeting topic? Seems like a good time to revisit some >of the basics, perhaps? If no one else wants to step up and lead, then I believe this is a good time for me to give a talk on my Rosetta DBMS project. While I will cover some basics for the uninitiated, people who already use databases (whether MySQL or Oracle or whatever) will get more out of it; but lots of people use databases. The "Rosetta" DBMS framework, available in twin Perl 6 and Perl 5 versions, is a powerful but elegant system, which makes it easy to create and use relational databases in a very reliable, portable, and efficient way. It is implemented as a virtual machine, and has its own command language called "Rosetta D". The Rosetta virtual machine and command language are intended to be significant improvements over conventional database products and the SQL language, both in reliability and expressiveness (but the conventionals are emulatable). One of its features is that you can manipulate a database's schema using the same language you use to manipulate its data, by updating the database's system catalog. The project has drawn significant interest from members of the Perl and database communities, though it still remains unknown to most people. This presentation / discussion will introduce Rosetta, saying how it works and how to use it, and discussing some of my design decisions. I will also discuss some relational database theory and practice in general. The presentation format is that I will present orally and draw diagrams on the white board, and there can be group discussion. I do not have any handouts, nor any computer slide show, nor any executing code; those will have to wait for some future month. While you can not use Rosetta yet, due to its being pre-alpha, you can read some of its in-progress design documents at http://svn.openfoundry.org/pugs/ext/Rosetta/ (Perl 6) or at http://svn.utsl.gen.nz/trunk/Rosetta/ (Perl 5). Within those directories, the most recently updated and significant documents are lib/Rosetta.pm (scroll down half-way to the DESCRIPTION pod), and lib/Rosetta/Language.pod (the top half is new and good to read, the bottom half is old and less valuable). Regardless, everything I speak and draw at the meeting itself will be up to date. -- Darren Duncan From Peter at PSDT.com Mon Mar 20 09:07:46 2006 From: Peter at PSDT.com (Peter Scott) Date: Mon, 20 Mar 2006 09:07:46 -0800 Subject: [VPM] March 21 meeting In-Reply-To: References: <6.2.3.4.2.20060310074856.023e0ec8@mail.webquarry.com> Message-ID: <6.2.3.4.2.20060320090109.023fc1e0@192.168.0.4> At 10:56 PM 3/14/2006, Darren Duncan wrote: >At 07:49 -0800 10/3/06, Peter Scott wrote: > >Suggestions for meeting topic? Seems like a good time to revisit some > >of the basics, perhaps? > >If no one else wants to step up and lead, then I believe this is a >good time for me to give a talk on my Rosetta DBMS project. While I >will cover some basics for the uninitiated, people who already use >databases (whether MySQL or Oracle or whatever) will get more out of >it; but lots of people use databases. This is great, and I think we should do it for April. I was on travel last week (only Perl speaker at SD Expo West) and it's too late to schedule a meeting for tomorrow. -- Peter Scott Pacific Systems Design Technologies http://www.perldebugged.com/ http://www.perlmedic.com/ From darren at DarrenDuncan.net Mon Mar 20 11:48:53 2006 From: darren at DarrenDuncan.net (Darren Duncan) Date: Mon, 20 Mar 2006 11:48:53 -0800 Subject: [VPM] March 21 meeting In-Reply-To: <6.2.3.4.2.20060320090109.023fc1e0@192.168.0.4> References: <6.2.3.4.2.20060310074856.023e0ec8@mail.webquarry.com> <6.2.3.4.2.20060320090109.023fc1e0@192.168.0.4> Message-ID: At 09:07 -0800 20/3/06, Peter Scott wrote: >At 10:56 PM 3/14/2006, Darren Duncan wrote: >>If no one else wants to step up and lead, then I believe this is a >>good time for me to give a talk on my Rosetta DBMS project. While I >>will cover some basics for the uninitiated, people who already use >>databases (whether MySQL or Oracle or whatever) will get more out of >>it; but lots of people use databases. > >This is great, and I think we should do it for April. I was on >travel last week (only Perl speaker at SD Expo West) and it's too >late to schedule a meeting for tomorrow. Okay; April it is, then. And as a side benefit, a talk given then should be much improved. So I will assume there is no March meeting. -- Darren Duncan From crimson at uvic.ca Mon Mar 20 18:39:21 2006 From: crimson at uvic.ca (Clarke Brunsdon) Date: Mon, 20 Mar 2006 18:39:21 -0800 Subject: [VPM] March 21 meeting In-Reply-To: <6.2.3.4.2.20060320090109.023fc1e0@192.168.0.4> References: <6.2.3.4.2.20060310074856.023e0ec8@mail.webquarry.com> <6.2.3.4.2.20060320090109.023fc1e0@192.168.0.4> Message-ID: <1142908761.8065.0.camel@localhost> On Mon, 2006-03-20 at 09:07 -0800, Peter Scott wrote: > At 10:56 PM 3/14/2006, Darren Duncan wrote: > >At 07:49 -0800 10/3/06, Peter Scott wrote: > > >Suggestions for meeting topic? Seems like a good time to revisit some > > >of the basics, perhaps? > > > >If no one else wants to step up and lead, then I believe this is a > >good time for me to give a talk on my Rosetta DBMS project. While I > >will cover some basics for the uninitiated, people who already use > >databases (whether MySQL or Oracle or whatever) will get more out of > >it; but lots of people use databases. > > This is great, and I think we should do it for April. I was on travel > last week (only Perl speaker at SD Expo West) and it's too late to > schedule a meeting for tomorrow. > From crimson at uvic.ca Mon Mar 20 18:40:11 2006 From: crimson at uvic.ca (Clarke Brunsdon) Date: Mon, 20 Mar 2006 18:40:11 -0800 Subject: [VPM] March 21 meeting In-Reply-To: <6.2.3.4.2.20060320090109.023fc1e0@192.168.0.4> References: <6.2.3.4.2.20060310074856.023e0ec8@mail.webquarry.com> <6.2.3.4.2.20060320090109.023fc1e0@192.168.0.4> Message-ID: <1142908811.8065.1.camel@localhost> Its up to you, I've got a room booked but I've always got other things to do. (sorry for the last blank message to the list, ID10-T error) ~Clarke On Mon, 2006-03-20 at 09:07 -0800, Peter Scott wrote: > At 10:56 PM 3/14/2006, Darren Duncan wrote: > >At 07:49 -0800 10/3/06, Peter Scott wrote: > > >Suggestions for meeting topic? Seems like a good time to revisit some > > >of the basics, perhaps? > > > >If no one else wants to step up and lead, then I believe this is a > >good time for me to give a talk on my Rosetta DBMS project. While I > >will cover some basics for the uninitiated, people who already use > >databases (whether MySQL or Oracle or whatever) will get more out of > >it; but lots of people use databases. > > This is great, and I think we should do it for April. I was on travel > last week (only Perl speaker at SD Expo West) and it's too late to > schedule a meeting for tomorrow. > From darren at DarrenDuncan.net Mon Mar 20 22:42:16 2006 From: darren at DarrenDuncan.net (Darren Duncan) Date: Mon, 20 Mar 2006 22:42:16 -0800 Subject: [VPM] March 21 meeting In-Reply-To: <1142908811.8065.1.camel@localhost> References: <6.2.3.4.2.20060310074856.023e0ec8@mail.webquarry.com> <6.2.3.4.2.20060320090109.023fc1e0@192.168.0.4> <1142908811.8065.1.camel@localhost> Message-ID: At 18:40 -0800 20/3/06, Clarke Brunsdon wrote: >Its up to you, I've got a room booked but I've always got other things >to do. > >On Mon, 2006-03-20 at 09:07 -0800, Peter Scott wrote: > > This is great, and I think we should do it for April. I was on travel >> last week (only Perl speaker at SD Expo West) and it's too late to > > schedule a meeting for tomorrow. Clarke, please post what room that is asap, because ... For the record, I was going to be in Victoria tomorrow anyway, as I have another activity in the day time, and so could still change and go to UVIC. Unfortunately, given what Peter has already said et al, no announcements have gone out about a March meeting, and so attendance would probably be dismal if it went ahead; not good for what could be a major talk. However, if we're willing that I can give an improved version of my talk in a later month anyway, I can still talk to even a crowd as small as 2 people tomorrow. Or we can do partly that plus talk about other things. So then, as long as at least 2 other people (eg, Clarke and Peter both) post on-list by about 1-2pm-ish tomorrow to say they *will* be there, then I will also be there, and post such right then on-list. -- Darren Duncan From darren at DarrenDuncan.net Mon Mar 20 23:13:00 2006 From: darren at DarrenDuncan.net (Darren Duncan) Date: Mon, 20 Mar 2006 23:13:00 -0800 Subject: [VPM] a new Rosetta snapshot is released (v0.722.0) Message-ID: All, This isn't a formal announcement, but I would still like to alert you to the newest Rosetta release v0.722.0 ( http://search.cpan.org/dist/Rosetta/ ). My own conception of the project has changed a lot in the last couple months, and now a lot of the main documentation reflects this, so there is now something reasonably up to date for you to look at and get an idea where I'm going with this. Mainly I draw your attention to the DESCRIPTION of Rosetta.pm ( http://search.cpan.org/dist/Rosetta/lib/Rosetta.pm ), and to the top half of Language.pod ( http://search.cpan.org/dist/Rosetta/lib/Rosetta/Language.pod ), specifically the parts that *don't* say "older". All of that was written since the previous release, and contains a lot of significant ideas. At the same time, all of this is still (part of) the 10,000 mile view, which is good for setting a context to understand the details and code examples which are not yet present but will come later. Also, the included new application "shell.pl" does run, though its functionality is bare bones; it will be fleshed out soon. As usual, also pay attention to the public Subversion repositories, whose urls are in the README, as they can be several weeks newer than CPAN releases. Enjoy! -- Darren Duncan From Peter at PSDT.com Tue Mar 21 08:56:13 2006 From: Peter at PSDT.com (Peter Scott) Date: Tue, 21 Mar 2006 08:56:13 -0800 Subject: [VPM] March 21 meeting In-Reply-To: References: <6.2.3.4.2.20060310074856.023e0ec8@mail.webquarry.com> <6.2.3.4.2.20060320090109.023fc1e0@192.168.0.4> <1142908811.8065.1.camel@localhost> Message-ID: <6.2.3.4.2.20060321085523.02512d88@mail.webquarry.com> At 10:42 PM 3/20/2006, Darren Duncan wrote: >So then, as long as at least 2 other people (eg, Clarke and Peter >both) post on-list by about 1-2pm-ish tomorrow to say they *will* be >there, then I will also be there, and post such right then on-list. Sorry, but I am not going to be there. I didn't know we had a room reserved, but nevertheless, I feel it is better to have no meeting at all than one that has not been properly promoted. -- Peter Scott Pacific Systems Design Technologies http://www.perldebugged.com/ http://www.perlmedic.com/ From darren at DarrenDuncan.net Tue Mar 21 13:38:12 2006 From: darren at DarrenDuncan.net (Darren Duncan) Date: Tue, 21 Mar 2006 13:38:12 -0800 (PST) Subject: [VPM] March 21 meeting In-Reply-To: <6.2.3.4.2.20060321085523.02512d88@mail.webquarry.com> Message-ID: On Tue, 21 Mar 2006, Peter Scott wrote: > Sorry, but I am not going to be there. I didn't know we had a room > reserved, but nevertheless, I feel it is better to have no meeting at > all than one that has not been properly promoted. Okay, that settles it then. I will not be there either and the March meeting is confirmed cancelled. -- Darren Duncan