Eubolist's Blog

about IT, Linux, the web and much more

Archive for the ‘Open-Source’ Category

MythNetTV-Status Page

leave a comment »

I wrote a little script the other day so I could sporadically check on the progress and last downloaded shows of mythnettv on my mythtv-box.  The package “mythnettv-gui” sets up a nice cronjob that creates a log file, which my script uses to deliver the information. You can download the script here.

All you have to do is put the script in place and tell your system with crontab -e to execute it every now and then:

# m h  dom mon dow   command

* * * * * /usr/local/bin/mythnetstatus.py

For the lazy reader here is a complete set of commands, just copy-paste in a terminal to download and set everything up:

wget http://content.wuala.com/contents/Eubolist_/www/mythnetstatus.zip?dl=1 && mv mythnetstatus.zip?dl=1 mythnetstatus.zip && unzip mythnetstatus.zip && sudo mv mythnetstatus.py /usr/local/bin && sudo cp var/www/mythnettv-status /var/www && rm -Rf var && crontab -l > cron.tmp && echo “* * * * * /usr/local/bin/mythnetstatus.py” >> cron.tmp && crontab cron.tmp && rm cron.tmp

Advertisements

Written by eubolist

2010/12/24 at 12:36

Python Script: Merge and sort multiple RSS Feed items in one Feed

with 3 comments

In my first blog post a while back I wrote about showrss and how to concatenate multiple tv-shows into one personalized rss feed.

I’ve been using their service for about a year now and am quite happy with it. Sadly though, despite multiple requests, they haven’t included National Geographic and Discovery Channel documentaries yet. So today I took the time and wrote customfeed, a little python script that is able to fetch multiple feeds, sort the items and concatenate them in the right order to a new feed. Although I wrote the script for use with ezRSS feeds, it should work just as well with any other feeds (might need some little modifications or tweaks though).

The script depends on python-feedparser, so make sure you have that one installed:

sudo aptitude install python-feedparser

or:

sudo easy_install feedparser

The most convenient way is to set up a cronjob that executes customfeed.py every few hours or so. Mine looks like this:

24 */6 * * * /usr/local/bin/customfeed.py

Written by eubolist

2010/12/24 at 02:12

AnkiMiniSync Version 0.1, an ‘offline’ sync script for AnkiMini (on the iPad)

with one comment

Since I didn’t want to use the Anki Online service to sync AnkiMini on my jailbroken iPad and Anki on my Laptop I always had to copy the recent version from/to my iPad over ssh (sshfs). To automate that task a bit and save me some time I wrote this little sync script. It basically compares the two .anki decks in the local and the remote folder and replaces the older with the newer version. It does however -NOT- read the .anki file and merge the files properly. That means you can only work on one machine and then have to sync before you start working on the other one. It also means working on more than one mobile device is not possible (well, it’s possible but you’ll lose data through the sync process).
There are still some restrictions in this first version:
-Your username and directory where the Anki deck is stored must not contain any whitespaces (will be hopefully be solved in v.0.2)
-You can only sync one deck at a time (functionality to sync whole folders is planned for v.0.2)
-The .anki folder must be directly in the mounted directory of the sshfs volume
-You should have public key authentification turned on
-As far as I know this script only works on *nix systems, I have only tested it on OSX so far
If you encounter any bugs or problems besides the above don’t hesitate and write a comment! Don’t write any bug reports in the Anki support forums or to the developers of Anki (or AnkiMini), they have nothing to do with this.
Contributions to the code are always welcome of course. You are also allowed to use the code or parts of the code anywhere else, though it’d be nice to notify me somewhere along the way.
AnkiMiniSync IconLink to ankiminisync-0.1.py

Spirit – the jailbreak for the iPad

leave a comment »

Today the Dev-Team has released their latest stroke of genius: Spirit is the name of the latest untethered jailbreak for iPad, iPhone and iPod Touch. Before you jailbreak your device you should take two steps:

  1. Save the SHSH blob of your device. To do so you either have to download the necessary tool for Windows or Mac or edit your hosts file (/etc/hosts) to point “gs.apple.com” to “74.208.10.249” (Saurik’s server)
  2. Perform a full backup with iTunes! Especially if you’re trying to jailbreak your iPad – the whole procedure as well as Cydia on iPad is still considered beta.

Then go to http://spiritjb.com/ and download the jailbreak application for Mac or Windows. The jailbreak itself is as easy as one single click.

Written by eubolist

2010/05/03 at 15:46

Ubuntu Lucid Lynx 10.04 LTS is out!!

leave a comment »

Download the newest Ubuntu long term support (LTS) release on http://releases.ubuntu.com/releases/10.04/. If possible choose a torrent download to save Canonical some server bandwidth and you some time.

Tests about the new Ubuntu will be on my blog soon!

Written by eubolist

2010/04/30 at 22:18

Anki: An Intelligent Study Card System For Any OS

with 3 comments

A month ago I was looking for a new computer-based method to improve my study schedule. After a bit of searching in the endless depth of the web I discovered Anki, a flash card application that has several very useful features:

  • It is written in Python and available for Windows, Linux, Mac OS X and FreeBSD – which means it runs on virtually any computer.
  • There are a lot of  “Decks” (=sets of flashcards built by other users) already available on the web
  • The interface is really nice and intuitive, adding sound, video or pictures to your cards is very easy, thus can be accomplished by people with little experience with computers. Also there are many options to adjust the program to your study habits.
  • Anki uses spaced repetition. After each card you have to say how well you remembered it – based on that Anki will set the interval after which the card will be brought up again. With this technique facts will be pushed into your long-term memory. That means you won’t experience black outs in exams anymore as the hormone cortisol, released by your body in situations of psychological stress, only affects the short term but not the long term memory.

If that made you curious, why don’t you give it a try! Here are the download links:

Windows

Ubuntu (you can also install it with apt-get/aptitude, but the version in the repositories is pretty old)

Linux

Mac OSX

FreeBSD

Written by eubolist

2010/03/14 at 21:10

Install MythTV 0.22 on Ubuntu 9.04 Jaunty Jackalope

with 2 comments

If you want to install the newest version of MythTV on Jaunty, here’s what you have to do:

  1. Add the following lines to your /etc/apt/sources.list:
    deb http://ppa.launchpad.net/mythbuntu/repos/ubuntu jaunty main
    deb-src http://ppa.launchpad.net/mythbuntu/repos/ubuntu jaunty main
  2. Add the Mythbuntu key by typing the following command: gpg –keyserver hkp://keyserver.ubuntu.com:11371 –recv-key 1504888C && gpg -a –export 1504888C | sudo apt-key add –
  3. Update your list and install Mythbuntu-repos: sudo aptitude update && sudo aptitude install mythbuntu-repos && sudo aptitude safe-upgrade

Written by eubolist

2010/02/07 at 21:04