Archive for the 'Python' Category

Another Django Talk

Saturday, June 28th, 2008

Blaine finally let the cat out of the bag – I’m finally doing a Django talk for the Omaha Dynamic Language Group.  If you saw my Django talk for the Omaha Python Group, this one will be similar, only with a little more background and a small comparison with Ruby on Rails.  The application will [...]

Logging in Python

Tuesday, May 6th, 2008

I’ve been using log4j for a long time, but never got into Python’s logging module. But last week I was sitting in a class about logging and my company’s new standard and toolset. The instructor kept giving Python as an example (as well as log4j) of a logging system that worked with our logging repository. [...]

Introducing Heartland Stores

Friday, February 15th, 2008

I’ve talked a little about the secret project a few times but now, finally, the secret is out. It’s called Heartland Stores.

Heartland Stores is not your typical yadda-yadda web store front. Actually, it’s not like that at all.  Heartland Stores wants to help non-profit organizations with doing product fundraisers.  It’s really very simple — instead [...]

Some Quick Things

Tuesday, February 5th, 2008

Yep, it’s that time I put a bunch of random stuff together in one post. Deal with it.

Anyone else in Omaha sick of the snow besides Gina and I?  I can’t believe my backyard has been covered since December.
Leah had a severe cough all last week.  On [...]

Spring and Jython — what a combo!

Wednesday, December 12th, 2007

I’ve been thinking off and on for a few month that using Spring inside of Jython would be a magical thing. You could just get a Spring ApplicationContext, call “getBean” and Jython (who doesn’t care what kind of object it is) would happily go on it’s way.  No importing a ton of object — just [...]

Finally, a use for reduce

Friday, September 14th, 2007

I’ve been using Python for a long time but I’m not sure that I’ve ever used the reduce.  A lot of people use it badly and I’ve never really “gotten” it.  But the other day I was tackling a problem and a light bulb went off in my head — “Isn’t this what reduceis for?”The [...]

More Joys Of Python

Friday, August 31st, 2007

I haven’t had a chance to do anything in Python lately.  But yesterday I needed to do some screen scraping and, after looking at the HTML I needed to scrap from, I knew that I needed some good tools.The HTML is table in a form with several rows in it. In cell in each rows [...]

Putting Object Ownership in Django

Sunday, April 22nd, 2007

I’m working on a Top Secret web project that I will talk more about in the near to medium future. Because I’m a Python nut and need to make simple web application that has complex business rules (i.e. the technology isn’t complex, but the business logic can be ) I chose Django as my [...]

Finally . . . generators in Jython

Wednesday, April 4th, 2007

Okay, so I'm behind the Eight Ball. But I'm using Jython 2.2b1 and finally had a reason to use generators. Of course, we are back in 2.2-land, so our first line is this:

PLAIN TEXTPYTHON: from future import generators

Then here is my function. Generators are very nice for processes the result of a SQL [...]

Five Things I Hate About Python

Thursday, March 29th, 2007

brian d foy started this meme at the beginning of this month and many Pythoneers have joined in.  So it's time I joined the party.

The Whitespace.  I love it and I hate it. I love it because it makes the code look clean and readable.  But if you are editing someone [...]