[29931] in Perl-Users-Digest

home help back first fref pref prev next nref lref last post

Perl-Users Digest, Issue: 1174 Volume: 11

daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Sat Jan 5 21:09:46 2008

Date: Sat, 5 Jan 2008 18:09:07 -0800 (PST)
From: Perl-Users Digest <Perl-Users-Request@ruby.OCE.ORST.EDU>
To: Perl-Users@ruby.OCE.ORST.EDU (Perl-Users Digest)

Perl-Users Digest           Sat, 5 Jan 2008     Volume: 11 Number: 1174

Today's topics:
        Inviting You to World's 1st Online Marketing Careers Co <chopra.pradeep@gmail.com>
        new CPAN modules on Sat Jan  5 2008 (Randal Schwartz)
        settings for cronw <junkone1@gmail.com>
    Re: settings for cronw <kkeller-usenet@wombat.san-francisco.ca.us>
    Re: Using arrays in Curses::UI:Listbox <paduille.4061.mumia.w+nospam@earthlink.net>
    Re: Using arrays in Curses::UI:Listbox <sibunl@gmail.com>
    Re: WWW::Mechanize : Is immediate caching of images pos hikari.no.hohenheim@gmail.com
    Re: WWW::Mechanize : Is immediate caching of images pos <hjp-usenet2@hjp.at>
    Re: WWW::Mechanize : Is immediate caching of images pos <joost@zeekat.nl>
    Re: WWW::Mechanize : Is immediate caching of images pos <john@castleamber.com>
    Re: WWW::Mechanize : Is immediate caching of images pos <tadmc@seesig.invalid>
        Digest Administrivia (Last modified: 6 Apr 01) (Perl-Users-Digest Admin)

----------------------------------------------------------------------

Date: Fri, 4 Jan 2008 22:04:10 -0800 (PST)
From: Pradeep Chopra <chopra.pradeep@gmail.com>
Subject: Inviting You to World's 1st Online Marketing Careers Conference
Message-Id: <dd208e32-7586-43a3-969d-d666e269f484@d21g2000prg.googlegroups.com>

Dear Friend,

Wish you a Very Happy & Fulfilling 2008!

Early 2007, I started OM Careers, a non-profit, online marketing
careers community, dedicated to addressing the challenge of lack of
skilled resources in the Online/Search marketing industry. On Jan 12,
OM Careers is playing host to world's first online marketing careers
conference, OMCAR 2008.

The event is targeted at current & aspiring Online or Search marketing
professionals, Entrepreneurs, Web professionals, Sales & Marketing
professionals. Some of the special sessions include "Is Online
Marketing a Different World?", "Entrepreneurial Opportunities in
Online Marketing", "What lies in the Future?" and "Personal
Branding".

The event will be coupled with a unique job clinic opportunity for
people who are interested in building a successful career in the
online marketing industry and for organizations that are interested in
hiring right OM talent. India's leading companies such as Google,
Pinstorm, Communicate2, Quasar Media, Komli and Interactive Avenues
are already confirmed as job clinic partners.

In addition, it will be a great opportunity for individuals and
businesses to network with India's leading online marketing companies
and experts.

We would love to have you participate in the event. More important, we
seek your support in promoting this event and making it a great
success! It would be great if you could spread the word about this
event to your friends and associates.

The event details can be found at http://conference.omcareers.org and
you can register online at http://conference.omcareers.org/reg.asp

Do add your name to the participants list at http://conference.omcareers.org/participant.asp,
if you plan to attend this event.

Looking forward to seeing you at the event!

Best wishes,
Pradeep Chopra (pradeep.chopra@omcareers.org)
OM Careers Team


------------------------------

Date: Sat, 5 Jan 2008 05:42:15 GMT
From: merlyn@stonehenge.com (Randal Schwartz)
Subject: new CPAN modules on Sat Jan  5 2008
Message-Id: <Ju5p6F.wJ9@zorch.sf-bay.org>

The following modules have recently been added to or updated in the
Comprehensive Perl Archive Network (CPAN).  You can install them using the
instructions in the 'perlmodinstall' page included with your Perl
distribution.

Acme-Geo-Whitwell-Name-0.01
http://search.cpan.org/~mcmahon/Acme-Geo-Whitwell-Name-0.01/
Steadman Whitwell's "rational geographic nomenclature" 
----
Algorithm-Permute-0.11
http://search.cpan.org/~edpratomo/Algorithm-Permute-0.11/
Handy and fast permutation with object oriented interface 
----
Alien-CodePress-1.03
http://search.cpan.org/~asksh/Alien-CodePress-1.03/
Installing and finding CodePress. 
----
Audio-Ecasound-0.92
http://search.cpan.org/~bowmanbs/Audio-Ecasound-0.92/
Perl binding to the ecasound sampler, recorder, fx-processor 
----
Bundle-Net-EPP-0.01
http://search.cpan.org/~gbrown/Bundle-Net-EPP-0.01/
A bundle to install all EPP related modules. 
----
CGI-Application-Plugin-ProtectCSRF-1.00
http://search.cpan.org/~holly/CGI-Application-Plugin-ProtectCSRF-1.00/
Plug-in protected from CSRF 
----
CGI-Application-Plugin-ProtectCSRF-1.01
http://search.cpan.org/~holly/CGI-Application-Plugin-ProtectCSRF-1.01/
Plug-in protected from CSRF 
----
CatalystX-CRUD-0.21
http://search.cpan.org/~karman/CatalystX-CRUD-0.21/
CRUD framework for Catalyst applications 
----
CatalystX-CRUD-0.22
http://search.cpan.org/~karman/CatalystX-CRUD-0.22/
CRUD framework for Catalyst applications 
----
CatalystX-CRUD-Model-RDBO-0.09
http://search.cpan.org/~karman/CatalystX-CRUD-Model-RDBO-0.09/
Rose::DB::Object CRUD 
----
Class-InsideOut-1.09
http://search.cpan.org/~dagolden/Class-InsideOut-1.09/
a safe, simple inside-out object construction kit 
----
Config-Hierarchical-0.11
http://search.cpan.org/~nkh/Config-Hierarchical-0.11/
Hierarchical configuration container 
----
DBD-Unify-0.70
http://search.cpan.org/~hmbrand/DBD-Unify-0.70/
DBI driver for Unify database systems 
----
DBD-Unify-0.71
http://search.cpan.org/~hmbrand/DBD-Unify-0.71/
DBI driver for Unify database systems 
----
Data-Libra-0.0.2
http://search.cpan.org/~hiratara/Data-Libra-0.0.2/
Generating unique and random values from a string. 
----
Debug-Mixin-0.3
http://search.cpan.org/~nkh/Debug-Mixin-0.3/
Make your applications and modules easier to debug 
----
Devel-PPPort-3.13_01
http://search.cpan.org/~mhx/Devel-PPPort-3.13_01/
Perl/Pollution/Portability 
----
Directory-Scratch-Structured-0.03
http://search.cpan.org/~nkh/Directory-Scratch-Structured-0.03/
creates temporary files and directories from a structured description 
----
Fukurama-Class-0.021
http://search.cpan.org/~tobiwan/Fukurama-Class-0.021/
Pragma to extend the Perl-OO (in native Perl) 
----
Getopt-LL-1.0.0
http://search.cpan.org/~asksh/Getopt-LL-1.0.0/
Flexible argument processing. 
----
Graphics-ColorNames-2.10_02
http://search.cpan.org/~rrwo/Graphics-ColorNames-2.10_02/
defines RGB values for common color names 
----
JSON-2.03
http://search.cpan.org/~makamaka/JSON-2.03/
JSON (JavaScript Object Notation) encoder/decoder 
----
Module-ThirdParty-0.26
http://search.cpan.org/~saper/Module-ThirdParty-0.26/
Provide information for 3rd party modules (outside CPAN) 
----
Mozilla-Prefs-Simple-0.01
http://search.cpan.org/~rrwo/Mozilla-Prefs-Simple-0.01/
Manipulate Mozilla preferences 
----
Net-SIP-0.41
http://search.cpan.org/~sullr/Net-SIP-0.41/
Framework SIP (Voice Over IP, RFC3261) 
----
POE-Filter-IASLog-1.01
http://search.cpan.org/~bingos/POE-Filter-IASLog-1.01/
A POE Filter for Microsoft IAS-formatted log entries. 
----
POE-Filter-IRCD-2.35
http://search.cpan.org/~bingos/POE-Filter-IRCD-2.35/
A POE-based parser for the IRC protocol. 
----
POE-Filter-LOLCAT-1.00
http://search.cpan.org/~bingos/POE-Filter-LOLCAT-1.00/
POE FILTR T SPEKK LIEK LOLCATZ. KTHNX! 
----
POE-Filter-ParseWords-1.01
http://search.cpan.org/~bingos/POE-Filter-ParseWords-1.01/
A POE-based parser to parse text into an array of tokens. 
----
Parse-Flash-Cookie-0.03
http://search.cpan.org/~aff/Parse-Flash-Cookie-0.03/
A flash cookie parser. 
----
Parse-Syslog-Mail-0.12
http://search.cpan.org/~saper/Parse-Syslog-Mail-0.12/
Parse mailer logs from syslog 
----
Parse-Syslog-Mail-0.13
http://search.cpan.org/~saper/Parse-Syslog-Mail-0.13/
Parse mailer logs from syslog 
----
Perl6-Doc-0.34
http://search.cpan.org/~lichtkind/Perl6-Doc-0.34/
all useful Perl 6 Docs in your command line 
----
TL1ng-0.07
http://search.cpan.org/~sscaffidi/TL1ng-0.07/
A simple, flexible, OO way to work with TL1. 
----
Text-CSV_XS-0.34
http://search.cpan.org/~hmbrand/Text-CSV_XS-0.34/
comma-separated values manipulation routines 
----
Text-MultiMarkdown-1.0.5
http://search.cpan.org/~bobtfish/Text-MultiMarkdown-1.0.5/
Convert MultiMarkdown syntax to (X)HTML 
----
Tie-NumericRange-0.01
http://search.cpan.org/~mgregoro/Tie-NumericRange-0.01/
Perl extension that creates key / value pairs out of numeric ranges! 
----
Tie-RangeHash-0.01
http://search.cpan.org/~mgregoro/Tie-RangeHash-0.01/
Perl extension that creates key / value pairs out of numeric ranges! 
----
Tie-RangeHash-1.04
http://search.cpan.org/~rrwo/Tie-RangeHash-1.04/
Allows hashes to associate values with a range of keys 
----
Time-Duration-Parse-0.04
http://search.cpan.org/~miyagawa/Time-Duration-Parse-0.04/
Parse string that represents time duration 
----
Vi-QuickFix-1.132
http://search.cpan.org/~anno/Vi-QuickFix-1.132/
Support for vim's QuickFix mode 
----
XML-FeedPP-0.33
http://search.cpan.org/~kawasaki/XML-FeedPP-0.33/
Parse/write/merge/edit RSS/RDF/Atom syndication feeds 
----
XML-TreePP-0.33
http://search.cpan.org/~kawasaki/XML-TreePP-0.33/
Pure Perl implementation for parsing/writing xml files 


If you're an author of one of these modules, please submit a detailed
announcement to comp.lang.perl.announce, and we'll pass it along.

This message was generated by a Perl program described in my Linux
Magazine column, which can be found on-line (along with more than
200 other freely available past column articles) at
  http://www.stonehenge.com/merlyn/LinuxMag/col82.html

print "Just another Perl hacker," # the original

--
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<merlyn@stonehenge.com> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!


------------------------------

Date: Sat, 5 Jan 2008 11:14:08 -0800 (PST)
From: Dickery1 <junkone1@gmail.com>
Subject: settings for cronw
Message-Id: <ad1e138d-0938-4413-b2f1-83c97cc19f41@s19g2000prg.googlegroups.com>

I am running the cronw on my xp. i want to start an app at 4 am. if my
machine is rebooted, i want to run it at startup of the cronw service.
what is the settings to run a app at start up of the cron service. the
docs state to read the unix cron man pages for command syntaxes and i
could not make much headway with the syntaxes from the unix cron man
pages. i am not unixy but windowzy.

appreciate help


------------------------------

Date: Sat, 5 Jan 2008 11:25:50 -0800
From: Keith Keller <kkeller-usenet@wombat.san-francisco.ca.us>
Subject: Re: settings for cronw
Message-Id: <u62555xg0o.ln2@goaway.wombat.san-francisco.ca.us>

On 2008-01-05, Dickery1 <junkone1@gmail.com> wrote:
> I am running the cronw on my xp. i want to start an app at 4 am. if my
> machine is rebooted, i want to run it at startup of the cronw service.
> what is the settings to run a app at start up of the cron service. the
> docs state to read the unix cron man pages for command syntaxes and i
> could not make much headway with the syntaxes from the unix cron man
> pages. i am not unixy but windowzy.

Your question is very much offtopic for a Perl programming group.  Try a
newsgroup for XP or the application of interest.

--keith

-- 
kkeller-usenet@wombat.san-francisco.ca.us
(try just my userid to email me)
AOLSFAQ=http://www.therockgarden.ca/aolsfaq.txt
see X- headers for PGP signature information



------------------------------

Date: Fri, 04 Jan 2008 23:07:47 -0600
From: "Mumia W." <paduille.4061.mumia.w+nospam@earthlink.net>
Subject: Re: Using arrays in Curses::UI:Listbox
Message-Id: <13nu45r6urd0k9f@corp.supernews.com>

On 01/04/2008 01:12 AM, Sibu wrote:
> Hai Perl Curses:UI users,
> 
> I am new to perl and i am trying to develop an textmode application in
> perl using Curses::UI
> I can add a Curses:UI:Listbox widget to my application and it works
> fine.
> 
> I read data from a text file and stored in to an array
> the i try to use this array in Listbox but i failed.
> my problem is that how i manage the options ( -values, -labels ) in
> Curses::UI:Listbox?
> Should I use hashes or arrays?
> 
> [...]
> my $comp_code = $win1->add(
>         'comp_code', 'Listbox',
>         -width     => 8,
>         -y         => 1, -x => 17,
>         -values    => \@myvalues,
>         -lables    => \%myhash,
>     );
> cui->MainLoop;
> 

Note the changes I made above—you only needed backslashes before the 
array and the hash.



------------------------------

Date: Fri, 4 Jan 2008 22:47:17 -0800 (PST)
From: Sibu <sibunl@gmail.com>
Subject: Re: Using arrays in Curses::UI:Listbox
Message-Id: <c966f690-ed62-4dcc-92df-a908d56dfb81@z17g2000hsg.googlegroups.com>

On Jan 5, 10:07 am, "Mumia W." <paduille.4061.mumia.w
+nos...@earthlink.net> wrote:
> On 01/04/2008 01:12 AM, Sibu wrote:
>
>
>
> > Hai Perl Curses:UI users,
>
> > I am new to perl and i am trying to develop an textmode application in
> > perl using Curses::UI
> > I can add a Curses:UI:Listbox widget to my application and it works
> > fine.
>
> > I read data from a text file and stored in to an array
> > the i try to use this array in Listbox but i failed.
> > my problem is that how i manage the options ( -values, -labels ) in
> > Curses::UI:Listbox?
> > Should I use hashes or arrays?
>
> > [...]
> > my $comp_code = $win1->add(
> >         'comp_code', 'Listbox',
> >         -width     => 8,
> >         -y         => 1, -x => 17,
> >         -values    => \@myvalues,
> >         -lables    => \%myhash,
> >     );
> > cui->MainLoop;
>
> Note the changes I made above--you only needed backslashes before the
> array and the hash.

Hai Mumia,

Its solved!

Thank you,

Sibu.N.L


------------------------------

Date: Fri, 4 Jan 2008 20:08:11 -0800 (PST)
From: hikari.no.hohenheim@gmail.com
Subject: Re: WWW::Mechanize : Is immediate caching of images possible?
Message-Id: <3042386a-6afb-488d-92a8-5add5ab1c8a8@r60g2000hsc.googlegroups.com>

On Jan 4, 5:45 pm, Joost Diepenmaat <jo...@zeekat.nl> wrote:
> Since an HTTP request only gets one resource at a time, how does the server
> associate them?
>
> The content of the page has no bearing of the content of the image. At
> least not from the client's point of view.


Thanks, Joost, and everyone.

I've figured out a bit more; essentially the root page (www.domain.com/
index.php) that has an image tag:

<img src="www.domain.com/image/"/> .

Turns out this is also a php ( */image/index.php).  So, it's the php
that returns the image and coordinates the content of the page and the
image chosen.  If I open the main page in a browser the image matches
the content of the page.  But when I $mech->get() the main page then
subsequently $mech->get() the */image/ (or */image/index.php) I get a
different image.

I have little to no experience with php.  I know it's done server side
so I can't view the source, but I don't know what information is
different or changes when I $mech->get() the page and image
separately.

I'm probably out of my league, but if you have any thoughts I'd love
to hear them.

-Hikari


------------------------------

Date: Sat, 5 Jan 2008 14:26:01 +0100
From: "Peter J. Holzer" <hjp-usenet2@hjp.at>
Subject: Re: WWW::Mechanize : Is immediate caching of images possible?
Message-Id: <slrnfnv1bc.gbf.hjp-usenet2@hrunkner.hjp.at>

On 2008-01-05 04:08, hikari.no.hohenheim@gmail.com <hikari.no.hohenheim@gmail.com> wrote:
> I've figured out a bit more; essentially the root page (www.domain.com/
> index.php) that has an image tag:
>
><img src="www.domain.com/image/"/> .
>
> Turns out this is also a php ( */image/index.php).  So, it's the php
> that returns the image and coordinates the content of the page and the
> image chosen.  If I open the main page in a browser the image matches
> the content of the page.  But when I $mech->get() the main page then
> subsequently $mech->get() the */image/ (or */image/index.php) I get a
> different image.
>
> I have little to no experience with php.  I know it's done server side
> so I can't view the source, but I don't know what information is
> different or changes when I $mech->get() the page and image
> separately.

All the information must be explicitely sent by the client (be it the
browser or your script).  So you can use a packet sniffer
(e.g., wireshark) to compare the requests and see what your script does
differently than the browser.

One possibility is that the HTML page contains some JavaScript which
modifies the request - in this case you will have to analyze the
JavaScript and rewrite it in Perl.

	hp


------------------------------

Date: Sat, 05 Jan 2008 14:57:47 +0100
From: Joost Diepenmaat <joost@zeekat.nl>
Subject: Re: WWW::Mechanize : Is immediate caching of images possible?
Message-Id: <87bq80cr38.fsf@zeekat.nl>

John Bokma <john@castleamber.com> writes:

> Joost Diepenmaat <joost@zeekat.nl> wrote:
>  
>> I don't know what you mean. Session /IDs/ are usually handled either
>> via cookies or via additional URL parameters
>
> I guess you mean query string
>
>> /substrings. 
>
> I guess you mean path segements (path_info)

Actually, I meant to say that the server can encode the session id in
the url in any way it wants. using path_info or query strings can
be convenient, but you can't be sure how a server interprets a URL
at all.

>> Either case
>
> There is a 3rd one: (hidden) fields in a form

True, but probably not used here since the thread is about <img>s.

Joost.


------------------------------

Date: 5 Jan 2008 14:54:54 GMT
From: John Bokma <john@castleamber.com>
Subject: Re: WWW::Mechanize : Is immediate caching of images possible?
Message-Id: <Xns9A1C5AAF6A955castleamber@130.133.1.4>

Joost Diepenmaat <joost@zeekat.nl> wrote:

> John Bokma <john@castleamber.com> writes:
> 
>> Joost Diepenmaat <joost@zeekat.nl> wrote:
>>  
>>> I don't know what you mean. Session /IDs/ are usually handled either
>>> via cookies or via additional URL parameters
>>
>> I guess you mean query string
>>
>>> /substrings. 
>>
>> I guess you mean path segements (path_info)
> 
> Actually, I meant to say that the server can encode the session id in
> the url in any way it wants. using path_info or query strings can
> be convenient, but you can't be sure how a server interprets a URL
> at all.

session ids in URLs are obvious IMO.

>>> Either case
>>
>> There is a 3rd one: (hidden) fields in a form
> 
> True, but probably not used here since the thread is about <img>s.

A post request can return an image of course. But I just mentioned to be 
complete.

-- 
John

Arachnids near Coyolillo - part 1
http://johnbokma.com/mexit/2006/05/04/arachnids-coyolillo-1.html


------------------------------

Date: Sat, 05 Jan 2008 22:09:45 GMT
From: Tad J McClellan <tadmc@seesig.invalid>
Subject: Re: WWW::Mechanize : Is immediate caching of images possible?
Message-Id: <slrnfnv06v.4e8.tadmc@tadmc30.sbcglobal.net>

hikari.no.hohenheim@gmail.com <hikari.no.hohenheim@gmail.com> wrote:

> I'm probably out of my league, but if you have any thoughts I'd love
> to hear them.


Have you tried using the Web Scraping Proxy (wsp.pl) to capture
the requests that the browser is making?


-- 
Tad McClellan
email: perl -le "print scalar reverse qq/moc.noitatibaher\100cmdat/"


------------------------------

Date: 6 Apr 2001 21:33:47 GMT (Last modified)
From: Perl-Users-Request@ruby.oce.orst.edu (Perl-Users-Digest Admin) 
Subject: Digest Administrivia (Last modified: 6 Apr 01)
Message-Id: <null>


Administrivia:

#The Perl-Users Digest is a retransmission of the USENET newsgroup
#comp.lang.perl.misc.  For subscription or unsubscription requests, send
#the single line:
#
#	subscribe perl-users
#or:
#	unsubscribe perl-users
#
#to almanac@ruby.oce.orst.edu.  

NOTE: due to the current flood of worm email banging on ruby, the smtp
server on ruby has been shut off until further notice. 

To submit articles to comp.lang.perl.announce, send your article to
clpa@perl.com.

#To request back copies (available for a week or so), send your request
#to almanac@ruby.oce.orst.edu with the command "send perl-users x.y",
#where x is the volume number and y is the issue number.

#For other requests pertaining to the digest, send mail to
#perl-users-request@ruby.oce.orst.edu. Do not waste your time or mine
#sending perl questions to the -request address, I don't have time to
#answer them even if I did know the answer.


------------------------------
End of Perl-Users Digest V11 Issue 1174
***************************************


home help back first fref pref prev next nref lref last post