From rkleeman at energoncube.net Thu Jul 1 16:02:50 2004 From: rkleeman at energoncube.net (Bob Kleemann) Date: Mon Aug 2 21:36:24 2004 Subject: [San-diego-pm] Santa Monica Job Offer (fwd) Message-ID: <20040701210250.GB1184@energoncube.net> If anyone is interested, please pursue with Nita Ryan, not me. ----- Forwarded message from Nita Ryan ----- From: "Nita Ryan" To: Subject: NEW! Our client, in Santa Monica, CA, wants to immediately fill three positions for web applications developers and/or Importance: Normal As our Software Engineer of Web Application Development you will:Our client, in Santa Monica, CA, wants to immediately fill three positions for web applications developers and/or web production engineers who have at least four years exp. with Perl and a little exp. with MOD PERL. These are high-paying long-term (open ended) contracts. Here is the job req from the hiring manager: As our Software Engineer you will: Develop core technology, including the design/architecture of new solutions, the refinement of existing code, and the optimization of dynamic web content Engineer and maintain web applications written in Object Oriented Perl, operating on a Linux/Apache/mod_perl platform Create systems and APIs for interfacing with open and proprietary network services and complex business logic/algorithms Develop systems and APIs for interfacing with partner companies And, you will have the following qualifications: 6+ years experience in software engineering, OOD/OOA/OOP 4+ years of Perl development Mod_perl, Apache, XML, HTML, and UNIX skills SQL, JavaScript, CSS, and DHTML desirable Software architecture skills (UML a plus) Strong debugging skills Experience with CVS or other revision control systems a plus Ability to work collaboratively in a shared code environment Excellent time management skills with proven success in meeting project deadlines If this interests you, please call me immediately for more information. Thanks, Nita Ryan Ryan Recruiting 16835 Algonquin St., Ste 613 Huntington Beach, CA 92649 Phone: (949) 362-2512 Ryan_Recruiting@Cox.Net ----- End forwarded message ----- From joel at fentin.com Wed Jul 14 23:52:37 2004 From: joel at fentin.com (Joel Fentin) Date: Mon Aug 2 21:36:24 2004 Subject: [San-diego-pm] Cookie problem Message-ID: <40F60D95.8020707@fentin.com> Using Apache personal server in my laptop (http://127.0.0.1) I run a perl script which creates a cookie in FireFox and then reads it. According to tools/options/cookies in FireFox, the cookies are made correctly. But the read cookie routine is always a cookie behind. It never reads the current cookie, but only the last (if there is a last cookie). I have also tried with $ENV{HTTP_COOKIE} and I get the same results. I tried a mess of variations but nothing works. What does it want? #=========================================================================== sub CreateCookie { my $SessionID = int(rand(99999999 - 10000000)+10000000);#generate 8 digit number my %hash; $hash{'SessionID'} = $SessionID; my $Buf = $co->cookie ( -name=>'ShopCart', -value=>\%hash, -expires=>'+30h' ); print $co->header(-cookie=>$Buf); print $SessionID; } #=========================================================================== sub ReadCookie { #reads value pairs in cookie called ShopCart my %Buff; %Buff = $co->cookie('ShopCart'); die map "$_ = $Buff{$_}\n", keys %Buff; } -- Joel Fentin tel: 760-749-8863 FAX: 760-749-8864 Contact me: http://fentin.com/me/ContactMe.html Biz: http://fentin.com Personal: http://fentin.com/me/ From chris_radcliff at mac.com Thu Jul 15 09:26:49 2004 From: chris_radcliff at mac.com (Chris Radcliff) Date: Mon Aug 2 21:36:24 2004 Subject: [San-diego-pm] Cookie problem In-Reply-To: <40F60D95.8020707@fentin.com> References: <40F60D95.8020707@fentin.com> Message-ID: <02441E5F-D66B-11D8-8CB4-00039301A6E2@mac.com> Hi Joel, Cookies are sent with the result of your request (in the headers) and read on the next request. The cookies you read on any given request will only be those set previously, so you'll want to keep track of the values internally as well. Cheers, ~chris On Jul 14, 2004, at 9:52 PM, Joel Fentin wrote: > Using Apache personal server in my laptop (http://127.0.0.1) I run a > perl script which creates a cookie in FireFox and then reads it. > According to tools/options/cookies in FireFox, the cookies are made > correctly. > > But the read cookie routine is always a cookie behind. It never reads > the current cookie, but only the last (if there is a last cookie). I > have also tried with $ENV{HTTP_COOKIE} and I get the same results. > > I tried a mess of variations but nothing works. What does it want? > > #====================================================================== > ===== > sub CreateCookie > { > my $SessionID = int(rand(99999999 - 10000000)+10000000);#generate 8 > digit number > my %hash; > $hash{'SessionID'} = $SessionID; > my $Buf = $co->cookie > ( > -name=>'ShopCart', > -value=>\%hash, > -expires=>'+30h' > ); > print $co->header(-cookie=>$Buf); > print $SessionID; > } > > #====================================================================== > ===== > sub ReadCookie > { > #reads value pairs in cookie called ShopCart > my %Buff; > %Buff = $co->cookie('ShopCart'); > die map "$_ = $Buff{$_}\n", keys %Buff; > } > > -- > Joel Fentin tel: 760-749-8863 FAX: 760-749-8864 > Contact me: http://fentin.com/me/ContactMe.html > Biz: http://fentin.com > Personal: http://fentin.com/me/ > > > > _______________________________________________ > San-diego-pm mailing list > San-diego-pm@pm.org > http://www.pm.org/mailman/listinfo/san-diego-pm From joel at fentin.com Thu Jul 15 16:51:14 2004 From: joel at fentin.com (Joel Fentin) Date: Mon Aug 2 21:36:24 2004 Subject: [San-diego-pm] Cookie problem In-Reply-To: <02441E5F-D66B-11D8-8CB4-00039301A6E2@mac.com> References: <40F60D95.8020707@fentin.com> <02441E5F-D66B-11D8-8CB4-00039301A6E2@mac.com> Message-ID: <40F6FC52.2080600@fentin.com> Chris Radcliff wrote: > Hi Joel, > > Cookies are sent with the result of your request (in the headers) and > read on the next request. The cookies you read on any given request > will only be those set previously, so you'll want to keep track of the > values internally as well. > > Cheers, > ~chris I have read and and re-read the above, and I don't get it. 1. Are you saying I can't set the cookie and then check for its existence? 2. My understanding is that a common way to learn if cookies are disabled in a browser is by setting one and then reading it. 3. You did not say there was an error in my code. 4. I am still stuck at this point. -- Joel Fentin tel: 760-749-8863 FAX: 760-749-8864 Contact me: http://fentin.com/me/ContactMe.html Biz: http://fentin.com Personal: http://fentin.com/me/ From mattbrown.lists at lamphost.net Thu Jul 15 17:11:13 2004 From: mattbrown.lists at lamphost.net (Matt Brown) Date: Mon Aug 2 21:36:24 2004 Subject: [San-diego-pm] Cookie problem In-Reply-To: <40F6FC52.2080600@fentin.com> References: <40F60D95.8020707@fentin.com> <02441E5F-D66B-11D8-8CB4-00039301A6E2@mac.com> <40F6FC52.2080600@fentin.com> Message-ID: <200407151511.13964.mattbrown.lists@lamphost.net> > 1. Are you saying I can't set the cookie and then check for its existence? Correct. You can't check for it's existence during the same http request. > 2. My understanding is that a common way to learn if cookies are > disabled in a browser is by setting one and then reading it. To do this you need to set the cookie, then redirect to a new url, and then check for it's existence. -- Matt Brown LAMP Host From rkleeman at energoncube.net Thu Jul 15 17:15:40 2004 From: rkleeman at energoncube.net (Bob Kleemann) Date: Mon Aug 2 21:36:24 2004 Subject: [San-diego-pm] Cookie problem In-Reply-To: <40F6FC52.2080600@fentin.com> References: <40F60D95.8020707@fentin.com> <02441E5F-D66B-11D8-8CB4-00039301A6E2@mac.com> <40F6FC52.2080600@fentin.com> Message-ID: <20040715221540.GA15613@energoncube.net> Joel, Whever you check cookies, you are checking to see whatever cookies the browser sent when it made the current request. Since you are setting a cookie on the current request, the browser didn't send it already and you cannot check it's current value. The way a cookie check typically works is you set a cookie and tell the browser to make another request. On that second request, you check to see if the cookie was set, and if not you tell the user to enable cookies (or whatever action is appropriate). Does this make sense? On Thu, Jul 15, 2004 at 02:51:14PM -0700, Joel Fentin wrote: > Chris Radcliff wrote: > >Hi Joel, > > > >Cookies are sent with the result of your request (in the headers) and > >read on the next request. The cookies you read on any given request > >will only be those set previously, so you'll want to keep track of the > >values internally as well. > > > >Cheers, > >~chris > > I have read and and re-read the above, and I don't get it. > > 1. Are you saying I can't set the cookie and then check for its existence? > > 2. My understanding is that a common way to learn if cookies are > disabled in a browser is by setting one and then reading it. > > 3. You did not say there was an error in my code. > > 4. I am still stuck at this point. > > -- > Joel Fentin tel: 760-749-8863 FAX: 760-749-8864 > Contact me: http://fentin.com/me/ContactMe.html > Biz: http://fentin.com > Personal: http://fentin.com/me/ > > _______________________________________________ > San-diego-pm mailing list > San-diego-pm@pm.org > http://www.pm.org/mailman/listinfo/san-diego-pm From cameronc at mindspring.com Thu Jul 15 18:03:15 2004 From: cameronc at mindspring.com (Cameron Childress) Date: Mon Aug 2 21:36:25 2004 Subject: [San-diego-pm] Cookie problem In-Reply-To: <40F6FC52.2080600@fentin.com> Message-ID: > 1. Are you saying I can't set the cookie and then check for its existence? In each web page request, the browser sends along information such as what page it's requesting, what type of browser it is, what the referrer was, and any cookies set for that domain. When the webserver responds, it has the opportunity to send back data too, including the content of the page, and other HTTP headers, cookies being a type of HTTP header. So the transaction would have to go like this: 1) Browser requests page from your server 2) Server sends back page, plus one HTTP cookie header 3) Browser requests another page (or is redirected to another page) and sends the cookie back with the request. 4) Server receives the request (which now includes cookie data) and processes it accordingly. > 2. My understanding is that a common way to learn if cookies are > disabled in a browser is by setting one and then reading it. As several people have said, you can't do that without two separate requests. In a login situation where you need to track state after login, I typically set the cookie on the page containing the login form, and attempt to read it in the login script itself. This process can be done with anything where you know the session has to start being tracked when X happens (add to cart, select options, or login). You can also issue an HTTP or meta redirect and force the user to hit the server a second time. I usually don't favor this option for high volume sites because of the increased traffic it generates. Most sites, however, are not high volume. -Cameron ----------------- Cameron Childress Sumo Consulting Inc http://www.sumoc.com --- land: 858.509.3098 cell: 678.637.5072 aim: cameroncf email: cameronc@mindspring.com > -----Original Message----- > From: san-diego-pm-bounces@pm.org [mailto:san-diego-pm-bounces@pm.org]On > Behalf Of Joel Fentin > Sent: Thursday, July 15, 2004 2:51 PM > To: Chris Radcliff > Cc: San Diego Perl Mongers > Subject: Re: [San-diego-pm] Cookie problem > > > Chris Radcliff wrote: > > Hi Joel, > > > > Cookies are sent with the result of your request (in the headers) and > > read on the next request. The cookies you read on any given request > > will only be those set previously, so you'll want to keep track of the > > values internally as well. > > > > Cheers, > > ~chris > > I have read and and re-read the above, and I don't get it. > > 1. Are you saying I can't set the cookie and then check for its existence? > > 2. My understanding is that a common way to learn if cookies are > disabled in a browser is by setting one and then reading it. > > 3. You did not say there was an error in my code. > > 4. I am still stuck at this point. > > -- > Joel Fentin tel: 760-749-8863 FAX: 760-749-8864 > Contact me: http://fentin.com/me/ContactMe.html > Biz: http://fentin.com > Personal: http://fentin.com/me/ > > _______________________________________________ > San-diego-pm mailing list > San-diego-pm@pm.org > http://www.pm.org/mailman/listinfo/san-diego-pm > From merlyn at stonehenge.com Thu Jul 15 18:14:32 2004 From: merlyn at stonehenge.com (Randal L. Schwartz) Date: Mon Aug 2 21:36:25 2004 Subject: [San-diego-pm] Cookie problem In-Reply-To: <40F60D95.8020707@fentin.com> References: <40F60D95.8020707@fentin.com> Message-ID: <86zn60yiav.fsf@blue.stonehenge.com> >>>>> "Joel" == Joel Fentin writes: Joel> But the read cookie routine is always a cookie behind. It never reads Joel> the current cookie, but only the last (if there is a last cookie). I Joel> have also tried with $ENV{HTTP_COOKIE} and I get the same results. Don't keep updating cookies! Just brand the browser... http://www.stonehenge.com/merlyn/WebTechniques/col61.html -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 Perl/Unix/security consulting, Technical writing, Comedy, etc. etc. See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training! From joel at fentin.com Mon Jul 19 00:15:30 2004 From: joel at fentin.com (Joel Fentin) Date: Mon Aug 2 21:36:25 2004 Subject: [San-diego-pm] Cookie problem In-Reply-To: <86zn60yiav.fsf@blue.stonehenge.com> References: <40F60D95.8020707@fentin.com> <86zn60yiav.fsf@blue.stonehenge.com> Message-ID: <40FB58F2.4040508@fentin.com> Randal L. Schwartz wrote: >>>>>>"Joel" == Joel Fentin writes: > > > Joel> But the read cookie routine is always a cookie behind. It never reads > Joel> the current cookie, but only the last (if there is a last cookie). I > Joel> have also tried with $ENV{HTTP_COOKIE} and I get the same results. > > Don't keep updating cookies! Just brand the browser... > > http://www.stonehenge.com/merlyn/WebTechniques/col61.html Thank you all. I "get" it. The above link was especially interesting to me. -- Joel Fentin tel: 760-749-8863 FAX: 760-749-8864 Contact me: http://fentin.com/me/ContactMe.html Biz: http://fentin.com Personal: http://fentin.com/me/ From dpalmer at accelrys.com Mon Jul 19 12:15:47 2004 From: dpalmer at accelrys.com (Douglas Palmer) Date: Mon Aug 2 21:36:25 2004 Subject: [San-diego-pm] New guy Message-ID: Hi, I'm new to San Diego area but not particularly new to Perl. I see from the San Diego.pm web site that there should be a meeting tomorrow but it doesn't say where. Can somebody point me in the right direction? Doug Palmer Software Build Engineer Accelrys 9685 Scranton Road San Diego, CA 92121 www.accelrys.com 858.799.5563 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.pm.org/pipermail/san-diego-pm/attachments/20040719/e8db3047/attachment.htm From rkleeman at energoncube.net Mon Jul 19 13:17:27 2004 From: rkleeman at energoncube.net (Bob Kleemann) Date: Mon Aug 2 21:36:25 2004 Subject: [San-diego-pm] New guy In-Reply-To: References: Message-ID: <20040719181727.GC3635@energoncube.net> Hi Doug, and welcome to San Diego. I'm glad you asked about the meeting tommorow evening. There is a meeting tommorow at Callahan's in Mira Mesa (http://www.callahanspub.com/). It should start about 7PM. Come on by and introduce yourself. Everyone who is planning to attend, please RSVP to me and let me know if you need any help getting there. On Mon, Jul 19, 2004 at 10:15:47AM -0700, Douglas Palmer wrote: > Hi, > > I'm new to San Diego area but not particularly new to Perl. I see from the > San Diego.pm web site that there should be a meeting tomorrow but it > doesn't say where. Can somebody point me in the right direction? > > Doug Palmer > Software Build Engineer > Accelrys > 9685 Scranton Road > San Diego, CA 92121 > www.accelrys.com > 858.799.5563 > _______________________________________________ > San-diego-pm mailing list > San-diego-pm@pm.org > http://www.pm.org/mailman/listinfo/san-diego-pm From rkleeman at energoncube.net Tue Jul 20 17:21:29 2004 From: rkleeman at energoncube.net (Bob Kleemann) Date: Mon Aug 2 21:36:25 2004 Subject: [San-diego-pm] Wil Wheaton at Mysterious Galaxy Books, San Diego--Aug 21 (fwd) Message-ID: <20040720222129.GA22513@energoncube.net> This is something that might be interesting. ----- Forwarded message from Marsee Henon ----- Hello Bob, Thought you might want to share the following with your members. Wil Wheaton Signs "Just a Geek" Saturday, August 21, 1:30 PM at Mysterious Galaxy Books 7051 Clairemont Mesa Blvd, Suite 302 San Diego, CA 92111 http://www.mystgalaxy.com This is a ticketed event; tickets for the signing are available with purchase of "Just a Geek" from Mysterious Galaxy. --Marsee ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Marsee Henon O'Reilly 1005 Gravenstein Highway North Sebastopol, CA 95472 707-827-7103 800-998-9938 Fax 707-829-0104 marsee@oreilly.com http://ug.oreilly.com/ http://www.oreilly.com/ http://conferences.oreilly.com/ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ----- End forwarded message ----- From Dirk at finches.com Thu Jul 29 11:28:34 2004 From: Dirk at finches.com (Dirk2) Date: Mon Aug 2 21:36:25 2004 Subject: [San-Diego-pm] Mason Message-ID: <1091118514.17431.111.camel@localhost.localdomain> Perl Mongers, I'm trying to use the Mason module. I went to CPAN and loaded it, and it seemed to load OK- installed without errors, and it's here: /usr/lib/perl5/site_perl/5.8.0/HTML/Mason.pm But now my script can't find it. Here's the httpd error entries from log: [Thu Jul 29 12:11:11 2004] [error] [client 127.0.0.1] Premature end of script headers: mason.pl [Thu Jul 29 12:11:11 2004] [error] [client 127.0.0.1] Can't locate HTML/Mason.pm in @INC (@INC contains: /usr/lib/perl5/5.8.0/i386-linux-thread-multi /usr/lib/perl5/5.8.0 /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.0 /usr/lib/perl5/vendor_perl /usr/lib/perl5/5.8.0/i386-linux-thread-multi /usr/lib/perl5/5.8.0 .) at /var/www/cgi-bin/mason.pl line 5. [Thu Jul 29 12:11:11 2004] [error] [client 127.0.0.1] BEGIN failed--compilation aborted at /var/www/cgi-bin/mason.pl line 5. From cabney at ucsd.edu Thu Jul 29 22:23:08 2004 From: cabney at ucsd.edu (C. Abney) Date: Mon Aug 2 21:36:25 2004 Subject: [San-Diego-pm] Mason In-Reply-To: <1091118514.17431.111.camel@localhost.localdomain> References: <1091118514.17431.111.camel@localhost.localdomain> Message-ID: <1091157788.5562.51.camel@vespa> On Thu, 2004-07-29 at 09:28, Dirk2 wrote: > Perl Mongers, > > > I'm trying to use the Mason module. I went to CPAN and loaded it, and > it seemed to load OK- installed without errors, and it's here: > > /usr/lib/perl5/site_perl/5.8.0/HTML/Mason.pm > > But now my script can't find it. > Here's the httpd error entries from log: > [Thu Jul 29 12:11:11 2004] [error] [client 127.0.0.1] Can't locate > HTML/Mason.pm in @INC ^ ^^^ > at /var/www/cgi-bin/mason.pl line 5. You haven't given us the minimal bit of script to reproduce the error. So what does line five look like? Yours, Charles -- -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 307 bytes Desc: This is a digitally signed message part Url : http://mail.pm.org/pipermail/san-diego-pm/attachments/20040729/f654f345/attachment.bin From Dirk at finches.com Thu Jul 29 18:19:13 2004 From: Dirk at finches.com (Dirk2) Date: Mon Aug 2 21:36:25 2004 Subject: [San-Diego-pm] Mason In-Reply-To: <20040730000159.14B8A1D7181@ws3-3.us4.outblaze.com> References: <20040730000159.14B8A1D7181@ws3-3.us4.outblaze.com> Message-ID: <1091143153.17431.121.camel@localhost.localdomain> chmod, that's all it took! I've been poring over manuals for hours. I'm always doing stuff like that. Thanks, Dirk On Fri, 2004-07-30 at 00:01, Douglas Wilson wrote: > > [Thu Jul 29 12:11:11 2004] [error] [client 127.0.0.1] Can't locate > > HTML/Mason.pm in @INC > > What are the permissions on the file? > Does the user who runs the script ('nobody'? Maybe?) have > permission to run it?