Archive

Archive for March, 2010

nm-applet

March 31st, 2010 4 comments

Weil das KDE WLAN-Applet ziemlich schlecht ist, empfiehlt es sich das nm-applet zu installieren. Zu installieren per:

sudo aptitude install network-manager-gnome

Categories: linux Tags: , ,

Wort zum Freitag

March 26th, 2010 2 comments

The x86 isn’t all that complex –
it just doesn’t make a lot of sense.

M. Johnson, AMD, 1999

Categories: Uncategorized Tags: , ,

Copy text from a copy/paste protected pdf file

March 25th, 2010 4 comments

Isn’t it annoying when people don’t hide their information, but make it hard to work with them?
Like, you know, uncommented open source code or in this case copy/paste protected pdf files.
To copy text from such a pdf open it with kpdf (a KDE pdf viewer) and unselect “Obey DRM limitations” in the KPDF settings.
Then you can use the Select Tool to copy and paste text.
Have fun!

Categories: Uncategorized Tags:

Spruch des Tages

March 22nd, 2010 No comments

Es ist zu lang…und zu verknotet!

by Jens

Categories: fun, nerdcore Tags:

zeigt her eure newsfeeds

March 22nd, 2010 3 comments

Hi,

ich bitte hiermit um links zu seiten die ihr regelmäßig besucht bzw deren rss ihr aboniert habt. Bin gespannt auf eure comments 🙂

Categories: Uncategorized Tags:

dvd rippen leichtgemacht

March 15th, 2010 3 comments

Ich wollte gerade für einen Freund die DVD eines Junggesellenabschieds rippen, den ich vor ein paar Jahren aufgenommen hatte. DVD::RIP hat sich aber an der Menüstruktur verschluckt – obs am Tool oder meinem (damaligen?) Unverständnis für DVD-Authoring liegt weiß ich nicht – ich wollt einfach nur nen mittelmäßiges x264 . . .

Also hab ich den mplayer rausgekramt und das Ganze auf der Kommandozeile gemacht:

#ermittelt den laengsten track auf der dvd - meist der hauptfilm
lsdvd /dev/sdc0 |grep Longest
#hier wird track 02 benutzt
mplayer dvd://02 -v -dumpstream -dumpfile Dateiname.vob
#unkomprimierten ton extrahieren  - 128 ist tonspur 1
mplayer Dateiname.vob -aid 128 -dumpaudio -dumpfile Dateiname.ac3
# Rand ermitteln - sinnvolle stelle nutzen (cursortasten)
mplayer Dateiname.vob -vf cropdetect
#first pass - crop anpassen siehe schritt vorher
mencoder -v Dateiname.vob -aspect 16/9 -vf crop=704:432:8:72,harddup -ovc x264 -x264encopts subq=6:partitions=all:8x8dct:me=umh:frameref=5:bframes=3:b_pyramid:weight_b:turbo=1:pass=1:psnr:threads=0:bitrate=745 -ofps 25 -oac copy -of rawvideo -o Dateiname.264
#second pass
mencoder -v Dateiname.vob -aspect 16/9 -vf crop=704:432:8:72,harddup -ovc x264 -x264encopts subq=6:partitions=all:8x8dct:me=umh:frameref=5:bframes=3:b_pyramid:weight_b:pass=2:psnr:threads=0:bitrate=745 -ofps 25 -oac copy -of rawvideo -o Dateiname.264
# MKVMerge: *.ac3 und *.264 hinzufügen (Containerformat zusammenbauen)
mmg

Das Ganze ist als kurzes HowTo gedacht und kein Script 😉 – ist quasie eher nen öffentliches BackUp . . .

Categories: nerdcore Tags: , ,

displayport to hdmi adapter – a user experience

March 14th, 2010 No comments

wow – took only 10+ hours to get it working . . .

I use a t500 lenovo laptop which features a displayport connector. My screen at home is a SyncMaster T260HD. As my personal computer is connected via vga and dvi and as the Wii uses both the scart and the YPbPr-component connectors, only the 2 hdmi remain. So I bought a displayport-2-hdmi adaptor for like 14 EUR  on amazon. I booted linux – nothing to be found, xrandr tells me that DFP1 and DFP_EXTTMDS are disconnected. I reboot into Windows 7 – there the scren switches to full 1920×1200 over hdmi. Then i reboot again. This time even the bios screen and grub are mirrored to the hdmi-port. I boot inti Ubuntu 9.10 and the screen is found – wrong resolution but at least its there. I reconfigure and have to log out for the settings to take effekt. Everything goes black and would stay so for the next 3-4h. Not even the internal LCD works anymore. As its now saturday night (Travolta 4 the win) i refrain from turning this into an all night session and head out for some wine. But I do disconnect all cables and take out the battery. Sunday morning at least the internal lcd works again and i even get a picture from the vga and dvi port from the docking station after booting into Windows 7 and updating the graphics card driver. Out of ideas I open the plastic housing of the dp-hdmi adaptor. As there is some ectronic to be seen there it dawns to me this adapter may not be that passive after all. A short visit to http://en.wikipedia.org/wiki/DisplayPort reveals that there has to be some support in the graphics-card as hdmi and displayport are not compatible out if the box and the adapter has to signal the graphics card to send hdmi instead of pure displayport. looking at hardware of the connector closer reveals that it is badly solder at two points that could lead to a short circuit – at least for my inexperienced eyes. I simply rearrange the layout of the cables, close the plastic casing and have working hdmi in linux and windows since then.

So the tag line of this post is – never give up – even if its such a tiny little adapter cable thats trying to bug you 😉

Categories: nerdcore Tags: , ,

Qualitätsjournalismus in Deutschland

March 12th, 2010 1 comment

Heute beim “ehemaligen Nachrichtenmagazin”:

Kommentar aus den eigenen Reihen:

Das gehört eher in die Rubrik Kuriose Pornotitel!

Categories: news, wtf Tags: ,

Shell Script-Rätselraten

March 12th, 2010 1 comment

Gelegentlich kommt es vor, das großes Rätselraten herrscht, über bestimmt Spitzfindigkeiten von Unix Shells. Sei es das Umbiegen von Deskriptoren oder das Verhalten bei Forks…

Zufällig bin ich gerade auf einen einen sehr schönen Foliensatz gestoßen, der zumindest für die bash abhilfe schafft. Sehr übersichtlich, perfekt zum Nachschlagen.

http://www.cs.uni-potsdam.de/ml/teaching/ws09/rnb/f07.pdf

Categories: bashism, linux, software Tags:

entia non sunt multiplicanda praeter necessitatem

March 11th, 2010 2 comments

Or in other words

entities must not be multiplied beyond necessity

This is also known as Ockham’s razor. The computer scientist mostly refers to the somehow similar KISS principle

keep it simple [and | ,] stupid

Even Einstein said something in that direction:

everything should be made as simple as possible, but no simpler

I just read source-code that reminded me to adhere to the common deeper meaning of  all of these “sayings” to never produce code like the one I was looking at 😉

Categories: c/c++, software Tags: ,