F and excel files at users. :)
Thanks folks. Your direction helped.
--
Jeff MacDonald
j...@interchange.ca
# CGI::Application community mailing list
####
## To unsubscribe, or change your message delivery op
ot sure what guidelines I should be following to protect against
memory sharing, or if that is even an appropriate description of my
issue.
If anyone can point me in a direction that would be helpful.
--
Jeff MacDonald
j...@interchange.ca
# CGI::Applicati
Hi Mark,
Yeah that did it, thanks again for the quick response.
Jeff.
On 7/25/06, Mark Stosberg <[EMAIL PROTECTED]> wrote:
Jeff MacDonald wrote:
> Closures still kind of hurt my brain.. not their fault tho, it took me
> 5 years to understand hashes.. [I kid, but you g
my ass, depending on situational needs..
Jeff MacDonald
-
Web Archive: http://www.mail-archive.com/cgiapp@lists.erlbaum.net/
http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
To unsubscribe, e-mail: [EMAIL PROTECTED
Hi,
Thanks, you knew what I was getting at and answered it. Woo !
Jeff.
On 7/20/06, Cees Hek <[EMAIL PROTECTED]> wrote:
On 7/20/06, Jeff MacDonald <[EMAIL PROTECTED]> wrote:
> So, what I'm trying to do is :
>
> 1: turn off my PRE/POST processing and parse an email
un mode get's forwarded, signup_complete renders without
the PRE / POST processing.
Idea's ?
Jeff.
--
Unless otherwise indicated, anything I write is either garnered from
experience or pulled out of my ass, depending on situational needs..
Jeff MacDonald
---
> Web Archive: http://www.mail-archive.com/cgiapp@lists.erlbaum.net/
> http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additi
The docs state you can do this
'img_1_thmb_1' => gen_thumb({ w => 100, h => 100 })
However here is what actually works
'img_1_thmb_1' => { transform_method => gen_thumb( w => 100, h => 100 )}
Or maybe i'm mistaking what you want to happen,
> First, let's rewrite this in the new 2.0 syntax:
>
> 'img_1_thmb_1' => {
> if_mimetype => '/^image\/.+/',
> transform_method => gen_thumb({ w => 100, h => 100 }),
> }
I'm trying to use this syntax of course, without the mimetype yet..
this what I actually have
spec => {
;
>
> -
> Web Archive: http://www.mail-archive.com/cgiapp@lists.erlbaum.net/
> http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
> To unsubscribe, e-ma
yes , sorry about that.
On 12/18/05, RA Jones <[EMAIL PROTECTED]> wrote:
> On Sun, 18 Dec 2005, Jeff MacDonald <[EMAIL PROTECTED]> wrote:
> >I'm at about the same stage of "figuring things out" as you are, I'd
> >recommend looking into
> >
&g
> Web Archive: http://www.mail-archive.com/cgiapp@lists.erlbaum.net/
> http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTE
what ever other
conditions they would like. ie: some folks may want to only thumbnail
if the width is greater than X, and so they could write that "if" in
there...
Let me know how this sounds
Jeff.
--
Jeff MacDonald
http://www.halifaxbudolife.ca
http://www.nintai.ca
> [EMAIL PROTECTED]
> Phone: 212-684-6161
> Fax: 212-684-6226
>
>
> -
> Web Archive: http://www.mail-archive.com/cgiapp@lists.erlbaum.net/
> http:/
Actually I just read the wishlist, i'll make it an option and work on the tests
might as well "do it right"
On 12/16/05, Jeff MacDonald <[EMAIL PROTECTED]> wrote:
> Here is the patch
>
> change line 616 to this
>
>my ($tmp_fh, $tmp_filename) = tempfi
Here is the patch
change line 616 to this
my ($tmp_fh, $tmp_filename) = tempfile('CGIuploaderX', UNLINK
=> 1, DIR => File::Spec->tmpdir());
:)
I'll make a real patch for the mime stuff.
Jeff.
On 12/16/05, Jeff MacDonald <[EMAIL PROTECTED]> wrote:
>
heaimsgroup.com/?l=cgiapp&r=1&w=2
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
--
Jeff MacDonald
http://www.halifaxbudolife.ca
http://www.nintai.ca
--
estions I should look at to keep this
backwards compatible, or do you think it should be changed at all.
Thanks folks.
Jeff.
On 12/13/05, Jeff MacDonald <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I'm trying to use CGI::Uploader and it's telling me the following
>
>
n
to be writable. I can't think of a good reason why I would :)
The man page does not recommend a way to set the temporary directory,
I was wondering if any of you blokes know a way that I could tell it
to use /tmp or /usr/tmp for example.
Jeff.
--
Jeff MacDonald
http://www.halifaxbu
--
> Web Archive: http://www.mail-archive.com/cgiapp@lists.erlbaum.net/
> http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTE
;saveproject',
> 'step2' => 'editproject'}
> }
>
> Of course, I could call 'editproject' from 'saveproject', but that defeats
> the modularity of the script.
>
> Thanks, Brad
>
>
>
>
On CGI::Application)
>
> But it would be nice to have a name that evokes the spirit of
> CGI::Application and its plugins: flexible, adaptable, minimal: A
> technology that gives the user control and choice...
>
>
> Michael
>
>
> ---
> Michael Graham <[EMAIL PROTECTED]>
>
>
> --
On 12/1/05, Robert Hicks <[EMAIL PROTECTED]> wrote:
> "... if i only needed MySQL, i'd use SQL Lite."
>
> Really? I think that would be a poor choice and I like SQLite. ; )
>
> Robert
I'll elaborate.
PostgreSQL is already installed. It's what I "grew up with" I've very
comfortable with it and I f
> in the next release. However, PgSQL is still slow, hard to use, and of
> questionable reliability.
Slow, i'm not going to argue cause it's "fast enough for me" and I
don't have numbers.
Hard to use ? What do you find hard ? I find it aboslutly devine to
use, and mysql to be cludgy and awkward.
> > Is there a way to suppress the referrer in error logs, or is there a
> > different way I should be debugging these sorts of things ?
>
> Yeah, this is really annoying! Along with the timestamp and other gunk
> that gets prepended to the start of every line. The worst part of it is
> that if
ppress the referrer in error logs, or is there a
different way I should be debugging these sorts of things ?
--
Jeff MacDonald
http://www.halifaxbudolife.ca
http://www.nintai.ca
-
Web Archive: http://www.mail-archive.
me sample code
on the net if that helps to illustrated my point.
I guess this may be a bit of a 2 parter, second part being
Do you folks have a method to easily populate a FillInForm object
[well query object more accuratly i guess] using
CDBI::Clients->retrieve maybe there is
gt; scaled down in size in order to make this cell fit on a
> single page. Sometimes this may even result in unreadable
> output.
>
> css/stylesheets
> html2ps supports css to a limited extent, but the styles
> must b
--
> Web Archive: http://www.mail-archive.com/cgiapp@lists.erlbaum.net/
> http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL
icon, so I havent's tried Tie::DBI myself.
>
> Regards,
> Johan
>
>
> On Thursday 08 September 2005 07:22, Jeff MacDonald wrote:
> > Hiya,
> >
> > Not really CGI::App specific, but you guys are a sounding board for
> > CGI related stuff that I trus
g the
same data twice [ie price, taxable etc]
Jeff.
--
Jeff MacDonald
http://www.halifaxbudolife.ca
http://www.nintai.ca
-
Web Archive: http://www.mail-archive.com/cgiapp@lists.erlbaum.net/
http://marc.theaimsgroup
-
> Web Archive: http://www.mail-archive.com/cgiapp@lists.erlbaum.net/
> http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECT
d name them "authorFirst_1" "authorFirst_2" etc. and I guess the
way you lay it out really depends upon your application flow and how
you want to user to experience the app.
--
Jeff MacDonald
http://www.halifaxbudolife.ca
http://www.nintai.ca
--
> Let the record show: Microsoft is not an Australian company
>
>
>
> -
> Web Archive: http://www.mail-archive.com/cgiapp@lists.erlbaum.net/
> http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
> To unsubscribe, e
> Web Archive: http://www.mail-archive.com/cgiapp@lists.erlbaum.net/
> http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
--
Jeff MacDo
> > I'm trying to update a bunch of HTML documents in a database.. my code
> > is like this
> >
> > my $tidy = new HTML::Tidy;
> > $tidy->ignore( type=> TIDY_WARNING );
> > $tidy->clean("foo.html",$newcontent) or die "!@";
>
> clean() returns the transformed contents, so:
>
> $newco
> Web Archive: http://www.mail-archive.com/cgiapp@lists.erlbaum.net/
> http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
> To unsubscribe,
point, i'd like to call an update. foo.html is just a place
holder, doesn't even exist, docs say it doesn't have to.
Thing is, from the man page, I can't figure out how to get at the
cleaned up content...
Tha
thing
that perl already supports ? Do you know which perldoc page I might
find it in ?
Jeff.
--
Jeff MacDonald
http://www.halifaxbudolife.ca
-
Web Archive: http://www.mail-archive.com/cgiapp@lists.erlbaum.net/
htt
of the errors, and
makes multilingual stuff tres easy.
Also, are there plans for buildin in internationalization hooks ?
Thanks.
--
Jeff MacDonald
http://www.halifaxbudolife.ca
-
Web Archive: http://www.mail-archive.com/cgiapp
ttp://www.yapc.org/America/ - [EMAIL PROTECTED]
> ---
>
>
> -----
> Web Archive: http://www.mail-archive.com/cgiapp@lists.erlbaum.net/
> http
------
> Web Archive: http://www.mail-archive.com/cgiapp@lists.erlbaum.net/
> http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTE
, Mark Stosberg <[EMAIL PROTECTED]> wrote:
> On 2005-06-04, Matthew Weier O'Phinney <[EMAIL PROTECTED]> wrote:
> > On 6/3/05, Jeff MacDonald <[EMAIL PROTECTED]> wrote:
> >> I have an app which is basically a photoalbum of sorts. Now there is
> >> an adminis
on a conceptual level.
Jeff.
--
Jeff MacDonald
http://www.halifaxbudolife.ca
-
Web Archive: http://www.mail-archive.com/cgiapp@lists.erlbaum.net/
http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
To unsubscribe, e
but prerun has already run for the current run mode, i guess you'd
have to decided if you need prerun run again or not.
On 5/31/05, Jonathan Mangin <[EMAIL PROTECTED]> wrote:
>
> - Original Message -----
> From: "Jeff MacDonald" <[EMAIL PROTECTED]>
>
ection eq 'one') {
return $self->other_runmode();
}
if ($selection eq 'two') {
return $self->somethingrunmode();
}
}
--
Jeff MacDonald
http://www.halifaxbudolife.ca
-
Web Archiv
Y2AAwWNv7WE843WdCJVwJlR27JkczVC0OrFagtK/WPCQlxB7IHWApOYbNZVAkTNaYaWcbYXDs9UCntbP0Ke38yeJDZaiHo=
Message-ID: <[EMAIL PROTECTED]>
Date: Mon, 16 May 2005 15:19:00 -0300
From: Jeff MacDonald <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
To: cgiapp
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Di
n UPS.
The ups part is likly the easiest as there are many modules out there
for it. I'm not even sure if the other folks publish their data.
So I do acknowledge that part of this project may be a bust, I'm just
wondering who has wrangled with shipping calc's before.
Thanks.
--
return $pastdate; },
},
filters => ['trim'],
field_filters => { quoted => ['decimal'], },
msgs => {any_errors => 'err__',
prefix=>'err_'},
});
}
Any idea's or things i could
> > As for why i don't use mod_perl. it's a long story, and i'm working
> > towards using it in the future.
>
> Well, keep working towards it :)
Our machines are currently infected with FastCGI..
-
Web Archive: http://www.mail-
I'm not working in a cached environment at all right now that is, no
mod_perl. I"m wonderng how much extra over head would it be to load up
that config file versus the method i'm using now..
As for why i don't use mod_perl. it's a long story, and i'm working
towards
m project to project..
Is this what is meant by reusing ? or is there an even better way ?
--
Jeff MacDonald
http://www.halifaxbudolife.ca
-
Web Archive: http://www.mail-archive.com/cgiapp@lists.erlbaum.net/
http
this
if ($acllevel == 1) {
$sql = "select * from purchaseorders";
} elsif($acllevel == 3) {
$sql = "select * from purchaseorders WHERE userid = $userid";
}
you get the point, this all seems very hacky to me. are there cgi
modules that are made for doing this sort of thing a
y data besides the actual HTML (but you can if you need to). The
> HTML needs to be passed in as a scalar ref, but I return that by
> default from all my runmodes.
>
> Cheers,
>
> Cees
>
> -
&g
n Purdy <[EMAIL PROTECTED]> wrote:
> D'oh! Forgot that part!
>
> Also, you may need to put whatever flag in that anonymous hashref
> ('some_errors' in the docs) that triggers your template code that
> something is off.
>
> - Jason
>
gt; - Jason
>
> Michael Peters wrote:
> > Jason Purdy wrote:
> >
>
> >> if (!$bookid) {
> >> return $self->bookPool( { 'db_error' => 1, 'some_errors' => 1 } );
>
--
Jeff MacDonald
http://www.halifaxbudolife.ca
---
l the
fields that the user had filled in.
Since ValidateRM already re-fills in the form in case of an error I
did not write the code i'd typically write to do that step. Does
anyone have any elegant ideas that i could use without writing the by
hand code to re
ur number of products are only a few hundred
> and don't change that much, then Interchange may be too big of beast for
> such a small store. It is in this smaller market that there is a need
> for a good solution like the DMart proposal. I hope development on it
> continues
--
> > > Tony Fraser
> > > [EMAIL PROTECTED]
> > > Sybaspace Internet SolutionsSystem Administrator
> > > phone: (250) 246-5368fax: (250) 246-5398
> > >
> > >
> > >
> > >
ax: (250) 246-5398
>
>
>
>
> -
> Web Archive: http://www.mail-archive.com/cgiapp@lists.erlbaum.net/
> http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
> To unsubscr
>
>
>
> Jason A. Crome wrote:
>
> > Works ok for me.
> >
> > --
> > Jason A. Crome
> > Senior Software Engineer, DEVNET, Inc.
> > E-Mail: [EMAIL PROTECTED]
> > http://www.devnetinc.co
How many people does www.cgi-app.org just hang for ? I can resolve
it.. but it does not go anywhere.
Just sits there.
--
Jeff MacDonald
http://www.halifaxbudolife.ca
-
Web Archive: http://www.mail-archive.com/cgiapp
> 1) How much more marketing do we get if we can say "C::A wiki, built
> on C::A technology"? Or, rather, won't people ask "Why isn't this
> built on C::A if it's such a good product?" I know that was an initial
> stumbling block for me ...
I didn't ask why it wasn't build on C::A, basicaly cause
>
> Actually, why would we use someone else's wiki implementation? Are we
> the webapp capital of the Perl world? Why aren't we building our own
> C::A wiki built on C::A technology??
>
> Rob
>
>
>
>
> On Thu, 2 Dec 2004 22:07:07 -0400, Jeff MacDonal
Aye, I admin a MoinMoin wiki, and i really love it. It's pretty much
changed the way our company stores information, in about one week..
and people actually use it.
Jeff.
On Fri, 3 Dec 2004 00:53:28 + (UTC), Mark Stosberg
<[EMAIL PROTECTED]> wrote:
> On 2004-12-02, Jeff Mac
boy is my face red...
On Thu, 02 Dec 2004 19:48:00 -0500, Michael Peters
<[EMAIL PROTECTED]> wrote:
> try http://www.cgi-app.org
>
> it's listed in the docs...
>
>
>
> Jeff MacDonald wrote:
> > Try to take this without offense...
> >
> &g
>
>
>
> > -Original Message-
> > From: Jeff MacDonald [mailto:[EMAIL PROTECTED]
> > Sent: Thursday, December 02, 2004 5:18 PM
> > To: Michael Peters
> > Cc: Mark Stosberg; [EMAIL PROTECTED]
> > Subject: Re: [cgiapp] Re: new competition: CGI::Prototy
in development. We
> could also incorporate that feature requested earlier for returning a
> filehandle...
>
> > Since that's a major feature addition, that release would be a good
> > reason to beat our advocacy drums some.
>
> --
> Michael Peters
> Developer
> Plus Three, LP
>
>
>
>
&
s.] then other runmodes would only be used for doing
business logic, adding things to a database etc.. I thought of using
embedded perl with this.. but I'm not to sure if this is the right
solution..
Please let me know what you have done to make drawing screens easier.
--
funny thing about that.. afaik i'm not running mod perl. i did not install it.
this is on apache2, if you need gobs more info to debug, just ask
On Wed, 17 Nov 2004 12:38:17 -0500, Michael <[EMAIL PROTECTED]> wrote:
> Michael wrote:
> > Jeff MacDonald wrote:
> >
n Wed, 17 Nov 2004 11:30:15 -0500, Matthew Weier O'Phinney
<[EMAIL PROTECTED]> wrote:
> On Wed, 17 Nov 2004 11:32:02 -0400, Jeff MacDonald <[EMAIL PROTECTED]> wrote:
>
>
> > Hi,
> >
> > I'm writing up an app with cgi::app. Each time i get a fat
e 144.
at /var/www/localhost/htdocs/i360/jeff/peipork/cgi-bin/app.cgi line 10
It never really gives many tips on what the actuall error is, just
that it's something blowing up an eval loop somewhere in that run
mode.
How can i make it give me more useful error messages ?
--
Jeff MacDona
Here's what i do..
run_modes (
'mode1' => 'module::method';
);
been doing that for ages, works like a charm.
Jeff.
On Thu, 2003-10-30 at 11:20, Darin McBride wrote:
> On October 30, 2003 07:58 am, Clint Moore wrote:
> > I swear that it is probably something that I am doing but I can't for
>
Hi
In my cgiapp_prerun i have a chunk of code that does this
if (runmode starts with a_) {
try to authenticate the user if that fails
{ kick them out of the system}
}
}
nice pseudo code eh ? anyways my current method to kick them out
changes the header to the logi page, and returns 1.
I'm gonna get hung for this one ;)
$sql = "SELECT id,name,CASE WHEN id = 123 THEN 'SELECTED' END AS selected
FROM sometable";
$prepare/execute/yada yada
$tmp->param(LIST => $sth->fetchall_arrayref({}));
where LIST is a list in HTML::Template format in the template.
that might look like this.
Are you displaying this in a browser before printing it ?
remeber that html it a layout language, not a document formatting
language.
meaning, that it doesn't really have a concept of page breaks.
i think that's what you mean.
alternativly, if you mean everything is not printed as you would
exp
a query as input..,
> generate a csv
> file then start the download using reusable code for all the runmodes that
> need to offer a download button..
>
> I am wondering if this is the easiest way to do it..
>
> but thanks for the tip, I now know how to create xls files if I
>
You should use DBI as Pg is antiquated.
As well using DBi will give you flexability to use other
databases should you out grow postgres's funtionality.
I said *should* as it takes quite a bit to out grow it.
Jeff.
> -Original Message-
> From: John Li [mailto:[EMAIL PROTECTED]]
> Sent: T
hi,
why not just make a run mode that generates the excel sheet
using Spreadsheet:Writeexcel [i think]
then just send the excel mime header and spit the excel out
on STDOUT.
this what i do.
jeff.
> -Original Message-
> From: Franki [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, February
also, what if your run modes are outside of the main module.
ie
$self->row_modes(
do_this => &util::do_that()
}
> -Original Message-
> From: Christopher Hicks [mailto:[EMAIL PROTECTED]]
> Sent: Sunday, February 02, 2003 12:19 PM
> To: CGI::Application mailing list
> Cc: Jesse Erlbau
Hi,
name : jeff macdonald
role : long time lurker ;)
Another project that I lurk in the mailing lists of is in the process of
redesigning
their website. The developers were talking about what approach they should
use for
various tasks.
Then finally someone piped up and just said "lets jus
81 matches
Mail list logo