Re: Embperl Book (was: Embperl Wishes and comments)

2003-08-14 Thread David Lloyd
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Gerald, > Several people told me they would help to write a book. The problem is > I have a contract to write a book in german (which maybe will be > tranlated into english later), so we would need people who are able to > write in german... Alterna

Fw: [Jobs] JOB: (Balmain, Sydney) Programmer and Linux Sysadmin,Full Time

2003-08-14 Thread David Lloyd
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 NOTE: Excuse the crappy formatting. But seeing it mentions Embperl I thought this would be of interest. Begin forwarded message: Date: Fri, 8 Aug 2003 11:53:43 +0800 From: Linux Jobs <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Subject: [Jobs] JOB: (Ba

Linux.Conf.Au 2004 Opens Registration :-)

2003-09-02 Thread David Lloyd
Linux.Conf.Au 2004 opens registrations! Registrations for Linux.Conf.Au, Australia's national Linux and open-source conference, to be held in Adelaide, Australia on January 12-17, 2004, open today. Now is the time for YOUR fun to begin. Right now, head off to http://lca2004.linux.org.au/registe

Re: What's going on with Embperl???

2003-09-26 Thread David Lloyd
Hmmm... > > For getting 2.0 out of beta: I use 2.0 for a long time in all my > > projects and it is very stable, there is no reason for not to use it > > in production environment, I really should rename it to 2.0 final. The > > only thing I see is, what Neil mentioned, that there a some (small)

Apache::StatINC, Embperl and mod_perl problem

2001-06-01 Thread David Lloyd
H I have: (in httpd.conf) PerlSetEnv PERL5LIB /home/httpd/modules/ PerlSetVar ApacheStatINC_Debug 1 PerlModule Apache::StatINC PerlInitHandler Apache::StatINC I'm running under mod_perl and HTML::Embperl is taking care of any files that end in .epl I've rolled a little script using em

Re: Apache::StatINC, Embperl and mod_perl problem

2001-06-01 Thread David Lloyd
Yep! It's basically a package based on the example in the Camel Book: package LMail; require Exporter; @ISA=qw(Exporter); @EXPORT_OK=qw(get_mail); sub get_mail { # body } - To unsubscribe, e-mail: [EMAIL PROTECTED] For addit

Re: Apache::StatINC, Embperl and mod_perl problem

2001-06-01 Thread David Lloyd
Gerald! > So could you try to write > > [- @result=LMail::get_mail() -] > > Does this change anything ? I tried that and it works perfectly. But I can't quite think of why it would work using that form, although I'm sure I'd understand why if someone pointed it out to me. DSL --

Re: Apache::StatINC, Embperl and mod_perl problem

2001-06-01 Thread David Lloyd
Gerald! > "use" generates an alias to LMail::get_mail, so you can call it without the > need to specify the package name. Hole in one. > While StatINC forces a reload of the > module it can't know of the alias. So the alias inside the Embperl page > still points to your old code. I guess when

EmbperlObject + ApacheStatINC Woes

2001-06-03 Thread David Lloyd
I have, in my httpd.conf: # If the perl module is installed, this will be enabled. PerlInitHandler Apache::StatINC; Alias /perl /home/httpd/perl SetHandler perl-script PerlHandler Apache::Registry Options +ExecCGI Alias /foo /home/httpd/html/foo

Re: EmbperlObject + ApacheStatINC Woes

2001-06-04 Thread David Lloyd
It just kills it totally. Either embperl.log is not made, or no lines are added to it. The moment I remove PerlInitHandler Apache::StatINC, /tmp/embperl.log fills up with what one would expect and everything works. I don't believe a log of EmbperlObject working correctly would be useful so I'm no

Question Re: EmbperlObject

2001-06-07 Thread David Lloyd
If I have: base.epl [- Execute(*); -] And index.html as: [- get_content_from_a_database("index.html"); -] Where base.epl is the EmbperlObject base, does Embperl also parse the output of that function? For example, if get_content... returned: [+ $myvariable $] Would I see that as a lite

Re: Question Re: EmbperlObject

2001-06-08 Thread David Lloyd
Yep! > Any output inside the page is not parsed again, but you can run it thru the > Exeute function to get the desired result: > > > [- $code = get_content_from_a_database("index.html"); -] > [- Execute ({input => \$code}) -] > I stumbled across that solution by reading the documentation, a

The Request Record

2001-06-09 Thread David Lloyd
How "secure" is the request record which is shunted around various parts of EmbperlObject? Obviously you would still encrypt any sensitive data which you'd added to it, but I'd surmise that it's possibly a little more secure than using hidden form fields. (Because anyone can just view the source

Re: Stack underflow bug

2001-07-09 Thread David Lloyd
Um... Write good HTML code. HTML has to be the only medium where users/programmers expect it not to crash no matter what you do... :-( - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PR

htaccess

2001-07-13 Thread David Lloyd
Can you put the embperl setup in .htaccess? This is probably an FAQ but I can't work it out :-( DSL -- "The greatest thing you'll ever learn is just to love and to be loved in return." - David Bowie (Nature Boy from Moulin Rouge)

Apache::DBI (OT Kinda) Question

2001-09-04 Thread David Lloyd
If I use Apache::DBI under mod_perl and continuosly open and disconnect a DBI:mysql connection, it should reuse the same connection and not perform a database lookup all the time. I have a piece of code that I can't be bothered optimising (i.e. it currently opens and closes about 30 connections

Re: Hiding the source code

2001-10-26 Thread David Lloyd
Lukas! > I have a really big problem now. We are going to install our first application > but we need to hide the sourcecode. User should be not allowed to get the > source. Is there any way to do it? If Embperl is running correctly, users should not be able to see the source code. It's an Apac

Bug Report::Embperl + Session Handling

2001-10-28 Thread David Lloyd
Gerald! I recently decided to upgrade Storable and Apache::Session; the base system is a RedHat 7.1 installation of Perl v5.6.0. Versions I have are found at: --- http://www.cpan.org/authors/id/JBAKER/Apache-Session-1.54.tar.gz http://www.cpan.org/authors/id/RAM/Storable-1.0.13.tar.gz Default

Session Handling and Get Variables or Forms

2001-10-28 Thread David Lloyd
Hmmm... I have an authentication system that uses the Apache::Session::MySQL backend with cookies to handle authentication. Sequence I use is: 1) Get username and password 2) If ok, generate a sessionkey and set $udat{'sessionkey'}=gen_sessionkey($username) However, every now and then Embperl

Re: Session Handling and Get Variables or Forms

2001-10-29 Thread David Lloyd
Elvis! [root@localhost /root]# rpm -qa | grep mysql mysql-3.23.36-1 php-mysql-4.0.4pl1-9 mysqlclient9-3.23.22-4 mysql-server-3.23.36-1 mysql-devel-3.23.36-1 DSL -- If we could extract all the evil from each of us, Think of the world that we could create! A world without anger, or violence or

Re: Session Handling and Get Variables or Forms

2001-10-29 Thread David Lloyd
H... > There are two things that I could image. Either for whatever reason your > sessions never goes into the database, in this case %udat will behave like a > normal hash and it works as long as you hit the same child. (You will hit > the same child as long as your KeepAliveTimeout isn't o

Re: Sessions inconsistent

2001-11-12 Thread David Lloyd
Stupid question, but how do you make sure it's set BEFORE embperl is loaded? DSL -- If we could extract all the evil from each of us, Think of the world that we could create! A world without anger, or violence or strife... (From the Musical, Jekyll and Hyde)

Re: Sessions inconsistent

2001-11-15 Thread David Lloyd
Gerald! > 1.) PerlModule HTML::Embperl > For 1., put the PerlSetEnv with the session vars, before the PerlModule > statment in your httpd.conf I have finally managed to get session management working; I used to have the EMBPERL_SESSION_CLASSES and EMBPERL_SESSION_ARGS in my without using a

Re: Sessions inconsistent

2001-11-18 Thread David Lloyd
Gerald! > That's dangerous, because you can't have different values for these > configuration directives. They are global. (Yes that's something that should > be changed sometime, but it isn't yet). If you have different values the > session management get's initialized with the values from the

Re: Multiple Form Elements

2001-12-01 Thread David Lloyd
Wouldn't this be easy to do a test run of? DSL - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: File Handles

2002-01-01 Thread David Lloyd
Ruben! > How did we get a file into an html page prior to [- Execute ('header.txt') -] > > I tried [- @headers = -] > > and that failed. I think that Embperl can bugger up spaceship operators and filehandle operators. See if you can try: [- @headers= h; -] (last time I looked it tends

Re: Login/Authentication Advice

2002-02-06 Thread David Lloyd
LOL > will be protected. If you use Embperl session management you have to test if > the user is logged in in every page before you can do the real work. On the > other side useing Embperl session data gives you some more flexibility, > because you have some more control what happens to un autho

Re: ANNOUNCE: Embperl 2.0b7

2002-03-20 Thread David Lloyd
Any idea when 2.0-STABLE is going to come out? DSL - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: execution vs output timing

2002-03-24 Thread David Lloyd
Hmmm... > [- some code here -] > some html here > > is it guaranteed that the code block will be executed completely *before* > the html block is sent to the browser? I think it is. For example, if you modify a global variable in the [- -] block then use a [+ +] block afterwards you ALWAYS se

Re: Embperl 2.0b7 approx. 10 times slower than 1.3.x

2002-04-15 Thread David Lloyd
Alexander > The "old" machine: > 800Mhz PIII with 256MB ram > RedHat 6.2 > Apache 1.3.19 with mod_perl 1.25 and embperl 1.3.1 > > The "new" machine: > 866Mhz PIII with 256MB ram > RedHat 7.2 > Apache 1.3.22 with mod_perl 1.26 and embperl 2.0b7 > > > The slowest embperl script generates a html

Re: Embperl 2.0b7 approx. 10 times slower than 1.3.x

2002-04-16 Thread David Lloyd
Wim > code. Inside that eval block, the entire results of the query are being > loaded into memory. Instead of doing that, only put the $dbh->prepare > and $sth->execute in the eval. In the display code, process each row one at > a time, via something like this: That confirms my suspicion - it

Re: Embperl 2.0b7 approx. 10 times slower than 1.3.x

2002-04-16 Thread David Lloyd
Alexander > Do you really think the kernel is the problem? It could be -- try using the Kernel RPMS created by RedHat and see if there are any updates on www.redhat.com. > Is there any way how to debug the script (or the kernel)? perldoc HTML::Embperl ...and scroll down to debug. I wonder w

Re: [! And [-

2002-07-29 Thread David Lloyd
Heh, > Correct, because the sub definition hasn't changed. Of course invoking > and running the subroutine still (potentially) happens every time, so > that would be done with [- brackets. ...unless you only want the subroutine to load once and only once (for whatever contrived reason one might

Re: Fresher To EmbPerl !

2002-07-31 Thread David Lloyd
Gaurav, It is a normal perl module; go to somewhere on CPAN (http://www.cpan.org/), search for HTML::Embperl and install as you would any other module. * perldoc HTML::Embperl ...or look at: * http://perl.apache.org/embperl/ DSL (1) HTML e-mail is evil ;-P (2) You seem to have an "I requir