Hanno's blog - English http://www.hboeck.de/ My little weblog en Serendipity 1.1-alpha1 - http://www.s9y.org/ Tue, 18 Apr 2006 00:00:35 GMT http://www.hboeck.de/templates/hanno/img/s9y_banner_small.png RSS: Hanno's blog - English - My little weblog http://www.hboeck.de/ 100 21 Breakpoint over http://www.hboeck.de/item/316 Computer culture English http://www.hboeck.de/item/316#comments http://www.hboeck.de/wfwcomment.php?cid=316 0 http://www.hboeck.de/rss.php?version=2.0&type=comments&cid=316 nospam@example.com (Hanno Böck) Back from Breakpoint, <a href="http://pictures.hboeck.de/">uploaded rest of images</a>. My submissions this year were quite limited: One Photo that didn't make it through the preselection and one effect for the Never-Demo (which made place 28 out of 29, n0y asked at a very late time "hey, can you code us some effect, the interface is really simple?", so I did some ascii-art-shading).<br /> <br /> I didn't manage to visit all seminars I wanted to see, I hope they'll get the recordings up soon.<br /> <br /> One I find worth mentioning:<br /> Peci from Scoopex managed to get a dos-COM-file running windows-code without any win32/PE-headers (smaller, good for 4k intros). What he's doing is basically abusing an api for attaching drivers to the DOS-Emulation (VDD). It is able to call initialization-functions of DLLs from within DOS with invalid Opcodes. Calling it without initializing a library causes to jump to position 0. The memory from the DOS-process is mapped 1:1, so this is a valid adress, where you can put a jmp in the COM-file before calling. Very weird, but seems to work fine.<br /> (I hope they'll put up the seminar-slides on the ftp, I'll link them when they're available) Tue, 18 Apr 2006 02:00:35 +0200 http://www.hboeck.de/item/316 http://creativecommons.org/licenses/by-sa/2.5/4k assembler breakpoint demoscene win32 Breakpoint: Day 1+2, Ultrasound, Welle:Erdball http://www.hboeck.de/item/315 Computer culture English http://www.hboeck.de/item/315#comments http://www.hboeck.de/wfwcomment.php?cid=315 1 http://www.hboeck.de/rss.php?version=2.0&type=comments&cid=315 nospam@example.com (Hanno Böck) <a href="http://pictures.hboeck.de/v/breakpoint06/"><img width='300' height='225' style="float: right; border: 0px; padding-left: 5px; padding-right: 5px;" src="http://www.hboeck.de/uploads/welle-erdball.serendipityThumb.jpg" alt="Welle:Erdball" /></a>First two days at breakpoint, everything quite okay, beside the usual chaotic organization (it wouldn't be a demoparty without that). The network sucks, so I don't know when I can publish what I'm writing right now.<br /> <br /> Yesterday evening was a live-act called Ultrasound, they played guitar-music to demos shown on the screen. The beam-team didn't manage to show second reality (probably they don't have any real DOS any more...). Quite nice.<br /> <br /> On Saturday I missed most of the compos because I did something very unscenish and got some fresh air and light (ok, not so much light, it was cloudy), visited Bingen city, took a ship to the other side of the rhine and walked around there a bit. I like this landscape, I did some bicycle-trips here in the past.<br /> <br /> Next was the <a href="http://www.welle-erdball.de/">Welle:Erdball</a> concert. They're doing electronic music with old computer sounds like C64-SID with a (imho) great live-show.<br /> <br /> <a href="http://pictures.hboeck.de/v/breakpoint06/">First set of pictures are here</a>, more to come. Sun, 16 Apr 2006 12:47:50 +0200 http://www.hboeck.de/item/315 http://creativecommons.org/licenses/by-sa/2.5/bingen breakpoint c64 demoscene sid ultrasound welleerdball Breakpoint Trip http://www.hboeck.de/item/314 Computer culture Life English Code Art http://www.hboeck.de/item/314#comments http://www.hboeck.de/wfwcomment.php?cid=314 1 http://www.hboeck.de/rss.php?version=2.0&type=comments&cid=314 nospam@example.com (Hanno Böck) <a href="http://breakpoint.untergrund.net/"><img width='300' height='148' style="float: right; border: 0px; padding-left: 5px; padding-right: 5px;" src="http://www.hboeck.de/uploads/breakpoint.jpg" alt="Breakpoint" /></a>In a few minutes I'll head off to the <a href="http://breakpoint.untergrund.net/">Breakpoint</a> in Bingen, one of the biggest events of the demoscene.<br /> <br /> This year I'm especially looking forward that there are a couple of interesting seminars, I'll probably write some reports about that. And have a look at their website, I like this years design very much. Fri, 14 Apr 2006 12:07:21 +0200 http://www.hboeck.de/item/314 http://creativecommons.org/licenses/by-sa/2.5/breakpoint demoscene Cartoon-like filter with vlc http://www.hboeck.de/item/312 Linux Movies Gentoo English http://www.hboeck.de/item/312#comments http://www.hboeck.de/wfwcomment.php?cid=312 4294967289 http://www.hboeck.de/rss.php?version=2.0&type=comments&cid=312 nospam@example.com (Hanno Böck) <img width='352' height='288' style="float: right; border: 0px; padding-left: 5px; padding-right: 5px;" src="http://www.hboeck.de/uploads/vlc-a.png" alt="VLC with distort/edge-filter" onMouseOver="this.src='/uploads/vlc-b.png'" onMouseOut="this.src='/uploads/vlc-a.png'" />If you ever asked yourself how a cartoon of your favorite movie would look like, vlc has some very nice filters to play around with (see screenshot).<br /> <br /> You'll need latest vlc 0.8.5_beta2 (yes, it's really unstable), gentoo has masked ebuilds for it.<br /> <br /> To enable the filter, try out:<br /> vlc --vout-filter distort --distort-mode edge<br /> <br /> (Pictures from the Creative Commons by-nc-nd licensed movie <a href="http://www.artabazoom.de/movies">Teezeit</a>) Wed, 12 Apr 2006 23:53:35 +0200 http://www.hboeck.de/item/312 http://creativecommons.org/licenses/by-sa/2.5/cartoon filter video vlc Solar Eclipse http://www.hboeck.de/item/305 Life Science English http://www.hboeck.de/item/305#comments http://www.hboeck.de/wfwcomment.php?cid=305 0 http://www.hboeck.de/rss.php?version=2.0&type=comments&cid=305 nospam@example.com (Hanno Böck) <a class='serendipity_image_link' href='http://pictures.hboeck.de/v/eclipse06/'><img width='246' height='246' style="float: right; border: 0px; padding-left: 5px; padding-right: 5px;" src="http://www.hboeck.de/uploads/eclipse.jpg" alt="" /></a>From todays solar eclipse, which could be partially watched from Germany, I tried to take <a href="http://pictures.hboeck.de/v/eclipse06/">some pictures</a>.<br /> <br /> Good that I kept my special eclipse sun glasses from 1999 (when we had a total eclipse over south Germany I completely missed due to the bad weather back then). Most of the time it was cloudy, but I still managed to get some nice pics. Wed, 29 Mar 2006 16:48:10 +0200 http://www.hboeck.de/item/305 http://creativecommons.org/licenses/by-sa/2.5/eclipse solareclipse sonnenfinsternis Playing with hardware sensors in linux http://www.hboeck.de/item/303 Linux Gentoo English http://www.hboeck.de/item/303#comments http://www.hboeck.de/wfwcomment.php?cid=303 3 http://www.hboeck.de/rss.php?version=2.0&type=comments&cid=303 nospam@example.com (Hanno Böck) Yesterday I played around a bit with what hardware sensors can do and how to access them in linux.<br /> <br /> <b>hddtemp</b><br /> <br /> The first, and quite trivial tool I tried was <a href="http://www.guzu.net/linux/hddtemp.php">hddtemp</a>. You don't need to do anything further, just install it and run<br /> <i>hddtemp /dev/hda</i><br /> (Assuming your harddisk is hda, which is usually the case)<br /> <br /> It supports a bunch of harddisks by default and if it doesn't know your HD, it tries to access it with some default-values. Extending the hd-database seems to be trivial, I already sent a patch for my HD. Output looks like this:<br /> <i>/dev/hda: SAMSUNG MP0804H: 46°C</i><br /> <br /> <b>lm_sensors</b><br /> <br /> <a href="http://netroedge.com/~lm78/">lm_sensors</a> is a bunch of drivers and tools to use hardware-sensors on motherboards. As you probably have no idea what chips your motherboard has, lm_sensors brings a tool called sensors-detect to help you. The way to go is just enabling everything (except debugging, which you usually don't need) in the kernel-sections i2c and hardware monitoring as module and let sensors-detect to the work.<br /> Basically, pressing return all the time should be okay. At the end, it'll tell you which kernel-modules are useful for your system.<br /> <br /> After that, running sensors shows something like this:<br /> <i>max6657-i2c-0-4c<br /> Adapter: SMBus I801 adapter at 1100<br /> <br /> M/B Temp: +40°C (low = -65°C, high = +127°C)<br /> CPU Temp: +36.6°C (low = +35.1°C, high = +72.2°C)<br /> M/B Crit: +110°C (hyst = +100°C)<br /> CPU Crit: +110°C (hyst = +100°C)</i><br /> <br /> Well, not that useful, but interesting to know that I have at least 3 temperature-sensors in my laptop.<br /> <br /> <b>Update:</b> As noted by Joshua Jackson in the comments, with <b>smartctl /dev/hda</b> (from <a href="http://smartmontools.sourceforge.net/">smartmontools</a>) you get the temperature and much more information about your HD. Thu, 23 Mar 2006 15:11:44 +0100 http://www.hboeck.de/item/303 http://creativecommons.org/licenses/by-sa/2.5/hardware hddtemp linux lm_sensors Reverse engineering onlinetvrecorder http://www.hboeck.de/item/296 Computer culture Linux Cryptography English http://www.hboeck.de/item/296#comments http://www.hboeck.de/wfwcomment.php?cid=296 4294967294 http://www.hboeck.de/rss.php?version=2.0&type=comments&cid=296 nospam@example.com (Hanno Böck) <a href="http://www.onlinetvrecorder.com/">onlinetvrecorder</a>, a service that let's you record broadcasts from some german television stations, provides it's files in .otrkey-format, which can be decoded using their binary otrdecoder-tool, considering you have requested the recording in advance.<br /> <br /> As there is no information how the format and authentication work, I had a deeper look at it.<br /> <br /> <b>Getting the key</b><br /> <br /> Using some network sniffer, the authentication is very simple, it just requests them with http, the URL is<br /> http://www.onlinetvrecorder.com/uncrypt.php?email=[email]&amp;pass=[pass]&amp;filename=[file]<br /> (filename is the .wmv-name without otrkey)<br /> Inside that file is an ascii/hex-encoded number with 128 bit. That very much looks like a key.<br /> <br /> This already gives us the possibility to manually download the key and, if we want to re-decode some movie (because we lost the wmv or because we want to decode a file before it's completely downloaded to already start watching the recording), save the key to a local webserver as uncrypt.php, forward the hostname to 127.0.0.1 and re-start otrdecoder.<br /> <br /> <b>The cryptography</b><br /> <br /> From what I found out yet, the file is encrypted with some sort of blowfish. The encrypted and decrypted files are exactly the same size, that means we have no IV and a variant of blowfish that does no padding.<br /> <br /> The best I got till now was using mcrypt with ecb-mode:<br /> mcrypt -d -a blowfish-compat -s 16 -o hex -b --noiv -m ecb --nodelete -f [keyfile] [file]<br /> <br /> This decrypts the first 256 bytes correctly, after that it seems to mix up things (the correct decryption continues at byte 512). From what I read in Schneier[1996] (»Applied cryptography«), there is an ecb variant using ciphertex stealing that avoids padding. I found no easy-to-use implementation of that.<br /> Having a commandline-cryptography tool that supports more options than mcrypt would be handy here. Thu, 09 Mar 2006 21:17:37 +0100 http://www.hboeck.de/item/296 http://creativecommons.org/licenses/by-sa/2.5/blowfish onlinetvrecorder otrkey reverseengineering schneier Fosdem 2006 notes http://www.hboeck.de/item/293 Linux Life Gentoo English Code http://www.hboeck.de/item/293#comments http://www.hboeck.de/wfwcomment.php?cid=293 3 http://www.hboeck.de/rss.php?version=2.0&type=comments&cid=293 nospam@example.com (Hanno Böck) <div class="serendipity_imageComment_right" style="width: 300px"><div class="serendipity_imageComment_img"><a href='http://pictures.hboeck.de/v/fosdem2006'><img width='300' height='225' src="http://www.hboeck.de/uploads/fosdem-gentoo.jpg" alt="Gentoo at Fosdem" /></a></div><div class="serendipity_imageComment_txt">Gentoo at Fosdem</div></div>As there was only very limited internet access at Fosdem, I didn't find the time to blog live, so here my collected impressions.<br /> <br /> Keynote with Richard Stallman about software patents. I already knew this talk, so it wasn't so interesting. I also think there weren't much people in the room that had to be persuaded to resist software patents, so they should have probably choosen a more »visionary« topic for RMS to talk about. After that an interesting talk about the GPL v3 (also by RMS). I asked a question about the problem that GPL v2 only code can't be mixed with GPL v3 code, he asked me to email discuss this with him, what I will do.<br /> <br /> There were two talks about Xgl, one from Matthias Hopf telling what xgl is, what problems they face and some compiz presentation (with the always-known whooo-effect). Zack Rusin did a »Why Xgl is not the answer« talk. Was very interesting to hear the pros and cons of Xgl, I don't have a real opinion on that (I don't feel that I understand the technical details enough), but we should probably have an eye on the different futures X has (Xgl and aiglx at the moment).<br /> <br /> Another very interesting talk in the X room: Stephane Marchesin is working on reverse-engineering nvidia chipsets and intends to write a free driver for them. It's in a very early stage (basically at the moment just finding out how the chips work), let's wish him all success (see <a href="http://nouveau.sf.net/">nouveau - his not yet working first sources</a>).<br /> <br /> Suse gave out free (as in beer) t-shirts, so don't be amazed if you see me with a suse t-shirt running around <img src="http://www.hboeck.de/templates/hanno/img/emoticons/wink.png" alt=";-)" style="display: inline; vertical-align: bottom;" class="emoticon" /><br /> <br /> Some other more or less interesting talks, overall the presentations are the highlights of fosdem, you'll probably hardly find another event with so many interesting, high level talks about open source and free software.<br /> <br /> <a href="http://pictures.hboeck.de/v/fosdem2006/">Pictures will be here</a> as soon as I find time to upload them. Mon, 27 Feb 2006 22:59:57 +0100 http://www.hboeck.de/item/293 http://creativecommons.org/licenses/by-sa/2.5/ FOSDEM trip http://www.hboeck.de/item/292 Linux Life Gentoo English http://www.hboeck.de/item/292#comments http://www.hboeck.de/wfwcomment.php?cid=292 0 http://www.hboeck.de/rss.php?version=2.0&type=comments&cid=292 nospam@example.com (Hanno Böck) <a href="http://www.fosdem.org/"><img width='270' height='80' style="float: right; border: 0px; padding-left: 5px; padding-right: 5px;" src="http://www.hboeck.de/uploads/fosdem.png" alt="FOSDEM" /></a>FOSDEM, the Free and Open source Software Developers' European MeetingFOSDEM, the Free and Open source Software Developers' European Meeting, will start on saturday. The schedules sound quite interesting.<br /> Tomorrow I'll start my trip to Brussels and hopefully will also find some time to visit the city.<br /> <br /> Maybe I'll have a small presentation of the xgl-overlay. If you are also there, this is the chance to meet me in reality and probably exchange some pgp-keys or such. Thu, 23 Feb 2006 23:16:21 +0100 http://www.hboeck.de/item/292 http://creativecommons.org/licenses/by-sa/2.5/ Copyleft film about New Orleans after hurricane Katrina http://www.hboeck.de/item/288 Politics Movies English Copyright http://www.hboeck.de/item/288#comments http://www.hboeck.de/wfwcomment.php?cid=288 0 http://www.hboeck.de/rss.php?version=2.0&type=comments&cid=288 nospam@example.com (Hanno Böck) As the <a href="http://www.heise.de/newsticker/meldung/69681">german newspage heise reports</a>, there's a new copyleft film, a documentary about New Orleans half a year after hurricane Katrina.<br /> <br /> Their website <a href="http://www.droppingknowledge.org">dropping knowledge</a> seems to be down at the moment. I'll post a review as soon as I got it and found time to watch it (this may take some days, because I've got university scrutinies next week).<br /> <br /> <b>Update:</b> As <a href="http://www.netzpolitik.org/2006/neuer-copyleftfilm/">Netzpolitik</a> reports, this film is not really copyleft, it's released under a cc-by-nc-nd (creative commons attribution noncommercial no derivatives) license. Beside that, the page's javascript has problems with konqueror (and I always ask myself why this obvious connection between free culture and free software seems to be so difficult). Thu, 16 Feb 2006 12:33:32 +0100 http://www.hboeck.de/item/288 http://creativecommons.org/licenses/by-sa/2.5/ Rant: Printing with cups http://www.hboeck.de/item/287 Linux Gentoo English http://www.hboeck.de/item/287#comments http://www.hboeck.de/wfwcomment.php?cid=287 8 http://www.hboeck.de/rss.php?version=2.0&type=comments&cid=287 nospam@example.com (Hanno Böck) Okay: If you regularly read my blog, you know that I'm a linux addict and free software fan. I really like my linux, I'm much more comfortable with it than the bad old days when I used this other system from this redmond company. I have the strong belief that free software is the better concept and will succeed on the long run. Just to make clear that this is a very rare situation when I rant about linux.<br /> <br /> So let's start: Today I wanted to print some slides from a university lecture. They were landscape format and to save paper (52 pages), I wanted to print four of them on one page. A simple task one should think.<br /> <br /> Started kpdf, clicked on print. As my cups was configured, I could select my printer, go to it's options and found a 4 pages on 1 option, so it seemed fine. Clicked on Print. Waited. Waited. Nothing happened.<br /> Webbrowser, localhost:631, no printing jobs. No errors. Nothing.<br /> <br /> Looked at the logfile (this is at least the point where every common user wouldn't come further). Nothing that helped, just a note to change loglevel to debug. Did that. Restarted cups. Re-sent page. Logfile showed up some segfault in a gs-command. Damn, why can't just the interface tell me that?<br /> From the small knowledge I have about linux-printing, I knew that there are various implementations of ghostscript. Looked into portage, found three, replaced ghostscript-esp with ghostscript-afpl. Restarted cups.<br /> <br /> Tried to print, my printer actually did something. Well, it looked interesting. I had the third page in the upper left corner and about a third of the fourth page beside it. Beside that, far smaller than it should be, nearly unreadable.<br /> <br /> Ok, there are some other pdf-viewers out there. Tried kghostview. Print, select 4 pages option, etc. Printer started doing something.<br /> The result was really interesting: The pages were printed white on white.<br /> <br /> Next try, evince. As evince is a pretty new gnome-tool, it sticks to the gnome guidelines: Less config-dialogs, less features. It just had no possibility to print four pages on one. Oh, should I mention that evince crashed when I wanted to close the printing dialog?<br /> Gave up. Will read it on the screen.<br /> <br /> Conclusion: Free software had some great success in the last years. Today we have systems that can compete to commercial ones in many areas for common usage. Some areas on the other side are really horrible. Printing is one of them.<br /> If we really want to compete on the desktop, we need to get such basic tasks to »just work«. Wed, 15 Feb 2006 22:19:39 +0100 http://www.hboeck.de/item/287 http://creativecommons.org/licenses/by-sa/2.5/ amaroK 1.4 with moodbar http://www.hboeck.de/item/286 Computer culture Linux Music Gentoo English http://www.hboeck.de/item/286#comments http://www.hboeck.de/wfwcomment.php?cid=286 9 http://www.hboeck.de/rss.php?version=2.0&type=comments&cid=286 nospam@example.com (Hanno Böck) <a href='http://www.hboeck.de/uploads/amarok-moodbar.jpg'><img width='300' height='188' style="float: right; border: 0px; padding: 5px;" src="http://www.hboeck.de/uploads/amarok-moodbar.serendipityThumb.jpg" alt="" /></a>The greatest music player of all time, called <a href="http://amarok.kde.org/">amaroK</a>, just had the first beta release of the upcoming version 1.4.<br /> The most visible new feature is the so-called moodbar that tries to color the »mood« of a track. Okay, it does a hell of cpu-usage and I doubt it's very useful, but it looks really funky.<br /> <br /> Gentooers: emerge sync, add media-sound/amarok to your package.unmask, add use-flag exscalibar, enjoy!<br /> Mon, 13 Feb 2006 20:51:56 +0100 http://www.hboeck.de/item/286 http://creativecommons.org/licenses/by-sa/2.5/ More free music http://www.hboeck.de/item/285 Music English Copyright http://www.hboeck.de/item/285#comments http://www.hboeck.de/wfwcomment.php?cid=285 1 http://www.hboeck.de/rss.php?version=2.0&type=comments&cid=285 nospam@example.com (Hanno Böck) The AStA of the University of Marburg starts it's second <a href="http://openmusic.asta-marburg.de/">Open Music Contest</a>.<br /> <br /> Like last year, they'll collection submissions from music artists released under a creatice commons license and will choose the best to be presented on a concert and released on a sampler. <a href="http://www.asta-marburg.de/modules.php?op=modload&amp;name=PagEd&amp;file=index&amp;topic_id=19&amp;page_id=513">Last years sampler</a> is available for download in ogg vorbis format.<br /> <br /> Nice project for more free music and open standards. Mon, 13 Feb 2006 02:23:05 +0100 http://www.hboeck.de/item/285 http://creativecommons.org/licenses/by-sa/2.5/ I'm so famous ;-) http://www.hboeck.de/item/284 Computer culture English http://www.hboeck.de/item/284#comments http://www.hboeck.de/wfwcomment.php?cid=284 3 http://www.hboeck.de/rss.php?version=2.0&type=comments&cid=284 nospam@example.com (Hanno Böck) Since my xgl-overlay, this happens all the time (from #xorg on freenode):<br /> <br /> &lt;...&gt; OMG IT'S HANNO!!!! *BOW DOWN<br /> &lt;...&gt; hello! i read your blog!<br /> &lt;...&gt; hahaha i'm a big fan<br /> &lt;...&gt; ok! Fri, 10 Feb 2006 23:14:11 +0100 http://www.hboeck.de/item/284 http://creativecommons.org/licenses/by-sa/2.5/ Xgl and compiz overlay update http://www.hboeck.de/item/282 Linux Gentoo English http://www.hboeck.de/item/282#comments http://www.hboeck.de/wfwcomment.php?cid=282 120 http://www.hboeck.de/rss.php?version=2.0&type=comments&cid=282 nospam@example.com (Hanno Böck) <img width='300' height='240' style="float: right; border: 0px; padding: 5px;" src="http://www.hboeck.de/uploads/xgl-logo.jpg" alt="Xgl" />This blog got lot's of visits recently, probably because of the interest in <a href="http://www.hboeck.de/item/266">my xgl overlay</a>.<br /> <br /> I've now created a new one based on the latest code changes in mesa and xgl, together with the new opengl window- and compositemanager compiz.<br /> <br /> I'm releasing it although it's not really working for me at the moment.<br /> I can run Xgl with compiz on my Radeon 9200 card with the free xorg driver, but have redraw-problems, so I don't know if the effects work at the moment. If you made better experiences, please post them here (I'm especially interested if it works better with other cards, e. g. nvidia ones).<br /> <br /> Short Howto:<br /> <ul><li>Download <a href="http://dev.gentoo.org/~hanno/">latest xgl-overlay-xxxx.tar.bz2</a>, unpack it, point PORTDIR_OVERLAY to it</li><li>emerge mesa glitz xgl compiz</li><li>Run <b>Xgl :1 -ac -accel glx:pbuffer -accel xv:pbuffer</b> (ati) or <b>Xgl :1 -ac -accel glx:pbuffer -accel xv</b> (nvidia)</li><li>Run <b>DISPLAY=:1 compiz decoration</b>, <b>DISPLAY=:1 gnome-window-decorator</b> and <b>DISPLAY=:1 xterm</b> (or something else)</li></ul>There are <a href="http://en.opensuse.org/Xgl">some infos on the openSUSE webpage</a>, especially about various driver problems, I assume I'm one of the »With some drivers screen refreshs do not work properly«.<br /> <br /> If you just wanna see how it looks, here is <a href="http://www.novell.com/linux/xglrelease/">the Novell announcement with some videos</a>. Thu, 09 Feb 2006 16:55:06 +0100 http://www.hboeck.de/item/282 http://creativecommons.org/licenses/by-sa/2.5/