Are you also sometimes annoyed by only finding documents on http://scribd.com and
nowhere else? Furthermore this site is missing of a download or printing
opportunity – at least there is no one for ordinary vitors.
Fortunately there is a little trick which might help you to still download a
pdf:
For mobile visitors using a mobile browser (tested with Opera Mini), there is a
download button. You just have to:
use Firefox
Tell scribd untruly, that you are using Opera Mini
open a new tab, enter about:config in the address bar and go for it
accept the security hint
use the context menu to create a new string named general.useragent.override
set the value of this string to Opera/9.80 (J2ME/MIDP; Opera Mini/6.24288/25.729; U; en) Presto/2.5.25 Version/10.54
visit the scribd page again and use the now appearing download button to reveive your pdf.
you should reset this string afterwards again to an empty value
When updating my only productive computer system to the latest opensuse
version 12.1, I decided to give the feature rich, shiny new filesystem
btrfs a try. It’s not yet so stable, but it is already delivered by
all main distribution. Fedora actually wants to use it as default.
Up to now I have to evaluate this disission to be more risky than lucky. After
something like two month, I experienced two filesystem corruptions. The first
one hit my root-filesystem. I had to setup my system from scratch, because every
write attempt on the partition ended with a kernel failure, most probably caused
by the btrfs driver. Mounting the partition in read-only mode while using a
Live-CD was the only way to do a late backup.
Yesterday I ran into btrfs problems again. I copied some photos to my hard disk.
In the next moment, I got some weird kernel sys messages, that didn’t help me at
all.
Message from syslogd@theta at Dec 9 17:45:00 ...
[Freitag, 9. Dezember 2011] [17:45:10] <saLOUt> kernel:[ 454.807770] Code: e9 8c fe ff ff 66 0f 1f 44 00 00 b8 ea ff ff ff e9 cf fe ff ff 48 89 de 4c 89 f7 89 04 24 e8 80 ec ff ff 8b 04 24 e9 b9 fe ff ff <0f> 0b 0f 0b 0f 1f 40 00 41 57 49 89 f7 41 56 41 55 41 54 55 53
All apps accessing my picture btrfs subvolume were crashing.
After disabling the whole btrfs system by commenting the appropriate lines in my
/etc/fstab file, I had a stable system again – just without any pictures.
Data Rescue
Luckily Chris Mason (#cmason) from #btrfs could help me to fix these
problems without any loss of data!
A# simple btrfsck didn’t help me, because of a crash of the repair tool itself:
which went without any errors. After that I used the custom build btrfs-zero-log
tool to do some btrfs magic, that I don’t understand.
./btrfs-zero-log [device]
After another reboot, I was able to mount my picture partition in read-only mode.
I did a late backup again. When reading these files, one gets usually a lot of
errors in /var/log/messages like this:
csum is the abbreviation for checksum. ino means inode, which is a kind of
identifier for every file. To fix these errors, you have to find these files
belonging to these inodes, deleting them and copy them back from your backup.
I wrote a small ruby script, which helps you finding the affected files
#!/usr/bin/ruby# string with error messageserror_messages=`dmesg | grep "found for inode"`# list of integersinode_list=error_messages.split("\n").map{|i|i.match(/inode (\d+).*/)[1].to_i}# list of arrays of filenamesfile_list=inode_list.map{|i|`find /mnt/test -inum #{i}`.split("\n")}# require 'json'# File.open("/tmp/inode-files.json", "w") {|f| f << JSON.pretty_generate(file_list)}putsfile_list.flatten.uniq.sort.join("\n")
If you finally want to delete these files, you have to remount your partition in
read-write mode.
At least for me, this walkthrough suggested by Chris resolved my problems.
Als ich gefragt wurde, ob ich am Heiligen1 Abend 2010 den
Weihnachtsmann vertreten würde, habe ich mir gleich überlegt,
auch ein Gedicht vortragen zu wollen, um die kleinen Kinder
ein wenig anzuspornen.
Nachdem der Vorsatz rechtzeitig gefasst war, hat mir jedoch etwas
Zeit zur Realisierung gefehlt. Ja, der Reim ist nicht perfekt, aber
hey: Die Kinder haben ja auch keine Ahnung.
Problematischer war dann noch die Präsentation. Die Vertretung des
Weihnachtsmanns war viel zu aufgeregt – war die Rolle doch vollkommen
neu. So ein Mist: Ich hatte damals ein Blackout. :(
Ich bin jetzt beim Sortieren wieder auf den Text gestoßen und veröffentliche
ihn hier unter der CC BY-NC-SA-Lizenz, damit es nicht ganz umsonst war. Auf
Namensnennung (BY) mag bei eurem Auftritt verzichtet werden. Sonst würde
schließlich eure Tarnung als Weihnachtsmann auffliegen. Toll nicht? Ich habe
echt an alles gedacht!
Weihnachtsmann-Gedicht
Von Himmelspforte froh und munter,
fahr’ ich mit dem Schlitten runter.
Doch meine Rentiere 12 Stück,
die lass ich im Wald zurück.
Aber mein Sack, der ist so schwer,
ganz allein’ trag’ ich ihn her.
Ich bin schon alt, mich schmerzt der Rücken,
möcht’ ich euch mit Gaben nun entzücken.
Erlaubet mir zuvor zu fragen,
kann ich was zum sitzen haben.
Die Kinder beschenke ich besonders gerne,
seh’ ich sie doch immer aus der Ferne.
Glaubt mir ja nicht, ich wüsste nicht Bescheid,
ob ihr auch immer lieb und artig seid.
Für mich ist dieser Abend natürlich nicht heilig! ↩︎
Much time has passed since i wrote my previous blog post about
Kubeplayer. Things doesn’t change so much, but nowadays Kubeplayer is quite
stable and doesn’t crash anymore.
After a lot of difficulties I got Kubeplayer packaged for opensuse. It’s ready
to install with only one click in the case you are using openSuSE
11.4—thanks to the open build service.
Before delivering any further details, you may want to see the video
demonstration on how Kubeplayer performs using Meego and
KDE Plasma Active.
That was the easy part. The rest is quite hard, due to the fact, that I didn’t
found the ruby KDE language bindings. So maybe it is easier to use the opensuse
based Plasma Active Installation.
Try to compile smokegen, smokeqt, smokekde, qtruby and korundum
Because the KDE Plasma Active team doesn’t seem to use KDE vanilla and there
might be some other reasons, too, it is quite hard to do that. I had to monkey
patch (commenting) a lot of files.
The installation of Kubeplayer is again quite simple, as you don’t have to build
anything, but to meet the conventions, you can use cmake to copy the files to the
right place. By now, the Kubeplayer repo is in playground.
git clone git://anongit.kde.org/kubeplayer
cd kubeplayer
git checkout -t-b tablet origin/tablet
cmake -DCMAKE_INSTALL_PREFIX=/usr
make # nothing happenssudo make install
Next Steps
There are plenty different tasks yet to do:
Up to now there are no packages for any other distro than opensuse. It would
be awesome if someone could help me to build packages for other distros (using
the openbuild service), too.
Do you have ideas which other video platforms could be added? I checked vimeo,
but it seems to be complicated. I didn’t found any other app doing something
similar with youtube. Weird.
Probably the interface could be made more touchfriendly by using some QML. I
have absolutely no experience with that. Maybe someone can propose an idea how to
make the list view be more slide friendly (flickable).
To be able to deliver any ruby-KDE application to the not so experienced KDE
hacker, it would be necessary to package the kdebindings for Meego.