Saturday
28
Feb 2004

I am now officially a renter

(1:20 pm) Tags: [Life]

The house sale closed yesterday, and I must say it is a lackluster boring finish to what was a great ride at the start. When we listed the house, by the end of the first week on the market, we had 6 offers, all above asking. We took 4 offers into a second round, and ended up selling the house for almost 8% above asking. After we accepted the offer, everything was dead easy. We had to do almost nothing until last week, when we signed the escrow papers in preparation for the close. As escrow closed yesterday, we are now in a rentback on this house, while we move. Since we have not found another house yet, there is no drama. I am sure that it will happen soon enough :)

Popularity: 10%

Comments: (0)

Is ant running out of memory?

(12:53 pm) Tags: [Software, How do I...]

We have quite a large project at work, and when starting fresh ant was running out of memory. No documentation that I found, but I found the answer in the source (don’t you love open source :) ?). On windows, when you type ant, you are actually calling ant.bat, which tries to get its JVM arguments from a script called antrc_pre.bat in your home directory. So, it is a simple matter of creating the antrc_pre.bat and adding the following to it:

set ANT_OPTS=-Xmx1024m

Now, when I run Ant, the JVM is given up to 1 gigabyte, which should be enough ;)

Popularity: 22%

Comments: (3)

mod_python Cookie paths under an Apache alias

(5:10 am) Tags: [Software]

More mod_python work, and I was seeing that session.is_new() was always returning true. Installed Live HTTP Headers into Firefox to debug, and looking at the Cookie being set, the path was mangled. Google led me to found out that you need to set the following in your config. This example is the balance to an

Alias /test

directive with:

PythonOption ApplicationPath /test

located in the <Directory> that the Alias is pointing to. This does not need to be done if the drectory is underneath the DocumentRoot. Simple, but it can trip you up when you can’t find the data you just stored in the session.

Popularity: 8%

Comments: (0)

mod_python Windows quirk with Basic Auth

(4:04 am) Tags: [Software]

In using mod_python, I finally installed it on a Windows XP box running Apache 2.0.48 and mod_python 3.1.2b (the latest binary I can get today). When I tried to do my basic authentication configuration and testing, I kept getting HTTP 500 errors, instead of the 401 that I was expecting. When I tried to print out the user and password in the log, I was getting both as None. So, off to Google, and back in 10 minutes with the answer: When doing HTTP Basic authentication with mod_python as the Authentication Handler on Apache 2 running on Windows XP, the mod_python module needs to be loaded before the authentication module.

Once I moved mod_python to the front of the LoadModule list in my httpd.conf, everything is working again. I am not sure if this is a mod_python bug, or an Apache bug. Anyone have any ideas?

Popularity: 9%

Comments: (1)