From dave.waddell at mci.com Fri Dec 5 15:43:24 2003 From: dave.waddell at mci.com (David R. Waddell) Date: Thu Aug 5 00:18:28 2004 Subject: Symbolic reference for oo method Message-ID: <5.2.0.9.0.20031205143516.028ab438@pop.mcilink.com> Hi All, Does anyone know off the top of their head whether symbolic references work for oo methods? I want to read a line from an tab-delimited table and call a routine like this: $self->&{$column_text}(param1, param2); so that if the text is 'LD', I would call this routine using oo dispatch: $self->LD(param1,param2); I couldn't find anything in the perl documentation about whether this would work. all the best, David From nagler at bivio.biz Fri Dec 5 16:16:38 2003 From: nagler at bivio.biz (Rob Nagler) Date: Thu Aug 5 00:18:28 2004 Subject: Symbolic reference for oo method In-Reply-To: <5.2.0.9.0.20031205143516.028ab438@pop.mcilink.com> References: <5.2.0.9.0.20031205143516.028ab438@pop.mcilink.com> Message-ID: <16337.966.853381.928422@jump.bivio.com> David R. Waddell writes: > $self->&{$column_text}(param1, param2); $self->$column_text(param1, ...); Rob From dave.waddell at mci.com Fri Dec 5 16:47:47 2003 From: dave.waddell at mci.com (David R. Waddell) Date: Thu Aug 5 00:18:28 2004 Subject: Symbolic reference for oo method In-Reply-To: <5.2.0.9.0.20031205143516.028ab438@pop.mcilink.com> Message-ID: <5.2.0.9.0.20031205153937.028c8a08@pop.mcilink.com> All, I tried it out. Trying to use symbolic refs directly didn't work. However, this does work: Script TryOut: #!/usr/local/bin/perl use warnings; use TryOut; $tryer = new TryOut(); $Routine = "LD"; &$Routine; sub LD{ $tryer->LD } It dispatched to a parent class or TryOut: /fraud/user/dwaddell/TryOut TryOut Called Generic LD To do this it looks like you have to put in an extra dispatch using a symbolic reference. At least all the attempts I tried besides this way didn't work. David At 14:43 12/5/2003, David R. Waddell wrote: >Hi All, >Does anyone know off the top of their head whether >symbolic references work for oo methods? > >I want to read a line from an tab-delimited table and call >a routine like this: > >$self->&{$column_text}(param1, param2); > >so that if the text is 'LD', I would call this >routine using oo dispatch: > >$self->LD(param1,param2); > >I couldn't find anything in the perl documentation about >whether this would work. > >all the best, >David From dave.waddell at mci.com Fri Dec 5 16:56:42 2003 From: dave.waddell at mci.com (David R. Waddell) Date: Thu Aug 5 00:18:28 2004 Subject: Symbolic reference for oo method In-Reply-To: <16337.966.853381.928422@jump.bivio.com> References: <5.2.0.9.0.20031205143516.028ab438@pop.mcilink.com> <5.2.0.9.0.20031205143516.028ab438@pop.mcilink.com> Message-ID: <5.2.0.9.0.20031205155533.00a590e0@pop.mcilink.com> Thanks Rob, I guess I was trying to make it too complicated. David At 15:16 12/5/2003, you wrote: >David R. Waddell writes: > > $self->&{$column_text}(param1, param2); > >$self->$column_text(param1, ...); > >Rob From timc+perl at divide.net Fri Dec 5 18:15:31 2003 From: timc+perl at divide.net (Tim Chambers) Date: Thu Aug 5 00:18:28 2004 Subject: Fw: Newsletter from O'Reilly UG Program, December 4 Message-ID: <000801c3bb8e$1daca630$fa06ee0f@CEPHAS> ---------------------------------------------------------------- Book News ---------------------------------------------------------------- -Dancing Barefoot -Mac OS X Unwired -The Best of The Joy of Tech ---------------------------------------------------------------- Upcoming Events ---------------------------------------------------------------- -O'Reilly at Macworld Conference & Expo, San Francisco, CA--January 6-9 ---------------------------------------------------------------- Conferences ---------------------------------------------------------------- -The Buzz from 2003 Emerging Technology Conference ---------------------------------------------------------------- News ---------------------------------------------------------------- -O'Reilly to Handle Distribution for Fellow Computer Book Publishers -Wil Wheaton to Write Three Books for O'Reilly -Free Exhibit Hall Pass for LinuxWorld Conference & Expo, New York, NY--January 21-23, 2004 -BIND DoS Attack -RouteWord: An Interesting Diversion -Introduction to the Peer-to-Peer Sockets Project -Java vs. .NET Security, Part 1 -Five XSLT Basics -Creating Your Own Code Snippets with Whidbey -Free Exhibit Hall Guest Pass for Macworld Conference & Expo, San Francisco, CA--January 6-9 -iPod as Digital Photographer's Best Friend -Collaborative Editing with Rendezvous -Animal ASCII Art--Do You Have Some? ================================================ Book News ================================================ Did you know you can request a free book to review for your group? Ask your group leader for more information. For book review writing tips and suggestions, go to: http://ug.oreilly.com/bookreviews.html Don't forget, you can receive 20% off any O'Reilly book you purchase directly from O'Reilly. Just use code DSUG when ordering online or by phone 800-998-9938. http://www.oreilly.com/ ***Free ground shipping is available for online orders of at least $29.95 that go to a single U.S. address. This offer applies to U.S. delivery addresses in the 50 states and Puerto Rico. For more details, go to: http://www.oreilly.com/news/freeshipping_0703.html ***Dancing Barefoot Order Number: 6748 Wil Wheaton--blogger, geek, and Star Trek: The Next Generation's Wesley Crusher--gives us five true tales of life, love, and the absurdities of Hollywood in "Dancing Barefoot." Far from the usual celebrity tell-all, "Dancing Barefoot" is a vivid, personal account of Wil's search for his true self. If you've ever fallen in love, attended a Star Trek convention, or pondered the meaning of life, you'll find a kindred soul in the pages of "Dancing Barefoot." http://www.oreilly.com/catalog/barefoot/ ***Mac OS X Unwired Order Number: 5083 "Mac OS X Unwired" is a one-stop, wireless information source for technically savvy Mac users. The book provides a complete introduction to all the wireless technologies supported by Mac OS X, including Wi-Fi, infrared, Bluetooth, and GPRS. If you're considering wireless as an alternative to cable and DSL, or using wireless to network computers in your home, office, or on the road, this book will show you the full-spectrum view of the wireless capabilities of Mac OS X, and how to get the most out of them. http://www.oreilly.com/catalog/macxunwire/ Chapter 4, "Wi-Fi on the Road," is available online: http://www.oreilly.com/catalog/macxunwire/chapter/index.html ***The Best of The Joy of Tech Order Number: 5784 Frustrated and frazzled by technology? Or perhaps your cynicism is starting to wane? This book is a collection of the very best from The Joy of Tech online series. It also features several new, never-before-seen comics, exclusive notes from the artists about their work, an appendix of the JoyPolls, a lexicon of JoyWords, and an introduction by David Pogue. "The Best of The Joy of Tech" is an oasis of top-notch humor and images sure to refresh the mind's page and reboot the will to live. http://www.oreilly.com/catalog/bestjoytech/ ================================================ Upcoming Events ================================================ ***For more events, please see: http://events.oreilly.com/ ***O'Reilly at Macworld Conference & Expo, San Francisco, CA--January 6-9 In addition to all of our fabulous new Mac titles, authors David Pogue ("Missing Manual Series," and Derrick Story ("iPhoto 2: The Missing Manual," "Digital Video Pocket Guide," and "Digital Photography Pocket Guide") will grace our booth with presentations during the show. We are in booth #2143 this year. Moscone Convention Center San Francisco, CA http://macworldexpo.com/macworldexposf/V40/index.cvn ================================================ Conference News ================================================ ***The Buzz from 2003 Emerging Technology Conference Check out the O'Reilly Network's news coverage and blogs from the 2003 Emerging Technology Conference to help you decide for 2004. http://www.oreillynet.com/et2003/ You can also download presentation and multimedia files from 2003. http://conferences.oreillynet.com/pub/w/22/presentations.html The 2004 O'Reilly Emerging Technology Conference February 9-12, 2004 Westin Horton Plaza San Diego San Diego, CA 92101 http://conferences.oreilly.com/etech/ User Group members who register before January 9, 2004 get a double discount. Use code DSUG when you register, and receive 20% off the "Early Bird" price. To register for the conference, go to: http://conferences.oreillynet.com/pub/w/28/register.html ================================================ News From O'Reilly & Beyond ================================================ --------------------- General News --------------------- ***O'Reilly to Handle Distribution for Fellow Computer Book Publishers We will be providing distribution, sales, and fulfillment services for three other leading independent publishers--No Starch Press, Paraglyph Press, and Syngress Publishing--starting January 1, 2004. We'll be sending UGs information and review copies for our new partners. For more information check out our press release: http://press.oreilly.com/pub/pr/1124 Here's a recent article from our local newspaper, "The Press Democrat": http://www.pressdemocrat.com/business/news/03oreilly_e1.html ***Wil Wheaton to Write Three Books for O'Reilly Any honest computer geek will admit that his obsessive coding is, at heart, a futile attempt to create a world as cool as those depicted in science fiction. New evidence of the symbiotic relationship between Sci Fi and geekdom surfaced, as O'Reilly, the geek publisher-of-record, announced plans to publish three books by Wil Wheaton, blogger, geek, and the actor who portrayed Wesley Crusher on Star Trek: The Next Generation. Wil's first two books, "Dancing Barefoot" and "Just a Geek," are almost unbearably honest tales of life, love, and the rigors of being an ensign on the Starship Enterprise. Take a look at Wil's December 2 blog announcement: http://wilwheaton.net/ And you can read our press release: http://press.oreilly.com/pub/pr/1125 --------------------- Open Source --------------------- ***Free Exhibit Hall Pass for LinuxWorld Conference & Expo, New York, NY--January 21-23, 2004 Register online with Priority Code PC0260 by December 19, 2004 http://www.linuxworldexpo.com ***BIND DoS Attack Noel Davis looks at a denial-of-service attack against BIND and problems in KDE, GnuPG, screen, Ethereal, FreeRadius, mod_gzip, Pan, detecttr, OpenCA, EPIC, and libnids. http://linux.oreillynet.com/pub/a/linux/2003/12/01/insecurities.html ***RouteWord: An Interesting Diversion Graphs--loosely connected, unordered collections of nodes--are highly important to computer science. Visualizing graphs is even more important: think of maps, routes, webs, and any other interconnected relationships. O'Reilly author Andrew Odewahn explains how he accidentally created a new type of word puzzle while playing around with graph visualization. http://www.onlamp.com/pub/a/onlamp/2003/11/26/routewords.html Throughout the month of December, we're running daily RouteWord puzzles from Andrew Odewahn. Here's today's puzzle: http://www.onlamp.com/pub/a/onlamp/2003/12/routeword/index.html --------------------- Java --------------------- ***Introduction to the Peer-to-Peer Sockets Project The Peer-to-Peer Sockets project reimplements Java's standard Socket, ServerSocket, and InetAddress classes to work on the JXTA peer-to-peer network rather than on the standard TCP/IP network. Brad Neuberg shows how to configure and set up the P2P Socket libraries to run on your system, how to create and run P2P server and client sockets, and how to work with the P2P InetAddress class, and discusses security issues and limitations in the framework. http://www.onjava.com/pub/a/onjava/2003/12/03/p2psockets.html ***Java vs. .NET Security, Part 1 Java and .NET address similar code security issues, but which one offers the best security implementation? Denis Piliptchouk's series starts with a side-by-side look at how each performs configuration, code verification, and memory isolation. http://www.onjava.com/pub/a/onjava/2003/11/26/javavsdotnet.html --------------------- XML --------------------- ***Five XSLT Basics This article by Michael Fitzgerald introduces newbies to the five basics of XSLT 1.0, from what it is to how to get it to work--information you'll also find in the first chapter of Michael's book, "Learning XSLT." http://www.xml.com/pub/a/2003/11/26/learnXSLT.html Learning XSLT Order Number: 3277 http://www.oreilly.com/catalog/learnxslt/index.html --------------------- .NET --------------------- ***Creating Your Own Code Snippets with Whidbey One of the new features found in Visual Studio .NET Whidbey is Insert Snippets. The Insert Snippets feature allows you to insert commonly-used code blocks into your project, thereby improving the efficiency of your development process. Wei-Meng Lee shows you how to add your own snippets to Whidbey. http://www.ondotnet.com/pub/a/dotnet/2003/12/01/whidbeysnippets.html --------------------- Mac --------------------- ***Free Exhibit Hall Guest Pass for Macworld Conference & Expo, San Francisco, CA--January 6-9 Register online by December 8 with Priority code PC0211 http://www.macworldexpo.com ***iPod as Digital Photographer's Best Friend Yes, the iPod can store thousands of songs. But now you can use it to upload thousands of pictures too, directly from the memory card. And thanks to Panther, that's only the beginning of what is sure to become an indispensable tool for many digital photographers. http://www.macdevcenter.com/pub/a/mac/2003/12/02/photo_ipod.html ***Collaborative Editing with Rendezvous Apple's adoption of Zeroconf networking (branded as "Rendezvous") has opened the door to new ways of sharing information on local networks. In this article, Wei Meng Lee shows you how to use two collaborative editing tools: SubEthaEdit and iStorm. http://www.macdevcenter.com/pub/a/mac/2003/12/02/rendezvous.html --------------------- Fun --------------------- ***Animal ASCII Art--Do You Have Some? If you are an artist with you keyboard, please let me know. I am looking for ASCII versions of our famous O'Reilly animals. Please send an email to marsee@oreilly.com with your original rendition. Until next time-- Marsee From ssmythe at docent.com Mon Dec 8 15:45:01 2003 From: ssmythe at docent.com (Steve Smythe) Date: Thu Aug 5 00:18:28 2004 Subject: download files and display page? Message-ID: <3761480C61979B438A2605C00F8298BD0B9383@SLV-EXCH1.docent.com> I'm trying to set up a file download app that will allow the user to get a list of files, click on a link, have the file save dialog appear in the user's browser, then once the file download completes, have a confirmation page displayed. Can anyone recommend how to do this? Steve -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.pm.org/archives/pikes-peak-pm/attachments/20031208/278d9776/attachment.htm From hierophant at pcisys.net Wed Dec 10 11:06:00 2003 From: hierophant at pcisys.net (Keary Suska) Date: Thu Aug 5 00:18:28 2004 Subject: download files and display page? In-Reply-To: <3761480C61979B438A2605C00F8298BD0B9383@SLV-EXCH1.docent.com> Message-ID: on 12/8/03 2:45 PM, ssmythe@docent.com purportedly said: > I'm trying to set up a file download app that will > allow the user to get a list of files, click on a link, > have the file save dialog appear in the user's > browser, then once the file download completes, > have a confirmation page displayed. > > Can anyone recommend how to do this? I don't think it's technically possible. You could try sending the download with a 302 status, but I am not sure how that behavior is defined by the HTTP spec, and how browsers would handle it. You can do the reverse order--display page then download--using a meta-refresah or JavaScript. A JavaScript may execute before a page is rendered, which may appear to happen first when it really doesn't. Putting your script before the tag should give you the earliest execution. Best regards, Keary Suska Esoteritech, Inc. 1205 N Prospect Street Colorado Springs, CO 80903 (719) 473-6431 (719) 440-9952 (cell) From ssmythe at docent.com Wed Dec 10 13:17:37 2003 From: ssmythe at docent.com (Steve Smythe) Date: Thu Aug 5 00:18:28 2004 Subject: download files and display page? Message-ID: <3761480C61979B438A2605C00F8298BD0B9392@SLV-EXCH1.docent.com> Hi Keary, Based on everyone's response, I've come to the conclusion that I'm going to go the route of having a separate download script that is passed: http://www.foobar.com/download.pl/sid/skey/foo.exe And have the sid and skey (session id and key) point to a session variable that has the full path to the file and then write the file to STDOUT in binmode (using the application/force-download mime-type), and then send an email when the file is finished transmitting. This way, I still get the confirmation I need and the list of file links still remains visible to the user. Thanks everyone for your help, Steve -----Original Message----- From: Keary Suska [mailto:hierophant@pcisys.net] Sent: Wednesday, December 10, 2003 9:06 AM To: Pikes Peak Perl Mongers Subject: Re: download files and display page? on 12/8/03 2:45 PM, ssmythe@docent.com purportedly said: > I'm trying to set up a file download app that will > allow the user to get a list of files, click on a link, > have the file save dialog appear in the user's > browser, then once the file download completes, > have a confirmation page displayed. > > Can anyone recommend how to do this? I don't think it's technically possible. You could try sending the download with a 302 status, but I am not sure how that behavior is defined by the HTTP spec, and how browsers would handle it. You can do the reverse order--display page then download--using a meta-refresah or JavaScript. A JavaScript may execute before a page is rendered, which may appear to happen first when it really doesn't. Putting your script before the tag should give you the earliest execution. Best regards, Keary Suska Esoteritech, Inc. 1205 N Prospect Street Colorado Springs, CO 80903 (719) 473-6431 (719) 440-9952 (cell)