Re: OT: Re: Fwd: Interview Questions

2004-04-21 Thread drieux
ng table. And I think it is useful from time to time to take a quick review of "Perl Coding as Profession" and specifically it's applicability to 'web technologies'. That helps folks work out which side of the interviewing table they prefer to work on, and what they shoul

Fwd: Interview Questions

2004-04-20 Thread drieux
basic 'write me a perl code implementation of say the towers of hanoi problem or this or that, and one check for how they deal with an ambiguously worded coding problem - hence whether they should be looking before leaping - and then one catches their basic issues with actually doing per

Re: How to add an item into Shopping cart

2004-03-24 Thread drieux
necessary entry into the database. If all of the items that can be placed in the cart are on one page, then you seem to have your solution here. The trick becomes if one has to create a "shopping cart" that will persist over several web page presentations. ciao drieux --- -- To un

Re: Virtual Directory Problem

2004-02-15 Thread drieux
at exactly you are trying to do in the process. Do you really like having a declared cgi-bin directory? ciao drieux --- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

Re: Email module

2004-02-09 Thread drieux
-) If all you need is a "form mail" then check out <http://cvs.sourceforge.net/viewcvs.py/nms-cgi/formmail/> but it rests on even 'older' technology than the Mail::Mailer modules... ciao drieux --- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands

Re: Running a system command as root

2003-12-17 Thread drieux
port As such the code is not setuid to Root. So you might want to think about whether what you want to integrate with webmin should be accessible from a public cgi_bin directory anyway. ciao drieux --- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED

Re: Fork

2003-12-09 Thread drieux
On Dec 9, 2003, at 9:53 AM, Octavian Rasnita wrote: Can you give me a short example about how I should create that loop? a strategy I proposed over on the beginner's list would look like say: <http://www.wetware.com/drieux/pbl/Sys/gen_sym_big_dog.txt> That of course was built for a c

Re: Passing the hash

2003-12-04 Thread drieux
process_broken_cgi($CGI); } This way only the 'widgets' that need to be 'hidden' are actually shipped out in the html... This way you can also 'grow' your Dispatcher as you need to, and add functionality as required... ciao drieux --- -- To uns

Re: pass a variable from php to the perl file

2003-12-04 Thread drieux
plify your interface ... ciao drieux --- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

Re: CGI.pm question

2003-12-03 Thread drieux
be available after that. So a part of the question is 'which resources' are you trying to presever in the process, I may be missing that in all of this... CGI.pm has perchance the most complex of the autoloading/importing strategies in the whole perl distributions. It is part black maji

Re: Javascript problems with -script

2003-11-23 Thread drieux
quot; ); in the morning you may be able to look at the rest of the stuff after the ';' where you had the '...' since the above generates what you say you want that part to do. It might be that you will want to start the next section with it's own print sequence? ciao drieux --- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Fwd: POD, Faq and tradition - Re: extracting email addys.

2003-11-22 Thread drieux
at the same time RFC2822 was reserved for the expected day when an extension would be needed for things no one could think about in those dark days when we all beat out code the old fashion way with a stick on a flat rock... And Consensus was based upon the last person standing and all of tha

Re: Syntax error with while

2003-11-10 Thread drieux
27;die' in some module, or data was incorrect I would be able to return(generic_error_page($error_message)) if ( $went_wrong_here ); this way I can sort out what is going on in smaller chunks of code that build up modules... ciao drieux --- -- To unsubscribe, e-mail: [EMAIL PR

Re: php testing in my pc

2003-11-10 Thread drieux
e php executable. you might want to check one of the traditional php web-sites about the gory details. ciao drieux --- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: HTTP::Request

2003-11-10 Thread drieux
On Friday, Nov 7, 2003, at 17:12 US/Pacific, Tobias Fink wrote: [..] but what i didnt want to do is something like this: my $response = $ua->get("http://search.cpan.org/ search?query=$query&query2=$query2etc"); because this only works for http-get. Isnt it possible to create a header that works

Re: Syntax error with while

2003-11-10 Thread drieux
t;; }; print "some other stuff"; So you might want to attack the problem along that line. ciao drieux --- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Syntax error with while

2003-11-09 Thread drieux
On Sunday, Nov 9, 2003, at 09:24 US/Pacific, lanzaroto wrote: Le dim 09/11/2003 à 17:44, drieux a écrit : On Sunday, Nov 9, 2003, at 08:08 US/Pacific, lanzaroto wrote: while({$id, $nom, $prenom, $email} = $STH->fetchrow_array){ $REQ-

Re: Syntax error with while

2003-11-09 Thread drieux
while' at or near line 90? and should that be {$id, $nom, $prenom, $email} = $STH->fetchrow_array or perchance ($id, $nom, $prenom, $email) = $STH->fetchrow_array ciao drieux --- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: Simple CGI question

2003-11-06 Thread drieux
: The Definitive Reference", since I have found it IMPERATIVE. There is stuff that is allowed in one DOM but not another, of the three of them. cf: <http://www.wetware.com/drieux/CS/Proj/TPFH/gen_doc.html> for my default listing of books one might as well just break down and put on the s

Re: Simple CGI question

2003-11-06 Thread drieux
my assumption is that the 'frames' were set up with something like: ciao drieux --- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Delete/Archive older enteries.

2003-11-06 Thread drieux
problem, it is in this foreach loop that the decision is made whether code is "deletable" - hence if ( $removeby > &date_to_delete($id)) { print SAVEDB "$line\n"; next; } and just make sure that you did the appropriat

Re: HTTP::Request

2003-11-06 Thread drieux
the 'get()' method is to construct the HTTP::Request object, ( cf HTTP::Request ) and pass that object: $request = HTTP::Request->new('GET', 'http://search.cpan.org/'); # and then one of these: $response = $ua->request($request); so yes, the line is b

Re: how-to: custom exception handling?

2003-11-05 Thread drieux
f information' c. $h - the 'http header stuff' - since that's from a 'hey, let us use HTTP as our session layer to call other services from other web-browsers' chunk of code This way I can also check things like what the 'stat

Re: interpolating a variable with a request parameter

2003-10-31 Thread drieux
token. whereas $qty[$i] = $q->param("qty$i"); would probably Allow the string to be interpolated as "qty0" which is what you seem to want. ciao drieux --- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: cgi mystery may kill me

2003-10-29 Thread drieux
unable to open ./Images/junk_not_here.jpg :No such file or directory at junk.plx line 12. [jeeves: 11:] the former being the '-B' failure, the later being the die on the open... which are the two features you noted. HTH. ciao drieux --- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: help with syntax error

2003-10-29 Thread drieux
e numeric!\n" unless ( $radius =~ /^\d+$/); etc, etc, etc... ciao drieux --- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: javascript in perl

2003-10-29 Thread drieux
'browser' side that it be 'coherent'. One solution is start 'simple' with writing the Java Script out in 'chunks' as a part of the basic html and see if it still does what you want when called. ciao drieux --- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: uploadfiles

2003-10-01 Thread drieux
doing my $fh = $query->upload('uploaded_file'); while (<$fh>) { # # stuff we do with that reference to the uploaded file # } unless you are really want to play with the $query->param() and the other method calls... HTH. ciao drieux --- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: separating functionality

2003-09-27 Thread drieux
methods, and then the sub_classes add in the additional ones, and... and... and my $funkMgr = new Foo::Bar::Baz::FavFuncs; my $foo_bar = $funkMgr->fon_gu_lea(@arglist); will seems a reasonable exchange. But you will probably want to check out Randall Schwartz's new boo

Re: Include Files in Perl?

2003-09-26 Thread drieux
2xs perldoc perlsub perldoc perlmod perldoc perlmodlib and you might as well pick up the learning perl references and modules book. ciao drieux --- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Real beginner's questions

2003-09-24 Thread drieux
On Wednesday, Sep 24, 2003, at 11:39 US/Pacific, Bill Teschek wrote: HTH, Thanks for responding. My questions at this point are more in line with how to get a script file to work with perl on our webserver. I'm been doing static HTML for years now but have just never ventured into cgi and per

Re: Real beginner's questions

2003-09-24 Thread drieux
p at <http://www.wetware.com/drieux/CS/Proj/TPFH/gen_doc.html> Getting a feel for Perl itself is best done with something like the Learning Perl book. You will of course want something like the Learning Perl in WIN32 <http://www.oreilly.com/catalog/lperlwin/> that should help you ove

Re: CGI.pm > 2.98 breaks CGI::Carp?

2003-09-24 Thread drieux
y useful. return({ runtime_error => "Problems connecting to $host_port got status: $@" } ) if ( $wrapper_flag ); \$page; This way all of the cgi code that will come through this module has to deal with the fact that ex

Re: CGI.pm > 2.98 breaks CGI::Carp?

2003-09-23 Thread drieux
pened b. what the alternatives are at this point c. will conform with the rest of the style of your web pages just a quick knickle tour - I of course will defer to Randal to go into more detail if required. ciao drieux --- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Problem writing to a file

2003-09-17 Thread drieux
e ciao drieux --- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Problem writing to a file

2003-09-17 Thread drieux
your cgi code was installed. Some folks set those as 777 and leave it all to the gods that no one will abuse that reality. This is less and less acceptable on more and more web-sites. Prudence generally dictates 755 where other members of your group and the rest of the world can read and exec

Re: Problem writing to a file

2003-09-17 Thread drieux
created a directory and chown'd it to user admin, so even those I and admin are in the same group, I can not create files in the directory because only the user admin has write permission on the directory. eg: [jeeves: 3:] ls -ltra total 0 drwxrwxrwx 29 drieux house 986 Sep 17 15:59 .. drwxr-xr-

Re: Problem writing to a file

2003-09-17 Thread drieux
ry outside of where you have the actual CGI open(FILE, "> ../tmp/newfile.txt") || die("newfile.txt: $!"); so you layout would look like ../cgi_bin/my.cgi ../tmp/newfile.txt Or you may want to look at say perldoc IO::File and specifically new_tmpfi

Re: Capturing At Compile Time

2003-09-17 Thread drieux
more hassle than most folks want to be working with. ciao drieux --- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Truncate questions.

2003-09-15 Thread drieux
is still good, and which data in it is 'dead wood' that needs to be purged. One trick to think about is move DB_File to OLD_DB_file create TMP_DB_FILE traverse OLD_DB_FILE and write to TMP_DB_FILE move TMP_DB_FILE to DB_FILE ciao drieux --- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: cgi

2003-09-15 Thread drieux
the form.html send email to a special email account say 'the_web_page_account' then have an application deal with email to that account... It could be run as a cron job and send your account a summary of things about that account. ciao drieux --- -- To unsubscribe, e-mail: [EMAIL PROT

Re: Still Not sure if I agree with myself.

2003-09-15 Thread drieux
RVOUS. My normal habit is make it work congeal together what is common to all If they really have a common base not unique to this project then distill that common base out for re-use... at which point, I fear I agree with the YA_CGI_AppServer notion for, as

Re: Still Not sure if I agree with myself.

2003-09-12 Thread drieux
quest Method # } make_header_and_send($page_type, $page); so that of course yearns to be in a module, rather than as something one would cut and paste into each new CGI script... But looking at your diagramme, I think I can see why you are pointing towards

Want CGI script to test and start daemon - was Re: CGI problem, please help

2003-09-12 Thread drieux
'-b' : boot|begin '-k' : kill|klose hence 'daemon -b' will start the daemon, and if it already knows where the pid file is going to be, it will then check to see if another daemon of it's type is running, and either defer to the existing one, or tell it

Re: Perl/Linux problem.

2003-09-11 Thread drieux
print &header; print "Hello world"; should work since the CGI::header() will put the additional CRLF in play and separate them... You do have the #! line with the -w flag set? ciao drieux --- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Perl/Linux problem.

2003-09-11 Thread drieux
2003, at 15:45 US/Pacific, Wiggins d'Anconia wrote: [..] Without that all the claims you make to checking everything are suspect bad hair day there wiggins? THWACK! THWACK! THWACK did that help loosen up the dandruf. ciao drieux --- the simple code: ### #!/usr/bin/perl -w ### use

Re: Still Not sure if I agree with myself.

2003-09-11 Thread drieux
.. }; sub should { defined($REQ_PARAMS->{$_[0]}); } sub doDaemon { } sub kickDaemon { $me=shift; $me->doDaemon(@_); } # the synonym trick... Which still gives me a HASH to manage, plus the actual Sub. ciao drieux --- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Still Not sure if I agree with myself.

2003-09-11 Thread drieux
On Thursday, Sep 11, 2003, at 05:51 US/Pacific, fliptop wrote: [..] drieux - since no one has responded, i'll take a stab at some of the issues you bring up. [..] Thanks for the feed back. In the code that I implemented, I did not use the Closure to 'wrap' my Package - but I

Re: modules

2003-09-10 Thread drieux
that it should pass the data to the function, and then return it out, oh, say STDOUT. Trust me it can be done, but it is such an ugly path that it should be left for the strictly obfuscatory Perl Contest. ciao drieux --- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: modules

2003-09-10 Thread drieux
On Wednesday, Sep 10, 2003, at 12:14 US/Pacific, Rodrigo Daniel de Lira wrote: hi, Can I to call a function that is in another script? not easily. the best solution is to go with a perl module. ciao drieux --- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail

Re: CGI problem, please help

2003-09-10 Thread drieux
that you may want to download and look at. One of them is <http://www.webmin.com/> which is in perl b. you might want to use the 'plx' extension, so that everyone knows that 'server.plx' is intended to be a perl

Re: Security?

2003-09-09 Thread drieux
On Monday, Sep 8, 2003, at 22:57 US/Pacific, Greenhalgh David wrote: [..] I refer you to the answer I received from Drieux to (almost) exactly the same question. ---Drieux's code--- #!/usr/bin/perl -w use strict; use Fcntl qw/O_CREAT O_RDWR O_EXCL O_RDONLY/;;

Still Not sure if I agree with myself.

2003-09-08 Thread drieux
e Closure it is still package 'main'??? The demonstration code that goes with my longer write up of my 'issues' - cf <http://www.wetware.com/drieux/CS/Proj/TPFH/a_bci.html> started out Strictly as a simple illustratoin of how a command line interface piece of code CAN be writt

Re: tcpdump to a perl script

2003-09-05 Thread drieux
template is found at: <http://www.wetware.com/drieux/pbl/perlTrick/drieuxTemplates/DoCmd.txt> This way I can work out the basic semantics for what most of the cases of foo | bar will work out to be... or do you mean pipe as in pipe(CHLDr, PRNTw); pipe(PRNTr, CHLDw);

Re: [Addendum] Stripping HTML from a text file.

2003-09-04 Thread drieux
r> }<br> }<br> d=new Date();<br> s=Math.round(d.getTime()/1000);<br> r=Math.round(parseInt(n,32)%1021);<br> if (lck!=l) {<br> document.write('<meta http-equiv="Expires" content="-1">');<br> if (location.search.indexOf('r'+r+'=')!=1) {<br> location.replace('http:// '+location.hostname+location.pathname+'?r'+r+'='+s);<br> }<br> }<br> ciao drieux --- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Stripping HTML from a text file.

2003-09-04 Thread drieux
stuff in the head element. ciao drieux --- my $text =' "http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd";> The J Group <br> <!--<br> pre { font-size: 14px; font-weight:bold }<br> //--><br> http://www.wetware.com/dr

Re: Stripping HTML from a text file.

2003-09-04 Thread drieux
have more and more quick fix scripts already to fire 'the next time' as well as a leg up on making sure that there is a better way to 'do it right the first time'. ciao drieux --- It could just be my OCD, but if I could have hammered flat every FROOOTLOOP who wanted merely a

Re: Stripping HTML from a text file.

2003-09-04 Thread drieux
} print $line ; } but this assumes that the start and stop tags do not have something else on the same line with them - eg ciao drieux --- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: passing an argument to a subroutine

2003-09-04 Thread drieux
print "@$forwarded\n"; # print ${$forwarded}; } also it is simpler to just 'dereference' the array directly. ciao drieux --- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Defining Return-path.....

2003-09-02 Thread drieux
gure documentation will allow you some modicum of sane web based email sending... ciao drieux --- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: automated file removal / cache clearing

2003-08-29 Thread drieux
in my case, it was just simpler to leave those problems to the sort of traditional 'unix' solution of 'clearing out /tmp' when we reboot... The core problem the OP still needs to work out is: so why are you caching in little files that can be abandoned/marooned on the file system? ciao drieux --- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: automated file removal / cache clearing

2003-08-28 Thread drieux
rts asking one's self, is this an order N square or N factorial solution? while in the worst case the cron job based solution is merely an order N problem... ciao drieux --- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: automated file removal / cache clearing

2003-08-27 Thread drieux
ation as DB records, then running a purge routine on the 'old records'? ciao drieux --- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Call to a function is a seperate file

2003-08-25 Thread drieux
with the learning book, before falling in amongst 'the diseased' You were warned. } My own Personal Ranting on Perl Modules is up at: <http://www.wetware.com/drieux/CS/lang/Perl/PM/> So while I am a RELIGIOUS FANATIC about 'h2xs' - as a way to start a new module cleanly

Re: Why executable?

2003-08-20 Thread drieux
code. Which is a bit lame if the code is merely 'text' such as Foo.pm and Bar.html or Baz.php that really needs something else to make them 'go' ciao drieux --- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

MVC - the 'meme drift' was Re: return(bless $rant, $class) || Fwd: PHP vs Perl

2003-07-31 Thread drieux
e' in it's original intention, such as the MVC Design Pattern, is worth at least knowing about and working out how best to use the 'best practices' that it attempts to establish - or we should follow the 'meme drift' and decide that Perl Is Dead, because NewCoolerCodingF

Re: How does CGI.pm handles Content-type: text/html\n\n ?

2003-07-29 Thread drieux
return $page if ($bytes_read); \$page; } # end of wrapper_call In this case the caller either gets the reference to the page, or a reference to a hash, that has the 'run_time_error' message in it... This way if the caller wants to report out the error cas

Re: return(bless $rant, $class) || Fwd: PHP vs Perl

2003-07-28 Thread drieux
his in an article dated March 13, 2002 { would this be the wrong time to talk about '64-bit architectures' - and whether or not one should be planning on getting that new cool CPU with the fully implemented 64-bit kernel } Or would that be in the same space as why we must all aband

Re: How to add modul directory to @INC

2003-07-28 Thread drieux
e 'cheats' that one can get away with in the cgi environment is that MOST 'reasonable' web-servers will 'chdir' to the directory where the foo.cgi is invoked - so one can do the relative path offset solution of use lib '../lib'; and then hang your modules there... ciao drieux --- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: return(bless $rant, $class) || Fwd: PHP vs Perl

2003-07-28 Thread drieux
On Sunday, Jul 27, 2003, at 20:03 US/Pacific, Todd W. wrote: "Drieux" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] [..] But First off - COOL RANT! I was hoping that _some_ day I could string a few sentences together as well as you do =0) [..] flattery will get

Re: need help/ advice

2003-07-28 Thread drieux
s perldoc -m "foo::bar::baz" will let you look INSIDE that modual at what is REALLY going on. [..] The code below just gets me the name of your home page as a string. correct? incorrect. but were I to do something like say my $url = URI->new(); $url->scheme('http'); $url-&

Re: need help/ advice

2003-07-27 Thread drieux
port); but were I to do something like say my $url = URI->new(); $url->scheme('http'); $url->host($host_port); $url->path('/drieux'); my $response = $ua->get($url->as_string()); would get you my 'home page&#

Re: PHP vs Perl

2003-07-27 Thread drieux
s where we shift to the question of encrypted VPN client connection mechanism as a more interesting model for dealing with what information should be 'more tightly guarded' from prying eyes? Or were we planning to deal with 'information encryption' as a part of the problem here?

Re: PHP vs Perl

2003-07-27 Thread drieux
e all like to admit in polite society about the fact that there are 'vagaries' that exist in the 3 DOM's, and the 'featureFullNeff' of how 'JavaScript' has devolved to begin with ciao drieux --- ps: some seriously SLICK stuff there -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: .htaccess login outside

2003-07-27 Thread drieux
uot;stty -echo"); my $password = ; system("stty echo"); print "\n"; # because we disabled echo chomp($password); return ($user, $password); } else { return (undef, undef) } } # end gbc - the get_basic_credentials ciao drieux --- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: PHP vs Perl

2003-07-27 Thread drieux
boys and girls, if we want to have SERIOUS flameFesting, then, uh nope, do not want to... } ciao drieux --- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: .htaccess login outside

2003-07-27 Thread drieux
: <http://www.wetware.com/drieux/pbl/Sys/Admin/passwdGame.txt> or you will have hidden that safely somewhere... then you can of course take that and stuff it into your basic user agent like my $ua = LWP::UserAgent->new; my ($user, $pword) = gbc($realm, $uri); die &

Small Fawning Moment

2003-07-26 Thread drieux
s a lot of good stuff in there that I REALLY WISH would have been in book form when I wound up beating my head on it Bottom Line, Drop The Dime Get On Top of the Times... ciao drieux --- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: PHP vs Perl

2003-07-26 Thread drieux
the 'pros' from those who are still learning... On both sides of the hiring table... I'm almost willing to say that we may be doing people harm by trying to sell perl as a simple easy thingie poo. At least as easy as - since software stuff tends to get complex real quick, and no amount

Re: return(bless $rant, $class) || Fwd: PHP vs Perl

2003-07-26 Thread drieux
On Friday, Jul 25, 2003, at 13:20 US/Pacific, Ovid wrote: --- drieux <[EMAIL PROTECTED]> wrote: Great Questions! MVC - Model,View,Controller it is a design pattern, a way of 'looking at' the problem and understanding which parts belong where. <http://www.google.com/search?hl=

Re: Apache problems

2003-07-26 Thread drieux
5.6.0 for the libperl.so that the apache was using and I wanted to install the perl 5.6.1 version... this would be even more of a crisis with a 5.6 v. 5.8 problem... But it makes less sense with the 'uninstall'/'reinstall' solution that you are suggesting. ciao drieux --- -- To

Re: return(bless $rant, $class) || Fwd: PHP vs Perl

2003-07-25 Thread drieux
gh a blessed reference' and figured, hey, maintaining this will be so much simpler if I simply separate the basic set of db_get_actions() from the check_maintenance() set of actions, so that I can manage the two in separate modules. The former 'class' deals with the 'do some DB query stuff' while the later deals with the traditional DB maintenance questions about how to do Import the DB, Export the DB, Compact the DB, and FSCK the DB. This way the exposed 'cgi code' that gets called is, well, just there - while the underlying DataBaseFoo is abstracted behind perl modules in this case without having to transit through the 'blessed reference'. I bascially trust Perl's Hashing Algorithm that much. HTH. ciao drieux --- Trust me, if you watch it go through the Perl Debugger you too would have faith in all of the lines of code it does not have to execute... -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

return(bless $rant, $class) || Fwd: PHP vs Perl

2003-07-24 Thread drieux
ken" unless $web_service->reality_check(@cosmic_void); p4: given that hacking in perl does not require MVC as a design pattern, but one can learn the hard way to support it ciao drieux --- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Another Regex question.

2003-07-23 Thread drieux
$TS_cont now prints out: BrainWaveSuckingAlienBeastCreaturesFromPlanetZarkon was Brain Wave Sucking alien beast creatures from planet zarkon since as you will note, we added in the '\s*' to grab any 'white spaces' - but since we did not put them bac

Re: PHP vs Perl

2003-07-23 Thread drieux
approach' v. 'I CodeMonkey'... Allow me the illustration of the three players on the current project - <http://www.wetware.com/rai/> - did the graphics <http://www.wetware.com/drieux/> - did the middleware 'cgi' sir_URL_not_appearing_on_

Re: PHP vs Perl

2003-07-23 Thread drieux
- I think it helps to look at the various ways that 'CGI' gets implemented - and figure out whether one can 'implement, update, maintain, refactor, re-implement and reuse' stuff if one started in code language foo or bar I like perl precisely because it is a glue language, and has

Re: PHP vs Perl

2003-07-22 Thread drieux
interface, so that it will be used, plus the extension to that Module, to handle all of the new classes of ERRORS that can occur, because one did or did not pass that additional set(s) of argument(s), with or without the newly restructured pre-ceeding Smack, because the vendor's CLI MVC shift

Re: Clearing a Form

2003-07-22 Thread drieux
as a 'hidden' - and you can then think about dealing with a journaling database model that will allow you full rollback, etc, etc, etc... But basically what I would argue is that you get a better back end model for dealing with the real back end issues. ciao drieux --- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: sending mail to a group using perl

2003-07-15 Thread drieux
n the group - and also to email clients, if an entry is to an actual RFC822 compliant email address... We went through weirdness like that with a corporation that believed in Lotus Notes HTH. Personally I would go with Mail::Mailer - which has a bunch of simpler ways to deal with 'sen

Re: Getting the domain name

2003-07-14 Thread drieux
or trying to figure out which part of the string is the host part. try to remember that nas.nasa.gov IS the domain name, not a host and domain component ciao drieux --- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: look arounds

2003-07-06 Thread drieux
!$ perl junk.plx Use of uninitialized value in concatenation (.) or string at junk.plx line 8. Use of uninitialized value in concatenation (.) or string at junk.plx line 8. color = , animal = vladimir: 106:] ciao drieux --- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: dynamic update part of a table

2003-06-29 Thread drieux
27;s just a table)? that user can scroll? thanx! what you may want to look at is the issues with using frames and frame-sets and setting the with scroll... It would be nice if more browsers were willing to use say but that really limits the number of candidates... ciao drieux --- -- To un

Re: Why should I create an object?

2003-06-28 Thread drieux
gy to avoid collisions... Another strategy of course is to be explicit my $input = CGI::param('input'); This way one knows that the param is the param() that one means there is some trade off here, in that one only imports the methods that one means to import... ciao drieux -

Re: Why not Class Objects

2003-06-28 Thread drieux
package Wetware::Hq::Web::RCI; . use Wetware::RCI; our @ISA = qw(Wetware::RCI); . this way when i do things like my $rci = new Wetware::Hq::Web::RCI; it inherits all the song and dance of the base class... ciao drieux --- -- To

Re: Some Qs about the -w switch and initializing vars.

2003-06-17 Thread drieux
@thingies) { $$ref = '' unless(defined($$ref)); } print "$name, $address1, $address2, $address3 ,$address4 \n"; } # end of do_funk this way if ANY of the variables get undeffed, you can initialize them... 3. Are both of these questions moot because I should use -w while developing the cgi, but remove it before actual use? nope both questions are Most Excellent and are starting to dig into some of the problems. ciao drieux --- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: suexec question

2003-06-16 Thread drieux
On Monday, Jun 16, 2003, at 03:11 US/Pacific, Eugene Geldenhuys wrote: [..] Thanks for the advice I have looked at the items you mentioned - details in body of reply [..] will someone remind the drieux to have coffee, I think the problem could well be the imfamous problem of binding processes to

Re: Premature end of Script header

2003-06-15 Thread drieux
F and ONLY IF you really meant that to be the last of the header lines that you want to ship back. technically you will want to pass in either an array @headers = ("Content-type: text/html", ) and then parse them out print "$_$CRLF" foreach(@headers); print $C

Re: Problem with script headers.

2003-06-15 Thread drieux
is to find out where you are trying to open a logfile, and how to protect that open, so that in the case where it fails, you can 'catch' the exception, and try something else... alternatively cf: perldoc CGI::Carp and just use their wrappers to deal with the use CGI::Carp qw(fat

Re: Needing IP addresses

2003-06-12 Thread drieux
is no gurantee that the actual value there is Kosher, but if you really want to get funky then you can of course look at the REMOTE_PORT and try some socket getpeer types of tricks... ciao drieux --- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: suexec question

2003-06-12 Thread drieux
ly agree that you should NOT need to have the setuid bit set on the executable... p5: have you any interesting information from the suexec.log that can help you sort out what it is whining about? ciao drieux --- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

  1   2   3   >