Re: [cgiapp] [OT] Searching for a db of American Localities andPostcodes

2009-07-09 Thread Steve Comrie
There is this one: http://sourceforge.net/projects/zips/files/#files Not sure how up to date it is since it appears to have been last updated in 2005. --- Steve Comrie Ron Savage wrote .. Hi Folks For a home-use module, I use American postal data from ZipCodeWorld http

Re: [cgiapp] Safe way to remember user login?

2009-01-13 Thread Steve Comrie
then you let the person into the system, otherwise, kick them back to the login screen. --- Steve Comrie Lyle wrote: Hi All, I know a lot of sites have a check box for remember me or what not. But I'm trying to figure out a safe way to do this. Saving the username and password in cookies

Re: [cgiapp] ANNOUNCEMENT: CGI::Application::Plugin::RateLimit v1.0

2006-05-04 Thread Steve Comrie
Brilliant. Sam Tregar wrote: CHANGES - First release! DESCRIPTION This module provides protection against a user calling a runmode too frequently. A typical use-case might be a contact form that sends email. d like to allow your users to send you messages, but thou-

Re: [cgiapp] Global vars management in templates

2005-09-13 Thread Steve Comrie
Archive: http://www.mail-archive.com/cgiapp@lists.erlbaum.net/ http://marc.theaimsgroup.com/?l=cgiappr=1w=2 To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Steve Comrie LEAD SOFTWARE ARCHITECT | OCTANE T: 416.977.2525 F

Re: [cgiapp] Master-detail forms

2005-09-07 Thread Steve Comrie
- Web Archive: http://www.mail-archive.com/cgiapp@lists.erlbaum.net/ http://marc.theaimsgroup.com/?l=cgiappr=1w=2 To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Steve Comrie

Re: [cgiapp] Restrict access to certain run modes

2005-08-17 Thread Steve Comrie
be working properly. Hopefully you can get an idea of one way to do simple run-mode access / restrictions from my working examples. --- Steve Comrie Prakash Inuganti (pinugant) wrote: Hi, How do I restrict user access to certain run modes based on user role. E.g: $self-param('role' = 'Employee

Re: [cgiapp] Re: RFC - C:A:P:RMAuth

2005-07-04 Thread Steve Comrie
it with some pod, etc. Anyone else that has more suggestions, feedback or features let me know before i come out with a full release. -- Steve Comrie LEAD SOFTWARE ARCHITECT | OCTANE T: 416.977.2525 F: 416.977.8481 355 ADELAIDE ST. W. SUITE 1B TORONTO, ONTARIO M5V 1S2 WWW.OCTANE.TO http

Re: [cgiapp] Param method?

2005-07-04 Thread Steve Comrie
There's also the added benefit that you can call params in list context to get an array containing all the information you have stored in params() which can make debugging a little bit easier. I understand that the purpose of the param method is to give me a way to store variables in $self

Re: [cgiapp] Param method?

2005-07-04 Thread Steve Comrie
, but Andrew was right, $self may not be a hash, it could be an array, and it could be something very different in Perl 6. -- Steve Comrie - Web Archive: http://www.mail-archive.com/cgiapp@lists.erlbaum.net/ http

Re: [cgiapp] dynamic stats and progress bar for file uploads

2005-04-28 Thread Steve Comrie
haha, might have also been me. I have a dummy file called 1millioncharacters.txt which (surprise, surprise) contains nothing but like a milltions x's. sorry .. :-) --- Steve Comrie Eric wrote: At 08:59 AM 4/28/2005, Cees Hek wrote: On 4/28/05, Wojciech Pietron [EMAIL PROTECTED] wrote: But I

[cgiapp] OT - YAPC::NA 2005

2005-04-26 Thread Steve Comrie
http://yapc.org/America/index.shtml Speakers haven't been announced yet (the call for submissions just passed). But I was wondering if anyone on the list was planning on or thinking about going. -- Steve Comrie LEAD SOFTWARE ARCHITECT | OCTANE T: 416.977.2525 F: 416.977.8481 355 ADELAIDE ST. W

Re: [cgiapp] XMLHTTPRequest / Remote Scripting / AJAX

2005-03-10 Thread Steve Comrie
directly back to the edit record page. Now, that page could use a simple block of javascript code to add the new group to the drop-down menu so that the user could select the group, save the record and be done. --- Steve Comrie

Re: [cgiapp] internationalisation: how to do it?

2005-03-06 Thread Steve Comrie
-mode. Make it very simple for each run-mode to access the correct formatter without having to know specifically which one it is accessing. Hope that helps. --- Steve Comrie Hello all, I'm facing the refactoring of a cgi-app/html-template based site to support multiple languages, and I'd like

Re: [cgiapp] Using CGI::Application and SHTML/SSI pages?

2005-02-22 Thread Steve Comrie
much, but I hope that I succeeded in giving you a better impression of templates and how they can help you (in combination with C::A) to make your work a little easier, more enjoyable and hopefully a little more profitable :-) --- Steve Comrie - Please excuse the run-on sentences and typo's, I

[cgiapp] CGI::Session

2005-02-14 Thread Steve Comrie
by the way, so we could probably help get it to official status were some of us to install and test it. Steve Comrie LEAD SOFTWARE ARCHITECT | OCTANE T: 416.977.2525 F: 416.977.8481 355 ADELAIDE ST. W. SUITE 1B TORONTO, ONTARIO M5V 1S2 WWW.OCTANE.TO

[cgiapp] Inline C::A

2005-01-07 Thread Steve Comrie
. A little extra processor time jumping between two languages? Definitely. Worth while to be able to use small blocks of C::A code inside an HTML page? I think so, but I'll leave that up to you. --- Steve Comrie - Web Archive

Re: [cgiapp] Inline C::A

2005-01-07 Thread Steve Comrie
person in the world with this particular challenge (or brain damage to not come up with a pure perl solution). Please use with caution :) --- Steve Comrie - Web Archive: http://www.mail-archive.com/cgiapp@lists.erlbaum.net

Re: [cgiapp] a question about the order of operations

2004-12-09 Thread Steve Comrie
without having to duplicate code. Hope that helps --- Steve Comrie - Original Message - From: punkish [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, December 09, 2004 11:25 AM Subject: [cgiapp] a question about the order of operations I read OrderOfOperations at http

Re: [cgiapp] User authentication

2004-10-29 Thread Steve Comrie
with (which is currently almost the case anyways :p ) --- Steve Comrie - Web Archive: http://www.mail-archive.com/[EMAIL PROTECTED]/ http://marc.theaimsgroup.com/?l=cgiappr=1w=2 To unsubscribe, e-mail: [EMAIL PROTECTED

Re: [cgiapp] User authentication

2004-10-29 Thread Steve Comrie
not on that side of my app) to protect other web files based on user access, if I did, I might end up incorporating part of your solution into mine :-) --- Steve Comrie - Web Archive: http://www.mail-archive.com/[EMAIL PROTECTED

Re: [cgiapp] Templates and Persistence

2004-10-22 Thread Steve Comrie
Too early to write code :-) Take a look at HTML::FillInForm Then, use a my %vars = $cgi-Vars() to get all the params into a hash, and use that hash with HTML::FillInForm to re-populate all the field values in your form. --- Steve Comrie - Original Message - From: Michael Lackhoff

Re: [cgiapp] getting data into a param

2004-10-21 Thread Steve Comrie
that helps --- Steve Comrie

Re: [cgiapp] getting data into a param

2004-10-21 Thread Steve Comrie
__SECOND__ that's helped out in a few sticky situations, as well as __MIDDLE__ and __THIRD__ (gets added twice) for when I want to split some loop content between 2 or 3 columns, basically to let me call a tmpl_if name='__MIDDLE__'/tdtd/tmpl_if to split the columns. --- Steve Comrie - Original

Re: [cgiapp] Mail archive broken

2004-10-14 Thread Steve Comrie
I've never checked, but I wouldn't be surprised if the archive worked on a weekly cron. Since today is the 14th and judging by the timestamps of the messages in the archive, I wouldn't be surprised if it gets updated in the next 2 or 3 hours. --- Steve Comrie Hi all I'm after a message sent

Re: [cgiapp] Re: Building Complex Applications with C::A and helper modules

2004-10-05 Thread Steve Comrie
solution. Gimmie a bit of time. --- Steve Comrie - Web Archive: http://www.mail-archive.com/[EMAIL PROTECTED]/ http://marc.theaimsgroup.com/?l=cgiappr=1w=2 To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Re: [cgiapp] help with using modules on the internet plattform

2004-03-11 Thread Steve Comrie
good point .. i'm slow on the draw this morning .. At which point you should do a use XML::Simple. There may be some use statements inside of XML::Simple that are not being found, because they are looking for XML::Simple::foo, not Mylib::XML::Simple::foo.

[cgiapp] [OT] username:[EMAIL PROTECTED] problem

2004-03-08 Thread Steve Comrie
and drop files onto the server (if possible .. this idea has other applications to, if we could just get past the u/p authentication problem) thanks for reading my ramble ot post. --- steve comrie - Web Archive: http

Re: [cgiapp] Planning next CGI::App release

2004-02-10 Thread Steve Comrie
start ringing, and the rest of you programmers are anything like me, you hate it when your phone rings too :) --- Steve Comrie - Web Archive: http://www.mail-archive.com/[EMAIL PROTECTED]/ http

Re: [cgiapp] Structuring my C::A

2004-02-10 Thread Steve Comrie
(tab) || tab1; $self-prerun_mode( show_' . $tab ); } } Hope that helps. For more information on using cgiapp_prerun, cgiapp_postrun etc, take a look at my tutorial on the CGI::App Wiki: http://twiki.med.yale.edu/twiki2/bin/view/CGIapp/OrderOfOperations --- Steve Comrie

Re: [cgiapp] Re: concerns with new header_props

2003-11-25 Thread Steve Comrie
Technically, and I'm not saying it's the cleanest or prettiest solution, but wouldn't it be possible just to set another cookie with the same name to expire now after you've set the cookie earlier in the code. Granted the header would look something like - Set Cookie A : Expire 1 month - Set

Re: [cgiapp] Problem with cgiapp_postrun method

2003-10-30 Thread Steve Comrie
Xavier, Have you tried sub cgiapp_postrun { my $self= shift; my $html= shift; return 'h3' . $$html . '/h3'; } Is that the functionality that you're looking for? To surround everything in an h3 tag? sub cgiapp_postrun { my $self = shift; my $output_ref = shift;

Re: [cgiapp] index.html and search engine listing

2003-10-24 Thread Steve Comrie
Bill, This article on evolt.org, while dealing specifically with PHP Apache as opposed to Perl / CGI::App, has some good suggestions, and plenty of comments from other people on creating clean search engine friendly URLS with whatever programming language you're using.

Re: [cgiapp] Re: URL Encryption

2003-10-07 Thread Steve Comrie
around this same challenge. --- Steve Comrie - Original Message - From: Mark Stosberg [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, October 06, 2003 10:31 PM Subject: [cgiapp] Re: URL Encryption On 2003-10-06, Steve Comrie [EMAIL PROTECTED] wrote: I know there's a couple

Re: [cgiapp] Current run-mode

2003-10-06 Thread Steve Comrie
article to find out at what points in the instance of a CGI::App run that you can access the current run-mode. http://twiki.med.yale.edu/twiki2/bin/view/CGIapp/OrderOfOperations --- Steve Comrie - Web Archive: http://www.mail

Re: [cgiapp] Trying to understand how CGI::App works

2003-09-30 Thread Steve Comrie
Basically there's no reason random end users should ever know what your code is written in. It's trivial for a capable attacker to determine OS/http Server/script language. The point is not the language, per se, but the abilities of the script writer and the server administrator. Using

[cgiapp] CGI Wiki Update

2003-09-11 Thread Steve Comrie
feedback, additions, corrections or otherwise to any of the documents added. Enjoy! --- Steve Comrie - Web Archive: http://www.mail-archive.com/[EMAIL PROTECTED]/ http://marc.theaimsgroup.com/?l=cgiappr=1w=2

[cgiapp] Oops

2003-09-11 Thread Steve Comrie
Sorry bout that folks .. some how replied to the wrong email .. that one was just headed for Peter.

Re: [cgiapp] How to download a dynamically generated file

2003-09-10 Thread Steve Comrie
I think you're looking for the 'Content-disposition' header here. By setting it to inline, it suggests to the browser to view it inline, instead of prompting to save it. I've had success using the following header: Content-Type: application/octetstream\n Content-Disposition: attachment;

Re: [cgiapp] How to download a dynamically generated file

2003-09-10 Thread Steve Comrie
You had asked for a way to send the PDF a few pieces at a time to avoid having the entire file in memory at once. Setting '$ENV{CGI_APP_RETURN_ONLY}', in combination with passing 'none' into header_type(), does exactly that :-) Eric, I think you're confusing me with Steve Hay, who originally

Re: [cgiapp] directory structure and static pages

2003-09-05 Thread Steve Comrie
Andy, I structure my templates like: /[projectdir]/templates/modulename/*.tmpl /[projectdir]/templates/modulename2/*.tmpl Each module has a $modulename variable in it, so that load_tmpl() automatically knows which directory to use when looking for templates. Taking this a step further, I also

Re: [cgiapp] directory structure and static pages

2003-09-04 Thread Steve Comrie
* sorry if your receiving this twice, I sent it this morning but it never came through on the list * Andy, I structure my templates like: /[projectdir]/templates/modulename/*.tmpl /[projectdir]/templates/modulename2/*.tmpl Each module has a $modulename variable in it, so that load_tmpl()

Re: [cgiapp] Best practice: handling failures at cgiapp_init() time?

2003-08-29 Thread Steve Comrie
You could have a cgiapp_prerun in your superclass, and also have one in your application module. If you want both to be executed, then you just have to remember to call $self-SUPER::cgiapp_prerun() in the cgiapp_prerun of your application modules. This can give you great flexibility. YMMV

Re: [cgiapp] Form paragraph

2003-08-25 Thread Steve Comrie
By paragraph I assume you mean textarea - Are you submitting the form via post or get? - Does your server have an obnoxiously low post / get maximum request length? - Is there JavaScript involved? I have a form paragraph that once it has more than 1975 characters in it, the submit button on

Re: [cgiapp] run_modes problem

2003-07-01 Thread Steve Comrie
form name=registrationForm method=post action=/cgi-bin/registration.cgi?rm=registerNewUser . some stuff input type=submit value=Register name=submitButton / /form To the best of my knowledge most web servers will not pass parameters properly this way, and if one does, it's not the

Re: [cgiapp] redirecting to another location

2003-06-17 Thread Steve Comrie
Scott, Try this instead sub cgiapp_prerun { $self-prerun_mode('redirect_to_perl') if( $req_not_met ); } sub redirect_to_perl { my $self= shift; $self-header_props (-uri = 'http://www.perl.com/'); $self-header_type ('redirect'); return 1; } The prerun_mode() method is

Re: [cgiapp] load_tmpl extension

2003-06-16 Thread Steve Comrie
if we pushed it a couple steps further to an add-on template management module. Just a suggestion though, which would require a more global look at how people are currently using load_tmpl() and what modifications that may added in their own super classes. On Sun, 15 Jun 2003, Steve Comrie wrote

Re: [cgiapp] load_tmpl extension

2003-06-15 Thread Steve Comrie
This bit of logic would probably be better implemented at the individual super class level since load_tmpl() is a method that is generally expected to be over loaded anyways. It's a great idea, but already many people use different template modules and different individual methods for deciding

Re: [cgiapp] Re: cgiapp_postrun and HTML::Lint

2003-06-14 Thread Steve Comrie
Mark, You could try using htmltidy (http://tidy.sourceforge.net/), although I don't imagine it would be as straight forward as Sam's solution. I use tidy for our in-house CMS to clean up pages after they've been written to file, but before they're made live. Very useful! Thanks Sam. Slightly

Re: [cgiapp] CGI-Simple vs. CGI.PM

2003-06-10 Thread Steve Comrie
In CGI::Application as long as you are using the $self-query() method to grab the your $cgi object you are not doing multiple queries. CGI::App needs to reads the 'rm' value from the cgi object so that it knows which run-mode to call. Therefore it must load a new instance of CGI.pm (or

[cgiapp] OT: Getting script to respond while server works in background

2002-08-26 Thread Steve Comrie
to return a response, and then have the server alone continue to work in the background. I've admitedly not had much experience with this side of server functionality, so any pointers or tips would be appreciated. Steve Comrie