Posts

Showing posts from December, 2006

What is wrong with Berlios?

Berlios hosting was once a great replacement for Sourceforge and others. But these days it seems we have more downtime than uptime. I don't blame them (I am sure they have their reasons why nothing is ever available) but I do understand that I need something better to host my open source projects with. While we do bug tracking, and source-code hosting with Malone and Launchpad already, there is no provision on the Launchpad for hosting distribution files, and so we have had to painfully search for alternatives. For now we are going to go with Google code. This is not perfect for our needs, but it will replace everything we need Berlios for except for hosting the PIDA website, which can be easily arranged elsewhere. The main pain will be updating all the links around the web that point to the Berlios website. But that will come in time, and I am sure that PIDA users are bright enough to click a redirect link! For now the new project page is: http://code.google.com/p/pida/ And we als

PIDA 0.4.0 Released

After a slightly quiet spell (also known as an extended beta period) we have released PIDA 0.4.0. What kind of open source author would I be if I didn't push my own software on my blog! My favourite feature on this release is built in pyflakes. When you save a Python file it runs Pyflakes on it for you and prettifies the output into a GUI list for you to browse through, click on, and jump to the line number. All in Vim, as usual. Please try it, at http://pida.berlios.de/

More on Python Dates, adding time with a datetime.timedelta

I needed a date 2 weeks in the future. I needed it quickly. After blogging about Python dates, I thought I had a clue how to do it. To my relief the first attempted path of least resistance just worked! Here it is: >>> from datetime import date, timedelta >>> today = date.today() >>> two_weeks = timedelta(days=14) >>> two_weeks_time = today + two_weeks >>> today datetime.date(2006, 12, 6) >>> two_weeks_time datetime.date(2006, 12, 20) >>> This was used to automatically populate a column in an an old database: which wanted to be an expected_date = order_date + two_weeks.