<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-6367194097783716840</id><updated>2011-07-08T13:00:52.231+02:00</updated><category term='school'/><category term='Linux kernel'/><category term='life'/><category term='IT'/><title type='text'>Jiří Slabý</title><subtitle type='html'>My personal blog.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://jirislaby.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6367194097783716840/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://jirislaby.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>gep</name><uri>http://www.blogger.com/profile/14094598865581411575</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>44</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-6367194097783716840.post-773207842609924437</id><published>2009-12-30T09:38:00.002+01:00</published><updated>2009-12-30T09:43:56.586+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='life'/><title type='text'>2009 is over</title><content type='html'>Well, a year full of grief, death, crisis and bad status of politics in Czech Republic is at its end. Finally.&lt;br /&gt;&lt;br /&gt;Wish smile to all. Hopefully 2010 will be better. Full of life, energy and satisfaction.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6367194097783716840-773207842609924437?l=jirislaby.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jirislaby.blogspot.com/feeds/773207842609924437/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6367194097783716840&amp;postID=773207842609924437' title='28 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6367194097783716840/posts/default/773207842609924437'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6367194097783716840/posts/default/773207842609924437'/><link rel='alternate' type='text/html' href='http://jirislaby.blogspot.com/2009/12/2009-is-over.html' title='2009 is over'/><author><name>gep</name><uri>http://www.blogger.com/profile/14094598865581411575</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>28</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6367194097783716840.post-3020638048087660626</id><published>2009-08-08T10:05:00.003+02:00</published><updated>2009-08-08T10:20:12.840+02:00</updated><title type='text'>To all farmers</title><content type='html'>I strongly ask all farmers to NOT lose their pea in corners. In spite of the dark yellow seeds are pretty visible on black asphalt, one can miss them and fall down (from a (motor)bike). :)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6367194097783716840-3020638048087660626?l=jirislaby.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jirislaby.blogspot.com/feeds/3020638048087660626/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6367194097783716840&amp;postID=3020638048087660626' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6367194097783716840/posts/default/3020638048087660626'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6367194097783716840/posts/default/3020638048087660626'/><link rel='alternate' type='text/html' href='http://jirislaby.blogspot.com/2009/08/to-all-farmers.html' title='To all farmers'/><author><name>gep</name><uri>http://www.blogger.com/profile/14094598865581411575</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6367194097783716840.post-4224460224716783865</id><published>2009-07-11T15:47:00.005+02:00</published><updated>2009-08-08T10:17:58.395+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='life'/><title type='text'>First 5000 km on my ninja</title><content type='html'>Heya, my Kawasaki ZX-6R (known as Ninja, yr. 2002) odometer hit first 5000 km with me. I bought it on November, riding since February. No accidents (knock-knock), I met few crazy car drivers though. I hope it will remain that way for a long time. I'm trying hard to ride safely.&lt;br /&gt;&lt;br /&gt;It did recall my memories from my first car journeys. I has been driving like an idiot. At least I feel it that way today. I think it's the same with the motorcycle now &amp;ndash; that I'll see later.&lt;br /&gt;&lt;br /&gt;I love it! Especially cornering is great adventure. I read about that much. Trying to catch up the information, still lea(r)ning. Who would say it'll turn right, when you push right handle forward?&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6367194097783716840-4224460224716783865?l=jirislaby.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jirislaby.blogspot.com/feeds/4224460224716783865/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6367194097783716840&amp;postID=4224460224716783865' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6367194097783716840/posts/default/4224460224716783865'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6367194097783716840/posts/default/4224460224716783865'/><link rel='alternate' type='text/html' href='http://jirislaby.blogspot.com/2009/07/first-5000-km-on-my-ninja.html' title='First 5000 km on my ninja'/><author><name>gep</name><uri>http://www.blogger.com/profile/14094598865581411575</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6367194097783716840.post-8483778957075240460</id><published>2009-05-29T23:04:00.003+02:00</published><updated>2009-05-29T23:15:35.498+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='life'/><title type='text'>Funeral</title><content type='html'>I'm sad, we all are. After we recovered from the shock a bit, another event happened. A funeral. Blah, I hate it.&lt;br /&gt;&lt;br /&gt;Why this all happens? Just because... If only there was something to do, no, you can only stand still, stare and hope for a miracle. But it doesn't occur. Again and again.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6367194097783716840-8483778957075240460?l=jirislaby.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jirislaby.blogspot.com/feeds/8483778957075240460/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6367194097783716840&amp;postID=8483778957075240460' title='97 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6367194097783716840/posts/default/8483778957075240460'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6367194097783716840/posts/default/8483778957075240460'/><link rel='alternate' type='text/html' href='http://jirislaby.blogspot.com/2009/05/funeral.html' title='Funeral'/><author><name>gep</name><uri>http://www.blogger.com/profile/14094598865581411575</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>97</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6367194097783716840.post-3803334836198646127</id><published>2009-05-22T17:23:00.002+02:00</published><updated>2009-05-22T17:29:22.115+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='life'/><title type='text'>R.I.P.</title><content type='html'>We all loved you.&lt;br /&gt;&lt;br /&gt;Sometimes life is a fucking weirdo, we have to put up with that.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6367194097783716840-3803334836198646127?l=jirislaby.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jirislaby.blogspot.com/feeds/3803334836198646127/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6367194097783716840&amp;postID=3803334836198646127' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6367194097783716840/posts/default/3803334836198646127'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6367194097783716840/posts/default/3803334836198646127'/><link rel='alternate' type='text/html' href='http://jirislaby.blogspot.com/2009/05/rip.html' title='R.I.P.'/><author><name>gep</name><uri>http://www.blogger.com/profile/14094598865581411575</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6367194097783716840.post-6844324554731956184</id><published>2009-03-07T14:47:00.008+01:00</published><updated>2009-08-08T10:16:04.720+02:00</updated><title type='text'>I bought Nokia 5800</title><content type='html'>I may recommend this phone. Really. I had Nokia &lt;a href="http://europe.nokia.com/phones/n80"&gt;N80&lt;/a&gt; for almost 3 years (a month after introduction to the czech market) and upgrade to &lt;a href="http://europe.nokia.com/find-products/devices/nokia-5800-xpressmusic"&gt;Nokia 5800&lt;/a&gt; was eligible choice.&lt;br /&gt;&lt;br /&gt;It satisfied all my needs and expectations, especially what I hated on N80 the most has improved a heap &amp;ndash; sound output. My &lt;a href="http://www.sennheiser.com/sennheiser/home_en.nsf/root/private_headphones_classic-line_cxseries_502737"&gt;Sennheiser CX 300&lt;/a&gt; feels the difference, no noise, great music experience.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6367194097783716840-6844324554731956184?l=jirislaby.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jirislaby.blogspot.com/feeds/6844324554731956184/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6367194097783716840&amp;postID=6844324554731956184' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6367194097783716840/posts/default/6844324554731956184'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6367194097783716840/posts/default/6844324554731956184'/><link rel='alternate' type='text/html' href='http://jirislaby.blogspot.com/2009/03/ive-bought-nokia-5800.html' title='I bought Nokia 5800'/><author><name>gep</name><uri>http://www.blogger.com/profile/14094598865581411575</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6367194097783716840.post-3614164693341609775</id><published>2008-11-08T15:22:00.004+01:00</published><updated>2009-03-07T15:07:05.724+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Linux kernel'/><category scheme='http://www.blogger.com/atom/ns#' term='IT'/><title type='text'>ath5k as an AP</title><content type='html'>I got ath5k AP mode working at least with 5212/5213 cards (known to be defunct with 5413 and 2425 at the time being).&lt;br /&gt;&lt;ol&gt;&lt;li&gt;One needs these patches to the kernel:&lt;br /&gt;&lt;ul&gt;&lt;br /&gt;&lt;li&gt;&lt;a href="http://git.kernel.org/?p=linux/kernel/git/linville/wireless-next-2.6.git;a=commitdiff;h=da966bcae70e4012b7d999820b728dd6502047e0"&gt;Add AP mode to ath5k&lt;/a&gt; (included in 2.6.29)&lt;/li&gt;&lt;br /&gt;&lt;li&gt;&lt;a href="http://www.fi.muni.cz/~xslaby/sklad/ath5k_ap_mode/01-ath5k-ap.patch"&gt;Enable AP mode in ath5k&lt;/a&gt;&lt;/li&gt;&lt;br /&gt;&lt;li&gt;&lt;a href="http://www.fi.muni.cz/~xslaby/sklad/ath5k_ap_mode/02-mac80211-ap.patch"&gt;Enable AP mode in mac80211&lt;/a&gt; (included in 2.6.29)&lt;/li&gt;&lt;/ul&gt;&lt;/li&gt;&lt;br /&gt;&lt;li&gt;Grab some later version (a git snapshot at best) of &lt;a href="http://hostap.epitest.fi/hostapd/"&gt;hostapd&lt;/a&gt; and compile&lt;/li&gt;&lt;br /&gt;&lt;li&gt;Run hostapd &lt;a href="http://www.fi.muni.cz/~xslaby/sklad/ath5k_ap_mode/hostapd.conf"&gt;hostapd.conf&lt;/a&gt;&lt;/li&gt;&lt;br /&gt;&lt;/ol&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6367194097783716840-3614164693341609775?l=jirislaby.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jirislaby.blogspot.com/feeds/3614164693341609775/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6367194097783716840&amp;postID=3614164693341609775' title='7 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6367194097783716840/posts/default/3614164693341609775'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6367194097783716840/posts/default/3614164693341609775'/><link rel='alternate' type='text/html' href='http://jirislaby.blogspot.com/2008/11/ath5k-as-ap.html' title='ath5k as an AP'/><author><name>gep</name><uri>http://www.blogger.com/profile/14094598865581411575</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>7</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6367194097783716840.post-5810370970314798752</id><published>2008-04-05T18:02:00.009+02:00</published><updated>2008-04-05T20:59:11.449+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='IT'/><title type='text'>antlr is (not) broken (alias code too large)</title><content type='html'>After 2 hours of debugging this issue down, I've found out, that antlr is probably broken on too fast machines. My E6850 core 2 duo (3GHz) with antlr 3.0.1 generates simply too huge code, so that java can't compile it. (I don't hit the problems on same software configurations with different hardware &amp;ndash; my notebook with core 2 duo neither another desktop AMD 64 dual core 4200+.)&lt;br /&gt;&lt;br /&gt;If I run 2 this suckers:&lt;br /&gt;&lt;pre&gt;cat /dev/zero &gt; /dev/null &amp;&lt;/pre&gt;&lt;br /&gt;and antlr under nice (&lt;span style="font-style:italic;"&gt;nice java -cp ... org.antlr.Tool My.g&lt;/span&gt;) priority just for sure, it just gives out totally different code, shorter for about 15000 lines (&lt;a href="http://www.fi.muni.cz/~xslaby/sklad/ugly_race.txt"&gt;diff&lt;/a&gt;). There must be some uglymoronic race.&lt;br /&gt;&lt;br /&gt;&lt;span style="color:red;"&gt;EDIT: Ok, according to Terrence Parr (the antlr leader), it's not a bug from his point of view, see his comments below.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;The trick is -Xconversiontimeout 600 on my machine.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6367194097783716840-5810370970314798752?l=jirislaby.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jirislaby.blogspot.com/feeds/5810370970314798752/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6367194097783716840&amp;postID=5810370970314798752' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6367194097783716840/posts/default/5810370970314798752'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6367194097783716840/posts/default/5810370970314798752'/><link rel='alternate' type='text/html' href='http://jirislaby.blogspot.com/2008/04/antlr-is-broken-alias-code-too-large.html' title='antlr is (not) broken (alias code too large)'/><author><name>gep</name><uri>http://www.blogger.com/profile/14094598865581411575</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6367194097783716840.post-2443836082149033650</id><published>2008-04-02T22:29:00.005+02:00</published><updated>2008-04-05T18:11:52.855+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='IT'/><title type='text'>Empty structure size in gcc and g++</title><content type='html'>Did you know that empty structure in GNU C has size 0, whereas in c++ it is 1 character?&lt;br /&gt;&lt;code&gt;&lt;pre&gt;#include &amp;lt;stdio.h&amp;gt;&lt;br /&gt;&lt;br /&gt;struct A {&lt;br /&gt;};&lt;br /&gt;&lt;br /&gt;int main(void)&lt;br /&gt;{&lt;br /&gt;        printf("%zu\n", sizeof(struct A));&lt;br /&gt;        return 0;&lt;br /&gt;}&lt;/pre&gt;&lt;/code&gt;&lt;br /&gt;Output of this after gcc a.c -oac &amp;&amp; ./ac is 0, g++ a.c -oac &amp;&amp; ./ac will output 1...&lt;br /&gt;&lt;br /&gt;See gnu cc manual, chapter 5.15.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6367194097783716840-2443836082149033650?l=jirislaby.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jirislaby.blogspot.com/feeds/2443836082149033650/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6367194097783716840&amp;postID=2443836082149033650' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6367194097783716840/posts/default/2443836082149033650'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6367194097783716840/posts/default/2443836082149033650'/><link rel='alternate' type='text/html' href='http://jirislaby.blogspot.com/2008/04/empty-structure-size-in-gcc-and-g.html' title='Empty structure size in gcc and g++'/><author><name>gep</name><uri>http://www.blogger.com/profile/14094598865581411575</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6367194097783716840.post-328723354159444189</id><published>2008-01-06T16:27:00.000+01:00</published><updated>2008-01-06T16:28:18.374+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='life'/><title type='text'>Něco o zákonodárcích</title><content type='html'>&lt;blockquote&gt;Tak jako informatik nemůže ladit programy v rutinním provozu, neměl by ani zákonodárce ladit své zákony až po uvedení v platnost.&lt;/blockquote&gt;&lt;br /&gt;-- RNDr. Jan Skula, CSc.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6367194097783716840-328723354159444189?l=jirislaby.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jirislaby.blogspot.com/feeds/328723354159444189/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6367194097783716840&amp;postID=328723354159444189' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6367194097783716840/posts/default/328723354159444189'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6367194097783716840/posts/default/328723354159444189'/><link rel='alternate' type='text/html' href='http://jirislaby.blogspot.com/2008/01/nco-o-zkonodrcch.html' title='Něco o zákonodárcích'/><author><name>gep</name><uri>http://www.blogger.com/profile/14094598865581411575</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6367194097783716840.post-4657184508266095958</id><published>2007-11-24T23:35:00.000+01:00</published><updated>2007-12-08T11:15:27.511+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='IT'/><title type='text'>Bakaláři SQL vulnerability</title><content type='html'>A few weeks ago (precisely Nov 7 2007) I've found out a way how to break into the &lt;a href="http://www.bakalari.cz/"&gt;bakaláři&lt;/a&gt; czech high school system database. I used probably the most known method called &lt;span style="font-style:italic;"&gt;&lt;a href="http://en.wikipedia.org/wiki/SQL_injection"&gt;SQL injection&lt;/a&gt;&lt;/span&gt;. After something below an hour (got up about 9:30, sent an email to the school at 10:08) I got the magic formula to execute SQL queries.&lt;br /&gt;&lt;blockquote&gt;fuj order by cas desc'; select 1; -- '&lt;/blockquote&gt;&lt;br /&gt;Ok, so I informed the school which I had been attending for 6 years in the past about the security hole. But then I realized that it's not school specific, I &lt;a href="http://www.google.com/search?q=bakalari+login"&gt;found&lt;/a&gt; many schools which use the same system, so I didn't hesitate to drop a message to bakalari.cz people. Their reaction was fast and they fixed the problem next morning with promise that they will post updates to all high schools. Nice.&lt;br /&gt;&lt;br /&gt;Not that much, because this haven't happened so far, you can still find many schools which are still vulnerable against this attack. This pisses me off little bit, I only hope they weren't involved in any grant for this sloppy work.&lt;br /&gt;&lt;br /&gt;EDIT (Dec 8) they finally either seem to distribute the upgrade or the school admins update the soft.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6367194097783716840-4657184508266095958?l=jirislaby.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jirislaby.blogspot.com/feeds/4657184508266095958/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6367194097783716840&amp;postID=4657184508266095958' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6367194097783716840/posts/default/4657184508266095958'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6367194097783716840/posts/default/4657184508266095958'/><link rel='alternate' type='text/html' href='http://jirislaby.blogspot.com/2007/11/bakali-sql-vulnerability.html' title='Bakaláři SQL vulnerability'/><author><name>gep</name><uri>http://www.blogger.com/profile/14094598865581411575</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6367194097783716840.post-4792778675324778323</id><published>2007-10-29T18:59:00.000+01:00</published><updated>2007-10-29T19:10:54.850+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='IT'/><title type='text'>fglrx and x1450</title><content type='html'>After many fights with this driver, it finally works!&lt;br /&gt;&lt;br /&gt;I started use it about 8.38* and it never worked with X 7.2 from Fedora 7. I had to use 7.1 from F6. After upgrading to F8 with changed glibc 7.1 X didn't work anymore. I had to install old X proto devel and recompile whole X from F6 and use it with fglrx up to 8.40. No hw acceleration, no video overlay. I couldn't use it with F6 packages too, fglrx kernel module had broken suspend/resume (did you know, that you can use X driver with no need to use the kernel module).&lt;br /&gt;&lt;br /&gt;Now I have 8.42.3 with patches from livna package (to have compilable sources on 2.6.23) and &lt;a href="http://lkml.org/lkml/2007/10/11/311"&gt;lkml&lt;/a&gt; (to enable suspend stuff) running on X 7.3 from F8. Also I can have fglrx kernel module loaded, suspend seems to work, hw accel and video overlay enabled, so I'm happy.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6367194097783716840-4792778675324778323?l=jirislaby.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jirislaby.blogspot.com/feeds/4792778675324778323/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6367194097783716840&amp;postID=4792778675324778323' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6367194097783716840/posts/default/4792778675324778323'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6367194097783716840/posts/default/4792778675324778323'/><link rel='alternate' type='text/html' href='http://jirislaby.blogspot.com/2007/10/fglrx-and-x1450.html' title='fglrx and x1450'/><author><name>gep</name><uri>http://www.blogger.com/profile/14094598865581411575</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6367194097783716840.post-7789856825419789740</id><published>2007-10-26T23:23:00.000+02:00</published><updated>2007-10-26T23:24:08.531+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='IT'/><title type='text'>gmail &amp; imap</title><content type='html'>I love it!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6367194097783716840-7789856825419789740?l=jirislaby.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jirislaby.blogspot.com/feeds/7789856825419789740/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6367194097783716840&amp;postID=7789856825419789740' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6367194097783716840/posts/default/7789856825419789740'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6367194097783716840/posts/default/7789856825419789740'/><link rel='alternate' type='text/html' href='http://jirislaby.blogspot.com/2007/10/gmail-imap.html' title='gmail &amp; imap'/><author><name>gep</name><uri>http://www.blogger.com/profile/14094598865581411575</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6367194097783716840.post-8476697080730410178</id><published>2007-10-21T13:25:00.000+02:00</published><updated>2007-10-21T13:38:16.036+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='IT'/><title type='text'>outb_p, outw_p, outl_p, inb_p, inw_p and inl_p in linux kernel</title><content type='html'>Do you want to know where the definitions of this macros for i386 and x86_64 platform are? Yes? Then you would try &lt;a href="http://cscope.sourceforge.net/"&gt;cscope&lt;/a&gt; as usually. But it shows nothing relevant. You might also try to grep whole sources, but with no reliable output. It's not that easy.&lt;br /&gt;&lt;br /&gt;Try to generate preprocessor output by &lt;a href="http://gcc.gnu.org/onlinedocs/gcc-4.2.2/gcc/Overall-Options.html#index-S-75"&gt;-E&lt;/a&gt; switch and it will show you, that you should take a look into asm/io.h (i.e. include/asm-&lt;span style="font-style:italic;"&gt;arch&lt;/span&gt;/io.h) and &amp;hellip; what you see? BUILDIO for i386 and __OUT* macros for x86_64. Ugly. Sometimes, preprocessor output might be useful :).&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6367194097783716840-8476697080730410178?l=jirislaby.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jirislaby.blogspot.com/feeds/8476697080730410178/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6367194097783716840&amp;postID=8476697080730410178' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6367194097783716840/posts/default/8476697080730410178'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6367194097783716840/posts/default/8476697080730410178'/><link rel='alternate' type='text/html' href='http://jirislaby.blogspot.com/2007/10/outbp-outwp-outlp-inbp-inwp-and-inlp-in.html' title='outb_p, outw_p, outl_p, inb_p, inw_p and inl_p in linux kernel'/><author><name>gep</name><uri>http://www.blogger.com/profile/14094598865581411575</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6367194097783716840.post-6132196756512122404</id><published>2007-06-03T21:31:00.000+02:00</published><updated>2007-06-03T21:36:38.791+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Linux kernel'/><category scheme='http://www.blogger.com/atom/ns#' term='IT'/><title type='text'>IRQ handling</title><content type='html'>There are 2 common principles how to get known about new data in card.&lt;br /&gt;1) asynchronous &amp;ndash; whenever the devices get data, it will interrupt line and will get know it in your ISR. Smarter devices support irq mitigation, which more or less means deferred interrupts unless there are more data or timeout elapsed &amp;ndash; this is especially common in network devices, where interrupt overhead would be large on high speeds.&lt;br /&gt;2) "synchronously" by timer &amp;ndash; you setup a timer and "poll" the device even in the case, there are no data (you simply reschedule the timer). This is mostly useful for devices which generates interrupts at high rates, but do not support irq mitigation. Beside this, you may use this approach in the case you don't want (or must not &amp;ndash; e.g. netconsole with data in opposite way) enable interrupts.&lt;br /&gt;&lt;br /&gt;But when you enable interrupts, you &lt;span style="font-weight:bold;"&gt;must&lt;/span&gt; handle them, even if you don't want to do anything but returning IRQ_HANDLED in ISR (interrupt servicing routine &amp;ndash; the function you register in request_irq).&lt;br /&gt;&lt;br /&gt;Note that if you request shared interrupt, you also need to check, if the device really raised the interrupt you are handling.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6367194097783716840-6132196756512122404?l=jirislaby.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jirislaby.blogspot.com/feeds/6132196756512122404/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6367194097783716840&amp;postID=6132196756512122404' title='5 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6367194097783716840/posts/default/6132196756512122404'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6367194097783716840/posts/default/6132196756512122404'/><link rel='alternate' type='text/html' href='http://jirislaby.blogspot.com/2007/06/irq-handling.html' title='IRQ handling'/><author><name>gep</name><uri>http://www.blogger.com/profile/14094598865581411575</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>5</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6367194097783716840.post-4418674504017401530</id><published>2007-06-03T13:04:00.000+02:00</published><updated>2007-06-03T13:26:01.215+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='IT'/><title type='text'>Comments are mostly a bad idea</title><content type='html'>As I was saying ever before, comments are unneeded unless you write something not obvious, for example resetting a device in a place, where nobody would expect it. Then yes, comment is necessary to disallow everybody removing the code that is requisite.&lt;br /&gt;&lt;br /&gt;The other case of using comments is documenting API. Everybody wants to know, what the function does without reading whole body and studying the code.&lt;br /&gt;&lt;br /&gt;But for God's sake, don't try to comment each line of code explaining what it does if it's obvious or even worse how it does. If it seems to you, that the code is pretty unclear in the meaning what it does, do it better and don't vindicate it by long comments. This is often a very bad idea and makes the code totally unreadable and ugly. Beginners often do this, I saw a code that seemed something like this:&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;function min(a, b)&lt;br /&gt;{&lt;br /&gt;  /* compute minimum by comparing both values and */&lt;br /&gt;  /* store the one, which is less than the other into */&lt;br /&gt;  /* result variable, which will be finally returned */ &lt;br /&gt;  if (a &lt; b)&lt;br /&gt;    result = a&lt;br /&gt;  else&lt;br /&gt;    result = b&lt;br /&gt;  &lt;br /&gt;  /* and now, return the computed value */&lt;br /&gt;  return result&lt;br /&gt;}&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;Please, don't do that ;), at least don't do that where you are working in team, when other people will work on the same code either in parallel with you or after you leave the project.&lt;br /&gt;&lt;br /&gt;Final quotation of Martin Fowler about &lt;span style="font-style:italic;"&gt;Refactoring&lt;/span&gt;:&lt;br /&gt;&lt;blockquote&gt;Comments are often a sign of unclear code... consider refactoring&lt;/blockquote&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6367194097783716840-4418674504017401530?l=jirislaby.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jirislaby.blogspot.com/feeds/4418674504017401530/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6367194097783716840&amp;postID=4418674504017401530' title='50 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6367194097783716840/posts/default/4418674504017401530'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6367194097783716840/posts/default/4418674504017401530'/><link rel='alternate' type='text/html' href='http://jirislaby.blogspot.com/2007/06/comments-are-mostly-bad-idea.html' title='Comments are mostly a bad idea'/><author><name>gep</name><uri>http://www.blogger.com/profile/14094598865581411575</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>50</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6367194097783716840.post-6056034099960852711</id><published>2007-04-04T13:47:00.000+02:00</published><updated>2007-04-04T13:57:02.885+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='IT'/><title type='text'>Asus F2JE and defunct fn+brightness</title><content type='html'>While pressing Fn+brightness buttons, this occured in dmesg and nothing changes:&lt;br /&gt;&lt;pre&gt;ACPI Error (psargs-0355): [\_SB_.PCI0.P0P2.VGA_.LCDD] Namespace lookup failure,&lt;br /&gt;AE_NOT_FOUND&lt;br /&gt;ACPI Error (psparse-0537): Method parse/execution failed&lt;br /&gt;[\_SB_.PCI0.SBRG.EC0_._Q0F] (Node ffff81003ff07f70), AE_NOT_FOUND&lt;/pre&gt;&lt;br /&gt;I slighty &lt;a href="http://bugzilla.kernel.org/attachment.cgi?id=11047&amp;action=view"&gt;changed&lt;/a&gt; DSDT, &lt;a href="http://www.fi.muni.cz/~xslaby/sklad/ad.aml"&gt;compiled&lt;/a&gt; it and used &lt;a href="http://www.fi.muni.cz/~xslaby/sklad/ad.hex"&gt;hex&lt;/a&gt; in "include custom DSDT" kernel option.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6367194097783716840-6056034099960852711?l=jirislaby.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jirislaby.blogspot.com/feeds/6056034099960852711/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6367194097783716840&amp;postID=6056034099960852711' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6367194097783716840/posts/default/6056034099960852711'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6367194097783716840/posts/default/6056034099960852711'/><link rel='alternate' type='text/html' href='http://jirislaby.blogspot.com/2007/04/asus-f2je-and-defunct-fnbrightness.html' title='Asus F2JE and defunct fn+brightness'/><author><name>gep</name><uri>http://www.blogger.com/profile/14094598865581411575</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6367194097783716840.post-813741690065622449</id><published>2007-03-08T07:46:00.000+01:00</published><updated>2007-03-08T07:54:10.547+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='IT'/><title type='text'>Sensable phantom driver</title><content type='html'>Good news to write is, that &lt;a href="http://sensable.com/"&gt;Sensable&lt;/a&gt; shows people sourcecode for their 2.4 Linux &lt;a href="http://sensable.com/haptic-phantom-premium-6dof.htm"&gt;PHANToM&lt;/a&gt; driver. That means, everybody can sort out, how things work and use the know-how in their 2.6 driver.&lt;br /&gt;&lt;br /&gt;This is exactly the thing, I've &lt;a href="http://www.fi.muni.cz/~xslaby/phantom.html"&gt;done&lt;/a&gt;. I have a 2.6 driver based on real basis, not rtc hack and ready to &lt;a href="http://lkml.org/lkml/2007/3/7/188"&gt;submit&lt;/a&gt; upstream :), whoooo, except the fact, that I'll probably rewrite it to standard force feedback layer before sumbit #2, as Dmitry Torokhov suggests.&lt;br /&gt;&lt;br /&gt;The world becomes nice.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6367194097783716840-813741690065622449?l=jirislaby.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jirislaby.blogspot.com/feeds/813741690065622449/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6367194097783716840&amp;postID=813741690065622449' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6367194097783716840/posts/default/813741690065622449'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6367194097783716840/posts/default/813741690065622449'/><link rel='alternate' type='text/html' href='http://jirislaby.blogspot.com/2007/03/sensable-phantom-driver.html' title='Sensable phantom driver'/><author><name>gep</name><uri>http://www.blogger.com/profile/14094598865581411575</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6367194097783716840.post-5890282974994482541</id><published>2007-03-08T07:44:00.000+01:00</published><updated>2007-03-08T07:46:45.253+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='IT'/><title type='text'>RAID1 is recovering</title><content type='html'>This means, everything went fine, RAID is now copying blocks to the spare device and user data stays intact :).&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6367194097783716840-5890282974994482541?l=jirislaby.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jirislaby.blogspot.com/feeds/5890282974994482541/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6367194097783716840&amp;postID=5890282974994482541' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6367194097783716840/posts/default/5890282974994482541'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6367194097783716840/posts/default/5890282974994482541'/><link rel='alternate' type='text/html' href='http://jirislaby.blogspot.com/2007/03/raid1-is-recovering.html' title='RAID1 is recovering'/><author><name>gep</name><uri>http://www.blogger.com/profile/14094598865581411575</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6367194097783716840.post-2915759154599857982</id><published>2007-03-01T10:19:00.000+01:00</published><updated>2007-03-01T17:06:55.683+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='IT'/><title type='text'>RAID1 assembly</title><content type='html'>After a month or so of running degraded RAID1 on the new disk to test it in our lab server (with almost daily backups on the old one) and since S.M.A.R.T. with its tests was silent, I've decided to finish the job of moving homes to the raid on the fly. The first step was done &amp;ndash; repartitioning of the old one. Now I'm going to restart and move the old root to the end of the disk to have enough space for the raid partition. Keep one's finger crossed, please, I'll keep you informed.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6367194097783716840-2915759154599857982?l=jirislaby.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jirislaby.blogspot.com/feeds/2915759154599857982/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6367194097783716840&amp;postID=2915759154599857982' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6367194097783716840/posts/default/2915759154599857982'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6367194097783716840/posts/default/2915759154599857982'/><link rel='alternate' type='text/html' href='http://jirislaby.blogspot.com/2007/03/raid1-assembly.html' title='RAID1 assembly'/><author><name>gep</name><uri>http://www.blogger.com/profile/14094598865581411575</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6367194097783716840.post-6359218906383274540</id><published>2007-03-01T09:51:00.000+01:00</published><updated>2007-03-01T10:18:10.929+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='IT'/><title type='text'>Solaris, qemu and audio</title><content type='html'>After &lt;a href="http://jirislaby.blogspot.com/2007/03/solaris-qemu-and-network.html"&gt;proper load of network driver&lt;/a&gt;, there is still one thing to do in &lt;a href="http://www.sun.com/software/solaris/"&gt;Solaris&lt;/a&gt; + &lt;a href="http://fabrice.bellard.free.fr/qemu/"&gt;qemu&lt;/a&gt; &amp;ndash; audio is defunct. According to &lt;a href="http://www.sun.com/bigadmin/hcl/"&gt;Solaris HCL&lt;/a&gt;, audio1371 is for es1370 hardware (pci1274,5000). You can obtain a copy of audio drivers from &lt;a href="http://www.tools.de/opensource/solaris/audio/"&gt;tools.de&lt;/a&gt; site. After bunzipping, you can &lt;span style="font-style:italic;"&gt;pkgadd -d&lt;/span&gt; it. Note, that you need only TOOLSSbpro driver, so that you may tell the installer not to install all the drivers from the package.&lt;br /&gt;&lt;br /&gt;The next obvoius thing is to &lt;span style="font-style:italic;"&gt;add_drv -i '"pci1274,5000"' audio1371&lt;/span&gt;, &lt;span style="font-style:italic;"&gt;touch /reconfigure&lt;/span&gt; and reboot. Enjoy the audio :).&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6367194097783716840-6359218906383274540?l=jirislaby.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jirislaby.blogspot.com/feeds/6359218906383274540/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6367194097783716840&amp;postID=6359218906383274540' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6367194097783716840/posts/default/6359218906383274540'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6367194097783716840/posts/default/6359218906383274540'/><link rel='alternate' type='text/html' href='http://jirislaby.blogspot.com/2007/03/solaris-qemu-and-audio.html' title='Solaris, qemu and audio'/><author><name>gep</name><uri>http://www.blogger.com/profile/14094598865581411575</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6367194097783716840.post-5374461539629337793</id><published>2007-03-01T09:36:00.000+01:00</published><updated>2007-03-01T09:58:06.270+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='IT'/><title type='text'>Solaris, qemu and network</title><content type='html'>When I was playing with &lt;a href="http://www.sun.com/software/solaris/"&gt;Solaris 9&lt;/a&gt; under &lt;a href="http://fabrice.bellard.free.fr/qemu/"&gt;qemu&lt;/a&gt;, I needed to install driver for network adapter (the default ne2k_pci). Rtl8139 neither other options doesn't seem to work not even in linux. Lspci says nothing when &lt;span style="font-style:italic;"&gt;-net nic,model=&amp;lt;anything but ne2k_pci&amp;gt;&lt;/span&gt; is used in linux, the same result for prtconf in Solaris.&lt;br /&gt;&lt;br /&gt;To get it right I've tried nei driver without success. Next thing I was told to test by google (and maybe &lt;a href="http://www.sun.com/bigadmin/hcl/"&gt;Solaris HCL&lt;/a&gt;) was &lt;a href="http://homepage2.nifty.com/mrym3/taiyodo/ni-0.8.11.tar.gz"&gt;ni&lt;/a&gt; driver from &lt;a href="http://homepage2.nifty.com/mrym3/taiyodo/eng/"&gt;this page&lt;/a&gt;. And it works, despite it's marked as beta. (You would propbably need to &lt;span style="font-style:italic;"&gt;add_drv -i '"pci10ec,8029"' ni&lt;/span&gt; to add the driver, &lt;span style="font-style:italic;"&gt;touch /reconfigure&lt;/span&gt; to tell Solaris to recheck hardware and reboot. Remember to create &lt;span style="font-style:italic;"&gt;/etc/hostname.ni0&lt;/span&gt; and &lt;span style="font-style:italic;"&gt;/etc/dhcp.ni0&lt;/span&gt; if you want to use dhcp client on this adapter (as you want to on qemu).&lt;br /&gt;&lt;br /&gt;Just a note, use &lt;span style="font-style:italic;"&gt;ls&lt;/span&gt; more than I. I installed gcc and make and after that I figured out, that there is already a binary driver in i386 (alias obj) dir. So you don't need to compile anything, if you don't want to.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6367194097783716840-5374461539629337793?l=jirislaby.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jirislaby.blogspot.com/feeds/5374461539629337793/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6367194097783716840&amp;postID=5374461539629337793' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6367194097783716840/posts/default/5374461539629337793'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6367194097783716840/posts/default/5374461539629337793'/><link rel='alternate' type='text/html' href='http://jirislaby.blogspot.com/2007/03/solaris-qemu-and-network.html' title='Solaris, qemu and network'/><author><name>gep</name><uri>http://www.blogger.com/profile/14094598865581411575</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6367194097783716840.post-5739213459560260304</id><published>2007-02-02T11:40:00.000+01:00</published><updated>2007-02-03T22:47:39.530+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='IT'/><title type='text'>Nasty bug</title><content type='html'>I've been playing for a six or so hours with one tiny bug. I was working on the high speed network adapter &lt;a href="http://netbsd.org/"&gt;NetBSD&lt;/a&gt; driver and underlying &lt;a href="http://en.wikipedia.org/wiki/PowerPC"&gt;PowerPC&lt;/a&gt; didn't want to send packet chain longer than one. Tons of messages in &lt;a href="http://en.wikipedia.org/wiki/Dmesg"&gt;dmesg&lt;/a&gt;, many tries to debug &lt;a href="http://en.wikipedia.org/wiki/Direct_memory_access"&gt;DMA&lt;/a&gt; &lt;a href="http://en.wikipedia.org/wiki/Scatter_gather"&gt;S/G&lt;/a&gt; transfers without anything reliable in return.&lt;br /&gt;&lt;br /&gt;Finally I found out, how I'm stupid. I always set the end of the queue as transfer tail &amp;ndash; send from end to end instead of send from this point to end. Aaargh.&lt;br /&gt;&lt;br /&gt;I'm just curious, if there is any way to solve such issues not in so many hours.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6367194097783716840-5739213459560260304?l=jirislaby.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jirislaby.blogspot.com/feeds/5739213459560260304/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6367194097783716840&amp;postID=5739213459560260304' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6367194097783716840/posts/default/5739213459560260304'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6367194097783716840/posts/default/5739213459560260304'/><link rel='alternate' type='text/html' href='http://jirislaby.blogspot.com/2007/02/nasty-bug.html' title='Nasty bug'/><author><name>gep</name><uri>http://www.blogger.com/profile/14094598865581411575</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6367194097783716840.post-686857436291612182</id><published>2007-01-29T20:44:00.000+01:00</published><updated>2007-01-29T20:57:44.739+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='IT'/><title type='text'>NetBSD network stack</title><content type='html'>I'm playing with network stack in &lt;a href="http://netbsd.org/"&gt;NetBSD&lt;/a&gt; and as a product I've released nettest &amp;ndash; the test &lt;a href="http://en.wikipedia.org/wiki/Loadable_Kernel_Module"&gt;LKM&lt;/a&gt; to get familiarized with the stack. It's simple, it receives packets from userspace and sends them to the another interface and bpf listeners (&lt;a href="http://www.tcpdump.org/"&gt;tcpdump&lt;/a&gt; for instance). Everything is on my &lt;a href="http://www.fi.muni.cz/~xslaby/unpr.html#ntt"&gt;homepage&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;It also contains examples of list queues use and deferred work. Everything in one short file.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6367194097783716840-686857436291612182?l=jirislaby.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jirislaby.blogspot.com/feeds/686857436291612182/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6367194097783716840&amp;postID=686857436291612182' title='8 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6367194097783716840/posts/default/686857436291612182'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6367194097783716840/posts/default/686857436291612182'/><link rel='alternate' type='text/html' href='http://jirislaby.blogspot.com/2007/01/netbsd-network-stack.html' title='NetBSD network stack'/><author><name>gep</name><uri>http://www.blogger.com/profile/14094598865581411575</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>8</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6367194097783716840.post-3748701846014995618</id><published>2007-01-20T01:13:00.000+01:00</published><updated>2007-01-20T01:49:41.288+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='IT'/><title type='text'>Qemu is nice</title><content type='html'>Finally I've time to try &lt;a href="http://fabrice.bellard.free.fr/qemu/"&gt;it&lt;/a&gt; out. It works just fine, especially with &lt;a href="http://fabrice.bellard.free.fr/qemu/qemu-accel.html"&gt;kqemu&lt;/a&gt; &amp;ndash; a kernel module for speedup.&lt;br /&gt;&lt;br /&gt;I tried 3 systems till now: Windows XP 32bit, &lt;a href="http://netbsd.org/"&gt;Netbsd&lt;/a&gt; 3.1 and &lt;a href="www.sun.com/software/solaris/"&gt;Solaris&lt;/a&gt; 9. No problem with installing Solaris and Windows. The NetBSD dislikes kqemu module &amp;ndash; it spits out a 'Warning: no /dev/console' and hangs when trying to boot installation iso. The (simple) solution is to add -no-kqemu to the qemu command-line (even for standard booting of installed system, otherwise it won't boot with no warning).&lt;br /&gt;&lt;br /&gt;Going to test it all harder :). First thing I took a note is the processor load; it's low, at least I expected it to be more hardware exacring.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6367194097783716840-3748701846014995618?l=jirislaby.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jirislaby.blogspot.com/feeds/3748701846014995618/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6367194097783716840&amp;postID=3748701846014995618' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6367194097783716840/posts/default/3748701846014995618'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6367194097783716840/posts/default/3748701846014995618'/><link rel='alternate' type='text/html' href='http://jirislaby.blogspot.com/2007/01/qemu-is-nice.html' title='Qemu is nice'/><author><name>gep</name><uri>http://www.blogger.com/profile/14094598865581411575</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6367194097783716840.post-7651836564952955</id><published>2007-01-07T00:16:00.000+01:00</published><updated>2007-01-09T18:47:29.205+01:00</updated><title type='text'>Quotation</title><content type='html'>Rodiče dřou děti sportem a muzikou, matematiku považují za týrání.&lt;br /&gt;-- Jaroslav Král (origin, probably not the author)&lt;br /&gt;&lt;br /&gt;(Sth. like parents force children to do sports and music, maths is considered as torture.)&lt;br /&gt;&lt;br /&gt;Set it in stone :).&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6367194097783716840-7651836564952955?l=jirislaby.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jirislaby.blogspot.com/feeds/7651836564952955/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6367194097783716840&amp;postID=7651836564952955' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6367194097783716840/posts/default/7651836564952955'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6367194097783716840/posts/default/7651836564952955'/><link rel='alternate' type='text/html' href='http://jirislaby.blogspot.com/2007/01/quotation.html' title='Quotation'/><author><name>gep</name><uri>http://www.blogger.com/profile/14094598865581411575</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6367194097783716840.post-6741466454379537790</id><published>2007-01-04T01:13:00.000+01:00</published><updated>2007-01-04T01:32:21.100+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='IT'/><title type='text'>ALSA stoop</title><content type='html'>I finally got my 5.1 speakers work in linux properly with this &lt;a href="http://www.alsa-project.org/alsa-doc/doc-php/asoundrc.php"&gt;asoundrc&lt;/a&gt; file:&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;pcm.p6 {&lt;br /&gt;        type route&lt;br /&gt;        slave.pcm surround51&lt;br /&gt;        slave.channels 6&lt;br /&gt;        ttable.0.0 1&lt;br /&gt;        ttable.1.1 1&lt;br /&gt;        ttable.0.2 1&lt;br /&gt;        ttable.1.3 1&lt;br /&gt;        ttable.0.4 0.4&lt;br /&gt;        ttable.1.4 0.4&lt;br /&gt;        ttable.0.5 0.2&lt;br /&gt;        ttable.1.5 0.2&lt;br /&gt;}&lt;br /&gt;&lt;/pre&gt;And then for example &lt;span style="font-style:italic;"&gt;aplay -D plug:p6 &amp;lt;soundfile&amp;gt;&lt;/span&gt; plays the sound in all speakers. In &lt;a href="http://xinehq.de/"&gt;xine&lt;/a&gt; I have settings which produces original AC3 sound into all speakers by default (I've set nothing) if available.&lt;br /&gt;&lt;br /&gt;I had no idea about how asoundrc files works, I needed to study it and went through /etc/alsa stuff to understand it. Now, the life with &lt;a href="http://alsa-project.org/"&gt;ALSA&lt;/a&gt; is easier :). Let me note, that I have an emu10k1 card (creative sb live!) with analog &lt;a href="http://www.genius-europe.com/en/produktdetail.php?ID2=49&amp;ID=29&amp;ID3=248"&gt;genius speakers&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6367194097783716840-6741466454379537790?l=jirislaby.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jirislaby.blogspot.com/feeds/6741466454379537790/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6367194097783716840&amp;postID=6741466454379537790' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6367194097783716840/posts/default/6741466454379537790'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6367194097783716840/posts/default/6741466454379537790'/><link rel='alternate' type='text/html' href='http://jirislaby.blogspot.com/2007/01/alsa-stoop.html' title='ALSA stoop'/><author><name>gep</name><uri>http://www.blogger.com/profile/14094598865581411575</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6367194097783716840.post-4975962443815939668</id><published>2006-12-18T19:07:00.000+01:00</published><updated>2006-12-18T19:21:57.047+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='life'/><title type='text'>3:30 doorbell</title><content type='html'>It was a pretty good night today. I went sleeping and fell asleep about 2 AM (nothing unusual for me). Suddenly, a doorbell rang. Once again. Huh, wtf? I got up and go near the window to see, what happens and to get known what's the clock. It was 3:30 AM and my neighbour stand in front of the house.&lt;br /&gt;&lt;br /&gt;"What do you need", I asked. "Could you please wake up your father. Our furnace is out of order and I want it to work", was the answer. Hm, wake up my father? Ok, let's try. Sure, he didn't want to get up, so I must deal with that. I arrange them a meeting in the afternoon and kick him away.&lt;br /&gt;&lt;br /&gt;He was going to work (a bus driver) and wanted my father to repair it afternoon. Do these people think, that everybody is woken at the time, they getting up? Why didn't he wait till afternoon (he came at 1 PM again)?&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6367194097783716840-4975962443815939668?l=jirislaby.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jirislaby.blogspot.com/feeds/4975962443815939668/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6367194097783716840&amp;postID=4975962443815939668' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6367194097783716840/posts/default/4975962443815939668'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6367194097783716840/posts/default/4975962443815939668'/><link rel='alternate' type='text/html' href='http://jirislaby.blogspot.com/2006/12/330-doorbell.html' title='3:30 doorbell'/><author><name>gep</name><uri>http://www.blogger.com/profile/14094598865581411575</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6367194097783716840.post-7007410454805384339</id><published>2006-12-14T21:24:00.000+01:00</published><updated>2006-12-14T22:16:03.701+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='IT'/><title type='text'>Broken usb ports on laptop</title><content type='html'>My father bought an USB extension cord. Good, but the metal is too close to the plastic part in the connector. Both me and him tried to push it into the USB cage, but with no effect, but side effect &amp;ndash; we pushed 2 of 4 metal connectors (inside the cage) in 2 of 4 cages, so that no device worked in them from that moment.&lt;br /&gt;&lt;br /&gt;We decided to disassemble the notebook, unscrewed about 20 screws and after an hour we were in (this piece is interestingly assembled). Fortunately it was correctable by pushing the connectors up inside the cages and pressing them from the back (inside part of the chasis) to their default position.&lt;br /&gt;&lt;br /&gt;NEVER try to push anything into the USB cage not even with minimal force.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6367194097783716840-7007410454805384339?l=jirislaby.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jirislaby.blogspot.com/feeds/7007410454805384339/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6367194097783716840&amp;postID=7007410454805384339' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6367194097783716840/posts/default/7007410454805384339'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6367194097783716840/posts/default/7007410454805384339'/><link rel='alternate' type='text/html' href='http://jirislaby.blogspot.com/2006/12/broken-usb-ports-on-laptop.html' title='Broken usb ports on laptop'/><author><name>gep</name><uri>http://www.blogger.com/profile/14094598865581411575</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6367194097783716840.post-213990898041935324</id><published>2006-12-05T23:10:00.000+01:00</published><updated>2006-12-05T23:11:12.478+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='school'/><title type='text'>Exams are coming</title><content type='html'>Who is looking forward to them?&lt;br /&gt;&lt;br /&gt;Me :D!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6367194097783716840-213990898041935324?l=jirislaby.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jirislaby.blogspot.com/feeds/213990898041935324/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6367194097783716840&amp;postID=213990898041935324' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6367194097783716840/posts/default/213990898041935324'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6367194097783716840/posts/default/213990898041935324'/><link rel='alternate' type='text/html' href='http://jirislaby.blogspot.com/2006/12/exams-are-coming.html' title='Exams are coming'/><author><name>gep</name><uri>http://www.blogger.com/profile/14094598865581411575</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6367194097783716840.post-362563927545959788</id><published>2006-12-05T22:48:00.000+01:00</published><updated>2006-12-18T19:22:25.331+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='IT'/><title type='text'>Playing with AVR</title><content type='html'>I've bought &lt;a href="http://www.atmel.com/dyn/resources/prod_documents/doc2543.pdf"&gt;Attiny2313&lt;/a&gt; chips (8-bit RISC) and created simple programmer connected to my ntb's parallel port. It's easy to use and easy to program &amp;ndash; I use &lt;a href="http://www.nongnu.org/avrdude/"&gt;avrdude&lt;/a&gt; for programming.&lt;br /&gt;&lt;br /&gt;After some playing with blinking LED on the one of the outputs, I've decided to construct something bigger. I had an old LED display from old clock, so I started to write digital clock :). To complete my toughts I also needed 4 NPN transistors, some 10k and 220Ω resistors and crystal with a pair of condensators.&lt;br /&gt;&lt;br /&gt;The &lt;a href="http://www.fi.muni.cz/~xslaby/avr/clock/"&gt;result&lt;/a&gt; is simple, 2 timers, one overflows each 500ms with 9.216 Mhz crystal &amp;ndash; for colon blinking and time computing, the latter display numbers on the display (each time, one anode output is on and bound cathodes are 0 or 1 depending on nums arrays in the code.&lt;br /&gt;&lt;br /&gt;Let me note, that the display has weird wiring, both right and left couples are bounded each together, so you will need to recompute nums arrays, if you want to use my code :).&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6367194097783716840-362563927545959788?l=jirislaby.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jirislaby.blogspot.com/feeds/362563927545959788/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6367194097783716840&amp;postID=362563927545959788' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6367194097783716840/posts/default/362563927545959788'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6367194097783716840/posts/default/362563927545959788'/><link rel='alternate' type='text/html' href='http://jirislaby.blogspot.com/2006/12/playing-with-avr.html' title='Playing with AVR'/><author><name>gep</name><uri>http://www.blogger.com/profile/14094598865581411575</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6367194097783716840.post-5038402476046692010</id><published>2006-12-05T22:41:00.000+01:00</published><updated>2006-12-05T22:48:09.063+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='IT'/><title type='text'>Phantom driver</title><content type='html'>I've finally done &lt;a href="http://www.fi.muni.cz/~xslaby/phantom.html"&gt;phantom driver&lt;/a&gt;, at least the first release. It took me some time to go through the Kabi's code and libraries, but It's done and ready to go.&lt;br /&gt;&lt;br /&gt;Today I put a doxygen comments to the library header file to describe interface. The only remaining thing now is to cope with overheating and checking big force, which was done in kernelspace in previous version. It should be augmentation only by few lines of code to avoid problems and the driver will be safer.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6367194097783716840-5038402476046692010?l=jirislaby.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jirislaby.blogspot.com/feeds/5038402476046692010/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6367194097783716840&amp;postID=5038402476046692010' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6367194097783716840/posts/default/5038402476046692010'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6367194097783716840/posts/default/5038402476046692010'/><link rel='alternate' type='text/html' href='http://jirislaby.blogspot.com/2006/12/phantom-driver.html' title='Phantom driver'/><author><name>gep</name><uri>http://www.blogger.com/profile/14094598865581411575</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6367194097783716840.post-2837439150499967509</id><published>2006-10-18T21:33:00.000+02:00</published><updated>2006-12-05T22:40:44.939+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='IT'/><title type='text'>NFS issue</title><content type='html'>After some delay I'm back again. I've compiled and installed a new (&lt;a href="ftp://ftp.kernel.org/pub/linux/kernel/v2.6/testing/linux-2.6.19-rc2.tar.bz2"&gt;2.6.19-rc2&lt;/a&gt;) &lt;a href="http://www.kernel.org/"&gt;kernel&lt;/a&gt;. After reboot it works correctly. Almost. One exception occured, &lt;a href="http://nfs.sourceforge.net/"&gt;nfs&lt;/a&gt; remote mounted filesystem with home dirs is still mounting read only even if it is tell to mount it read-write.&lt;br /&gt;&lt;br /&gt;I tried to find out the reason and with some &lt;a href="http://lkml.org/lkml/2006/10/17/140"&gt;help&lt;/a&gt; from nfs folks I investigated, that homes and user directories are mounted from same disk partition with one substantial difference: there is a read-only protection of exported /usr and true rw access for /home dirs.&lt;br /&gt;&lt;br /&gt;The new code sets first mount options even to the second, third etc. mountpoint if they are on the same disk part on the server. The caveat is, that this is visible only in /proc/mounts, not in /etc/mtab (what mount outputs).&lt;br /&gt;&lt;br /&gt;This disk partition is ugly for this purpose, because subtree checking has to be enabled due to security (otherwise anybody has access to mentioned /usr part), but it's not so good option for so much changing files, which surely are in home directories.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6367194097783716840-2837439150499967509?l=jirislaby.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jirislaby.blogspot.com/feeds/2837439150499967509/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6367194097783716840&amp;postID=2837439150499967509' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6367194097783716840/posts/default/2837439150499967509'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6367194097783716840/posts/default/2837439150499967509'/><link rel='alternate' type='text/html' href='http://jirislaby.blogspot.com/2006/10/nfs-issue.html' title='NFS issue'/><author><name>gep</name><uri>http://www.blogger.com/profile/14094598865581411575</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6367194097783716840.post-1060845240292890494</id><published>2006-10-11T11:43:00.000+02:00</published><updated>2006-10-13T19:56:59.972+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='life'/><title type='text'>My family's health</title><content type='html'>I've just returned from floorball and my ankle is slightly twisted. The pain has gone, however it will hurt for a month or so. Ouch.&lt;br /&gt;&lt;br /&gt;Despite it isn't the worst thing. My nephew caught a cold and has to be at home instead of learning in the school. He is interested in the school-life so much &amp;ndash; his first year and he is ill, bad luck.&lt;br /&gt;&lt;br /&gt;Nevertheless, there is even worse thing to write. My second nephew is with his mother, my sister, in the hospital. He fell down from his bike, stops breathe and nobody was able to wake him up for a short while. This had happened some times before this accident, but he had woken himself after being in syncope for a while.  This simply happens to some children, they are so angry because of the fall, so they don't breathe and faint, then the brain starts to control the heart and lungs properly again. My sister had this syndrome when she was a child. Genes.&lt;br /&gt;&lt;br /&gt;His parents decided to do something and he is connected to some devices (such as EKG, EEG et al.) and has to be there till Thursday.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6367194097783716840-1060845240292890494?l=jirislaby.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jirislaby.blogspot.com/feeds/1060845240292890494/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6367194097783716840&amp;postID=1060845240292890494' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6367194097783716840/posts/default/1060845240292890494'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6367194097783716840/posts/default/1060845240292890494'/><link rel='alternate' type='text/html' href='http://jirislaby.blogspot.com/2006/10/health-of-my-family.html' title='My family&apos;s health'/><author><name>gep</name><uri>http://www.blogger.com/profile/14094598865581411575</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6367194097783716840.post-2593418567308018017</id><published>2006-10-08T00:54:00.000+02:00</published><updated>2006-10-08T00:58:55.818+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='IT'/><title type='text'>Music player</title><content type='html'>Today (according to the &lt;a href="http://jirislaby.blogspot.com/2006/10/bmpx-is-piece-of-shit.html"&gt;last post&lt;/a&gt;) I've decided to use something other than bmpx. For some hours I've used xmms, but it sucks. No support of gnome. I remembered, that I'd read about some server/daemon music player on Jan Kasprzak's &lt;a href="http://www.fi.muni.cz/~kas/blog/"&gt;blog&lt;/a&gt; long long time ago. But what was the player's name? I had no clue.&lt;br /&gt;&lt;br /&gt;I tried to go through his blog again with nothing in return. Suddenly, the idea came. Use &lt;a href="http://www.google.com/"&gt;google&lt;/a&gt;, dude! Yup, it gave me a good result of that what I wanted (using "site:" notation). &lt;a href="http://www.musicpd.org/"&gt;Music Player Daemon&lt;/a&gt;. I grabbed a last version and made rpm packages with some &lt;a href="http://www.rpm.org/RPM-HOWTO/build.html#SPEC-FILE"&gt;.spec&lt;/a&gt; parts from &lt;a href="http://rpm.livna.org/"&gt;livna&lt;/a&gt; orginal srpms.&lt;br /&gt;&lt;br /&gt;Now I use it and I'm totally happy. It sits on &lt;a href="http://en.wikipedia.org/wiki/Transmission_Control_Protocol"&gt;tcp&lt;/a&gt; &lt;a href="http://en.wikipedia.org/wiki/TCP_and_UDP_port"&gt;port&lt;/a&gt; 6600 and the protocol is text-based. Everybody might write his own client &amp;ndash; there are many clients to choose from. I personally use &lt;a href="http://www.musicpd.org/mpc.shtml"&gt;mpc&lt;/a&gt; in text mode (and for key-bindings) and &lt;a href="http://www.musicpd.org/gmpc.shtml"&gt;gmpc&lt;/a&gt; in gnome graphics. I'm going to write dbus client, but I have to wait for listen interface, that would be implemented shortly.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6367194097783716840-2593418567308018017?l=jirislaby.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jirislaby.blogspot.com/feeds/2593418567308018017/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6367194097783716840&amp;postID=2593418567308018017' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6367194097783716840/posts/default/2593418567308018017'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6367194097783716840/posts/default/2593418567308018017'/><link rel='alternate' type='text/html' href='http://jirislaby.blogspot.com/2006/10/music-player.html' title='Music player'/><author><name>gep</name><uri>http://www.blogger.com/profile/14094598865581411575</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6367194097783716840.post-7152813489939807019</id><published>2006-10-06T14:41:00.000+02:00</published><updated>2006-12-18T19:38:02.021+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='IT'/><title type='text'>Bmpx is a piece of shit?</title><content type='html'>I have been using &lt;a href="http://www.xmms.org/"&gt;xmms&lt;/a&gt;, then &lt;a href="http://bmp.beep-media-player.org/index.php/BMP_Homepage"&gt;bmp&lt;/a&gt;, then &lt;a href="http://bmpx.beep-media-player.org/site/BMPx_Homepage"&gt;bmpx&lt;/a&gt;. xmms was the best, but is intended for old libraries (I prefer gtk+) and is not-mondern-designed (old libraries, plugins, no dbus et al). bmp was not so bad, but it's discontinued. I decided to try something new some time ago, so I chose bmp-successor: bmpx. It uses &lt;a href="http://www.gtk.org/"&gt;gtk2&lt;/a&gt;, &lt;a href="http://www.freedesktop.org/wiki/Software/dbus"&gt;dbus&lt;/a&gt; and &lt;a href="http://www.freedesktop.org/wiki/Software/hal"&gt;hal&lt;/a&gt; libs, perfect.&lt;br /&gt;&lt;br /&gt;Version 0.2x is poor comparing by functionality, but works. I hoped they will improve this in next releases and will continue in &lt;a href="http://winamp.com/"&gt;winamp&lt;/a&gt;-styled player &amp;ndash; very bad hope. What the hell did they do in the 0.3x series? Non-stability, slowness, absolutely no options, stupid library, no shuffle, no repeat, no more dbus control (such in 0.2x versions), no winamp-style, there is just simple window with 6 tabs (library, radios, play queue); blaaah. What is the player like this for? They change all including appearance and functionality in the player per release &amp;ndash; they may do that yet another time and they'll loose everybody, who use it for the time being.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6367194097783716840-7152813489939807019?l=jirislaby.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jirislaby.blogspot.com/feeds/7152813489939807019/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6367194097783716840&amp;postID=7152813489939807019' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6367194097783716840/posts/default/7152813489939807019'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6367194097783716840/posts/default/7152813489939807019'/><link rel='alternate' type='text/html' href='http://jirislaby.blogspot.com/2006/10/bmpx-is-piece-of-shit.html' title='Bmpx is a piece of shit?'/><author><name>gep</name><uri>http://www.blogger.com/profile/14094598865581411575</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6367194097783716840.post-4749007396710456469</id><published>2006-10-05T23:38:00.000+02:00</published><updated>2006-10-06T00:51:12.676+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='IT'/><title type='text'>Filesystem crash</title><content type='html'>On one of my boxes &lt;a href="http://en.wikipedia.org/wiki/Ext3"&gt;ext3&lt;/a&gt; filesystem went down during updating system by &lt;a href="http://linux.duke.edu/projects/yum/"&gt;yum&lt;/a&gt;. This appeared in log:&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;EXT3-fs error (device hda2): ext3_free_blocks_sb: \&lt;br /&gt;       bit already cleared for block 747938&lt;br /&gt;Aborting journal on device hda2.&lt;br /&gt;ext3_abort called.&lt;br /&gt;...&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;with further info including &amp;ndash; it was remounted to read-only mode and was slightly inconsistent. I reported &lt;a href="http://lkml.org/lkml/2006/10/5/353"&gt;this&lt;/a&gt; (a little bit freaky) to &lt;a href="http://lkml.org"&gt;lkml&lt;/a&gt; and rebooted to correct the filesystem.&lt;br /&gt;&lt;br /&gt;I tried to boot to &lt;a href="http://wiki.linuxquestions.org/wiki/Single-user_mode"&gt;single user mode&lt;/a&gt;, but &lt;a href="http://fedora.redhat.com/"&gt;fedora&lt;/a&gt; was (properly) faster and tried to check the root before I was able to log in. In spite of that it cannot correct it, so it gave me a shell to do-it-on-your-own. Ok, I ran &lt;a href="http://en.wikipedia.org/wiki/Fsck"&gt;fsck&lt;/a&gt; on root partition, it found some bad links, orphaned entries and block mismatches. Fsck was able to correct all those errors, then I checked &lt;a href="http://en.wikipedia.org/wiki/Self-Monitoring,_Analysis,_and_Reporting_Technology"&gt;S.M.A.R.T.&lt;/a&gt; output (with nothing suspicious) and rebooted.&lt;br /&gt;&lt;br /&gt;Second phase of recovery began now. &lt;a href="http://www.rpm.org/"&gt;Rpm&lt;/a&gt; database and updated files needed to be corrected. Only 10 packages (including &lt;a href="http://www.gnu.org/software/libc/"&gt;glibc&lt;/a&gt; libraries) were updated and the last one (the most affected) was gnome-vfs2. I removed all updated packages (there were both updated version and old versions) and verified if installed packages were allright, some was, some wasn't. Doesn't matter, I updated it again by yum, this time it went through successfully. Next nice experience :) &amp;ndash; it works for now (not first, not last crash, since I use a &lt;a href="http://lwn.net/Articles/105168/"&gt;-mm&lt;/a&gt; tree).&lt;br /&gt;&lt;br /&gt;P.S. Jiri Kosina wrote on lkml list that he expereinced similar problems, so we will see if this is bug  or not.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6367194097783716840-4749007396710456469?l=jirislaby.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jirislaby.blogspot.com/feeds/4749007396710456469/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6367194097783716840&amp;postID=4749007396710456469' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6367194097783716840/posts/default/4749007396710456469'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6367194097783716840/posts/default/4749007396710456469'/><link rel='alternate' type='text/html' href='http://jirislaby.blogspot.com/2006/10/filesystem-crash.html' title='Filesystem crash'/><author><name>gep</name><uri>http://www.blogger.com/profile/14094598865581411575</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6367194097783716840.post-1938874528964985605</id><published>2006-10-02T01:39:00.000+02:00</published><updated>2006-10-02T01:40:53.710+02:00</updated><title type='text'></title><content type='html'>Linux is like a wigwam. No windows(TM), no gates, apache inside.&lt;br /&gt;&lt;br /&gt;I had to repost this ;).&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6367194097783716840-1938874528964985605?l=jirislaby.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jirislaby.blogspot.com/feeds/1938874528964985605/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6367194097783716840&amp;postID=1938874528964985605' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6367194097783716840/posts/default/1938874528964985605'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6367194097783716840/posts/default/1938874528964985605'/><link rel='alternate' type='text/html' href='http://jirislaby.blogspot.com/2006/10/linux-is-like-wigwam.html' title=''/><author><name>gep</name><uri>http://www.blogger.com/profile/14094598865581411575</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6367194097783716840.post-3727985487341129550</id><published>2006-09-25T23:27:00.000+02:00</published><updated>2006-09-25T23:51:16.729+02:00</updated><title type='text'>Installing Linux from scratch (cont.)</title><content type='html'>Today, I tried &lt;a href="http://jirislaby.blogspot.com/2006/09/installing-linux-from-scratch.html"&gt;it&lt;/a&gt;, and it doesn't work. It works everywhere, but the hardware, where it should be connected.&lt;br /&gt;&lt;br /&gt;I had several ideas what to do. Either I hunt out some PCI graphic card and keyboard with DIN connector or null-modem cable to connect it to other PC by serial (rs232) port. First I did the latter. I have a friend, who lent me a null-modem cable without data flow control pins connected (just RXD, TXD, ground and other two I can't remember now). Cable was long only 25 cm (approx. 1 ft), so he lent me a cord extension set with male-female connectors. Nice. The first thing I want to know if wiring is OK. One windows station and one linux. I ran hyperterminal on Windows and send data from linux. Nothing came, weird. I investigated, that the cord extension set wires bad pins.&lt;br /&gt;&lt;br /&gt;I needed to know if at least the null-modem cable is allright. I made loopback COM1-COM2, ran 2 hyperterminals and after 3 tries I understood, that I hadn't switched off flow control. Doesn't matter. It worked from that timestamp.&lt;br /&gt;&lt;br /&gt;The problem was with router. Nothing appeared on the hyperterminal console, just x sign just after I switched the power on. Strange, maybe grub can't initialize itself &amp;ndash; I am going to enable serial support in grub tomorrow to see what happens. I'll have to disassemble the router to get the disk out again (I had to do this to provide console= kernel parameters), write configuration file and assemble the router back.&lt;br /&gt;&lt;br /&gt;For the time being I still have no PCI graphic card, so the former thought I had in the beginning won't be perhaps realized, although it may be desirable.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6367194097783716840-3727985487341129550?l=jirislaby.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jirislaby.blogspot.com/feeds/3727985487341129550/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6367194097783716840&amp;postID=3727985487341129550' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6367194097783716840/posts/default/3727985487341129550'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6367194097783716840/posts/default/3727985487341129550'/><link rel='alternate' type='text/html' href='http://jirislaby.blogspot.com/2006/09/installing-linux-from-scratch-lengend.html' title='Installing Linux from scratch (cont.)'/><author><name>gep</name><uri>http://www.blogger.com/profile/14094598865581411575</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6367194097783716840.post-2528947495523053983</id><published>2006-09-25T12:45:00.000+02:00</published><updated>2006-09-25T12:47:09.586+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='IT'/><title type='text'>Freecom DVB-T under linux</title><content type='html'>My friend bought a &lt;a href="http://www.freecom.com/ecproduct_detail.asp?ID=2823"&gt;Freecom DVB-T&lt;/a&gt; reciever and apply me to make it working under &lt;a href="http://en.wikipedia.org/wiki/Linux"&gt;Linux&lt;/a&gt; operating system.&lt;br /&gt;&lt;br /&gt;I asked him to put the usb device into the slot to see what Vendor and Product ID it is. I found out by lsusb command it has 14aa:0225 IDs. I started to investigate which driver could take control of that device, unfortunately there was no such driver in vanilla kernel.&lt;br /&gt;&lt;br /&gt;Ok, he has &lt;a href="http://www.kubuntu.org/"&gt;kubuntu&lt;/a&gt; 6.06 installed, so I compiled a little bit altered vanilla kernel with make-kpkg and he installed it and rebooted. Unfortunately changes from &lt;a href="http://www.linuxtv.org/"&gt;v4l tree&lt;/a&gt;, that I used didn't helped, there were some unresolved symbols, so I decided to compile clean vanilla and install modules from v4l snapshot. Yup, this worked (I was able to load those modules). The driver requested firmware and the device switched to warm state with product ID 0226.&lt;br /&gt;&lt;br /&gt;The rest was on him, he tried to scan with absolutely nothing in return. He tried hard. No way. He forgot to change the location of search. He changed it and he stopped to communicate with me, because he is watching TV all the day 8-). Nice co-work.&lt;br /&gt;&lt;br /&gt;Furthermore, remote controller works better than in &lt;a href="http://www.microsoft.com/windows/default.mspx"&gt;Windows&lt;/a&gt; and he is very glad.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6367194097783716840-2528947495523053983?l=jirislaby.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jirislaby.blogspot.com/feeds/2528947495523053983/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6367194097783716840&amp;postID=2528947495523053983' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6367194097783716840/posts/default/2528947495523053983'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6367194097783716840/posts/default/2528947495523053983'/><link rel='alternate' type='text/html' href='http://jirislaby.blogspot.com/2006/09/freecom-dvb-t-under-linux.html' title='Freecom DVB-T under linux'/><author><name>gep</name><uri>http://www.blogger.com/profile/14094598865581411575</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6367194097783716840.post-3636987591246076869</id><published>2006-09-25T00:28:00.000+02:00</published><updated>2006-09-25T00:46:55.491+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='IT'/><title type='text'>Installing Linux from scratch</title><content type='html'>Heh, I have a hard-disk from my router here with idea to install there some later system (&lt;a href="http://www.mandriva.com/"&gt;Mandrake&lt;/a&gt; 8 was there with absolutely no support nowadays). I put the disk in my local linux (&lt;a href="http://fedora.redhat.com/"&gt;Fedora Core&lt;/a&gt; rawhide &amp;ndash; devel) installation, wiped and created partitions with fdisk, made filesystems and the work might start.&lt;br /&gt;&lt;br /&gt;I was lazy to write &lt;a href="http://download.fedora.redhat.com/pub/fedora/linux/core/5/i386/os/images/diskboot.img"&gt;boot image&lt;/a&gt; from CD/DVD to a disk partition as usual and reboot ;), so I mounted its root partition, made lib and bin dirs, copy bash, all &lt;code&gt;ldd bash&lt;/code&gt; libraries plus some other stuff such as ls, mkdir, rpm (with libraries) and so on. I had iso of the distribution on my laptop, I exported it by &lt;a href="http://en.wikipedia.org/wiki/Network_File_System"&gt;nfs&lt;/a&gt; to here. Here I loop-mounted it to created mnt/fc dir and chrooted into this new root with shell and mounted iso.&lt;br /&gt;&lt;br /&gt;I had a small system with almost nothing, I thought, I need to expand it, so I inited rpm database &amp;ndash; &lt;code&gt;rpm --initdb&lt;/code&gt; and started to install yum with all what it needs as dependecies from mounted iso. About 30 packages were needed to be installed (very long command line). Now I set a new yum repository pointing to a mounted iso up and run yum install whatever-I-needed. The final step was to setup daemons and finally grub. One well-aimed grub-install and the system was ready to boot, I rebooted.&lt;br /&gt;&lt;br /&gt;Fine, just some misspells in /etc/fstab, otherwise OK. I tried all servers it would serve (&lt;a href="http://httpd.apache.org/"&gt;httpd&lt;/a&gt;, &lt;a href="http://www.isc.org/index.pl?/sw/dhcp/"&gt;dhcpd&lt;/a&gt;, &lt;a href="http://www.isc.org/index.pl?/sw/bind/"&gt;named&lt;/a&gt;, &lt;a href="http://www.openssh.com/portable.html"&gt;sshd&lt;/a&gt;, &lt;a href="http://www.proftpd.org/"&gt;proftpd&lt;/a&gt;) and it worked, also network was okay, so I am looking forward to try it back in the server tomorrow &amp;ndash; there is no monitor and keyboard. I hope it'll work (I'm a little bit naive, I know).&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6367194097783716840-3636987591246076869?l=jirislaby.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jirislaby.blogspot.com/feeds/3636987591246076869/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6367194097783716840&amp;postID=3636987591246076869' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6367194097783716840/posts/default/3636987591246076869'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6367194097783716840/posts/default/3636987591246076869'/><link rel='alternate' type='text/html' href='http://jirislaby.blogspot.com/2006/09/installing-linux-from-scratch.html' title='Installing Linux from scratch'/><author><name>gep</name><uri>http://www.blogger.com/profile/14094598865581411575</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6367194097783716840.post-4537770758444016028</id><published>2006-09-24T23:51:00.000+02:00</published><updated>2006-09-25T00:18:17.566+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='IT'/><title type='text'>Playing with Vista RC1</title><content type='html'>&lt;a href="http://www.microsoft.com/windowsvista/default.aspx"&gt;Vista RC1&lt;/a&gt; is out for some time and the first computer (with directx 9 graphic card) with Vista preinstalled came to me today. Cool. First impression is the system is cool, at least skin seems to be very impressive. Fine. I started to work with that, mainly system configuration.&lt;br /&gt;&lt;br /&gt;I don't know why did they change almost everything including configuration and control panel, strange &amp;ndash; I was unable to find network configuration for a long time for example. Nevermind, we have to get used, but why the hell does it ask when changing some system settings if I really know what am I doing (continue-cancel question)? Aaargh. It can be switched off in user profiles, but what is that for (i.e. what kind of security enhancement? every user will click on continue, doesn't he)?&lt;br /&gt;&lt;br /&gt;After configuration of network I can finally test &lt;a href="http://www.microsoft.com/windows/ie/default.mspx"&gt;Internet Explorer&lt;/a&gt;. That nice thing with tabbed browsing hangs in 5-10 minutes intervals. When you click on something in microsoft.com domain (mainly the menu on the left), it does nothing &amp;ndash; Loading...; Done, no change, as if you never clicked. I had to copy and paste that address into address bar and click on go-to. IE7 needs much work and is still not eligible to be a superb web-browser like &lt;a href="http://www.mozilla.com/firefox/"&gt;Firefox&lt;/a&gt; or &lt;a href="http://www.opera.com/"&gt;Opera&lt;/a&gt; are, blaah. Furthermore IE wasn't able to open &lt;a href="http://www.google.com/"&gt;google.com&lt;/a&gt;, I really don't understand why. When I tested it on laptop the domain worked.&lt;br /&gt;&lt;br /&gt;If Microsoft is prepared to release final version of this piece of *), I have to utter the system is not ready until SP1 is released. System behaves strange in some situations, we can call it Microsoft Hell for the time being.&lt;br /&gt;&lt;br /&gt;*) whatever you want&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6367194097783716840-4537770758444016028?l=jirislaby.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jirislaby.blogspot.com/feeds/4537770758444016028/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6367194097783716840&amp;postID=4537770758444016028' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6367194097783716840/posts/default/4537770758444016028'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6367194097783716840/posts/default/4537770758444016028'/><link rel='alternate' type='text/html' href='http://jirislaby.blogspot.com/2006/09/playing-with-vista-rc1.html' title='Playing with Vista RC1'/><author><name>gep</name><uri>http://www.blogger.com/profile/14094598865581411575</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6367194097783716840.post-8504250664125828172</id><published>2006-09-18T21:24:00.000+02:00</published><updated>2006-09-18T21:38:42.798+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='school'/><title type='text'>School begins</title><content type='html'>School started to exist for me today. I have 68 credits in enrolled subjects and need to reduce them to about 35.&lt;br /&gt;&lt;br /&gt;I'm so tired after the first school day, it was exhausting. I hope it'll be better in next days to choose right subset from courses.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6367194097783716840-8504250664125828172?l=jirislaby.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jirislaby.blogspot.com/feeds/8504250664125828172/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6367194097783716840&amp;postID=8504250664125828172' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6367194097783716840/posts/default/8504250664125828172'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6367194097783716840/posts/default/8504250664125828172'/><link rel='alternate' type='text/html' href='http://jirislaby.blogspot.com/2006/09/school-begins.html' title='School begins'/><author><name>gep</name><uri>http://www.blogger.com/profile/14094598865581411575</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6367194097783716840.post-8451950697572669914</id><published>2006-09-16T22:32:00.000+02:00</published><updated>2006-09-16T23:16:58.627+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='IT'/><title type='text'>Suffering with WXP</title><content type='html'>Okay, the first post and I'm going to object. &lt;a href="http://www.microsoft.com/windows/default.mspx"&gt;Windows&lt;/a&gt; is the Evil(TM). Period. Grrr.&lt;br /&gt;&lt;br /&gt;The story started by notebook coming to me to install HP drivers for a brand new bought printer. Ok, I inserted shipped CD and started with installation process. In the middle it stalled and nothing was going to happen. Reboot. Hard. Again, the very same issue. Hm, windows reinstall came on my mind.&lt;br /&gt;&lt;br /&gt;So I inserted WXP home edition CD and started reinstall process. Installation has been done and the new system boots, nice. Let's use iiiiiiii...it hangs about a minute after logon (let me clarify, what do I mean by hangs in this case: mouse is moving, _some_ apps may be executed, no answer to ctrl-alt-del, ctrl-alt-esc keys, no response to clicks of mouse on start menu, i. e. explorer.exe hangs plus some other parts of system).&lt;br /&gt;&lt;br /&gt;Fine, I agreed, no SP2+connection to Internet, it's error-prone, nevermind. I'll reinstall it again with no connection to the Net and installing SP2 right after reinstallation. No way, it didn't help!&lt;br /&gt;&lt;br /&gt;It may be a hardware error, appeared on my mind. I downloaded and burned &lt;a href="http://www.memtest.org/"&gt;memtest86+&lt;/a&gt; and tried it out. No error for a couple of hours, weird. Then, I'd test harddisk. I used for this smartctl from &lt;a href="http://fedora.redhat.com/"&gt;Fedora&lt;/a&gt; 5 rescue CD. I ran short &lt;a href="http://en.wikipedia.org/wiki/Self-Monitoring%2C_Analysis%2C_and_Reporting_Technology"&gt;S.M.A.R.T.&lt;/a&gt; with no negative results. I tried also a long one, no results too (and also no records in log).&lt;br /&gt;&lt;br /&gt;It almost excluded HW failure, but I found out, that it recovers in 30 minutes or so and the system is usable again for a while. I let it update by &lt;a href="http://windowsupdate.microsoft.com/"&gt;Microsoft updates&lt;/a&gt; and it succeeded. The situation after this big update is a little bit better, but it still hangs, however for much more shorter times. Ok, I installed rest of software back, also the HP driver and returned the notebook back. I want to Kill Bill.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6367194097783716840-8451950697572669914?l=jirislaby.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jirislaby.blogspot.com/feeds/8451950697572669914/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6367194097783716840&amp;postID=8451950697572669914' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6367194097783716840/posts/default/8451950697572669914'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6367194097783716840/posts/default/8451950697572669914'/><link rel='alternate' type='text/html' href='http://jirislaby.blogspot.com/2006/09/suffering-with-wxp.html' title='Suffering with WXP'/><author><name>gep</name><uri>http://www.blogger.com/profile/14094598865581411575</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>
