From rdice at pobox.com Sat Apr 1 06:24:02 2006 From: rdice at pobox.com (Richard Dice) Date: Sat, 01 Apr 2006 09:24:02 -0500 Subject: [kw-pm] MJD presenting at a Very Special Toronto Perl Mongers meeting, Sat 13 May 2006 Message-ID: <442E8D02.9000509@pobox.com> Hi everyone, I've been working with Mark-Jason Dominus (MJD) over the past few months for him to give a talk to the Toronto Perl Mongers. I have final confirmation now. We're scheduling the talk for the afternoon of Saturday 13 May, duration of approx. 4 hours. (Exact location information will be forthcoming.) I have attached here a note from MJD he asked me to distribute. The main thrust of his speaking tour is in prepartion for his newest book, currently under constructions, "Perl Program Repair Shop and Red Flags". He would like code contributions -- see details in his letter. We'll get him to give a talk about this and also another from his repetoire. (See the "Free talks" section on http://perl.plover.com/yak/#free ) Suggestions are welcome! The talk is free, but donations are both appreciated and needed! The only support for this event is what comes from its attendees. Thanks to all who have pledged already. Eric Maki has told me that he'd help organizer the KW.pm folks who might want to attend. If you have any questions about who MJD is, making a donation, etc., you can talk to either of us. (Carpooling and more local type things Eric could handle much better than I.) Cheers, Richard (The following is verbatim from MJD.) Dear Toronto Perl Mongers, I'm coming to visit you on May 13 as part of my tour to gather material for my new book, which I hope will be published in 2007. The book is about code review and refactoring in Perl. (For more complete information, please see http://perl.plover.com/flagbook/ .) To do the job right, I need real examples of real code that other people wrote. I'll review the code and fix it up, and explain in the book what I did and why. Please send me some code to look at so that I have something to talk about on May 13. I need it no later than Friday, April 14, but sooner is better. What I need: code for a program or module that is between 150 and 700 lines long, not counting comments or blank lines. Also, you must be authorized to give me permission to use the code in my book. If I use your code in the talk, I will give you a free copy of my last book, _Higher-Order Perl_. (http://hop.perl.plover.com/) If I use your code in the new book, you'll get a free copy of that when it comes out. If you want more details about what I need, please see: http://perl.plover.com/flagbook/contribute.html To contribute, send code to: mjd-contrib-tor at plover.com Questions? Send them to: mjd at plover.com Thanks. From rdice at pobox.com Sun Apr 2 12:35:13 2006 From: rdice at pobox.com (Richard Dice) Date: Sun, 02 Apr 2006 15:35:13 -0400 Subject: [kw-pm] MJD talk -- a new way to donate, via PayPal! Message-ID: <44302771.90302@pobox.com> Hello... There were some suggestions from a Buffalo.pm-er that it would be good if there was a PayPal account through which MJD trip donations could be made. TPMs own inestimable Fulko Hew has set this up. For all those interested, go to: http://hew.ca/ Thanks, Fulko! And thanks again to all the donors who help make this event happen. Cheers, Richard From john at perlwolf.com Wed Apr 5 00:47:24 2006 From: john at perlwolf.com (John Macdonald) Date: Wed, 5 Apr 2006 03:47:24 -0400 Subject: [kw-pm] [tpm] MJD talk -- a new way to donate, via PayPal! In-Reply-To: References: <44302771.90302@pobox.com> Message-ID: <20060405074724.GH19035@lupus.perlwolf.com> On Tue, Apr 04, 2006 at 02:59:20PM -0400, G. Matthew Rice wrote: > Yep. That helped. I had some money leftover from a brief ebay love affair You can find *anything* for sale on eBay. -- From daniel at coder.com Mon Apr 17 20:58:00 2006 From: daniel at coder.com (Daniel R. Allen) Date: Mon, 17 Apr 2006 23:58:00 -0400 (EDT) Subject: [kw-pm] Meeting This Thursday @ 7pm Message-ID: We'll be having our regular monthly meeting this Thursday, 7pm, at the usual location [1]. The topic is: AJAX - Dynamic web sites with DHTML and Perl. This is a guest talk by Cees Hek of Toronto.pm. He will talk about how to use the popular js Prototype library to fill your web application with flashy widgets such as draggable lists, autocompleting text boxes and transition effects. With a focus on HTML::Prototype and CGI::Application. If you'd like pizza, please mark the X here: http://kw.pm.org/wiki/index.cgi?PizzaList [1] Usual location: U of W campus, Davis Centre Room 3323. See kw.pm.org for directions. From daniel at coder.com Mon Apr 17 21:09:07 2006 From: daniel at coder.com (Daniel R. Allen) Date: Tue, 18 Apr 2006 00:09:07 -0400 (EDT) Subject: [kw-pm] what's up in perl-land? Message-ID: It's been quiet here on the list, lately. Some nine of us have been hanging out in IRC, though it's been a bit quiet this last week there too. Eric and I have been cooking up some fun things with photo mosaics, and maybe we'll have more to report to you soon. (Or not. You never know). But for those of you who aren't on the IRC channel, what's up with you? Any fun perl things you've been playing with? Good Easter jokes? -Daniel From rdice at pobox.com Tue Apr 18 01:03:05 2006 From: rdice at pobox.com (Richard Dice) Date: Tue, 18 Apr 2006 04:03:05 -0400 Subject: [kw-pm] code submissions for the MJD trip Message-ID: <44449D39.6060400@pobox.com> Hi everyone, I got some feedback from MJD recently that he hasn't received much in the way of code submissions for his Toronto trip yet. If this doesn't change then unfortunately we might have to reschedule his trip for a later date. If anyone out there has been sitting on the fence regarding this, or has been meaning to put something together but has been procrastinating, now is the time to change that. A final decision regarding scheduling will have to be made over the next few days. Guidelines for submission: http://perl.plover.com/flagbook/contribute.html Email contributions to: mjd-contrib-tor at plover.com Cheers, Richard From da at coder.com Tue Apr 18 07:36:52 2006 From: da at coder.com (Daniel R. Allen) Date: Tue, 18 Apr 2006 10:36:52 -0400 (EDT) Subject: [kw-pm] code submissions for the MJD trip In-Reply-To: <44449D39.6060400@pobox.com> Message-ID: Well, my conscience is clear... I just sent him a module yesterday. It would be cool if we had a bunch of KW mongers' code represented. So: any medium- to long- bits of code you want refactored, free of charge, on-stage, and anonymously if you wish? It doesn't need to be bad code, in fact he's sort of looking for nice code to see what refactoring can be done. -Daniel On Tue, 18 Apr 2006, Richard Dice wrote: > Hi everyone, > > I got some feedback from MJD recently that he hasn't received much in > the way of code submissions for his Toronto trip yet. If this doesn't > change then unfortunately we might have to reschedule his trip for a > later date. If anyone out there has been sitting on the fence regarding > this, or has been meaning to put something together but has been > procrastinating, now is the time to change that. A final decision > regarding scheduling will have to be made over the next few days. > > Guidelines for submission: http://perl.plover.com/flagbook/contribute.html > Email contributions to: mjd-contrib-tor at plover.com > > Cheers, > Richard > > _______________________________________________ > kw-pm mailing list > kw-pm at pm.org > http://mail.pm.org/mailman/listinfo/kw-pm > From dc0955 at gates.com Wed Apr 19 04:22:50 2006 From: dc0955 at gates.com (Dave Carr) Date: Wed, 19 Apr 2006 05:22:50 -0600 Subject: [kw-pm] unique Message-ID: <71157FC6AFED794AA91333926F0C23F031E9C6@EXMAIL2.ec.cf.com> Found this snippet to do unique on a sorted array $prev = 'nonesuch'; @uniq = grep($_ eq $prev && (($prev) = $_), @sorted); How could I modify this to require a string to occur at least two times to be included in the output array, in other words single occurrences will be skipped? - Lloyd -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.pm.org/pipermail/kw-pm/attachments/20060419/c1232890/attachment.html From rdice at pobox.com Wed Apr 19 00:47:07 2006 From: rdice at pobox.com (Richard Dice) Date: Wed, 19 Apr 2006 03:47:07 -0400 Subject: [kw-pm] unique In-Reply-To: <71157FC6AFED794AA91333926F0C23F031E9C6@EXMAIL2.ec.cf.com> References: <71157FC6AFED794AA91333926F0C23F031E9C6@EXMAIL2.ec.cf.com> Message-ID: <4445EAFB.9050404@pobox.com> Dave Carr wrote: > Found this snippet to do unique on a sorted array > > > > $prev = 'nonesuch'; > > @uniq = grep($_ eq $prev && (($prev) = $_), @sorted); > > > > How could I modify this to require a string to occur at least two times > to be included in the output array, in other words single occurrences > will be skipped? > > This isn't the classical way of doing things. Normally you'd use a hash (%seen). However, if you'd really like to do it with the same rough structure as you provide above, you could use: my ($prev, $before_that) = (); @uniq = grep($_ eq $prev && $prev eq $before_that && (($prev) = $_) && ($before_that = $prev), @sorted); Better hope that none of your sorted values are "0", though. Trust me, this is a crappy algorithm. Use the hash key method. For unique items (note that input list doesn't have to be sorted, thus @items rather than @sorted): ==================================================================================================== my %seen = (); $seen{$_}++ foreach @items; @uniq = grep { $seen{$_} > 0 } keys %seen; This algorithm has the added benefit of being easily expandable to requiring an item to be seen twice (or more): my %seen = (); $seen{$_}++ foreach @items; @uniq = grep { $seen{$_} > 1 } keys %seen; Finding Perl snippets and using them without knowing what they're doing / how they work will only bite you in the ass. That includes the snippet I just gave here. Learn how it works before you use it. Cheers, Richard From dc0955 at gates.com Wed Apr 19 06:31:29 2006 From: dc0955 at gates.com (Dave Carr) Date: Wed, 19 Apr 2006 07:31:29 -0600 Subject: [kw-pm] unique Message-ID: <71157FC6AFED794AA91333926F0C23F031EA17@EXMAIL2.ec.cf.com> >> $prev = 'nonesuch'; >> >> @uniq = grep($_ eq $prev && (($prev) = $_), @sorted); I know I know...it should be @uniq = grep($_ ne $prev && (($prev) = $_), @sorted); >Finding Perl snippets and using them without knowing what they're doing / >how they work will only bite you in the ass. That includes the snippet I >just gave here. Learn how it works before you use it. Just because I'm stupid is it right for you to assume I don't know what the snippet does or how it works? ;) - Lloyd From dc0955 at gates.com Wed Apr 19 07:33:38 2006 From: dc0955 at gates.com (Dave Carr) Date: Wed, 19 Apr 2006 08:33:38 -0600 Subject: [kw-pm] unique Message-ID: <71157FC6AFED794AA91333926F0C23F031EA47@EXMAIL2.ec.cf.com> Thanks Richard, now if I could just get it to stop biting my... - Lloyd From john at perlwolf.com Wed Apr 19 08:06:55 2006 From: john at perlwolf.com (John Macdonald) Date: Wed, 19 Apr 2006 11:06:55 -0400 Subject: [kw-pm] unique In-Reply-To: <71157FC6AFED794AA91333926F0C23F031E9C6@EXMAIL2.ec.cf.com> References: <71157FC6AFED794AA91333926F0C23F031E9C6@EXMAIL2.ec.cf.com> Message-ID: <20060419150655.GK3826@lupus.perlwolf.com> On Wed, Apr 19, 2006 at 05:22:50AM -0600, Dave Carr wrote: > Found this snippet to do unique on a sorted array > > > > $prev = 'nonesuch'; > > @uniq = grep($_ eq $prev && (($prev) = $_), @sorted); > > > > How could I modify this to require a string to occur at least two times > to be included in the output array, in other words single occurrences > will be skipped? You've already noted that the 'eq' needs to be 'ne' for that code to work. $prev = 'nonesuch'; $count = 0; $min_count = 2; @multiples = grep { $_ eq $prev ?? ( ++$count == $min_count ) :: ( ($prev = $_), ($count = 0) ) } @sorted; That selects elements that have been seen exactly $min_count times, so it skips elements that are not repeated that many time, and only returns one copy of an element that occur more times. If you set $min_count to 1, it returns the unique elements as before (but with a bit more processing overhead), if you set it to a larger number, you can select a unique copy of every element that occurs at least $min_count times. -- From john at perlwolf.com Wed Apr 19 08:15:49 2006 From: john at perlwolf.com (John Macdonald) Date: Wed, 19 Apr 2006 11:15:49 -0400 Subject: [kw-pm] unique In-Reply-To: <4445EAFB.9050404@pobox.com> References: <71157FC6AFED794AA91333926F0C23F031E9C6@EXMAIL2.ec.cf.com> <4445EAFB.9050404@pobox.com> Message-ID: <20060419151549.GL3826@lupus.perlwolf.com> On Wed, Apr 19, 2006 at 03:47:07AM -0400, Richard Dice wrote: > Dave Carr wrote: > > Found this snippet to do unique on a sorted array > > > > > > > > $prev = 'nonesuch'; > > > > @uniq = grep($_ eq $prev && (($prev) = $_), @sorted); > > > > > > > > How could I modify this to require a string to occur at least two times > > to be included in the output array, in other words single occurrences > > will be skipped? > > > > > > This isn't the classical way of doing things. Normally you'd use a hash > (%seen). > > However, if you'd really like to do it with the same rough structure as > you provide above, you could use: > > my ($prev, $before_that) = (); > @uniq = grep($_ eq $prev && $prev eq $before_that && (($prev) = $_) && > ($before_that = $prev), @sorted); You'd have to switch the assignments so that $before_that = $prev is done before $prev is changed to $_. > Better hope that none of your sorted values are "0", though. > > Trust me, this is a crappy algorithm. Use the hash key method. It does have the advantage of not needing to make a hash that has as many elements as the original list (minus duplicates). If the program was stressing memory size originally, that could be significant but normally it would be immaterial. > For unique items (note that input list doesn't have to be sorted, thus @items rather than @sorted): > ==================================================================================================== > my %seen = (); > $seen{$_}++ foreach @items; > @uniq = grep { $seen{$_} > 0 } keys %seen; > > > This algorithm has the added benefit of being easily expandable to requiring an item to be seen twice (or more): > > my %seen = (); > $seen{$_}++ foreach @items; > @uniq = grep { $seen{$_} > 1 } keys %seen; > > > Finding Perl snippets and using them without knowing what they're doing / how they work will only bite you in the ass. That includes the snippet I just gave here. Learn how it works before you use it. > > Cheers, > Richard > > > _______________________________________________ > kw-pm mailing list > kw-pm at pm.org > http://mail.pm.org/mailman/listinfo/kw-pm -- From rprice at freeshell.org Wed Apr 19 08:11:32 2006 From: rprice at freeshell.org (Rick Price) Date: Wed, 19 Apr 2006 11:11:32 -0400 (EDT) Subject: [kw-pm] unique In-Reply-To: <71157FC6AFED794AA91333926F0C23F031E9C6@EXMAIL2.ec.cf.com> References: <71157FC6AFED794AA91333926F0C23F031E9C6@EXMAIL2.ec.cf.com> Message-ID: Why are you trying to do that? Rick [=============================] Big whorls have little whorls, Which feed on their velocity; And little whorls have lesser whorls, And so on to viscosity. Lewis Richardson On Wed, 19 Apr 2006, Dave Carr wrote: > Found this snippet to do unique on a sorted array > > > > $prev = 'nonesuch'; > > @uniq = grep($_ eq $prev && (($prev) = $_), @sorted); > > > > How could I modify this to require a string to occur at least two times > to be included in the output array, in other words single occurrences > will be skipped? > > > > - Lloyd > > From eric at uc.org Wed Apr 19 10:01:05 2006 From: eric at uc.org (Eric Maki) Date: Wed, 19 Apr 2006 13:01:05 -0400 (EDT) Subject: [kw-pm] unique In-Reply-To: <20060419150655.GK3826@lupus.perlwolf.com> References: <71157FC6AFED794AA91333926F0C23F031E9C6@EXMAIL2.ec.cf.com> <20060419150655.GK3826@lupus.perlwolf.com> Message-ID: > @multiples = grep { > $_ eq $prev > ?? ( ++$count == $min_count ) > :: ( ($prev = $_), ($count = 0) ) > } @sorted; You are a bit ahead of the curve, John. That is the Perl6 ternary-if-op. Points, though, for the intentional use of the c-style comma operator. The last ten times I saw that, it was because my coworker was getting this weird 'constant in void-context' error that he hoped I might have time to look at. Eric From dc0955 at gates.com Wed Apr 19 10:48:28 2006 From: dc0955 at gates.com (Dave Carr) Date: Wed, 19 Apr 2006 11:48:28 -0600 Subject: [kw-pm] unique Message-ID: <71157FC6AFED794AA91333926F0C23F031EAB6@EXMAIL2.ec.cf.com> Hmmm...how about %seen = (); @uniq = grep(++$seen{$_} == 2, @items); -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.pm.org/pipermail/kw-pm/attachments/20060419/c14e1719/attachment.html From john at perlwolf.com Wed Apr 19 13:36:03 2006 From: john at perlwolf.com (John Macdonald) Date: Wed, 19 Apr 2006 16:36:03 -0400 Subject: [kw-pm] unique In-Reply-To: <71157FC6AFED794AA91333926F0C23F031EAB6@EXMAIL2.ec.cf.com> References: <71157FC6AFED794AA91333926F0C23F031EAB6@EXMAIL2.ec.cf.com> Message-ID: <20060419203603.GM3826@lupus.perlwolf.com> On Wed, Apr 19, 2006 at 11:48:28AM -0600, Dave Carr wrote: > Hmmm...how about > > > > %seen = (); > > @uniq = grep(++$seen{$_} == 2, @items); That works fine as long as the original (apparent) intent of not creating an extra hash as big as the array was not actually important. (The extra space would rarely be important in practice.) -- From daniel at coder.com Wed Apr 19 15:19:30 2006 From: daniel at coder.com (Daniel R. Allen) Date: Wed, 19 Apr 2006 18:19:30 -0400 (EDT) Subject: [kw-pm] Perl Journal: Thank you Message-ID: [We're now the proud owners of all 20 (21?) issues of The Perl Journal, currently sitting at my parents' house, but soon to be retrieved. They will be in the library...] For those who signed the certificate last month, a note from the recipient: ---------- Forwarded message ---------- Date: Wed, 19 Apr 2006 12:41:19 -0400 From: R. Mariotti To: Daniel R. Allen Subject: Thank you... I would like to thank you and the K-W Perl Mongers for the certificate created. It will adorn my tech wall (along with my other post-it notes). I sincerely hope some of the original TPJ's are somewhat interesting to your group. Thanks again and good luck. Bob Mariotti Hartford (CT) PM Eastern CT Linux Users Group From daniel at coder.com Thu Apr 20 21:30:25 2006 From: daniel at coder.com (Daniel R. Allen) Date: Fri, 21 Apr 2006 00:30:25 -0400 (EDT) Subject: [kw-pm] AJAX recap Message-ID: A big thanks to Cees for coming down to give us the scoop on performing AJAX magick via Perl. I expect I'll find some excuse to use Prototype and json, hopefully soon. Cees says he's joined our list, so if you have AJAX/js questions, I expect we can find one or more people (& arguile? dnm?) who can help out. I've added a link to Cees's to.pm slides on our wiki: http://kw.pm.org/wiki/index.cgi?PastMeetings ...and in due time, he's said he'll give us the slides from our talk, which I'll get onto our server too. Once again, thanks Cees; for everything but possibly except for the blink-tag^W flashing text.. :) And thanks for the Semi-Anonymous Pizza; and to everyone for showing up. 'till next month or sooner, -Daniel p.s.- once again, in addition to the list, some of us hang out in IRC; irc.perl.org channel #uc. Feel free to join. From ceeshek at gmail.com Thu Apr 20 22:24:08 2006 From: ceeshek at gmail.com (Cees Hek) Date: Fri, 21 Apr 2006 01:24:08 -0400 Subject: [kw-pm] AJAX recap In-Reply-To: References: Message-ID: Hi Daniel, I found my way home in a little over 2 hours, so it wasn't as bad as I thought. I think it takes me almost as long to get to the TPM meetings downtown Toronto :). Thanks for letting me come out and blather on about AJAX. I had a good time, and hopefully I'll be able to make it out to another meeting some time in the future. I'll package up all the code samples, and slides sometime soon and send them your way. And if anyone does have any questions, shout them out, and I'll see if I can help out. Cheers and thanks again, Cees On 4/21/06, Daniel R. Allen wrote: > A big thanks to Cees for coming down to give us the scoop on performing > AJAX magick via Perl. I expect I'll find some excuse to use Prototype and > json, hopefully soon. Cees says he's joined our list, so if you have > AJAX/js questions, I expect we can find one or more people (& arguile? > dnm?) who can help out. > > I've added a link to Cees's to.pm slides on our wiki: > http://kw.pm.org/wiki/index.cgi?PastMeetings > > ...and in due time, he's said he'll give us the slides from our talk, > which I'll get onto our server too. > > Once again, thanks Cees; for everything but possibly except for the > blink-tag^W flashing text.. :) > > And thanks for the Semi-Anonymous Pizza; and to everyone for showing up. > 'till next month or sooner, > > -Daniel > > p.s.- once again, in addition to the list, some of us hang out in IRC; > irc.perl.org channel #uc. Feel free to join. > > _______________________________________________ > kw-pm mailing list > kw-pm at pm.org > http://mail.pm.org/mailman/listinfo/kw-pm > From dc0955 at gates.com Fri Apr 21 07:05:34 2006 From: dc0955 at gates.com (Dave Carr) Date: Fri, 21 Apr 2006 08:05:34 -0600 Subject: [kw-pm] AJAX recap Message-ID: <71157FC6AFED794AA91333926F0C23F031ECF0@EXMAIL2.ec.cf.com> Cees, Great talk, you will have to come back again soon :) I'm jumping the gun, because I've just started to look at prototype, but I was wondering... Do you have a simple example like your google suggest, but where all the data is already at the browser in a javascript data object? Ajax without the ajax ;) - Lloyd -----Original Message----- From: kw-pm-bounces+dc0955=gates.com at pm.org [mailto:kw-pm-bounces+dc0955=gates.com at pm.org] On Behalf Of Cees Hek Sent: Friday, April 21, 2006 1:24 AM To: Daniel R. Allen Cc: kw-pm at mail.pm.org Subject: Re: [kw-pm] AJAX recap Hi Daniel, I found my way home in a little over 2 hours, so it wasn't as bad as I thought. I think it takes me almost as long to get to the TPM meetings downtown Toronto :). Thanks for letting me come out and blather on about AJAX. I had a good time, and hopefully I'll be able to make it out to another meeting some time in the future. I'll package up all the code samples, and slides sometime soon and send them your way. And if anyone does have any questions, shout them out, and I'll see if I can help out. Cheers and thanks again, Cees On 4/21/06, Daniel R. Allen wrote: > A big thanks to Cees for coming down to give us the scoop on performing > AJAX magick via Perl. I expect I'll find some excuse to use Prototype and > json, hopefully soon. Cees says he's joined our list, so if you have > AJAX/js questions, I expect we can find one or more people (& arguile? > dnm?) who can help out. > > I've added a link to Cees's to.pm slides on our wiki: > http://kw.pm.org/wiki/index.cgi?PastMeetings > > ...and in due time, he's said he'll give us the slides from our talk, > which I'll get onto our server too. > > Once again, thanks Cees; for everything but possibly except for the > blink-tag^W flashing text.. :) > > And thanks for the Semi-Anonymous Pizza; and to everyone for showing up. > 'till next month or sooner, > > -Daniel > > p.s.- once again, in addition to the list, some of us hang out in IRC; > irc.perl.org channel #uc. Feel free to join. > > _______________________________________________ > kw-pm mailing list > kw-pm at pm.org > http://mail.pm.org/mailman/listinfo/kw-pm > _______________________________________________ kw-pm mailing list kw-pm at pm.org http://mail.pm.org/mailman/listinfo/kw-pm From ceeshek at gmail.com Fri Apr 21 07:43:01 2006 From: ceeshek at gmail.com (Cees Hek) Date: Fri, 21 Apr 2006 10:43:01 -0400 Subject: [kw-pm] AJAX recap In-Reply-To: <71157FC6AFED794AA91333926F0C23F031ECEE@EXMAIL2.ec.cf.com> References: <71157FC6AFED794AA91333926F0C23F031ECEE@EXMAIL2.ec.cf.com> Message-ID: On 4/21/06, Dave Carr wrote: > I'm jumping the gun, because I've just started to look at prototype, but > I was wondering... Do you have a simple example like your google > suggest, but where all the data is already at the browser in a > javascript data object? Ajax without the ajax ;) I don't have my own example of using local data for the autocompleter, but there is an example with code on the script.aculo.us website: http://wiki.script.aculo.us/scriptaculous/show/Autocompleter.Local


Although I haven't tried it, you should be able to paste that into an HTML page, load the prototype.js and scriptaculous.js libraries in the page, and it should work. And generally you would just populate that list dynamically on the server Cheers, Cees From daniel at coder.com Sat Apr 22 10:27:38 2006 From: daniel at coder.com (Daniel R. Allen) Date: Sat, 22 Apr 2006 13:27:38 -0400 (EDT) Subject: [kw-pm] AJAX and Back Buttons Message-ID: Yesterday Eric posted this in the IRC channel; I just read it and it's worth making sure it makes it back to the list: There seems to be a reasonable way to manipulate the page history so the back button works under AJAX. Reasonably lightweight. Uses labels (the '#' notation as part of URL) so bookmarks will work. Includes storage of additional data (JSON-formatted) within a hidden iframe. http://www.onjava.com/pub/a/onjava/2005/10/26/ajax-handling-bookmarks-and-back-button.html The first demo (on page 4) populates the back-button with AJAX-specified 'pages'. Pretty cool. But I think this offers a big security hole: a malicioius page could grab the appearance of the referer page, and modify the links to submit to their own server (maybe proxying everything to the real page to keep the spoof going). So, only detected by noticing the URL is wrong. I believe this was possible before with javascript, but AJAX makes it easy to do the proxying in the background while you're on the malicious page, so you might not notice it's been diverted when you go back. -Daniel From rdice at pobox.com Wed Apr 26 16:07:13 2006 From: rdice at pobox.com (Richard Dice) Date: Wed, 26 Apr 2006 19:07:13 -0400 Subject: [kw-pm] Update on MJD talk (Sat 13 May 2006, afternoon) Message-ID: <444FFD21.1090500@pobox.com> Hi everyone, Here are a few updates on the MJD talk plans. (Yes, I'm still busting my hump for this!) MJD has bought his plane tickets! If that doesn't say that the talk is a go then nothing does! He'll arrive the morning of Friday 12th May and return to Philly the morning of Sunday 14th May. As previously mentioned many times, the talk will be the afternoon of Saturday 13th May. For all who are interested we'll get out for dinner/pubbing after that, too. There might be time for random other group socialization as well; I'll be sure to email the list if anything comes together. MJD wanted to pass along his thanks for receiving a *lot* of code contributions. (My thanks to everyone, too.) I believe he told me that it was the most he's received from any PM group thus far on the "Flag book tour." (Btw, in case anyone is interested in seeing where he's been and where he'll be going on the tour, you can see the list he's keeping at: http://perl.plover.com/flagbook/tour.html ) Of course, the info that everyone is waiting for is the precise time/place of the talk. Equally of course, I don't quite have that entirely worked out just yet. :-) I have leads with both Seneca/York and U. Toronto I'm pursuing. The time window is for the start to be around 1-2pm and end about 4 hours later. Venue availability will play a part in what the final times work out to be. The talks: 1) The custom-built "red flag" talk using the example provided by the currently-mysterious TPM member, about 2 hours 2) "Perl Contains the Lambda Calculus (How to write a 163 line program to compute 1 + 1)" -- about 90 minutes; a fitting homage to his recent book "Higher Order Perl". (Maybe I'll finally understand the Y-combinator after this talk!) 3) ??? don't know yet. I'm asking him to pick a "fun talk" talk at random for another 1/2 hour. Maybe two 15 minute ones. His choice. Regarding donations, yes, there is still room to donate! (Translation: we're not there yet.) I'll be at the TPM meeting tomorrow (Thursday) night with my receipt book for anyone who'd like to contribute then, and of course I'll bring it to the afternoon of the event as well. If anyone is interested in donating via PayPal you can check out the web page that TPM regular Fulko Hew set up for the trip: http://hew.ca/ Thanks everyone. When I have the venue & time details finally nailed down I'll get them to the list. Looking forward to seeing you tomorrow night as well as on May 13th! Cheers, Richard