Tag: python

January 06th 2012

Telit GM862-GPS hex() bug

Tags: code news python embedded

My SHA1 code was returning a different hex digest when run on my Telit GM862 GPS. I eventually tracked the problem down to the hex() function. Simply put hex(3181490320L) does not return the right result!

Run this test script and post your results below.

Read more...

0 Comments

May 14th 2011

Embedded development setup with Macbook

Tags: python howto embedded

I’ve been put onto an interesting project recently, doing some embedded Python development for a Telit GM862-GPS unit. Being new to this type of thing it took me a while to get a development environment set up that I was happy with. In an effort to share what I’ve learned, here’s my setup:

(To be clear I’m using the Roundsolutions development starter kit for the Telit GM862-GPS with my Macbook pro.)

Read more...

0 Comments

October 01st 2010

Web.py checkboxes

Tags: web.py python howto code

Checkboxes are a bit tricky with web.py, here’s how to get them working:

Read more...

0 Comments

July 14th 2009

web.py captcha form

Tags: web.py python code

I coded a basic captcha for my web.py form, here’s how:

First I made a function that generates an image and returns it + the code (yea yea it’s a mess).

Read more...

0 Comments

July 10th 2009

web.py tutorial + sqlite

Tags: python web.py howto

If you want to follow the web.py tutorial using sqlite here’s how:

Line for your python to connect to DB

Read more...

0 Comments

July 10th 2009

I like Python

Tags: python thoughts

So I decided to learn Python and Django in the hopes it would be a half way house between PHP and Lisp, letting me actually get stuff done whilst not being PHP.

My first impression of Django has been pretty bad, I bought the ‘definitive guide’ book only to find it was not so much definitive as obsolete. Also the amount of arbitrary seeming magic didn’t impress. Having said that I have passed through that and I’m beginning to get the hang of it.

Read more...

0 Comments