Re: Need to write a pop3 attachment fetch program

2004-07-14 Thread Morbus Iff
leechpop.pl The code was further explained in my book 'Spidering Hacks'. -- Morbus Iff ( and think about the bad things that I didn't do ) Technical: http://www.oreillynet.com/pub/au/779 Culture: http://www.disobey.com/ and http://www.gamegrene.com/ icq: 2927491 / aim: akaMorbus /

[OT] Re: AW: book suggestion for atypical beginner

2004-04-08 Thread Morbus Iff
x27;s my belief that simply putting a book into some kind of PDF or other representation of the printed book is like pointing a camera at a stage play and calling it a movie." -- Morbus Iff ( softcore vulcan pr0n rulez ) Technical: http://www.oreillynet.com/pub/au/779 Culture: http://ww

[OT] Re: Questions about game design in perl

2004-04-07 Thread Morbus Iff
abrupt, assumptionary, "out to get me", etc. [2] mailing list archives, assuming only you and I speak, etc. [3] "Use MySQL!" "I installed it. Now what?" -- Morbus Iff ( i put the demon back in codemonkey ) Culture: http://www.disobey.com/ and http://www.gamegrene

Re: Questions about game design in perl

2004-04-07 Thread Morbus Iff
purpose of a Message-ID/References, much less how replying to the wrong one (ie. "I don't feel like typing the To: address myself") and then rewriting the subject line can cause havoc with archivers and threaders. -- Morbus Iff ( i put the demon back in codemonkey ) Culture: http://www.dis

Re: Questions about game design in perl

2004-04-06 Thread Morbus Iff
ng to get rather slow and cumbersome rather quickly. Likewise, one little bug is gonna wipe out your entire userbase. -- Morbus Iff ( i put the demon back in codemonkey ) Culture: http://www.disobey.com/ and http://www.gamegrene.com/ Spidering Hacks: http://amazon.com/exec/obidos/ASIN/0596005776/diso

Re: HOWTO: File Renaming and Directory Recursion

2004-04-01 Thread Morbus Iff
>> while (@files) { > >Are you sure that's not: > > for (@files) { Yup, "for" is right. An error in my memory recall. -- Morbus Iff ( evil is my sour flavor ) Technical: http://www.oreillynet.com/pub/au/779 Culture: http://www.disobey.com/ and http://www.

HOWTO: File Renaming and Directory Recursion

2004-04-01 Thread Morbus Iff
programmer is mastering the use of the core modules, as well as how to find what you need on CPAN: a good metric ton of your code will look far cleaner, far easier to understand, and far more maintainable (and FAR more documented too!). Likewise, you'll get far more done, and with less &

Re: Pause/Hold in Perl

2004-03-30 Thread Morbus Iff
>Is there a way in Perl to have a script wait 30 seconds before it >continues processing? Like or a pause or hold? sleep(). -- Morbus Iff ( black as the devil and sweet as a stolen kiss ) Technical: http://www.oreillynet.com/pub/au/779 Culture: http://www.disobey.com/ an

Re: File content question

2004-03-29 Thread Morbus Iff
edent. remove the "unless ..." if you'd # like the final value of a duplicated key instead. $datastore{$key} = $value unless $datastore($key); } # print out a specific key value. print "The value of 'Bob' is $key{"Bob"}\n"; # or loop through

Re: HOW-TO of the Month Club (end Of MARCH Edition)

2004-03-27 Thread Morbus Iff
t; theory (more adequately stated as "bad programmers make Perl ugly"). -- Morbus Iff ( rotinom ruoy edisni deppart mi pleH ) Technical: http://www.oreillynet.com/pub/au/779 Culture: http://www.disobey.com/ and http://www.gamegrene.com/ icq: 2927491 / aim: akaMorbus / yahoo: mor

Re: OO Programming

2004-03-03 Thread Morbus Iff
arly chapter on references, but the ORA book is more in-depth. -- Morbus Iff ( i put the demon back in codemonkey ) Culture: http://www.disobey.com/ and http://www.gamegrene.com/ Spidering Hacks: http://amazon.com/exec/obidos/ASIN/0596005776/disobeycom icq: 2927491 / aim: akaMorbus / yahoo: morbu

Re: ENV variables and custom 404 error page

2004-03-01 Thread Morbus Iff
he browser. print "Location: http://rightplace.com/\n\n";; As for splitting up a URL into its component parts, look into the URI (pseudo code, not tested): my $url = "YOUR URL HERE"; my $urih = URI->new; my $path = $urih->path($url); my @parts = $urih->p

Re: Perl or Bash error?

2004-02-25 Thread Morbus Iff
>print "Before"; >sleep (5); >print "After\n"; You're buffering, I suspect. Add $|=1 to the top of your script, and read: http://perl.plover.com/FAQs/Buffering.html -- Morbus Iff ( i put the demon back in codemonkey ) Culture: http://www.disobey.com/ and http://

Re: cool project ideas

2004-02-24 Thread Morbus Iff
>perl I wanted to know how to write spiders (but I'm too cheap to buy the >O'Reilly book "Spidering hacks", and the library doesn't have it) allthough Hey, that's my book . -- Morbus Iff ( i put the demon back in codemonkey ) Culture: http://www.disob

Re: cool project ideas

2004-02-24 Thread Morbus Iff
>I'm getting tired of working on a text adventure in perl, and I was >wondering if anyone had some interesting projects they could suggest I Why did you get tired of the text adventure? -- Morbus Iff ( i put the demon back in codemonkey ) Culture: http://www.disobey.co

Re: File::Spec::no_upwards(), Absolutes, Alternatives?

2004-02-21 Thread Morbus Iff
return $self->error("Hi! You've attempted directory traversal. Naughty!") if scalar File::Spec->no_upwards(@directories) != scalar @directories; -- Morbus Iff ( if i could change the future, i'd change the past instead ) Technical: http://www.oreillynet

Re: File::Spec::no_upwards(), Absolutes, Alternatives?

2004-02-21 Thread Morbus Iff
At 1:18 PM -0500 2/21/04, Morbus Iff wrote: >>Neither of the above work in a cross-platform sort of way, which is >>why I was hoping to use something in File::Spec. But, I'm always >>receiving absolute paths, not relative, so I don't believe no_upwards >>will

File::Spec::no_upwards(), Absolutes, Alternatives?

2004-02-21 Thread Morbus Iff
o_upwards will work for me. What are other people doing to prevent directory traversals in an absolute-path, cross-platform sorta way? -- Morbus Iff ( i desire penance for your sins ) Technical: http://www.oreillynet.com/pub/au/779 Culture: http://www.disobey.com/ and http://www.gamegrene.com/ icq:

Re: stop

2004-01-07 Thread Morbus Iff
the answer seems obvious, doesn't mean it is. -- Morbus Iff ( i put the demon back in codemonkey ) Culture: http://www.disobey.com/ and http://www.gamegrene.com/ Spidering Hacks: http://amazon.com/exec/obidos/ASIN/0596005776/disobeycom icq: 2927491 / aim: akaMorbus / yahoo: morbus_iff / jabber.or

RE: Pure Perl df

2003-12-30 Thread Morbus Iff
u can ship it with your final tarbull - that's the approach I use with AmphetaDesk (http://www.disobey.com/amphetadesk/), where I ship XML::Simple and Text::Template, even for Linux distributions. Stuff that requires compilation (like XML::Parser, Compress::Zlib, etc., etc.), I leave up to th

RE: Get file size without downloading

2003-12-10 Thread Morbus Iff
that should return >file size and last modification date. This >obviously will not work for CGI URLs. Something like: my $ua = LWP::UserAgent->new(); my $result = $ua->head($url); my $remote_headers = $result->headers; $total_size = $remote_headers->content_l

Re: How to print "..." during download

2003-12-10 Thread Morbus Iff
"spinner" thing, which isn't the display you're looking for. The quick fix is to move the \b to the front of the spinner, not the end). There was more discussion of this on a mailing list, but I can't remember, or find, the URL. -- Morbus Iff ( i put the demon back in codemon

Re: What is this called: ($myvar->{otherid}) ? 'stringA' : 'stringB';

2003-11-20 Thread Morbus Iff
quot;ternary" or "flip-flop" statement. In this case, the above is the equivalent of: "if myvar->otherid is set, then set myvar->id to stringA, otherwise, set it to stringB". Code-wise, the above is equivalent to: if ($myvar->{otherid}) { $myvar->{id} == 

Re: -w vs. use warnings

2003-08-28 Thread Morbus Iff
e. I prefer "use warnings" myself - people really should try their damndest to update. As for $|++, there was a recent debate (on Perlmonks.com, I believe) on how $|=1 may be a better visual choice than $|++. I haven't made up my mind either way - I still use ++ in my own scripts. Unfo

Re: function to encode/decode url

2003-08-19 Thread Morbus Iff
>> Can anyone tell me where I can find encoding functions like >> encode("[EMAIL PROTECTED]") ==> ram%40yahoo.com >> and decode("ram%40yahoo.com") ==> [EMAIL PROTECTED] > >As usualy. See CPAN - http://search.cpan.org/ >Eg. CGI::Enurl + CGI:

Re: Scan data for XML invalid characters and parse articles

2002-02-13 Thread Morbus Iff
{ XMLin( $xml_data ); } if ($@) { print "Nope. Still an error."; } } You can probably modify that to your use. -- Morbus Iff ( softcore vulcan pr0n rulez ) http://www.disobey.com/ && http://www.gamegrene.com/ please me: http://www.amazon.com/exec/obidos/wishlist/25USV

Re: Open a brand new browser window with Perl

2002-02-07 Thread Morbus Iff
menubar=no,location=no, directories=0,status=no,resizable=0'); } //--> See Other Window Please See The Other Window -- Morbus Iff ( softcore vulcan pr0n rulez ) http://www.disobey.com/ && http://www.gamegrene.com/ please me: http://www.amazon

RE: Win32::GUI - Getting rid of console Window?

2002-02-01 Thread Morbus Iff
hetaDesk [1] source, I've stopped that. Not sure how, but check it out... [1] http://www.disobey.com/amphetadesk/ -- Morbus Iff ( softcore vulcan pr0n rulez ) http://www.disobey.com/ && http://www.gamegrene.com/ please me: http://www.amazon.com/exec/obidos/wishlist/25USVJDH685

Re: Win32::GUI - Getting rid of console Window?

2002-02-01 Thread Morbus Iff
$hwnd = GUI::GetPerlWindow(); # comment this to see error messages in a dos window # otherwise, this will hide the blasted thing... GUI::Hide($hwnd); -- Morbus Iff ( softcore vulcan pr0n rulez ) http://www.disobey.com/ && http://www.gamegrene.com/ please me: http://www.amazon.

Streaming Source Code Updates

2002-01-30 Thread Morbus Iff
de updates? Has it been done before? Should I go a tar.gz route, or specific modular downloads? -- Morbus Iff ( i'm wearing footsie jammies here ) http://www.disobey.com/ && http://www.gamegrene.com/ i write for good folk. read me: http://oreillynet.com/pub/au/779 icq: 2927491 /

Links to DBM Tutorials?

2002-01-09 Thread Morbus Iff
ts{001}{2}{name} {email} $comments{003}{1}{name} {email} And so on and so forth. An RDMBS is NOT an option for me. I could do this stuff easily with a delimited text file DB, but was under the impression that DBM allow faster access. Any pointers or tips are appreciat

Perl2Exe (or Compiled Perl) and Shipping Runnable Source

2002-01-07 Thread Morbus Iff
bout this? - what do you see can break about this implementation? Once I get more time, I'll be trying this approach on my own AmphetaDesk. [1] http://www.disobey.com/amphetadesk/ -- Morbus Iff ( softcore vulcan pr0n rulez ) http://www.disobey.com/ && http://www.gamegrene.com

RE: Computer connected to the internet?

2002-01-04 Thread Morbus Iff
router fails, then you >are definetly without connection) then you could assume you've lost >connection. If a user has "connect automatically" or "dial automatically", will this pinging cause the computer to dial? I'm thinking of this in a dialup Win/M

Re: dollar sign in subject

2001-12-18 Thread Morbus Iff
ceforge.net/ http://sourceforge.net/projects/sendmail-milter/ http://spamassassin.taint.org/ -- Morbus Iff ( softcore vulcan porn rulez ) http://www.disobey.com/ && http://www.gamegrene.com/ read me: http://www.oreillynet.com/pub/a/mac/2001/12/07/apache.html icq: 2927491 / aim: akaMor

Re: New Coder

2001-11-19 Thread Morbus Iff
whether this was the case. I'd be interested to know too. We have "classes" that teach that around here, but they're rather moronic, ie. "when to use an unless and when to use a negating if". Not what I'd considered covered by CC ;) ... >ITYM de rigeur :-) Acron

Re: New Coder

2001-11-19 Thread Morbus Iff
is PERL. Where do I start? Thanks. Learning Perl from O'Reilly. De facto. -- Morbus Iff ( softcore vulcan porn rulez ) http://www.disobey.com/ && http://www.gamegrene.com/ please me: http://www.amazon.com/exec/obidos/wishlist/25USVJDH68554 icq: 2927491 / aim: akaMorbus / yah

Re: Perl based Notification System

2001-10-29 Thread Morbus Iff
ble, check out these: http://www.pipetree.com/jabber/ http://www.pipetree.com/jabber/fwj.html Also, the "Applied Perl" book has a chapter on integrating with Jabber. -- Morbus Iff ( softcore vulcan porn rulez ) http://www.disobey.com/ && http://www.gamegrene.com/ please

Storing a Decryptable Password?

2001-10-02 Thread Morbus Iff
p sort of rot13, binary, decimal sort of madness, but I was looking for something a bit more "hard to deciper at a glance". I know the inherent risks with having a decryptable, but I'll take those over the obvious risks of plaintest stored passwords. Thoughts? -- Morbus Iff ( i

Re: Hit counter

2001-10-01 Thread Morbus Iff
ne cgi call is being >processed? Take a look into flock(). -- Morbus Iff ( i am your scary godmother ) http://www.disobey.com/ && http://www.gamegrene.com/ please me: http://www.amazon.com/exec/obidos/wishlist/25USVJDH68554 icq: 2927491 / aim: akaMorbus / yahoo: morbus_iff / jabber.org: morbus

Re: how to change the prompt in perl

2001-09-26 Thread Morbus Iff
ld use Perl to edit the relevant shell file to insert the configuration of your desire. That, however, is kinda innane. -- Morbus Iff ( i am your scary godmother ) http://www.disobey.com/ && http://www.gamegrene.com/ please me: http://www.amazon.com/exec/obidos/wishlist/25USVJDH68554 icq: 2

Re: Help

2001-09-24 Thread Morbus Iff
>=> >EOF >; >print $output; Instead of including your "put text here" arrow in your initial block, put it as part of output: my $output = <"; $num_clients = ; -- Morbus Iff ( i am your scary godmother ) http://www.disobey.com/ && http://www.gamegrene.c

Re: how to write a password generator

2001-09-13 Thread Morbus Iff
password = crypt($plaintext_password, $seed); -- Morbus Iff ( i am your scary godmother ) http://www.disobey.com/ && http://www.gamegrene.com/ please me: http://www.amazon.com/exec/obidos/wishlist/25USVJDH68554 icq: 2927491 / aim: akaMorbus / yahoo: morbus_iff / jabber.org: morbus --

Re: cgi & syslog

2001-08-15 Thread Morbus Iff
, though)... -- Morbus Iff ( i am your scary godmother ) http://www.disobey.com/ && http://www.gamegrene.com/ please me: http://www.amazon.com/exec/obidos/wishlist/25USVJDH68554 icq: 2927491 / aim: akaMorbus / yahoo: morbus_iff / jabber.org: morbus -- To unsubscribe, e-mail: [EMAIL PROTECTED

Re: format for code review

2001-08-13 Thread Morbus Iff
we can see what you were trying/intending to do, as opposed to what you actually did. -- Morbus Iff ( i am your scary godmother ) http://www.disobey.com/ && http://www.gamegrene.com/ please me: http://www.amazon.com/exec/obidos/wishlist/25USVJDH68554 icq: 2927491 / aim: akaMorbus / yah

RE: unix perl to win NT perl

2001-07-18 Thread Morbus Iff
>I'm not competant enough to write a complete guestbook script, only to edit >scripts I find. Any ideas where I can get a new guestbook script? You could try the following (in that order): http://perlarchive.com/ http://www.cgi-resources.com/ http://www.hotscripts.com/

RE: unix perl to win NT perl

2001-07-18 Thread Morbus Iff
clean up after himself. not using these ideals severely impacts #1 (above). 3. Generally speaking, every script from Matt Wright's should be ignored. None of his scripts are particularly well written and security holes abound. I wouldn't even try fixing his scri

Re: 15 O'Reilly computer books free for download

2001-07-14 Thread Morbus Iff
>Just found this posted on another site. Many free Perl I'd be worried about this - the perl books in particular looks like they were copied and posted from the Perl CD Bookshelf, which is still a product legally sold by O'Reilly... -- ICQ: 2927491 / AOL: akaMorbus Yahoo: mor

Re: Nasty

2001-07-13 Thread Morbus Iff
s: "The ones who act like such are too sure of their perceived intelligence." :) -- Morbus Iff ( .sig on other machine. ) http://www.disobey.com/ && http://www.gamegrene.com/ "where's there's a will, there's a morbus ready to collect!" -- To unsubsc

Re: Nasty

2001-07-13 Thread Morbus Iff
>I don't work with a lot of programmers. I hope to get into a situation where >I do. Is it fair to say the majority are *holes? Bwahahah. Not at all. We're smarter than you, but not as presumptuous. -- Morbus Iff ( .sig on other machine. ) http://www.disobey.com/ &&

Raw Headers of a Proxy?

2001-07-13 Thread Morbus Iff
For long reasons that I'll reiterate at request, I can NOT use LWP::*, specifically, I don't have the ability to use LWP::UserAgent to set or understand proxies. I've written my own lowlevel http calls and they've been working fine, but it's now time to implement proxy support. I've checked vario

Re: Re-inventing wheels (WAS re: Required Fields Module)

2001-07-10 Thread Morbus Iff
>use CGI ":all"; >@values = param('foo'); > >If you're using the object interface, you've read the wrong book. >Even Lincoln himself doesn't use that for any examples I've seen him >teach in seminars. "perldoc CGI" is written that way mostly from >legacy, not optimization. Hmmm.

Re: Re-inventing wheels (WAS re: Required Fields Module)

2001-07-10 Thread Morbus Iff
>> >CGI.pm isn't the only solution to creating dynamic web pages with Perl. >> >Text::Template is another alternative, as are embedded Perl >> >implementations like Apache::ASP, Mason, or even PerlScript (for IIS). >> >> None of which is crossplatform (Windows / Mac / Linux) >> or installable by a

Re: Feasible?

2001-06-20 Thread Morbus Iff
rd to just spit out a number instead. Morbus Iff .sig on other machine. http://www.disobey.com/ http://www.gamegrene.com/

Re: Where to begin??!!??

2001-06-14 Thread Morbus Iff
de. Don't sue me if I birth your child. Morbus Iff .sig on other machine. http://www.disobey.com/ http://www.gamegrene.com/

Re: you all are going to laugh at me

2001-05-31 Thread Morbus Iff
ing binary instead of ascii. > >thanks to all that tried to *help* me. little did you know the idiotic >mistakes i am known for. :) Heh. I make the binary/ascii mistake all the time - often times fighting between "the FTP/editor knows what it's doing" and "no, listen to Mor

Re: closed filehandle

2001-05-31 Thread Morbus Iff
the pipe isn't open correctly, then you'll get "Problem!:" printed to STDOUT. Along with problem is a magical thingy called $!, which contains a remotely specific error on why the pipe couldn't be open in the first place... Morbus Iff .sig on other machine. http://www.disobey.com/ http://www.gamegrene.com/

Re: On Beginners' Mindsets, Part II

2001-05-30 Thread Morbus Iff
aden and deepen your expertise Definitely agreeable. I learn much faster from examples. Morbus Iff .sig on other machine. http://www.disobey.com/ http://www.gamegrene.com/

RE: use strict / explicit packages

2001-05-29 Thread Morbus Iff
;my $key", simply add another line at the top of the script that says "my %FORM_DATA;". Morbus Iff .sig on other machine. http://www.disobey.com/ http://www.gamegrene.com/

Re: subroutines in .pm

2001-04-27 Thread Morbus Iff
>Does anybody know how to call a subroutine that is in a .pm file from >another .pm file. Welp, if &subroutine_1 is in Library1.pm, then within Library2.pm, you could do something like: sub subroutine_2 { require "/path/to/Library1.pm"; &subroutine_1; }