Archive for the 'Software' Category

lirc and LCDproc for Soundgraph iMON changes

well… after an update quite a while ago my lirc and lcdproc stopped working. starting lirc on the default ubuntu install would always result in:

unable to load LIRC kernel modules. Verify your selected kernel modules in /etc/lirc/hardware.conf

so trying to add the modules manually would tell me a bit more:

root@augustiner:~$ modprobe lirc_imon
FATAL: Error inserting lirc_imon (/lib/modules/2.6.31-21-generic/updates/dkms/lirc_imon.ko): Unknown symbol in module, or unknown parameter (see dmesg)
root@augustiner:~$ dmesg | grep lirc_imon | tail -n1
[  420.742877] lirc_imon: Unknown parameter `islcd'

i noticed a line in the options that was wrong and removed it:

options lirc_imon islcd=0

lirc was back up and running but not my LCD screen. the logs showed:

[  492.637968] lirc_imon: lcd_write: invalid payload size: 32 (expecting 8)
[  492.762951] lirc_imon: lcd_write: invalid payload size: 32 (expecting 8)
[  492.887947] lirc_imon: lcd_write: invalid payload size: 32 (expecting 8)
[  493.012940] lirc_imon: lcd_write: invalid payload size: 32 (expecting 8)
[  493.137946] lirc_imon: lcd_write: invalid payload size: 32 (expecting 8)
[  493.262958] lirc_imon: lcd_write: invalid payload size: 32 (expecting 8)
[  493.387957] lirc_imon: lcd_write: invalid payload size: 32 (expecting 8)
...

some further googling and i found out that the options line has changed from release to release. to get it back working use:

options lirc_imon display_type=1

to get the write type just look into lirc_imon.c

enum {
   IMON_DISPLAY_TYPE_AUTO,
   IMON_DISPLAY_TYPE_VFD,
   IMON_DISPLAY_TYPE_LCD,
   IMON_DISPLAY_TYPE_NONE,
};

opera mini 5 released

just noticed today that opera mini 5 is out of beta status. i have been using this awesome browser for quite some time and there’s just no better browser out there.

opera mini requests every page through opera’s servers which process and compress each site visited, that way your data usage is kept at a minimum while sites load faster.

so get it while it’s hot and just point your phone browser to:
m.opera.com and if you want more infos check opera mobile

USEFUL TIP: to edit speed dial links just select an existing one and hold down “open” for a popup to appear with the options “clear” or “edit”

transcode could not find a FFMPEG codec for ‘mpeg2video’

to create a dvd out of different videos i often use transcode, for example:
transcode -i input.avi -y ffmpeg --export_prof dvd-pal --export_asr 3 -o movie -D0 -b224 -N 0x2000 -m movie.ac3 -J modfps=clonetype=3 --export_fps 25

after an update (don’t recall what and when) i recently started getting this error:
[export_ffmpeg.so] Could not find a FFMPEG codec for 'mpeg2video'.
[transcode] warning : (encoder.c) video export module error: init failed
[transcode] critical: failed to init encoder

i found that libav received a stripped version in the official repository. so i checked the multiverse repos and they have the unstripped version there. so uninstall these packages:

libavcodec51
libavdevice52
libavformat52

and replace them with these:
libavcodec-unstripped-51
libavdevice-unstripped-52
libavformat-unstripped-52

and your transcoding can continue!

ubuntu chromium daily builds

for everybody that’s wanted to try the google browser on your ubuntu machines there are repositories to get the pre-alpha version up and running in a few seconds.

check out https://launchpad.net/~chromium-daily/+archive/ppa and add the repositories.

then simply sudo apt-get update && sudo apt-get install chromium-browser

and run chromium-browser

well it’s supposed to be that easy… somehow it doesn’t work for me because i can’t see the rendered pages (it does load the data though)

chromium

and i can’t be bothered to try and get it running at the moment…

[UPDATE 31.03.2009]
well just got an update today and it works now… like the speed but the tab system doesn’t really work correctly yet…

disable HTTP cache cleaner notification for KDE apps on gnome

if you keep getting the annoying “Launching HTTP Cache Cleaner” in the panel on ubuntu 8.10 Intrepid Ibex while running amaroK or other KDE apps you’ll need the new kde4 systemsettings manager to hide this.

to get this to work just type:
sudo apt-get install kdebase-workspace-bin systemsettings

and then run
systemsettings

then this windows should popup
systemsettings

then click on desktop and you’ll see the notifications

Desktop Notifications

just uncheck the “enable taskbar notification” part and you’re done!

[edit]
for those who don’t want to install this stuff you can also just edit the file:
~/.kde/share/config/klaunchrc

and set
TaskbarButton=false

mine looks like this:
[BusyCursorSettings]
Blinking=false
Bouncing=true
Timeout=30

[FeedbackStyle]
BusyCursor=true
TaskbarButton=false

[TaskbarButtonSettings]
Timeout=30

[edit #2]
somehow this doesn’t quite work as good as i thought. you might want to check the ubuntu bug for updates.

opera dragonfly web developer

been playing around with the new opera that’s got an integrated web developer tool called dragon fly, pretty nice move towards a firebug type plugin for opera.

dragonfly in opera 9.5

let’s see what the future holds…

from firefox to epiphany/gecko to epiphany/webkit

since firefox is getting slower each day the developers code. i started using epiphany instead.

it has some cool features like the “Smart Bookmarks” which i have configured to be some sites in my toolbar that i can directly enter the search term. in the bottom screenshot you see an example wikipedia search and how it is set up. smart bookmarks are even smarter though, check out some samples they have on the galeon website.

smart bookmarks

since the gecko engine has gradually made me sicker and sicker i decided to recompile my epiphany browser with webkit. woohoo! so i followed the howto here.

after installing libxslt-dev and the gstreamer development packages (libgstreamer-plugins-base0.10-dev and libgstreamer0.10-dev) which solved my dependency problems i compiled WebKit/GTK+ from the svn source with the option –enable-video just for the heck of it.

running the very simple browser found under ./Programs/GtkLauncher i receive the user agent
Mozilla/5.0 (X11; U; Linux i686; en-us) AppleWebKit/525.1+ (KHTML, like Gecko, Safari/525.1+) lt-GtkLauncher

webkit gtklauncher

to fix the glib requirement version >= 2.15.6 i just installed glib from the hardy repositories. then compiled epiphany with the option –with-engine=webkit.

now if i check the user agent i get:
Mozilla/5.0 (X11; U; Linux i686; en-us) AppleWebKit/525.1+ (KHTML, like Gecko, Safari/525.1+) epiphany

and i’m finishing this post right here with epiphany/webkit.

about

a fun little experiment but it seems it’s just not ready to actually use on a everyday surfing basis!
some things that don’t work:

  • gmail (i’m guessing because of redirects)
  • http authorization
  • flash content (no youtube browsing)
  • secure http connections
  • and it has bugs in various form fields

ace archives and unace-nonfree

well you’ve gotta love ace archives, there’s actually still people using it ;)
i received one today and wenn trying to unace in my linux i get (with t as parameter to verify the archive):
munzli@freddy:~$ unace t archive.ace
UNACE v1.2 public version

Processing archive: archive.ace

Authenticity Verification:
created on 31.3.2002 by Laudahn

thefirstfile.txt
 Analyzing
File compressed with unknown method. Decompression not possible.

Error occurred

well after searching around i found out that there is a nonfree version of unace. how handy. it’s located in the multiverse repository of gutsy and can be installed with:
sudo apt-get install unace-nonfree

now you’ve got the unace version that will decompress my archive and another version named “unace-free”. i’m not sure why they named it the other way around in the repos, but it works…

iconv script for converting character encodings

well the whole character encoding problems in the german language with utf-8 and iso-8859-1 is pretty tedious. a fine little program called iconv does the whole encoding changes pretty nicely but… (well there had to be a but huh?) you can’t switch encodings with input and output being the same file.
so moving/deleting/renaming makes it a little painfull.

i wrote a little script that does this for me, it’s really simple but simplifies everything.

#!/bin/bash
#
# Convert arguments handle different encodings
iconv -f $1 -t $2 "$3" -o "$3-new"
# Create backup
mv "$3" "$3~"
mv "$3-new" "$3"

i called it “econv” and instead of:
iconv -f iso-8859-1 -t utf-8 myfile.txt -o myfile_new.txt

then deleting the old file and renaming the new one, i just type:
econv iso-8859-1 utf-8 myfile.txt

which does the trick and even creates a “myfile.txt~” backup of the original.

put the script in your /usr/local/bin or whatever you prefer and you can use it globally.

using pictures for picasa and flickr that include geotag exif data

just received a picture that has geotag information in it. the only problem is: it seems that geotag isn’t equal geotag. the picture has GPSVersionID, GPSLongitudeRef and GPSLongitude tag in the exif data like it’s supposed to.
uploading this to flickr worked perfectly, it displays the town name and location where it was taken. pretty cool if you ask me. here’s an example:
geotaged flickr image

well now to the big problem, google picasa doesn’t understand this kind of geotag… how to fix this? well i found out that exiftool knows all kinds of cool exif data and can also rewrite them. what we need to do is change the GPSVersionID from “2.2.0.0″ to “0.0.2.2″. GPSVersionID 2.2.0.0 is the default and basically means that it’s version 2.2, it seems that picasa doesn’t think so and wants it to be 0.0.2.2 (which seems to be more logical for a 2.2 version but i don’t really know who’s right here).

well what you can do is install exiftool, under debian/ubuntu that would mean:
sudo apt-get install libimage-exiftool-perl and for all you windows users you’ll have to download the zip file from the site mentioned above.

now all you need to do is rewrite the exif tag, to do this for a whole folder you’d use:
exiftool -GPSVersionID=0.0.2.2 -overwrite_original imagepath/*.jpg

then exiftool tells you how many images have been updated.

now let’s login to picasa and see what happens… after i uploaded the picture i went into the album and the picture is nicely placed on the map:
geotaged picasa image

no need to pick out the location or anything!

here’s my link to the picasa test and the flickr test.

only thing missing now is a GPS system :)

[update] for all you german users, if google isn’t set to english you won’t be able to see the map stuff on picasa because it’s english only atm.

[update2] i also noticed that there’s no need to change the exif GPSVersionID anymore for picasa to place the photo… nice…