Re: Problems using Apache::Test on Debian (and Ubuntu)

2017-03-10 Thread Sam Tregar
owe-clan.net> wrote: > On Thu, Mar 9, 2017 at 3:23 PM, Sam Tregar <s...@tregar.com> wrote: > > I'm not totally clear on who's maintaining Apache::Test. > > > > If not, what changes would you need to take it? > > Refer back to my earlier comments. There is very l

Re: Problems using Apache::Test on Debian (and Ubuntu)

2017-03-10 Thread Sam Tregar
the parts that load an MPM. I'll work up a patch that switches to apachectl and includes that. Thanks! Sam On Thu, Mar 9, 2017 at 1:54 PM, Eric Covener <cove...@gmail.com> wrote: > On Thu, Mar 9, 2017 at 4:23 PM, Sam Tregar <s...@tregar.com> wrote: > > I'm not totally clear

Re: Problems using Apache::Test on Debian (and Ubuntu)

2017-03-09 Thread Sam Tregar
I'm not totally clear on who's maintaining Apache::Test. If you are the maintainer, can you say whether you'll take my patch to get the module working on Debian and Ubuntu? If not, what changes would you need to take it? Thanks! Sam On Tue, Mar 7, 2017 at 11:15 AM, William A Rowe Jr

Re: Problems using Apache::Test on Debian (and Ubuntu)

2017-03-07 Thread Sam Tregar
wrote: > On Mon, Mar 6, 2017 at 3:11 PM, Sam Tregar <s...@tregar.com> wrote: > > Are you suggesting that people who want to run tests that use > Apache::Test > > should know that they have to source /etc/apache2/envvars first? Or > that I > > should patch A

Re: Problems using Apache::Test on Debian (and Ubuntu)

2017-03-06 Thread Sam Tregar
if we tell people to source it we should probably also tell them to logout afterwards. Sam On Mon, Mar 6, 2017 at 12:23 PM, Stefan Fritsch <s...@sfritsch.de> wrote: > On Friday, 3 March 2017 22:59:10 CET Sam Tregar wrote: > > Hello all. I've been working on getting Apache::Test ru

Re: Problems using Apache::Test on Debian (and Ubuntu)

2017-03-06 Thread Sam Tregar
That seems like a reasonable solution. Do you think we should switch to using apachectl everywhere, or try to detect whether it's necessary? Sam On Mon, Mar 6, 2017 at 12:46 PM, Eric Covener wrote: > On Mon, Mar 6, 2017 at 3:23 PM, Stefan Fritsch wrote:

Re: Problems using Apache::Test on Debian (and Ubuntu)

2017-03-04 Thread Sam Tregar
://sources.debian.net/patches/libapache2-mod-perl2/2.0.9~1624218-2%2Bdeb8u1/030-apxs-no-prefix.patch/ Sam On Fri, Mar 3, 2017 at 10:59 PM, Sam Tregar <s...@tregar.com> wrote: > Hello all. I've been working on getting Apache::Test running on Debian > and it's not going well. One p

Problems using Apache::Test on Debian (and Ubuntu)

2017-03-03 Thread Sam Tregar
Hello all. I've been working on getting Apache::Test running on Debian and it's not going well. One problem seems to be that Debian's system Apache conf is not named what Apache::Test thinks it should be named (apache2.conf vs httpd.conf). After solving that problem I hit a bigger one - the

[Bug 1612004] [NEW] Dual batteries producing incorrect estimates of remaining power

2016-08-10 Thread Sam Tregar
Public bug reported: My laptop (a Lenovo T560) has two batteries. They show correctly when I click on the power manager plugin - for example one might say 21% remaining 25 minutes and the other might show 5% remaining 15 minutes left. However, when I hover over the battery I see 11% remaining

Re: PAUSE permissions clash between HTML::Template::DEFAULT and HTML::Template::Default

2016-08-09 Thread Sam Tregar
That's fine - there's no upside to indexing these inner classes, they're entirely internal and don't have a public API. Thanks! Sam On Tue, Aug 9, 2016 at 5:05 PM, Neil Bowers wrote: > Hi Sam and Michael, > > I’m one of the PAUSE admins. I’m emailing you because I’m

Re: Requesting COMAINT on HTML::Template

2016-04-29 Thread Sam Tregar
and <steve.bertr...@gmail.com> > Date: Thu, Apr 14, 2016 at 10:07 AM > Subject: Requesting COMAINT on HTML::Template > To: modu...@cpan.org > Cc: Sam Tregar <s...@tregar.com>, mpet...@plusthree.com > > > Said module has had an outstanding bug ( > ht

onlinepayment v1.0.0 released

2010-03-22 Thread Sam Tregar
onlinepayment v1.0.0 - a generic Python API for making online payments This module provides an API wrapper around a variety of payment providers. Using this module you can write code that will work the same regardless of the payment provider in use. Examples:: from onlinepayment import

[ANN] onlinepayment v1.0.0 released

2010-03-21 Thread Sam Tregar
onlinepayment v1.0.0 - a generic Python API for making online payments This module provides an API wrapper around a variety of payment providers. Using this module you can write code that will work the same regardless of the payment provider in use. Examples:: from onlinepayment import

Re: Unreadable external LCD after upgrade to 2.6.32

2010-03-10 Thread Sam Tregar
Thanks, that works perfectly. -sam On Tue, Mar 9, 2010 at 4:14 PM, Konstantin Svist fry@gmail.com wrote: On 03/09/2010 01:12 PM, Sam Tregar wrote: Hey all. I've got a Dell Latitude E1505 running Fedora F12. I just updated to 2.6.32.9-67.fc12.i686 today and as soon as I rebooted my

Unreadable external LCD after upgrade to 2.6.32

2010-03-09 Thread Sam Tregar
Hey all. I've got a Dell Latitude E1505 running Fedora F12. I just updated to 2.6.32.9-67.fc12.i686 today and as soon as I rebooted my external LCD was unreadable. It had wavy vertical lines all over it and appeared to have less than the full vertical resolution. The laptop LCD looked fine.

Re: QuerySet without result_cache?

2009-08-28 Thread Sam Tregar
On Thu, Aug 27, 2009 at 8:18 PM, Alex Gaynor <alex.gay...@gmail.com> wrote: > > On Thu, Aug 27, 2009 at 5:56 PM, Sam Tregar<s...@tregar.com> wrote: > > On Thu, Aug 27, 2009 at 5:47 PM, Alex Gaynor <alex.gay...@gmail.com> > wrote: > >> > >>

Re: QuerySet without result_cache?

2009-08-27 Thread Sam Tregar
On Thu, Aug 27, 2009 at 5:47 PM, Alex Gaynor wrote: > > Instead of iterating over the QuerySet itself, use > QuerySet.iterator(), this will avoid populating the result cache. > Thanks, works great! This would make a good addition to the manual section that describes how

QuerySet without result_cache?

2009-08-27 Thread Sam Tregar
Hey all. So, I figured out how to run my QuerySet through MySQLdb's SSCursor! Woo! Bad news: it's still using a ton of memory. As far as I can tell it's being used by QuerySet's internal _result_cache which is holding all the rows retrieved by the query. Is there any way to turn this cache

How to control which DB connection and cursor a queryset will use

2009-08-27 Thread Sam Tregar
I'm trying to get a queryset to issue its query over a different DB connection, using a different cursor class. Does anyone know if that's possible and if so how it might be done? In psuedo-code: # setup a new db connection: db = db_connect(cursorclass=AlternateCursor) # setup a generic

Executing a queryset with MySQL's SSCursor cursor class

2009-08-26 Thread Sam Tregar
Hello all. I'm wondering how I can tell Django to use MySQLdb.cursors.SSCursor instead of the default MySQLdb.cursors.Cursor. The critical difference here is that SSCursor uses mysql_use_result and streams data from the server rather than loading it all into memory at once. Anybody know if

Re: Online payment module

2009-08-04 Thread Sam Tregar
On Tue, Aug 4, 2009 at 4:25 PM, Kushal Kumaran kushal.kumaran+pyt...@gmail.com kushal.kumaran%2bpyt...@gmail.com wrote: Not really familiar with this area, but have you seen these? http://code.google.com/p/pypaypal/ http://www.geteasyshop.com/front-page Thanks, but neither of these are

Online payment module

2009-08-03 Thread Sam Tregar
Hello all. I'm considering building a module to provide a cross-payment-gatewat API for making online payments. In the Perl world we have a module like this called Business::OnlinePayment ( http://search.cpan.org/~jasonk/Business-OnlinePayment-2.01/OnlinePayment.pm). Is there anything like

Re: ImageField performance

2009-07-17 Thread Sam Tregar
On Fri, Jul 17, 2009 at 4:27 PM, Javier Guerra wrote: > > On Fri, Jul 17, 2009 at 8:10 PM, Fredz./ > wrote: > > I might be loading the image in memory, but it sure seems 1000x faster > > when you reach images the size of 10 megs and more. > > this

Re: How to implement a custom field (or relation) which supports List of Strings

2009-07-17 Thread Sam Tregar
On Fri, Jul 17, 2009 at 3:23 PM, Dudley Fox wrote: > > Should I have posted this to the developer's list? I ask because I > have received no responses yet. Not even a "...you shouldn't do that." > :) I can help you with that - you shouldn't do that. Instead you should

Re: home page caching

2009-07-13 Thread Sam Tregar
On Mon, Jul 13, 2009 at 3:34 PM, Ramdas S wrote: > I have a web site where around 15 SQL semi complex queries run on the home > page. Traffic is increasing and the page loads are getting slower. What is > the best way to cache just the home page. I have already done standard >

Re: Your Favorite Python Book

2009-05-15 Thread Sam Tregar
Thanks for the suggestions everyone! I've got a copy of Core Python 2nd Edition on the way. -sam -- http://mail.python.org/mailman/listinfo/python-list

Difference between list() and [] with dictionaries

2009-05-15 Thread Sam Tregar
Hello all. Can anyone explain why this creates a list containing a dictionary: [{'a': 'b', 'foo': 'bar'}] But this creates a list of keys of the dictionary: list({ a: b, foo: bar }) I expected them to be equivalent but clearly they're not! I'm using Python 2.6.1 if that helps. -sam --

Re: New to python, can i ask for a little help?

2009-05-12 Thread Sam Tregar
On Wed, May 13, 2009 at 12:18 AM, warhammer1...@gmail.com warhammer1...@gmail.com wrote: Python 3.0.1 (r301:69561, Feb 13 2009, 20:04:18) [MSC v.1500 32 bit (Intel)] on win32 Type copyright, credits or license() for more information. print hello world! SyntaxError: invalid syntax

Your Favorite Python Book

2009-05-11 Thread Sam Tregar
Greetings. I'm working on learning Python and I'm looking for good books to read. I'm almost done with Dive into Python and I liked it a lot. I found Programming Python a little dry the last time I looked at it, but I'm more motivated now so I might return to it. What's your favorite? Why?

Re: [htmltmpl] using cache

2009-03-24 Thread Sam Tregar
2009/3/24 mail...@comcast.net as a new user to html::templates i've found it pretty easy to use but quite slow. i've turned on cache'ing but there is still no improvement and apache's log indicates that the files are being loaded each time. so, what am i doing wrong? i've included the perl

Re: [htmltmpl] using cache

2009-03-24 Thread Sam Tregar
On Tue, Mar 24, 2009 at 5:39 PM, Dawid Joubert djspy...@gmail.com wrote: One problem you may find with the built-in caching is how it determines if a file has changed. It does this by getting the last modified time of the file and then comparing it to the cache version. You should look into

Re: [htmltmpl] using cache

2009-03-24 Thread Sam Tregar
2009/3/24 mailbin mail...@comcast.net thanks for the fast response, guys. i really appreciate the help. you're correct that i'm not running mod_perl. i thought simply loading mod_perl was sufficient but obviously i was wrong, so i'm now in the process of puzzling how to get this mod_perl

[xml] Parsing a particular HTML file causes parse_html_string to hang

2009-01-31 Thread Sam Tregar
Hello all. I've hit a problem using libxml2 to parse HTML files. Usually everything works great, but on a particular input file I'm getting a hang with the process hogging the CPU indefinitely until killed. When I run it through xmllint I see (aside from a bunch of run-of-the-mill HTML parsing

Re: [RDBO] ANNOUNCE: Rose::DB::Object 0.767 released

2008-02-17 Thread Sam Tregar
On Feb 15, 2008 4:56 PM, John Siracusa [EMAIL PROTECTED] wrote: * Added the forget_related() helper method. This wasn't added to the :all export set in Rose::DB::Object:::Helpers. Intentional? -sam - This SF.net email

Re: [RDBO] Manager quiet about bad syntax

2008-02-17 Thread Sam Tregar
On Feb 17, 2008 3:36 PM, John Siracusa [EMAIL PROTECTED] wrote: Maybe, but as I've said I'm not really a fan of runtime parameter validation. I'm a horrible typist which makes me a big fan. Doing it in just one place may have a minimal impact, but then the question becomes, why isn't it

[RDBO] Manager quiet about bad syntax

2008-02-14 Thread Sam Tregar
Hey all. I'm working on adjusting to Rose from a long history with CDBI, so I do this kind of thing a lot: $foos = My::Foo::Manager-get_foos(bar = big); When I really mean: $foos = My::Foo::Manager-get_foos(query = [bar = big]); This is a nasty bug since the first incorrect call doesn't

Re: [RDBO] Bizarre Side-Effect of Storable Use

2008-02-12 Thread Sam Tregar
On Feb 12, 2008 4:18 PM, John Siracusa [EMAIL PROTECTED] wrote: You need to strip() before freezing: http://search.cpan.org/dist/Rose-DB-Object/lib/Rose/DB/Object/Helpers.pm#strip Thanks, that should help. Any reason you didn't just bake this into a default Storbable freeze hook? If that

Re: [RDBO] Bizarre Side-Effect of Storable Use

2008-02-12 Thread Sam Tregar
On Feb 12, 2008 2:51 PM, John Siracusa [EMAIL PROTECTED] wrote: On Feb 12, 2008 2:28 PM, Sam Tregar [EMAIL PROTECTED] wrote: But if I pass the object through Storable: use Storable qw(freeze thaw); my $foo = freeze($object); my $obj = thaw($foo); $obj

[RDBO] Bizarre Side-Effect of Storable Use

2008-02-12 Thread Sam Tregar
Hello all. I'm serializing some RDBO objects and it's causing some AUTOLOAD confusion when I make a typo. For example, without Storable this code: $object-some_method_that_doesnt_exist(foo); Produces the expected error: Can't locate object method some_method_that_doesnt_exist via package

[RDBO] RDBO equivalent of Class::DBI's temp columns?

2008-02-06 Thread Sam Tregar
Hey all. I'm working on migrating a Class::DBI system to RDBO and I'm wondering how to implement temp columns. In CDBI these are accessors that behave like normal column accessors but don't store data in the database. Weird, but sometimes useful. Here's how they're setup in Class::DBI:

Re: [RDBO] Stale results from relationship accessors

2008-02-01 Thread Sam Tregar
On Feb 1, 2008 5:50 PM, John Siracusa [EMAIL PROTECTED] wrote: To make an object forget a previously fetched set, just set it to undef: Cool, that works for me. Thanks! -sam - This SF.net email is sponsored by: Microsoft

Re: FAIL XML-Validator-Schema-1.09 amd64-freebsd-thread-multi 6.2-release

2008-01-31 Thread Sam Tregar
On Jan 31, 2008 4:33 PM, [EMAIL PROTECTED] wrote: t/02yaml# No tests run! dubious Test returned status 255 (wstat 65280, 0xff00) You, like your compatriots, have a broken XML::SAX. I just uploaded v1.10with a check for this problem in Makefile.PL. Hopefully that will address

Re: FAIL XML-Validator-Schema-1.10 i86pc-solaris 2.10

2008-01-31 Thread Sam Tregar
On Jan 31, 2008 5:48 PM, bob walker [EMAIL PROTECTED] wrote: t/02yaml..# No tests run! Dubious, test returned 255 (wstat 65280, 0xff00) No subtests run Huh. I guess my attempts to screen this out in Makefile.PL didn't work. I guess it doesn't get run again after satisfying

Re: FAIL XML-Validator-Schema-1.09 amd64-freebsd-thread-multi 6.2-release

2008-01-31 Thread Sam Tregar
On 01 Feb 2008 00:41:49 +0100, Slaven Rezic [EMAIL PROTECTED] wrote: Probably it's easier to have some check in the 02yaml.t test and skip it if necessary. You guys are hilarious! It's as though the tests themselves had no meaning at all - all you want is 100% passed, and it's no big deal

Re: [RDBO] Problem using check_in with a varchar column

2008-01-31 Thread Sam Tregar
On Jan 31, 2008 3:53 PM, John Siracusa [EMAIL PROTECTED] wrote: I'm assuming it only produces that error when it tries to emit the Perl code for that class into a .pm file, right? Yes, that's it. I was using the emitted Perl code to debug my auto-init setup. If so, I think I have the fix

Re: FAIL XML-Validator-Schema-1.09 i686-linux 2.4.27-3-686

2008-01-30 Thread Sam Tregar
On Jan 30, 2008 9:22 AM, [EMAIL PROTECTED] wrote: t/02yaml# No tests run! dubious Test returned status 255 (wstat 65280, 0xff00) Amazing. Does every CPAN tester have a broken XML::SAX install? Is there something wrong with the way you guys are installing XML::SAX? -sam

Re: FAIL XML-Validator-Schema-1.09 i686-linux 2.4.27-3-686

2008-01-30 Thread Sam Tregar
On Jan 30, 2008 1:33 PM, David Cantrell [EMAIL PROTECTED] wrote: Sort of. The fault appears to be with XML::SAX, which is broken when installed using CPAN.pm. You're getting failure reports because one of your dependencies is broken in a way that CPAN::Reporter can't detect (it passes its

Re: FAIL XML-Validator-Schema-1.09 i686-linux 2.4.27-3-686

2008-01-30 Thread Sam Tregar
On Jan 30, 2008 1:46 PM, David Cantrell [EMAIL PROTECTED] wrote: exit(0) before calling WriteMakefile(). Hmm, that's a chicken-or-egg problem. If I try to check before WriteMakefile() then you might not have XML::SAX installed yet. You might be about to install a broken one, and I won't find

Re: FAIL XML-Validator-Schema-1.09 i686-linux 2.4.27-3-686

2008-01-30 Thread Sam Tregar
On Jan 30, 2008 2:52 PM, daniel bosold [EMAIL PROTECTED] wrote: run the tests manually? mine fail with manually installed XML::SAX as well as cpan-installed. Do you have a broken XML::SAX install, one without any parsers defined? If so, nothing I can (should) do will make the tests pass...

Re: FAIL XML-Validator-Schema-1.09 i686-linux 2.4.27-3-686

2008-01-30 Thread Sam Tregar
On Jan 30, 2008 8:42 PM, David Golden [EMAIL PROTECTED] wrote: On Jan 30, 2008 2:47 PM, Sam Tregar [EMAIL PROTECTED] wrote: Hmm, that's a chicken-or-egg problem. If I try to check before WriteMakefile() then you might not have XML::SAX installed yet. You might be about to install

Re: [RDBO] Sharing a DBI connection with Class::DBI

2008-01-30 Thread Sam Tregar
On Jan 29, 2008 10:32 PM, John Siracusa [EMAIL PROTECTED] wrote: On 1/29/08, Sam Tregar [EMAIL PROTECTED] wrote: Do you happen to know if RDBO will tolerate a DBIx::ContextualFetch based DBI handle? It should, and if it doesn't, I can probably make it do so with some minor edits. Give

Re: FAIL XML-Validator-Schema-1.09 i86pc-solaris 2.10

2008-01-29 Thread Sam Tregar
On Jan 29, 2008 2:56 PM, bob walker [EMAIL PROTECTED] wrote: t/02yaml..# No tests run! Dubious, test returned 255 (wstat 65280, 0xff00) No subtests run Looks like you don't have any XML::SAX parsers installed. You should at least have XML::SAX::PurePerl, since it comes with

Re: FAIL XML-Validator-Schema-1.09 OpenBSD.i386-openbsd 4.2

2008-01-29 Thread Sam Tregar
On Jan 29, 2008 5:09 PM, bob walker [EMAIL PROTECTED] wrote: t/02yaml..# No tests run! Dubious, test returned 255 (wstat 65280, 0xff00) No subtests run Did you get my earlier message about this problem? Could you fix your XML::SAX installs before sending me any more failures?

Re: FAIL XML-Validator-Schema-1.09 i86pc-solaris 2.10

2008-01-29 Thread Sam Tregar
On Jan 29, 2008 7:01 PM, Bob Walker [EMAIL PROTECTED] wrote: the module was tested automatically. This is why you received several failures from me. Ijust ran it manually and got the same failure. details follow. I would suggest that XML::SAX is failing to do something. [EMAIL PROTECTED]:~

Re: [RDBO] Sharing a DBI connection with Class::DBI

2008-01-29 Thread Sam Tregar
On Jan 29, 2008 9:55 PM, Peter Karman [EMAIL PROTECTED] wrote: just a naive guess here, but if you were using DBI-connect_cached as the underlying connect method, wouldn't DBI handle the sharing for you? No, I'm pretty sure DBI uses the class as part of the connect_cached key. -sam

[RDBO] Sharing a DBI connection with Class::DBI

2008-01-29 Thread Sam Tregar
Hey all. I'm getting started with Rose::DB::Object. My problem is I need to inter-operate with a large pre-existing Class::DBI code-base. I'd like to setup Rose to be able to share the same DBI connection that Class::DBI uses - otherwise I'll instantly double the number of connections from our

Re: [RDBO] Sharing a DBI connection with Class::DBI

2008-01-29 Thread Sam Tregar
On Jan 29, 2008 10:06 PM, John Siracusa [EMAIL PROTECTED] wrote: The db atribute of an RDBO-derived object isa Rose::DB, but each Rose::DB-derived object has a DBI $dbh. IOW, plain old DBI database handles are used via delegation in RDBO. There's no subclassing of DBI classes at all.

Re: [Mason] mason webapp best practices

2007-07-02 Thread Sam Tregar
On Tue, 26 Jun 2007, Alan wrote: Just wondering if there are any best-practices documented for mason. I use it daily and seem to end up with a relative hodge-podge (that's the technical term) of components, form handling, etc. I realize this is mostly my own fault abusing both perl and the

Re: FAIL Devel-Profiler-0.04 i686-linux 2.4.27-3-686

2007-06-21 Thread Sam Tregar
On Thu, 21 Jun 2007 [EMAIL PROTECTED] wrote: Perl lib version (v5.6.2) doesn't match executable version (v5.8.8) at /home/david/cpantesting/perl-5.6.2/lib/5.6.2/i686-linux/Config.pm line 21. That doesn't look like my problem! Please fix your test rig. -sam

Re: RFC: The future of Text::CSV_XS

2007-05-25 Thread Sam Tregar
On Fri, 25 May 2007, H.Merijn Brand wrote: I have been digging a bit to find what people consider loose ends in Text::CSV_XS, and tried to summarize that (in no particular order) in the new TODO list. Here TODO gives no guarantee that it will be done, nor on any implementation or API that it

Re: [htmltmpl] Trailing 1

2007-04-16 Thread Sam Tregar
On Mon, 16 Apr 2007, Barry Michels wrote: my $pjx = new CGI::Ajax('change_page' = \change_page); I'm guess that CGI::Ajax is expecting you to return the HTML, not print it. So try changing this: print Show_Content($pg) if(defined $pg); To: return Show_Content($pg)

Re: [htmltmpl] escape html whitespace

2007-03-30 Thread Sam Tregar
On Fri, 30 Mar 2007, Matt Taylor wrote: I couldn't find this information in the archive... I like the ESCAPE options (HTML, URL, JS). Is there a way to also escape whitespace? In particular, I would like an easier way to replace spaces with nbsp; Currently looping through data from dbi

Re: [htmltmpl] How to handle UTF-8?

2007-03-21 Thread Sam Tregar
On Wed, 21 Mar 2007, Mathew Robertson wrote: As an aside, there are a number of different techniques used to get the UTF8 strings into the templates, eg: TMPL_VAR's, hacks to H::T, using H::T::E with a callback. Why would you need a hack to get UTF8 strings into the templates? Is there a bug

[htmltmpl] ANNOUNCE: Krang v2.100

2007-02-19 Thread Sam Tregar
Krang v2.100 is now available (the source release is up now and binary builds should be up soon). Notable changes in this release: * Numerous bugs were fixed in Krang's most intensive QA cycle in years. * Krang now includes methods to integrate with dynamic front-end

Re: [htmltmpl] Questions on file_cache

2007-02-08 Thread Sam Tregar
On Thu, 8 Feb 2007, Robert Hicks wrote: I am in a CGI only environment and it seems that file_cache is an easy speed up. So I am wary of it. I understand the security aspects but is there anything else to worry about using it? Nope. If you're worried about people peeking at your cached

Re: [htmltmpl] resultset Paging and Row limitation

2007-02-08 Thread Sam Tregar
On Sun, 4 Feb 2007, Massoud Kohan wrote: I am new to the Html-template and perl. How can I show the resultset to the web page which Shows 10 records per page and also page numbers on the bottom of the table? HTML::Pager was designed to do this for you. It's a little tricky to use, but you

[cgiapp] [htmltmpl] ANNOUNCE: HTML::Template v2.9

2007-01-30 Thread Sam Tregar
CHANGES - New Feature: the force_untaint option makes sure you do not pass tainted values to param(). [Sven Neuhaus] - New Feature: Added ESCAPE=none as a synonym for ESCAPE=0. Fixed both to work with default_escape. [EMAIL PROTECTED] - Bug Fix: DEFAULT didn't work with

Re: [cgiapp] HT vs TT speed wise

2007-01-30 Thread Sam Tregar
On Tue, 30 Jan 2007, Ron Savage wrote: OTOH, on each invocation of your CGI script, you're probable only calling HT or TT once to render one page, right? Perhaps best to just not worry about it :-). All too true. But, if you decide to worry about it anyway be sure to try HTML::Template::JIT!

ANNOUNCE: HTML::Template v2.9

2007-01-30 Thread Sam Tregar
CHANGES - New Feature: the force_untaint option makes sure you do not pass tainted values to param(). [Sven Neuhaus] - New Feature: Added ESCAPE=none as a synonym for ESCAPE=0. Fixed both to work with default_escape. [EMAIL PROTECTED] - Bug Fix: DEFAULT didn't work with URL

[ANNOUNCE] Krang v2.008 Released

2006-12-20 Thread Sam Tregar
Krang v2.008 is now available (the source release is up now and binary builds should be up soon). Notable changes in this release: * Improved password security. Password policy is now configurable and extensible by addons. [Michael Peters] * Added several new configuration

Re: [htmltmpl] The sf.net Subversion Repository and the Phalanx One

2006-11-17 Thread Sam Tregar
On Thu, 16 Nov 2006, James Keenan wrote: Sam, we'd still welcome feedback. Thanks Jim. I'll see what I can do this weekend. -sam - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel

Re: [htmltmpl] The sf.net Subversion Repository and the Phalanx One

2006-11-16 Thread Sam Tregar
On Thu, 16 Nov 2006, Shlomi Fish wrote: Took me exactly 10 minutes to forward port the patch from the Phalanx repository. So it wasn't such a painful process. :-D Hmmm... I spoke too soon. The first incarnation of the patch did not pass the tests. I now have a better patch at the same URL:

Re: [htmltmpl] The sf.net Subversion Repository and the Phalanx One

2006-11-15 Thread Sam Tregar
On Wed, 15 Nov 2006, Shlomi Fish wrote: A question if I may. Why weren't the tests and other changes that were done to the Phalanx work on HTML-Template: * http://svn.perl.org/phalanx/HTML-Template/ * http://hew.ca/yapc/phalanx/slides/TABLE_OF_CONTENTS.html Integrated into the mainline

Re: [cgiapp] CAF methodology

2006-11-10 Thread Sam Tregar
On Fri, 10 Nov 2006, Robert Hicks wrote: I think that is a pretty cool idea and was wondering if anyone likes that as well. Is there a plugin for it or anything (outside of CAF)? Seems a little silly to use a plugin for: $template-param(foo_mode = $self-foo); And: tmpl_var foo_mode If

Re: [cgiapp] Re: Using AJAX with C::A

2006-10-19 Thread Sam Tregar
On Thu, 19 Oct 2006, Robert Hicks wrote: Maybe someone with experience could update the CA site with an example or two of doing this with CA? You could just include a link to CGI::Application::Search - it has a couple AJAX features which should be easy to follow. -sam

Re: [cgiapp] Eval and standard error page

2006-10-08 Thread Sam Tregar
On Sun, 8 Oct 2006, Mark A. Fuller wrote: The idea of die'ing anywhere in my application seems elegant to me. Right now I have to do my own $template processing anywhere an unexpected/unrecoverable error occurs (to display a common page). Have you looked at error_mode()? I think it offers

Re: Safely timing out DBI queries

2006-09-19 Thread Sam Tregar
On Tue, 19 Sep 2006 [EMAIL PROTECTED] wrote: And some drivers have a timeout parameter that handles this issue at the vendor API level (e.g. DBD::Sybase's timeout parameter that is handled internally by OpenClient). Good to know. I'm looking into adding something like this to MySQL, but

Re: Safely timing out DBI queries

2006-09-19 Thread Sam Tregar
On Tue, 19 Sep 2006 [EMAIL PROTECTED] wrote: And some drivers have a timeout parameter that handles this issue at the vendor API level (e.g. DBD::Sybase's timeout parameter that is handled internally by OpenClient). Good to know. I'm looking into adding something like this to MySQL, but

PrintError won't turn off

2006-09-18 Thread Sam Tregar
Just finished a rather irritating debugging session trying to track down a warning triggered by DBIx::Timeout. Turns out this code doesn't exactly do what I mean: $dbh-{PrintError} = 0; Looks like it turns PrintError off, huh? Actually, as far as I can tell it turns it on. The relevent C

Re: PrintError won't turn off

2006-09-18 Thread Sam Tregar
On Mon, 18 Sep 2006, Sam Tregar wrote: Looks like it turns PrintError off, huh? Actually, as far as I can tell it turns it on. The relevent C code is (from dbih_set_attr_k): else if (strEQ(key, PrintError)) { DBIc_set(imp_xxh,DBIcf_PrintError, on); Sheesh, ignore me. I see that's

Re: PrintError won't turn off

2006-09-18 Thread Sam Tregar
On Mon, 18 Sep 2006, Sam Tregar wrote: On Mon, 18 Sep 2006, Sam Tregar wrote: Looks like it turns PrintError off, huh? Actually, as far as I can tell it turns it on. The relevent C code is (from dbih_set_attr_k): else if (strEQ(key, PrintError)) { DBIc_set(imp_xxh,DBIcf_PrintError

Re: PrintError won't turn off

2006-09-18 Thread Sam Tregar
On Mon, 18 Sep 2006, Tim Bunce wrote: Yes, and the same applies to AutoCommit. Whether it's a good thing or not is debatable but it's been that way forever. The 'workaround' is to explicitly state the attributes you want. Hmmm, interesting. What would you think about making PrintError

Re: Safely timing out DBI queries

2006-09-17 Thread Sam Tregar
On Sun, 17 Sep 2006, Tim Bunce wrote: For any driver that uses a network socket to connect you could close() the socket in the signal handler to (relatively) safely timeout. Should be fairly clean/safe for the db client library state, though unsafe signals means there's still a chance perl's

Re: Safely timing out DBI queries

2006-09-17 Thread Sam Tregar
On Sun, 17 Sep 2006, Henri Asseily wrote: This is a good way for handling a few potentially long-running queries, but forking each time means that you create a new dbh each time, correct? That's impossibly slow for environments like high-volume webservers. Right. And a few long-running

Re: Safely timing out DBI queries

2006-09-17 Thread Sam Tregar
On Sun, 17 Sep 2006, Dean Arnold wrote: Er, but how ? Unless/until the DBI is threadsafe, the only way for kill_session() to work is by breaking the DBD out of the current blocking request. Which I assume is to be accomplished by throwing signals around ? DBIx::Timeout uses a separate

Re: Safely timing out DBI queries

2006-09-16 Thread Sam Tregar
On Sat, 16 Sep 2006, Henri Asseily wrote: Use the great Sys::SigAction by Lincoln Baxter. That's just a wrapper around POSIX sigaction(), right? As I understand it that's equivalent to the old unsafe signals in Perl before 5.8. I'd rather avoid that if it all possible! -sam

Re: Safely timing out DBI queries

2006-09-16 Thread Sam Tregar
On Sun, 17 Sep 2006, Henri Asseily wrote: You've got a catch-22: If you ALWAYS want the signal to fire on time, then you should expect unsafe signals. Just clean up after yourself. It's hard to clean up after the kind of problems unsafe signals can cause. For example, imagine the DB client

Re: Safely timing out DBI queries

2006-09-16 Thread Sam Tregar
On Sat, 16 Sep 2006, Dean Arnold wrote: I just saw your note on mysql internals, and suspect your request there is unlikely to be given serious consideration. Always a possibility. Maybe they'd be more interested in a patch. (For the curious, I wrote a message to the MySQL internals

ANNOUNCE: DBIx::Timeout v1.00

2006-09-16 Thread Sam Tregar
Changes - First release! Description This module provides a safe method of timing out DBI requests. An unsafe method is described in the DBI docs: http://search.cpan.org/~timb/DBI/DBI.pm#Signal_Handling_and_Canceling_Operations The problem with using POSIX sigaction()

Safely timing out DBI queries

2006-09-15 Thread Sam Tregar
Greetings all. I'm working on an app which allows users to construct queries using a web UI in a moderately free-form fashion. There's plenty of data and hence plenty of rope. I need to save my users from themselves by timing-out long-running queries and killing the MySQL thread. Our first

[htmltmpl] [ANNOUNCE] Krang v2.007

2006-09-14 Thread Sam Tregar
Krang v2.007 is now available (the source release is up now and binary builds should be up soon). Notable changes in this release and in v2.006, which never received a proper announcement: * Improvements to the list-data management system, command-line tools and associated element

[ANNOUNCE] Krang v2.007

2006-09-14 Thread Sam Tregar
Krang v2.007 is now available (the source release is up now and binary builds should be up soon). Notable changes in this release and in v2.006, which never received a proper announcement: * Improvements to the list-data management system, command-line tools and associated element

Re: [cgiapp] blank page printed when using cgiapp_postrun

2006-09-02 Thread Sam Tregar
On Sat, 2 Sep 2006, Octavian Rasnita wrote: sub cgiapp_postrun { my $self = shift; $self-header_props(-charset = 'ISO-8859-2'); } Try using header_add() instead of header_props(). From the docs: Unlike calling header_props(), header_add() will preserve any existing headers. -sam

Re: [cgiapp] time outs

2006-08-28 Thread Sam Tregar
On Mon, 28 Aug 2006, Michael Peters wrote: Putnam, Denis (Contractor) wrote: Can anyone tell me how to send an http response back to the browser before i complete my output buffer on a long running query. I need to do this to keep the browser from timing out. If you need to do this, then

Re: [cgiapp] CGI::App in the wild: Miami University

2006-08-17 Thread Sam Tregar
On Thu, 17 Aug 2006, Mark Stosberg wrote: - Storing photos in PostgreSQL for easy deployment on load-balanced web servers. (So far, that's worked surprising well) That is surprising! Why would you do that instead of using NFS? -sam

Re: [htmltmpl] Speeding up H::T

2006-06-27 Thread Sam Tregar
On Mon, 26 Jun 2006, Matthew wrote: I've already got use HTML::Template in my startup.pl so theoretically its being compiled at server start (anyway to verify this?). But its the instantiation in my handler() routine that's using the CPU time. How I can I get H:T to preform better? Are

Re: [htmltmpl] Speeding up H::T

2006-06-27 Thread Sam Tregar
On Tue, 27 Jun 2006, Matthew wrote: Also, are you loading many templates and doing includes manually? Switching to tmpl_include (which is processed at compile time) can be Not sure what you mean. Some people do stuff like: my $header = HTML::Template-new(...); my $body =

Re: Encode::decode_utf8 and references

2006-06-19 Thread Sam Tregar
On Mon, 19 Jun 2006, Dan Kogai wrote: I can't help wondering how you got Encode to install. Sorry - I meant to type 5.8.6. I somehow managed to misread 5.8.6 as 5.6.1. Too many years spent running that fine version, I guess! All I know is I cannot support your case. I can dig it. I'll

Encode::decode_utf8 and references

2006-06-18 Thread Sam Tregar
Hello all. I'm maintaining a Perl app which relies on a possibly incorrect behavior in Encode::decode_utf8 - references are expected to pass through unmangled. This worked fine until a recent upgrade. Observe Encode v2.08 with Perl v5.6.1: $ perl -MEncode -MData::Dumper -e \ 'my $ref =

Re: [htmltmpl] HTML::Template::output() : Unknown item in parse_stack : HASH at /usr/local/share/perl/5.8.8/HTML/Template.pm line 2781

2006-06-09 Thread Sam Tregar
On Fri, 9 Jun 2006, Alexey Melezhik wrote: HTML::Template INST_VERSION 2.6 Please upgrade to 2.8. I fixed a couple bugs that could cause this problem since 2.6. If you can replicate the problem with 2.8 then please send me your template. Thanks! -sam

  1   2   3   4   5   6   7   8   >