Blog

Hacklebarney State Park

October 17, 2010

Did a quick hike this afternoon at Hacklebarney State Park. Found this park on Yelp. This is actually a nice park, the trail is pretty easy and short (I think about 3 miles long), mostly paved with some rocky sections and beautiful scenery!

There’s plenty of parking and also a lot of people seem to come here. You’ll see people walking their dogs, fishing by the river, taking pictures, and eating. There are …

vi for Windows

October 6, 2010

You’re probably asking “Why in the world would I want to use viin Windows?”

Well, I didn’t have an answer to that until a couple of days ago. I was testing a software that seems to have been originally designed for UNIX and ran into an issue modifying a configuration file. I needed to add an entry to the config file so I used Notepad to do it but when I tried starting the …

Deadlock issue when using Python’s subprocess module

September 24, 2010

I ran into an issue yesterday when calling an external Java application from Python using the subprocess module. The Java application loaded but appeared to have stopped executing after loading its properties files (last entry in the log file is after loading the properties file).

My Python code looked something like this:

import subprocess

javaApplication = subprocess.Popen(["java", "-jar", "application.jar"], stdout=subprocess.PIPE, stderr=subprocess.PIPE)

# The wait() function is actually not a good idea to use
# when …

How to change the TIME-WAIT delay and the highest source port number that can be assigned in Windows XP or Windows Server 2003

September 15, 2010

We ran into an issue last night where a web server we use for testing wasn’t able to open anymore connections. It turned out that our web application was creating too many connections too fast and Windows ran out of port numbers to allocate.

By default, Windows XP and Windows Server 2003 (not sure about other versions of Windows) wait 4 minutes before releasing sockets in TIME-WAIT state (RFC 793) and the highest …

Mt. Tammany

September 4, 2010

Did this hike at the end of July (wearing my KSO Treks of course :)). It’s a pretty short hike but also pretty challenging. I think it’s only about 3 miles round trip but very steep climbs. I probably stopped at least 4 times to take a break before I reached the summit, but it’s worth it!

The view at the summit is really nice. You can see eagles flying around and a nice view …