Archives March 2012

Wednesday, 21st March 2012 - 07:23:20

Chip

I swear my 2YO is housing some sort of fission reactor. Up several times during the night, then up at 6 full of energy. I am stuffed =)

Friday, 16th March 2012 - 19:42:55

Django

Hrm... facepalm... "default=datetime.now()" != "default=datetime.now" #python

I have the date in the title of my blog entries, recently  I added some code to do this automatically. When defining the model originally I had default=datetime.now(). This set the default title of my blog to the date and time when the model was evaluated. So when I came back the next day to add an entry the date was for the day I added the code and touched the .wsgi file. By passing the function, not the result it means that the function is evaluated when a record is made.

Friday, 16th March 2012 - 19:23:17

Chip

First week at the new job went well. So many new toys! Lots of new stuff to learn.

Thursday, 8th March 2012 - 22:16:32

Chip

Watched Unstoppable last night. Good movie. They take use of the Battlestar Galactica handycam-with-zoom-to-draw-attention to a new level.

Thursday, 8th March 2012 - 22:16:33

Chip

Well that was quite a lot of rain. At least the new veggie patch didn't wash away! Will post some pics later.

Tuesday, 6th March 2012 - 22:35:02

Chip

I really should stop adding features to my new website and put it live. It will never be done!

Saturday, 03 March 2012 - 11:33PM

Chip

I found a great site demonstrating how to add reCaptcha to the existing comments app from django.contrib.

http://www.betterprogramming.com/recaptcha-for-djangos-comments-framework.html

Saturday, 03 March 2012

Chip

So, there is blog, wiki and gallery, thats all the old featured covered. Time for a new feature. Today I wrote an app which pulls my tweets from the twitter API and stores them in the database and also display the last few in the side bar. The app has one new comonent which I don't normally use - a management interface.This allows an external call using manage.py running on crontab to go and fetch the last few messages.

I also ran through a lot of old blogs and tagged them - the tag cloud is looking a lot healthier now.

Daily archives