Programming with PyGTK and Glade

This is my translation of Florian Diesch’s guide found here: http://www.florian-diesch.de/doc/python-und-glade/online/einleitung.html

I translated this guide as there doesn’t seem to be anything about using gtkbuilder and glade, rather than the older libGlade, with python. The guide is not yet complete, but I will keep working on it over the coming weeks.

Dieser Werk bzw. Inhalt ist unter einer Creative Commons-Lizenz lizenziert. This work is released under a creative commons licence (cc-by-nc-sa).

Continue reading Programming with PyGTK and Glade

Fix Slow EPG on Samsung DVD-SH871M and DVD-SH875M

The Samsung DVD-SH871M
The Samsung DVD-SH871M

EDIT: See comments from David for an even newer firmware!

I recently came across a Samsung DVD-SH871M that was unusable due to the EPG and several other menu features being incredibly slow to respond to the remote. I have no idea what Samsung were thinking of when they released this player with completely unusable firmware… but there is a fix.

A quick google showed that this was a common problem and the solution was to upgrade the firmware. The new firmware is supposed to be available from Samsung’s website, but there is only a manual listed for the DVD-SH871M. However, it turns out that the DVD-SH875M, for which there is a firmware update listed, uses exactly the same firmware. To the point that when performing the upgrade, you will see that the old (i.e. the shipped) firmware contains the SH875M’s name in its version number.

So, the solution is a simple one, download the DVD-SH875M’s firmware from here: http://org.downloadcenter.samsung.com/downloadfile/ContentsFile.aspx?CDSite=uk&CttFileID=2003747&CDCttType=FM&ModelType=N&ModelName=DVD-SH875M&VPath=FM/200809/20080908164404281_sh875m_20080728.zip

I will also mirror the file here, unless Samsung request I remove it: https://www.danbishop.org/downloads-files/sh875m_20080728.ruf.tar.bz2

Then unzip the file, burn it to a cd/dvd/cdrw/dvdrw, then put the disc in the DVD-SH871M. The player will load for a bit, then ask you if you’d like to upgrade the firmware. Select “Yes”, then go and make a cup of tea (the process takes about 6-8minutes).

Once finished the player will eject the disc automatically, remove it et voilà, the process is complete.

IOP Journal of Physics D, Lyx and Ubuntu

If you’re getting an error when you try to produce a pdf, or any other output from Lyx using the built in Journal of Physics D style, then try the following:

Download the following file to your home directory: https://www.danbishop.org/downloads-files/iop.tar.gz

Then run the following commands:

sudo tar zxvf iop.tar.gz -C /usr/share/texmf/tex/latex

sudo texhash

Voilà! Don’t even have to restart Lyx 🙂

Dell Mini 9 (and how to fix the keyboard!)

Dell Mini 9
Dell Mini 9

I bought a Dell Mini 9 from Tesco Direct about two weeks ago now, unfortunately, the battery was dead when it arrived, but after a quick chat to Dell the laptop was collected from my house the next day and redelivered with a new battery and a new motherboard the next week.

Since then I have been VERY impressed with it. However, the version of Ubuntu that came pre-installed is a specially customised version of Hardy Heron 8.04, I really need at least 8.10 so that I can use LyX across all my machines properly. Installing 8.10 was easy and everything except the sound worked out of the box. To fix the sound a single line had to be added to a config file (easily searchable on google).

The problem came, however, when I tried to use LyX and my “” kay didn’t work. I tried all the other keys on the keyboard and discovered that [ and ] were also non-functional.

My inital assumption was that I needed to specify some special dell keyboard layout in xorg.conf and as two of my friends also have Mini 9s running the default pre-installed version of Ubuntu I thought this would be quite easy to find… Their xorg.conf files were very standard though, nothing  Dell specific at all.

Finally, after much searching, I found this:
Setting keyboard matrix:
1. Turn off your computer.
2. If your computer is connected to the ac adapter, disconnect the ac adapter from the computer.
3. Press and hold <Fn><K>.
4. Connect the ac adapter to the computer (assuming that the AC adapter is already plugged into an electrical outlet).
5. Release the key combination.

It worked! This came from someone who had replaced the keyboard and was having the same issue as me, I have not read of anyone who has instaloled 8.10 and had the same issue. I can only assume that my issue came about because either, my keyboard was also replaced when it went in for repair, or, I did upgrade the BIOS to A04 before installing 8.10,  so perhaps that had something to do with it…

I could definitely recommend the Mini 9, it is perfectly capable of full screen iPlayer playback, the battery life is around 4-6 hours and the keyboard, though small, is actually very pleasent to work with.

Spotify: music that's free as in beer… Free invites!

Spotify Logo
Spotify Logo

Spotify is a free, legal, ad-supported way to stream music. Their catalogue of music is HUGE and whilst there is no native-linux client there are very comprehensive instructions for how to run it under wine on their own site (this is very easy too, no hacking around).

At the moment, the service is in beta and you need to be invited to join it, or pay for one of the premium services. However, for a limited time, if you’re in the UK you can use this link to sign up: tinyurl.com/spotifylink. There are native clients for Windows and Mac OSX… perhaps with a little bit of lobbying a native Linux client will be released too.