Lance Wicks
Kiwi,
Judoka,
Geek,
Husband
Daddy!

JudoGeek Blog

Judo-Notator 

Picture 7


In August I shall be attending the 6th annual International Science of Judo symposium, where I shall be presenting my research into Attack Rates in Judo as a predictor of victory. As part of the research I wrote a small hack to make the notation faster/easier/better.

It was quick and dirty, but it helped me get through the hours of video footage.

In preparation for the symposium I have been revising the code and making it a bit better, so that I can put a link to it on the poster I have to produce. I also intend on sharing the SPSS data file and possibly my actual assignment so that others can access the data and make their own study of it and compare it to mine. Maybe people can use the code I have written to replicate the research or do it elsewhere and push forward the field open source community stylee. ;-)

The original code, was just a console app, with little/no feedback to the user. Ick. So with this version I decided to created a user interface yet I wanted to stay console based; mainly to simplify making the code portable across operating systems. I am on a Mac, but the code "should" run on Windoze or Linux. It is in Perl as that is the language i wanted to use, no other reason.

...actually that is not entirely true. I am more experienced in Perl code than other languages. Also, the community and resources are amazing. CPAN is incredible and makes life so easy if you have code that is unpredictable. What I mean by that is that if like this code you are making decisions "on the fly" Perl and CPAN make it so easy to magically have the modules you need at hand.

For example, I decided to try using curses to do the user interface. So it's dead simple with Curses::UI I didn't have to learn/do too much to have a menu system, windows and dialog boxes etc.

Also, I love using Perl::Critic and Perl::Tidy to ensure that my code is of a definable quality level. At some stage I might try using Kwalitee as well. :-)

I am using Coda (which rocks) to develop the code and a mix of local SVN server and mainly Git to do the sources control. I am really hoping that Coda gets proper support for GIT soon. Maybe replace SVN with GIT, especially seeing as Git can (with limitations) work nice with SVN servers.

I have been using GitHub.com as a host for the code, so you can pop over and clone the code and take a look for yourself. In fact, I would really appreciate it if you did ( http://github.com/lancew/judo-notator ). Both branches are up there, I am working on the "GuiVer" branch at the moment.

It has been enjoyable and rewarding to be writing some code. I have been adding services and trying to contribute to NoseRub.com too, but this is a bit different as i am starting from scratch and the codebase is simpler.

After I have the code for the GUI aspect done, I have to give thought to output of each match, I am thinking if it is possible to write direct to SPSS format so it can be processed there right away... we shall see.

Anyway, I just wanted to get some of this out of my head and onto the blog to reassure the universe I am still there.

Lance
[ view entry ] ( 5013 views ) permalink

<<First <Back | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | Next> Last>>