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
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
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
After multiple, failed, attempts with mod_fastcgi I found a simple three step solution to enable python scripts on my webserver:
- sudo ln -s /etc/lighttpd/conf-available/10-cgi.conf /etc/lighttpd/conf-enabled/
- Add the following section to your /etc/lighttpd/lighttpd.conf file:
### Python Config ###
cgi.assign = (“.py” => “/usr/bin/python”)
Restart lighty: sudo /etc/init.d/lighttpd restart
That should do the trick. As it says in the title, this is a simple and painless way to enable Python CGI scripts on lighty.
For Windows and Linux there’s UNetbootin, in OSX you have to rely on the terminal to create your USB flash drive.
Step 1: Download the image of the distro you want to use. In my case XUbuntu 10.04.
Step2: If there is data that you still need on your flash drive, save it on your desktop or somewhere else on your harddrive. I created a folder ‘Data’ on my desktop.
Step3: Open a terminal and type in mount . This should give you a list of mounted drives on your Mac, like this:
eubolists-macbook-pro:~ eubolist$ mount/dev/disk0s2 on / (hfs, local, journaled)devfs on /dev (devfs, local, nobrowse)map -hosts on /net (autofs, nosuid, automounted, nobrowse)map auto_home on /home (autofs, automounted, nobrowse)/dev/disk0s3 on /Volumes/BOOTCAMP (fusefs, local, synchronous)/dev/disk1s2 on /Volumes/Time Machine-Backups (hfs, local, nodev, nosuid, journaled)/dev/disk3 on /Volumes/8GB DRIVE (msdos, local, nodev, nosuid, noowners) <– This is the one we want
681+1 records in
681+1 records out
714168320 bytes transferred in 225.925632 secs (3161077 bytes/sec)
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:
- 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 “220.127.116.11” (Saurik’s server)
- 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.