KBD

Keith Devens .com

Saturday, November 22, 2008 Flag waving
Beer is living proof that God loves us and wants us to be happy. – Benjamin Franklin

Archive: November 16, 2003

← November 15, 2003November 17, 2003 →

Daily link icon Sunday, November 16, 2003

Best of the Muppet Show

Oh man, I so want this: Time Life Video: The Best of the Muppet Show, 10 DVDs, 30 episodes, for $100 bucks.

The Onion: Mom Finds Out About Blog

The Onion: Mom Finds Out About Blog

"God, my links alone contain unlimited fodder for Mom's neuroses," Widmar said. "She'll have access to not only my life, but the lives of all my friends who have web sites. She'll have the names of all the places in Minneapolis where we hang out, which she can—and will—look up. With the raw materials in my blog, she could actually construct an accurate picture of who I am. This is fucking serious."

Hahahaha.

Also see Wired: ITunes Undermines Social Security

Leaving PHP for Python

Woo, I'm finally leaving PHP. I have my local mod_python environment set up the way I want it, Cheetah's installed and working, etc. The only thing is that now I have to learn a new environment. The Cheetah documentation isn't good enough, and I'm not sure how I'm supposed to develop with it. I don't think there's a method that will automatically cache a compiled version of a template, for example, so I think I have to do that stuff myself, which is at a lower level than I expected to have to go.

It's not a big deal, and until I'm ready for "production" I can just leave it compiling on the fly for now, but the main issue is that I don't yet have a feeling for how the developers expect you to use Cheetah with mod_python. For instance, most of their documentation is about using Cheetah from the command line (and they have a little bit about using it with Webware too).

The other big problem is that if I get any errors, they go to the Apache error log, even though I have "PythonDebug on" in my httpd.conf, which sucks.

Oh, as for templates, since global variables stay in memory between requests, I could always just leave all my templates sitting around in memory (I don't have that many templates that it would be a problem). However, the fact that everything stays in memory in the first place bothers me a bit. If you ever accidentally assign something to a global variable you might have something big sitting around in memory forever and not realize it. And AFAIK, there's nothing automatic I can use to refresh the global environment, so I may have to write some tools myself to clear things and make sure the GC picks them up.

One more concern is that if mod_python ever starts sucking, or if it just turns out not to be the right solution for me, and I want to switch to Python with FastCGI or SCGI or whatever, I'm slightly worried about how much code I'd have to rewrite. Probably not much... but the point is that I'm still a little concerned about the reliability of mod_python.

Update: Apache error log problem fixed. It seems that PythonDebug must be specified on the directory level. I had it in my httpd.conf, but not in a <Directory> block. I just stuck it in my .htaccess file and it worked fine.

← November 15, 2003November 17, 2003 →
November 2008
SunMonTueWedThuFriSat
 1
2345678
9101112131415
16171819202122
23242526272829
30 



RSS feed RSS feed for Keith's Weblog
Atom feed Atom feed for Keith's Weblog
Weblog archive
Recent comments
  on 4 posts

Recent comments XML

Calif. Supreme Court to take up gay marriage ban

I would argue the point is not​definitional.  While the word​marriage is su...

Justin: Nov 20, 4:37pm

Java join function

Meh, don't have null strings in​your string arrays imo, but you're​welcome ...

Keith: Nov 19, 7:51pm

Girls, please don't get breast implants

sorry but another thing i have to​make a comment on about you​men...the men...

happynow: Nov 17, 11:36pm

Books by Vincent Cheung

to all Cheung​fans:

read:

http://www.progin​osko.com/aquascum/cheung.h...

Zamir: Nov 16, 9:07am

Generated in about 0.045s.

(Used 7 db queries)

mobile phone