Nucleus 2

I’m starting to look at doing a Nucleus 2.0 which will be designed around getting online content into the Apple TV

What it will need to do is the following:

  1. Fetch torrents from an RSS feed based on keywords
  2. Download said torrents (should this be multithreaded)
  3. Detect file type of media file and convert video to h.264/mp4
  4. Fix metatags
  5. Import into iTunes

Do you see anything else the app should do? I’m going to yet again do this in python, and probably will not have much in the way of an interface as it should just run as a background task on your computer. Thoughts and comments welcome, is there similar apps already in the wild that I need to know about?

Search and Replace With Python

Today I had a large (re: 4GB) file that I needed to do some search and replace on, and none of my text editors including my beloved Textmate could even open the file. So I turned to the most trusty of tools in my tool chest which is python!

[sourcecode language='python']
f = open(infile, “r”)
n = open(outfile, “w”)
for line in f:
output = line.replace(oldtext, newtext)
n.write(output)
[/sourcecode]

In just a couple of minutes I had a new file with the changes I needed. Its pretty basic stuff, but non-programmers (especially those that don’t use languages like python) might not think of trying.

pyFlickrFan

On twitter ages ago I wrote pyFlickrFan.  I thought I might have turned it into an app like what we did with pyPodder into iPodderX. August and I were even talking about it on and off.  Then the last keynote happened and it sounded like Apple was building all the functionality into [[[Apple TV]]].  So the project sat dormant on my machine running every once in a while.

So I decided now to release the code incase anyone else wanted to check it out.

pyflickrfan

And here is the source

ps: Thanks to Dave Winer who came up with the concept and original FlickrFan app