Python Stuff

I started programming in Python in 2004, after a friend told me about it. I have been working with it at work and also at home since. I like to use Python for writing everything between nice-to-haves for personal consumption at home and behemoths at work. On this page, I will put up ideas Ive been considering and working on at home.

"Ama Do It"

by analogkidanalogkid 05 Nov 2008 19:52

When I was "In The Mood", I studied quite a bit about dcop (more precisely, in the context of python-amarok), I wrote a mini remote controller for amarok with wx and python for shites and giggles. Some months later, when I became a decent mobile snake wrangler, I decided to juice my Nokia N73 a bit more. So now I have this very small bluetooth-based amarok remote controller called "Ytsejam" (because that name is original and nobody else could have possibly thought about it \oo/ ). Ytsejam is based on PyS60s socket/appuifw API and has a server app (once the mini controller, stripped off its UI), which processes commands over bluetooth sent by a client (N73) and pushes them to amarok via dcop.

Here is the amarok server code.
And here is the client (on phone) provided you have the snake on there.
Need I mention that you have to have your python dcop bindings, and PyBluez in place? Also, you'll need to change your bt addr for the adapter on your computer in the client.

Cellular Snakes

by analogkidanalogkid 05 Nov 2008 19:49

So I went out and got me a N Series Nokia a while ago (N73). I had not really planned this, but what else does a guy do when he accidentally drop his phone into the shite-pot?? No really … I ain't talking shite!! Luckily enough, I had flushed the bowl clean before it all happened. So my good old Nokia gave up and I couldn't transmit voice anymore. So I thought I should buy me a "cool" phone this time round. The N73 is a pretty neat instrument. Apart from being a music player (I know … iPod still rulz!!), a camera, an office assistant, a web browser/email/blogger client, it also makes phone calls and sends SMS. So when I was considering a purchase, I had to go through about 2 millions different types of phone. And then I gave up and just bought something "popular". Of course, there were some other things that drew me to it. Guido's comments on the Python For Series 60 effort at MobiLenin.

First foray into Python on Symbian. And boy, is that a treat! Install the S60 Platform on the PC, write and test your Python scripts using an emulator, move them to the phone via Bluetooth/Data Cable, and the thing is a snake-pit!! Haven't done much in this yet. Just looking for some goodies that Ill need to start working with this. Here's some resources and screen-shots…

1. Nokia Forums (Tools and SDKs)
2. A nice comparison between Python and other tools for Series 60.
3. Jurgen Scheible's tutorial for PyS60.
4. PED - A full-featured Python IDE for Nokia S60 platform.

No Tunes Redux

by analogkidanalogkid 31 Oct 2008 04:26

So I did some more stuff on NoTunes and finally sealed it off with RSS, MusicBrainz integration and WikiPedia integration. Apart from some problems with threading, this version rocks!!


No Tunes

by analogkidanalogkid 31 Oct 2008 04:22

Ever since I got my iPod Shuffle, like a zillion other people, the one problem I found with it … the iTunes/Amarok/RhythmBox dependency. There was no way you could simply copy mp3s onto your iPod and make them "playable" ….

Then the Godsend … the Shuffle DB (Re)Builder … a python program that you must copy to your iPod Shuffle and run after you've copied all your mp3s onto the iPod … and there it is … the builder rebuilds your iPod database with all of the folders (or tracks) and makes them playable …

The rebuilder also has a "smart shuffle" feature which makes the shuffling "more" random.

Here's a snapshot of a UI (which Ill call "NoTunes") that I built for the builder … I moved some "In the Mood" functionality (as seen in bottom pane) inside NoTunes for sh#%s and giggles too …

Some more loose ends and then no more iTunes for me …

A word of caution … do not try this program on regular iPods … it has been built for shuffles only … if you want to be free of iTunes with regular iPods, you should try reTune …

Stay frosty …


In The Mood

by analogkidanalogkid 31 Oct 2008 04:15

So after my progressive rock news aggregator "Rocinante", me and Rambo started working with another nifty thang … apart from all the snooker that we've been indulging in :)

This new tool, called "In The Mood" (another RUSH song!!), lets you set your "mood-range" (which is a range between two colours) and generates a playlist of mp3 files from the music collection on your computer. "In-the-mood" uses this kick-ass plugin called the "moodbar", which is used by this great Linux music manager/player called "Amarok". It expresses the "mood" for a certain song as a colour.

In-the-mood lets you generate playlists, gauges the overall "mood" of your collection, suggests related music in your collection (it lets you grow or shrink your list), gauges the mood of all files in a certain location (read folder), and so forth …

A screen-shot of the rudimentary user interface people …

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License