Re: Packaging

2008-08-14 Thread Tim Bray
On Aug 14, 2008, at 7:18 AM, John Hosie wrote: What packages do I need to install on a Red Hat Linux server to do C development and create an Apache module? On Mac OS X, assuming you've got a C compilation environment (if not, go get your install CD and install XCode Tools (sigh)), all you

Emacs lore for Apache?

2008-07-03 Thread Tim Bray
I ran into a showstopper NetBeans problem and until it's fixed, am switching to Emacs for my module dev work. Any apache/emacs lore would be appreciated. Will one of the string arguments to c-style Do The Right Thing? Any other goodies for my .emacs? -T

Debugging httpd

2008-01-09 Thread Tim Bray
Hi... I'm back to work on mod_atom and chasing a weird bug around. Anyhow I totally can't figure out what some apr code is doing so I wanted to step into it with the debugger. This sounds lame, but I can't figure out how to build an httpd that has APR linked with debug information.

Re: Debugging httpd

2008-01-09 Thread Tim Bray
On Jan 9, 2008, at 5:16 PM, William A. Rowe, Jr. wrote: Hi... I'm back to work on mod_atom and chasing a weird bug around. Anyhow I totally can't figure out what some apr code is doing so I wanted to step into it with the debugger. This sounds lame, but I can't figure out how to build an

Basics on generating content

2007-05-27 Thread Tim Bray
I'll open this plea for advice by offering some free advice to other module-writing newbies like me. When you're trying to figure out wtf some piece of code, e.g. apr_xml_to_text, does, the following will get you the answer by example, most times: find modules -name '*.c' -print | xargs

Generating XML

2007-05-16 Thread Tim Bray
I want to generate some fairly large amounts of XML programmatically inside my module. Poking around apr_xml.h and util_xml.h doesn't turn up a lot of support for this. Am I looking in the wrong place? Obviously, with qpr_xml_quote_string and apr_rprintf I can do it by hand, but there

Re: Generating XML

2007-05-16 Thread Tim Bray
On May 16, 2007, at 11:27 AM, William A. Rowe, Jr. wrote: You can count on expat 1.95-ish generation (possibly 2.00) to be built with httpd. Um... the expat 1.95 that's in the current source doesn't seem to have any generation functions; am I missing them or did I mis-read you? You

Testing debugging?

2007-05-05 Thread Tim Bray
I'd be so much happier if I had unit tests, but it's tricky since everything's static. My best idea is to have an #ifdef TESTING section in my code that has a main() in it that runs the tests (of course this means actually *understanding* the lovely makefile goodness I copied from Josh

Re: Looking for TFM on OS X module building

2007-05-01 Thread Tim Bray
On May 1, 2007, at 11:18 AM, josh rotenberg wrote: I put my tarball of stuff up on google code for anyone else that might be interested: http://code.google.com/p/modskeleton/ The goal is to have something that sets you up for mutliple source files, a utils directory for other binary