Archive for the 'Python' Category

Treating a log4j log like a database

Wednesday, March 28th, 2007

I’m finally posting a Python module I wrote months ago that I have found to be very handy.

Our log4j log files get big — really big. It doesn’t help that we log just about everything under the sun. This makes it difficult to parse through and find the messages that we are looking [...]

Jython 2.2b1

Friday, February 9th, 2007

Testers wanted.

The Jython Project The Jython development team is proud to announce a new release: Jython 2.2 Beta1!

It’s been a long, wild ride from Jython 2.1 to this point. Let’s help them get this out the door quickly.

Congrats to all the developers to get the code to this point!

About Recursion

Friday, January 19th, 2007

“Fabulous Adventures In Coding : How Not To Teach Recursion” said: A Joel On Software reader asked the other day for examples of recursive functions other than old chestnuts like Fibonacci or factorial

I’ve never figured out what is difficult about recursion — I’ve always just “gotten it”. Am I that special? Or did I [...]

Eating Cookies with Python

Thursday, December 28th, 2006

At work, we can get to the production server logs through the browser. This seems nice, but it’s a lot of clicky-clicky just to get to the log file, then you have to download it. You can look at it in a browser, but to get real examination done, you need to open it [...]

Why I still like Django over Rails

Saturday, November 4th, 2006

In an addition to this post I want to say that I still prefer Django over Rails.  I’ve spent a few hours the past couple of days going through the Django tutorial again and then started writing an application for it.  I feel like Django flows better for me.

Why is that?  Not just because it’s [...]

On Trac

Friday, October 6th, 2006

One of the most important things in testing is keeping track of the defects you find.  That way, everything is in one in place, and you can easily pass issues back and forth.  This week I’ve been evaluating Trac and I have to say that I’m impressed, and I haven’t gotten to all the functionality [...]

Turning a string into a datetime object

Monday, September 25th, 2006

I think that all computer languages should be judged on how they handle dates and time in their standard library.  But then, most fail.

Python’s support improved greatly with the datetime but getting a string massaged into a datetime takes some doing.  This is what I came up with:

dateTup = time.strptime(dateStr,”%B %d, %Y”) rssItem.pubDate = [...]

Django

Thursday, September 14th, 2006

After messing with Django for approximately 30 minutes, I’m going to write why I immediately took to it over messing with Ruby on Rails for off and on for a few months. This is not scientific, but opinionated. Your views may not be reflected here.

It’s written in Python, which I know a lot [...]

My Python and XML talk

Wednesday, September 6th, 2006

I put my slides up for my Python and XML talk over here.  You can see the content in any browser but if you want the slides you need to use Opera in full-screen mode.  I had a good time with the Omaha Dynamic Languages Group and I hope they enjoyed my talk as much [...]

IronPython 1.0 released

Wednesday, September 6th, 2006

It was really yesterday, so don’t get too confused.

I’ve played with IronPython off and on over the past few years (and even got my name on the list for bug reports a few times) and I’m quite  excited about it.  I’ve always had a soft spot for .Net and, really, it’s Python so it’s hard to go wrong.

Hopefully I will get more time to play with it over the next few weeks.

Jim Hugunin’s Thinking Dynamic : IronPython 1.0 [...]