Catalyst::View::Embperl ???

2006-02-03 Thread Derrick Spell
I've been looking at Catalyst lately. I wonder if anyone has considered the possibility of using embperl as the templating engine? I see that views can be handled by mason already. -Derrick "[The Perl source is] an interconnected mass of livers and pancreas and lungs and little sharp point

Re: Text to HTML recipe making

2005-12-21 Thread Derrick Spell
On Dec 20, 2005, at 11:17 PM, Gerald Richter wrote: Unfortunately there are a few lines of C code missing to get this done. It was always my intention to make such a usage possible, but I didn't got around until now to implement the last piece :-( Ah. Does this mean that you have now done

Re: Cookies not set

2005-12-14 Thread Derrick Spell
I just tried to apply the patch and had two issues: * I don't have a podsrc/Config.spod, so it couldn't apply the patch. I'm guessing this is no big deal. I'm using the Embperl-2.1.0 installation tree. * After applying the patch and running perl Makefile.PL; make; make test; I got th

Re: [! !] and [- -], maximums for $row and $col

2005-12-14 Thread Derrick Spell
I experienced some weird behavior with [! !] before. Here is my theory: The [! !] blocks are executed once per apache child, which means that if you change the files/routines then you need to restart the server to force all the children to re-read the files/routines. I was developing a pa

Re: Cookies not set

2005-12-01 Thread Derrick Spell
On Oct 28, 2005, at 3:36 PM, Gerald Richter wrote: I finally had the time to get in and look at the headers. It seems the issue was in the expiration calculation. The cookie that was coming through was set to expire 10 mins before it got there! I changed the cookie_expires in my config file

Re: javascript variables in embperl tag

2005-11-18 Thread Derrick Spell
Well, I'm certainly not a javascript expert, but it seems to me that the issue here is how to make data pulled by embperl on the server side available to the javascript on the client side. I assume that there is a way to access submitted form data from javascript. You can put the data into

Re: Cookies not set

2005-10-27 Thread Derrick Spell
I'm having an issue where sometimes the cookie is not being set on the client. If you do a graceful restart of apache and then try again, the cookie is set. What's even more strange is that not all clients are having this problem, but the ones that do will have the problem consistently until I r

Cookies not set

2005-10-17 Thread Derrick Spell
I'm having an issue where sometimes the cookie is not being set on the client. If you do a graceful restart of apache and then try again, the cookie is set. What's even more strange is that not all clients are having this problem, but the ones that do will have the problem consistently un

Apache::SessionX with MysqlMysql

2005-10-13 Thread Derrick Spell
Due to the inherent instability of using FileFile on a Linux extended file system, I am trying to set up Apache::SessionX to use MysqlMysql. I seem to have it all set up except for the following message during make test: ** 0.533149s SessionManager not supported by MysqlMysql Is this some

Re: Subroutine Inheritance

2005-05-25 Thread Derrick Spell
title "Base : Level 0". Is there anything I can do to make the Execute isa in the base.epl actually include the title.epl in the requested directory? Change the [! Execute({isa => 'title.epl'}); !] in base.epl to [- Execute({isa => 'title.epl'}); -] , because the search path is not set when

Embperl not being processed

2005-05-25 Thread Derrick Spell
Does anybody know what could make Embperl stop processing a page? I have a page that is being processed by Embperl::Object - i know because my template is being applied - but at the bottom of the requested page I have some output of fields in $udat. These statements are being passed direc

Re: Subroutine Inheritance

2005-05-25 Thread Derrick Spell
I want to set up a method accessed from the request object that will allow me the option to create a page title based on the path to the page. What I was thinking was: In your page you say [! Execute ({isa => 'title.epl'}) !] In your title.epl you say [! Execute ({isa => '../title.epl'}) !]

Subroutine Inheritance

2005-05-24 Thread Derrick Spell
I want to set up a method accessed from the request object that will allow me the option to create a page title based on the path to the page.  What I was thinking was:/base.epl[! sub title { print OUT "Company"; } !][- $req = shift -][- $req->title() -]/title.epl[! sub title { print OUT " "; } !]/

POD syntax

2005-05-23 Thread Derrick Spell
Can somebody post an example of displaying a POD file within an Embperl::Object page. When I just do [- Execute{ inputfile => 'test.pod', syntax =>'POD'}) -] I get the XML. Can someone show me how to translate this via XSLT? I'm not very familiar with XML processing, so I am hoping Embpe

Re: Embperl_Object_Fallback

2005-05-16 Thread Derrick Spell
I'm having some problems setting Embperl_Object_Fallback correctly. What I want to do is allow "virtual urls". I want to purposely link to urls that do not exist. These urls would logically reside below a directory called /catalog. The Embperl fallback file inside /catalog would parse the remain

Embperl Object App Destructor?

2005-05-12 Thread Derrick Spell
Does the Embperl Object App have a destructor? Can I define a counterpart to init() that gets called after my pages execute? -Derrick - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED

Embperl_Object_Fallback

2005-05-06 Thread Derrick Spell
I'm having some problems setting Embperl_Object_Fallback correctly. What I want to do is allow "virtual urls". I want to purposely link to urls that do not exist. These urls would logically reside below a directory called /catalog. The Embperl fallback file inside /catalog would parse t

Re: Apparent Nesting Problem

2005-04-27 Thread Derrick Spell
On Apr 25, 2005, at 11:54 PM, Ben Kim wrote: [$ if ($background eq 1) $][$ else $][$ endif $] [- $background = !$background -] I had a simlar problem when I upgraded from 1.3 to 2.0. You should honor the table structure first and fit conditions or loops around it. I.

Apparent Nesting Problem

2005-04-25 Thread Derrick Spell
Greetings, All! I apparently have some sort of control statement nesting problem in my code, but I can't seem to find it. Perhaps a few extra sets of eyes can help... This segment is supposed to loop through the result set of a database query and output the results in a table, highlighting the

Re: just found a severe bug!

2005-03-11 Thread Derrick Spell
If the after the function call is missing embperl loops and prints the output of the function infinite which causes the browser to run into a timeout, because apache never finishes the request. How is this a severe bug? If I forget the terminating condition in a for loop in C my program will loo

SEGFAULT on Mac OS X 10.2

2005-02-21 Thread Derrick Spell
I've got a Mac OS X 10.2 server loaded with Apache 2.0.52, mod_perl 2.0rc4, Perl 5.8.6, Embperl 2.0rc2 - All installed fresh by hand (no factory installations) At rather irregular intervals my apache children will segfault during a request. The result for the user is browser specific - anything

Re: Problems with setting EMBPERL_SESSION_HANDLER_CLASS

2005-01-11 Thread Derrick Spell
On Jan 11, 2005, at 3:48 PM, Ryan C. Spaulding wrote: Hi, I am currently running: Embperl-2.0rc2-1 httpd-2.0.46 on Redhat Enterprise AS 3.2-1 PerlSetEnv EMBPERL_SESSION_HANDLER_CLASS no With Embperl2, you no longer need the PerlSetEnv. Try taking this out and see if it takes care of the

Form::Validate Different rules for different submit buttons

2005-01-11 Thread Derrick Spell
Is it possible to use a different set of rules for form validation depending on which of several submit buttons on the form were pressed? I'm guessing no. It seems I have to have Form::Validate do the least common denominator checking, then do any further processing server side after the subm

Re: Array of Hashes in %udat

2005-01-10 Thread Derrick Spell
On Jan 10, 2005, at 2:27 PM, RobertCZ wrote: Derrick Spell wrote: I have an array of hashes that I would like to store in %udat. First of all, is this possible? Second, what is the correct syntax. I have tried: $udat{AoH} = @AoH; but the array doesn't seem to be there when I try to ret

Array of Hashes in %udat

2005-01-10 Thread Derrick Spell
I have an array of hashes that I would like to store in %udat. First of all, is this possible? Second, what is the correct syntax. I have tried: $udat{AoH} = @AoH; but the array doesn't seem to be there when I try to retrieve it. Thanks, -Derrick -

Make Test Fails Mac OS X 10.2

2004-12-21 Thread Derrick Spell
eanup _ap_remove_module _ap_rflush _ap_rputc _ap_rwrite _ap_send_http_header _ap_setup_client_block _ap_should_client_block _ap_table_add _ap_table_do _ap_table_get _ap_table_set make: *** [test_dynamic] Trace/BPT trap Derrick Spell Webmaster / Programmer Suran Systems

Emperl.so on Mac OSX

2004-12-20 Thread Derrick Spell
aps there is a different technique involved with getting Embperl::Object running on a Mac? Thanks, Derrick Spell Webmaster / Programmer Suran Systems, Inc. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

Screen Resolution Detection

2004-06-15 Thread Derrick Spell
Is there a way in perl to detect a users screen resolution. I want to execute one of two epl files based on the screen resolution. I know I can do this with Javascript, but I don't think there is anyway to get the variable from the javascript to the emperl script. Derrick Spell Webm

Screen Resolution Detection

2004-06-15 Thread Derrick Spell
Is there a way in perl to detect a users screen resolution? I want to execute one of two epl files based on the screen resolution. I know I can do this with Javascript, but I don't think there is anyway to get the variable from the javascript to the emperl script. Derrick Spell Webm

Directory Index

2004-04-23 Thread Derrick Spell
Does anybody have a clue on this? It would appear that my base.epl is never being executed because the requested file is not found. I've tried tweaking around to get it to work, but to no avail. If I comment out the Embperl handlers, then everything works, so I know my DirectoryIndex directive i

Re: error during installation of Embperl-2.0b11 (using CPAN)

2004-04-22 Thread Derrick Spell
I just had this same error not three days ago on my Redhat 9.0 installation. Here's the remedy: Replace line 1605 in test.pl with the following two lines: my @cnt = split/(?:\\n)+/; $cnt -= @cnt; Apparently there is an issue with new line characters in the log files on RedHat. Gerald sent me

Directory Index

2004-04-22 Thread Derrick Spell
Embperl::Object does not seem to be recognizing my directory index.html files. I have the DirectoryIndex directive set for the VirtualHost, but going to www.mydomain.com gives a 404 Not found. Same thing with www.mydomain.com/products and so on... Is there something I need to set to tell em

Re: Configuration Setup

2004-04-21 Thread Derrick Spell
difficulty finding it. Anyway it's working now so I'm moving on! Thanks guys, -Derrick On Apr 21, 2004, at 12:39 PM, Beau E. Cox wrote: On Wednesday 21 April 2004 05:15 am, Derrick Spell wrote: Now I'm having problems with my configuration setup. I put: PerlModule Embperl immediately

Configuration Setup

2004-04-21 Thread Derrick Spell
Now I'm having problems with my configuration setup. I put: PerlModule Embperl immediately after I loaded mod_perl. However, by the time the config file gets down to my VirtualHost, it fails because it doesn't recognize the directives EMBPERL_APPNAME or EMBPERL_OBJECT_BASE. I've already trie

Re: make test fails on RedHat

2004-04-21 Thread Derrick Spell
log, for which reason the number of error lines is different then make test expects. Could please try if the following patch fixes the problem: test.pl line 1605 -$cnt-- ; +my @cnt = split /(?:\\n)+/ ; +$cnt -= @cnt ; Gerald Derrick Spell wrote: Here it is... make[1]

make test fails

2004-04-19 Thread Derrick Spell
I can't get the make test to run correctly. I get the following error: Testing mod_perl mode... #0 ascii... ok #1 pure.htm...ok #2 nooutput.htm...ok #3 nooutput.htm...ok #4 plain.htm... ok #5 plain.htm... ok #6

Re: Installation Problems

2004-04-19 Thread Derrick Spell
Disregard...I got the latest version of Embperl (2.0b11) and it fixed the problem On Apr 18, 2004, at 3:42 PM, Derrick Spell wrote: I'm having trouble installing Embperl 2. I have Apache 2.0.49 and mod_perl installed. Apache was built with the standard Apache layout (i.e. everythi

Installation Problems

2004-04-18 Thread Derrick Spell
I'm having trouble installing Embperl 2. I have Apache 2.0.49 and mod_perl installed. Apache was built with the standard Apache layout (i.e. everything is under /usr/local/apache2). When I run perl Makefile.PL and choose mod_perl support I am prompted for the apache source. I provide: /us