Django tip: Debugging templates
using ipdb to get into your context
When debugging your Django code, the interactive python debugger is an invaluable tool. Wherever you want to take a look at what your code is really doing you can drop in the following line 'import ipdb; ipdb.set_trace()'
and then when you run the development server you'll be dropped into a debugging shell at that point. It makes it super easy to examine your data and step through your code.
However, that only works for your Python code...
olof
sep 23 2012
Read More
Japanska.se gets a new look
and a new backend as well!
Way back in 2006, Japanska.se was written by me as an interface to a Japanese-Swedish dictionary that my brother had created in a research project. Over time it got some nice features such as user editing of words, but then saw a long time of neglect when there was no time to update it. By 2012 it had gotten quite old and outdated, so when I finally found the time I rewrote it using more...
olof
apr 13 2012
Read More
Publishing Kanji by Hand
the paid version of Kana by Hand
Since the launch of Kana by Hand I've been continuing the work on a paid version that includes kanji instead of only hiragana and katakana. It now works well enough so I published it on the Android market.
There were two big things to get done before launching. One was a sync function and a server side backend. This was required since the word list for the kanji version is much bigger and...
olof
feb 29 2012
Read More
Launching Kana by Hand
Our first app for studying Japanese
For the last month or so, I have been focusing on putting together an app for learning Japanese. During the years I've been studying I've always wanted an app for learning all the different characters that build up the Japanese writing system.
Now I have released Kana by Hand, which is a free app for learning the two alphabets hiragana and katakana. The best way, in my experience, is to learn by writing. What...
olof
jan 08 2012
Read More
Animated paths on Android
let's draw that line
Lately I've been working on an Android app for learning to write Japanese characters. When showing how they should be written I wanted to show an animation that draws the character correctly. However, it turns out that there is no ready to use solution for this, so I had to write my own, though it was quite easy to get working. Here's how to do it.
Creating a custom View
Let's assume you have a
Path...
olof
dec 26 2011
Read More