stillhq.com : Mikal, a geek from Canberra living in Silicon Valley (no blather posts) http://www.stillhq.com The life, times, travel and software of Michael Still (no blather posts) en Copyright (c) Michael Still 2000 - 2006 blosxom simplerss20 v20050208hh 180 http://blogs.law.harvard.edu/tech/rss paramiko exec_command timeout /python/paramiko Sun, 05 Oct 2008 12:20:00 GMT I have a paramiko program which sshs to a large number of machines, and sometimes it hits a machine where Channel.exec_command() doesn't return. I know this is a problem with the remote machine, because the same thing happens when I try to ssh to the machine from the command line. However, I don't have any way of determining which machines are broken beforehand. <br/><br/> Paramiko doesn't support a timeout for exec_command(), so I am looking for a generic way of running a function call with a timeout. I can see sample code which does this using threads, but that's pretty ugly. I can't use SIGALARM because I am not running on the main thread. <br/><br/> Can anyone think of a better way of doing this? <br/><br/><i>Tags for this post: python(<a href="http://www.stillhq.com/python"><img src="http://www.stillhq.com/favicon.png" border="0" alt="S"></a>) paramiko(<a href="http://www.stillhq.com/paramiko"><img src="http://www.stillhq.com/favicon.png" border="0" alt="S"></a>) </i> <br/><br/> <a href="http://www.stillhq.com/python/paramiko/000004.commentform.html">Comment</a> http://www.stillhq.com/python/paramiko/000004.html http://www.stillhq.com/python/paramiko/000004.html MythNetTV release 6 /mythtv/mythnettv Fri, 03 Oct 2008 13:09:00 GMT New things in this release: <br/><br/> <ul> <b>Better testing:</b> <li>r114: Unit tests for video.py <li>r148: Updated unit test now that we create more tables <li>r151: Start work on syndication unit tests <li>r153: Unit test for bad syndication dates, as well as more flexibility in db connections needed for this unit test <li>r157: Nicer unit test failure output, and refactor GetVideoDir() into the utility module <li>r181: Slightly improve syndication unit tests <li>r183: Add flag parsing to unit tests, and fix some more flag name changes </ul> <br/><br/> <ul> <b>Better documentation:</b> <li>r117: Added a man page for video.py -- I'm not 100% happy with its name though </ul> <br/><br/> <ul> <b>Bug fixes:</b> <li>r114: Fixed a bug where the new filename for video transcode could be the same as the input filename, resulting in video corruption. This was found with one of the new video.py unit tests <li>r116: The logic for the --prompt flag was the wrong way around. Fixed. <li>r119: Nicer download status messages <li>r121: Handle 404s in feed updates better <li>r129: Slight tweak to SVN submit script <li>r131: More accurate tracking of proxy usage (update during download, instead of just at the end) <li>r137: Proxy budget being exceeded doesn't count as a failed download attempt <li>r143: Subscribe now renables inactive subscriptions <li>r146: Add support to decimals to utility byte printer, fix a bug in the check for video directories <li>r155: Have users send problems to the mailing list, instead of me personally <li>r161: Don't throw exceptions for the videodir command line <li>r167, 169: Display friendly sizes in records_tool output <li>r171: Move verbose update arg into a flag <li>r173: Add "-vo null" to mplayer invocation per Ryan Lutz. This improves support on machines without X, and speeds up the identify operation <li>r175: Import patch from Thomas Mashos which fixes subscription removal, started work on syndication unit test improvements <li>r177: Fix character escaping bug in show subtitles during import <li>r179: Renamed --datadirdefault to --datadir. If set this will now change your data directory, regardless of if there was a previous value set. <li>r190: Recording_tool now prompts for deletes <li>r192: Improved explainvideodir output <li>r194: Don't crash in explainvideodir if there is no video directory <li>r197: Order results by subtitle in recordings_tool output </ul> <br/><br/> <ul> <b>New features:</b> <li>r115: Upgraded schema to version 15 to support http_proxies for subscriptions. Added http_proxy command line, which allows you to use HTTP proxies for specified URLs. Moved HTTP accesses to use the proxy code. <li>r127: Bump schema to v17, and add proxy use tracking including the "proxyusage" command <li>r133: Allow daily budgets for proxy usage <li>r115: Provide a user agent for HTTP requests, instead of just Python-urllib/1.17 <li>r117: Users will now be prompted to subscribe to an announcements video feed. This will happen exactly once. This behavior may be disabled with the --nopromptforannounce command line flag. <li>r125: Add a full info dump command to video.py's command line interface <li>r139: Bump schema to 19, and implement categories with the "category" command <li>r141: Implement recording group support, and clarify category support <li>r151: Implement a helper (recordings_tool) for handling the MythTV recordings table, this is useful for testing. <li>r159: Add videodir and explainvideodir debugging commands, and update man page <li>r163: Add title list feature to recordings_tool <li>r165: Include recording count in title list <li>r185: Add the resetattempts command </ul> <br/><br/> <ul> <b>Development changes:</b> <li>r123: Added a submit script to automate putting the revision number into the ChangeLog <li>r135: Tweak to new ChangeLog auto logging formatting </ul> <br/><br/> Release 6 continues the tradition of better testing, improves the documentation (a little, there is more work to be done there), fixes a bunch of bugs, and implements some new features which will hopefully be useful to others. Please <a href="http://www.stillhq.com/mythtv/mythnettv/source/release-6/mythnettv-release-6.tgz">grab your copy here</a>. <br/><br/><i>Tags for this post: mythtv(<a href="http://www.stillhq.com/mythtv"><img src="http://www.stillhq.com/favicon.png" border="0" alt="S"></a>) mythnettv(<a href="http://www.stillhq.com/mythnettv"><img src="http://www.stillhq.com/favicon.png" border="0" alt="S"></a>) </i> <br/><br/> <a href="http://www.stillhq.com/mythtv/mythnettv/000014.commentform.html">Comment</a> http://www.stillhq.com/mythtv/mythnettv/000014.html http://www.stillhq.com/mythtv/mythnettv/000014.html The Malloreon /book/David_Eddings Thu, 02 Oct 2008 20:34:00 GMT This is the followup series to the <a href="http://www.stillhq.com/book/David_Eddings/Belgariad.html">Belgariad</a>. Its mostly a sequel series, but is quite readable and worth the effort. <br/><br/> <table> <tr><td><b>Year</b></td><td><b>Title</b></td></tr> <tr bgcolor="#DDDDDD"><td>1988</td><td><a href="http://www.stillhq.com/book/David_Eddings/Guardians_of_the_West.html">Guardians of the West</a></td></tr> <tr><td>1989</td><td><a href="http://www.stillhq.com/book/David_Eddings/King_of_the_Murgos.html">King of the Murgos</a></td></tr> <tr bgcolor="#DDDDDD"><td>1989</td><td><a href="http://www.stillhq.com/book/David_Eddings/Demon_Lord_of_Karanda.html">Demon Lord of Karanda</a></td></tr> <tr><td>1990</td><td><a href="http://www.stillhq.com/book/David_Eddings/Sorceress_of_Darshiva.html">Sorceress of Darshiva</a></td></tr> <tr bgcolor="#DDDDDD"><td>1992</td><td><a href="http://www.stillhq.com/book/David_Eddings/Seeress_of_kell.html">Seeress of Kell</a></td></tr> </table> <br/><br/><i>Tags for this post: book(<a href="http://www.stillhq.com/book"><img src="http://www.stillhq.com/favicon.png" border="0" alt="S"></a>) David_Eddings(<a href="http://www.stillhq.com/David_Eddings"><img src="http://www.stillhq.com/favicon.png" border="0" alt="S"></a>) </i> <br/><br/> <a href="http://www.stillhq.com/book/David_Eddings/Malloreon.commentform.html">Comment</a> http://www.stillhq.com/book/David_Eddings/Malloreon.html http://www.stillhq.com/book/David_Eddings/Malloreon.html The Seeress of Kell /book/David_Eddings Thu, 02 Oct 2008 20:20:00 GMT The conclusion to the <a href="http://www.stillhq.com/book/David_Eddings/Malloreon.html">Malloreon</a>. Quite a good read, although the plot twists are predictable. <br/><br/><a href="http://www.librarything.com/isbn/0345377591">LibraryThing link for ISBN 0345377591</a>. <script type="text/javascript">GBS_insertPreviewButtonPopup('ISBN:0345377591');</script> <br/><br/><i>Tags for this post: book(<a href="http://www.stillhq.com/book"><img src="http://www.stillhq.com/favicon.png" border="0" alt="S"></a>) David_Eddings(<a href="http://www.stillhq.com/David_Eddings"><img src="http://www.stillhq.com/favicon.png" border="0" alt="S"></a>) </i> <br/><br/> <a href="http://www.stillhq.com/book/David_Eddings/Seeress_of_kell.commentform.html">Comment</a> http://www.stillhq.com/book/David_Eddings/Seeress_of_kell.html http://www.stillhq.com/book/David_Eddings/Seeress_of_kell.html Books read in September 2008 /book/read Tue, 30 Sep 2008 20:01:00 GMT <ul> <li><a href="http://www.stillhq.com/book/David_Eddings/Enchanters_End_Game.html">Enchanters' End Game</a> <li><a href="http://www.stillhq.com/book/Isaac_Asimov/Robot_Visions.html">Robot Visions</a> <li><a href="http://www.stillhq.com/book/Isaac_Asimov/Forward_the_Foundation.html">Forward the Foundation</a> <li><a href="http://www.stillhq.com/book/Isaac_Asimov/Foundation.html">Foundation</a> <li><a href="http://www.stillhq.com/book/Isaac_Asimov/Foundation_and_Empire.html">Foundation and Empire</a> <li><a href="http://www.stillhq.com/book/David_Eddings/Guardians_of_the_West.html">Guardians of the West</a> <li><a href="http://www.stillhq.com/book/Harry_Harrison/The_Stainless_Steel_Rat_for_President.html">The Stainless Steel Rat for President</a> <li><a href="http://www.stillhq.com/book/David_Eddings/King_of_the_Murgos.html">King of the Murgos</a> <li><a href="http://www.stillhq.com/book/Isaac_Asimov/Second_Foundation.html">Second Foundation</a> <li><a href="http://www.stillhq.com/book/Graeme_Donald/Sticklers_Sideburns_and_Bikinis.html">Sticklers, Sideburns and Bikinis</a> (not fully read yet, its a reference book) <li><a href="http://www.stillhq.com/book/Gregory_Benford/Foundations_Fear.html">Foundation's Fear</a> (didn't finish cause it sucked) <li><a href="http://www.stillhq.com/book/David_Eddings/Demon_Lord_of_Karanda.html">Demon Lord of Karanda</a> <li><a href="http://www.stillhq.com/book/David_Eddings/Sorceress_of_Darshiva.html">Sorceress of Darshiva</a> </ul> <br/><br/><i>Tags for this post: book(<a href="http://www.stillhq.com/book"><img src="http://www.stillhq.com/favicon.png" border="0" alt="S"></a>) read(<a href="http://www.stillhq.com/read"><img src="http://www.stillhq.com/favicon.png" border="0" alt="S"></a>) </i> <br/><br/> <a href="http://www.stillhq.com/book/read/200809.commentform.html">Comment</a> http://www.stillhq.com/book/read/200809.html http://www.stillhq.com/book/read/200809.html Sorceress of Darshiva /book/David_Eddings Tue, 30 Sep 2008 19:55:00 GMT This is book four of the <a href="http://www.stillhq.com/book/David_Eddings/Malloreon.html">Malloreon</a>. It feels like not much happens in this book, although there is plot development happening. I guess it more feels like this book is a connector between the book before and the book after, and not much more. On the other hand, it was an engaging read. <br/><br/><a href="http://www.librarything.com/isbn/0345369351">LibraryThing link for ISBN 0345369351</a>. <script type="text/javascript">GBS_insertPreviewButtonPopup('ISBN:0345369351');</script> <br/><br/><i>Tags for this post: book(<a href="http://www.stillhq.com/book"><img src="http://www.stillhq.com/favicon.png" border="0" alt="S"></a>) David_Eddings(<a href="http://www.stillhq.com/David_Eddings"><img src="http://www.stillhq.com/favicon.png" border="0" alt="S"></a>) </i> <br/><br/> <a href="http://www.stillhq.com/book/David_Eddings/Sorceress_of_Darshiva.commentform.html">Comment</a> http://www.stillhq.com/book/David_Eddings/Sorceress_of_Darshiva.html http://www.stillhq.com/book/David_Eddings/Sorceress_of_Darshiva.html Demon Lord of Karanda /book/David_Eddings Sun, 28 Sep 2008 18:00:00 GMT I needed something to cheer me up after the <a href="http://www.stillhq.com/book/Gregory_Benford/Foundations_Fear.html">previous sucky book</a>. This one did the trick. Again its pretty standard Fantasy stuff, and there were no surprises, but its fun to read. <br/><br/><a href="http://www.librarything.com/isbn/0345363310">LibraryThing link for ISBN 0345363310</a>. <script type="text/javascript">GBS_insertPreviewButtonPopup('ISBN:0345363310');</script> <br/><br/><i>Tags for this post: book(<a href="http://www.stillhq.com/book"><img src="http://www.stillhq.com/favicon.png" border="0" alt="S"></a>) David_Eddings(<a href="http://www.stillhq.com/David_Eddings"><img src="http://www.stillhq.com/favicon.png" border="0" alt="S"></a>) </i> <br/><br/> <a href="http://www.stillhq.com/book/David_Eddings/Demon_Lord_of_Karanda.commentform.html">Comment</a> http://www.stillhq.com/book/David_Eddings/Demon_Lord_of_Karanda.html http://www.stillhq.com/book/David_Eddings/Demon_Lord_of_Karanda.html Foundation's Fear /book/Gregory_Benford Fri, 26 Sep 2008 21:16:00 GMT This book is a solid zero stars in my mind. I got to page 372, but simply couldn't wade through the chore any longer. The plot meanders, and its not clear to me where the story is going. Worse still, basically nothing has happened yet. I am a little surprised, given the <a href="http://www.librarything.com/work/17641/reviews/34242412">generally positive LibraryThing reviews</a>. I should have read <a href="http://www.amazon.com/Foundations-Foundation-Trilogy-Gregory-Benford/dp/0061056383/ref=pd_bbs_sr_1?ie=UTF8&s=books&qid=1222485386&sr=8-1">the Amazon reviews</a> instead. Some examples: <br/><br/> <blockquote> Normally, I do a lot of my reading on the train (BART for those of you familiar with San Francisco), getting to and from work. An engrossing book keeps me awake and I read it relatively quickly. "Foundation's Fear", especially the first half of it, set a record for putting me to sleep. There were days in when I only managed to read a couple of pages. A paragraph or two and I'd be out, even before the train started moving. As others here have pointed out, there is a lot of boring dialogue and description and much of it focuses around the Voltaire and Joan of Arc artificial entities. Hundreds of pages of philosophical noodling and descriptions of imaginary scenes conjured up in cyberspace become numbing. </blockquote> <br/><br/> And another: <br/><br/> <blockquote> This book is not good, not because it's not Asimov but because it's simply not good. I had the luxury of reading it within the context of the other two "new" books and while that helps in hindsight, it doesn't while you're slogging through Benford's weighty prose. <br/><br/> Don't expect Asimov but then the reader shouldn't. As Bear and to a lesser extent Brin show, authors can bring a fresh perspective on the topic and do it fairly well. Benford never seems to make up his mind which of his myriad little sub plots will be the main plot and thus, nothing really happens that expands our understanding of the Foundation Galaxy. Moreover, instead of fleshing out some of Asimov's admittedly skimpy ideas in the Foundation galaxy or introducing new themes that build upon previous concepts, instead, we take a quantum leap into a muddled unknown with concepts (aliens and tiktoks being the two most egregious examples) that clearly don't belong in the Foundation setting. </blockquote> <br/><br/> This book differs from Asimov's view of the Foundation universe in important ways: <br/><br/> <ul> <li>This book is much more explicit about Dors' nature than Asimov ever was. There was some element of doubt in <a href="http://www.stillhq.com/book/Isaac_Asimov/Forward_the_Foundation.html">Forward the Foundation</a> right up until Dors' death. That is not the case with this book. <li>This book reworks Hari's entry into the First Minister position, which I found annoying. Especially because the discussion around that entry is slow, and lacks action. Basically the new version was kinda boring. <li>Worm holes are a major part of the economic makeup of the galactic empire in this book, but somehow Asimov never mentioned them in his books. <li>This book dwells on computers, robots, artificial intelligence, and aliens -- all things Asimov left out of his books (except for robots of course). Its not like Asimov was unaware of these things, he just didn't use them in this universe. <li>This book is really long (600 pages), but nothing much seems to actually happen in the first several hundred. The Sims sequence is the first really interesting part of the book, and even that drags on into long boring descriptions of polygons waving in the virtual wind. </ul> <br/><br/><a href="http://www.librarything.com/isbn/0061056383">LibraryThing link for ISBN 0061056383</a>. <script type="text/javascript">GBS_insertPreviewButtonPopup('ISBN:0061056383');</script> <br/><br/><i>Tags for this post: book(<a href="http://www.stillhq.com/book"><img src="http://www.stillhq.com/favicon.png" border="0" alt="S"></a>) Gregory_Benford(<a href="http://www.stillhq.com/Gregory_Benford"><img src="http://www.stillhq.com/favicon.png" border="0" alt="S"></a>) </i> <br/><br/> <a href="http://www.stillhq.com/book/Gregory_Benford/Foundations_Fear.commentform.html">Comment</a> http://www.stillhq.com/book/Gregory_Benford/Foundations_Fear.html http://www.stillhq.com/book/Gregory_Benford/Foundations_Fear.html Sticklers, Sideburns and Bikinis /book/Graeme_Donald Wed, 24 Sep 2008 13:48:00 GMT This is the second book I have got from the <a href="http://www.librarything.com">LibraryThing</a> early reviewer program (the previous book was <a href="http://www.stillhq.com/book/Tod_Hoffman/The_Spy_Within.html">The Spy Within</a>). <br/><br/> I'm going to have to be honest with this book and say that I haven't read all of it yet. Its basically a dictionary and I don't tend to read those cover to cover. On the other hand, I have read about 10% of this book so far, and do intend to read it all. <br/><br/> This book is great. The content is interesting, well laid out, and excellently written. That's probably made a lot easier by how interesting the content is -- the stories behind various works tend to be short and novel, which is fun. The book is also useful -- it's already ended an office debate over the origin of the word "hooker". <br/><br/><a href="http://www.librarything.com/isbn/9781846033001">LibraryThing link for ISBN 9781846033001</a>. <script type="text/javascript">GBS_insertPreviewButtonPopup('ISBN:9781846033001');</script> <br/><br/><i>Tags for this post: book(<a href="http://www.stillhq.com/book"><img src="http://www.stillhq.com/favicon.png" border="0" alt="S"></a>) Graeme_Donald(<a href="http://www.stillhq.com/Graeme_Donald"><img src="http://www.stillhq.com/favicon.png" border="0" alt="S"></a>) </i> <br/><br/> <a href="http://www.stillhq.com/book/Graeme_Donald/Sticklers_Sideburns_and_Bikinis.commentform.html">Comment</a> http://www.stillhq.com/book/Graeme_Donald/Sticklers_Sideburns_and_Bikinis.html http://www.stillhq.com/book/Graeme_Donald/Sticklers_Sideburns_and_Bikinis.html Please help me test trunk /mythtv/mythnettv Tue, 23 Sep 2008 20:42:00 GMT I'm getting ready to do another MythNetTV release, as I've fixed quite a few things recently. I'd appreciate people testing the new code before I do an official release. You can get the current code like this: <br/><br/> <ul><pre> svn co http://www.stillhq.com/mythtv/mythnettv/svn </pre></ul> <br/><br/> That will create a directory called mythnettv, with a subdirectory named trunk, which is the latest development version of the code. You should probably create that directory somewhere where you don't mind a new directory being created. <br/><br/> This release has lots of small changes, which are listed in the ChangeLog which will be downloaded with the code. <br/><br/> Thanks. <br/><br/><i>Tags for this post: mythtv(<a href="http://www.stillhq.com/mythtv"><img src="http://www.stillhq.com/favicon.png" border="0" alt="S"></a>) mythnettv(<a href="http://www.stillhq.com/mythnettv"><img src="http://www.stillhq.com/favicon.png" border="0" alt="S"></a>) </i> <br/><br/> <a href="http://www.stillhq.com/mythtv/mythnettv/000013.commentform.html">Comment</a> http://www.stillhq.com/mythtv/mythnettv/000013.html http://www.stillhq.com/mythtv/mythnettv/000013.html Factory reset /netflix/roku Tue, 23 Sep 2008 07:34:00 GMT Huh. I just had to factory reset the roku netflix box after suffering from <a href="http://forums.rokulabs.com/viewtopic.php?p=100610&sid=cce65279a71574c2d4ff78f8bef6c4d0">the forever downloading my instant queue problem</a>. In my case the device was in this state for over a week (it was acting weird, so I watched a different device and completely forgot about it). Its disappointing that a factory reset is needed, and that power cycling the device does just work. <br/><br/> I wonder if reactivating the device counts in the four device limit that netflix imposes? <br/><br/><i>Tags for this post: netflix(<a href="http://www.stillhq.com/netflix"><img src="http://www.stillhq.com/favicon.png" border="0" alt="S"></a>) roku(<a href="http://www.stillhq.com/roku"><img src="http://www.stillhq.com/favicon.png" border="0" alt="S"></a>) </i> <br/><br/> <a href="http://www.stillhq.com/netflix/roku/000002.commentform.html">Comment</a> http://www.stillhq.com/netflix/roku/000002.html http://www.stillhq.com/netflix/roku/000002.html Second Foundation /book/Isaac_Asimov Mon, 22 Sep 2008 20:58:00 GMT I am starting to think that there is something missing in the Foundation trilogy. Specifically, there isn't much action. Most of it is just people talking at each other -- with pages and pages of dialog. This makes these three books much harder to read (and therefore less compelling) than those elsewhere in the <a href="http://www.stillhq.com/book/Isaac_Asimov/Foundation_Series.html">extended Foundation Series</a>. <br/><br/> I did enjoy this book, I just feel that I could have done with some more action to make it less hard work. <br/><br/><a href="http://www.librarything.com/isbn/0345336291">LibraryThing link for ISBN 0345336291</a>. <script type="text/javascript">GBS_insertPreviewButtonPopup('ISBN:0345336291');</script> <br/><br/><i>Tags for this post: book(<a href="http://www.stillhq.com/book"><img src="http://www.stillhq.com/favicon.png" border="0" alt="S"></a>) Isaac_Asimov(<a href="http://www.stillhq.com/Isaac_Asimov"><img src="http://www.stillhq.com/favicon.png" border="0" alt="S"></a>) </i> <br/><br/> <a href="http://www.stillhq.com/book/Isaac_Asimov/Second_Foundation.commentform.html">Comment</a> http://www.stillhq.com/book/Isaac_Asimov/Second_Foundation.html http://www.stillhq.com/book/Isaac_Asimov/Second_Foundation.html King of the Murgos /book/David_Eddings Mon, 22 Sep 2008 15:44:00 GMT This is book two of the <a href="http://www.stillhq.com/book/David_Eddings/Malloreon.html">Malloreon</a>, the sequel series to the <a href="http://www.stillhq.com/book/David_Eddings/Belgariad.html">Belgariad</a>. Some people complain that this series is just a repeat of the previous series with some of the names changed, and I certainly used to think that myself. Now that I've read this book again I think that's unfair -- the story line is actually quite different, and the characters are generally older and wiser (which makes them feel more developed). I enjoyed this book, probably more than I did <a href="http://www.stillhq.com/book/David_Eddings/Guardians_of_the_West.html">Guardians of the West</a>. <br/><br/><a href="http://www.librarything.com/isbn/0345358805">LibraryThing link for ISBN 0345358805</a>. <script type="text/javascript">GBS_insertPreviewButtonPopup('ISBN:0345358805');</script> <br/><br/><i>Tags for this post: book(<a href="http://www.stillhq.com/book"><img src="http://www.stillhq.com/favicon.png" border="0" alt="S"></a>) David_Eddings(<a href="http://www.stillhq.com/David_Eddings"><img src="http://www.stillhq.com/favicon.png" border="0" alt="S"></a>) </i> <br/><br/> <a href="http://www.stillhq.com/book/David_Eddings/King_of_the_Murgos.commentform.html">Comment</a> http://www.stillhq.com/book/David_Eddings/King_of_the_Murgos.html http://www.stillhq.com/book/David_Eddings/King_of_the_Murgos.html Does anyone else think its odd /diary Mon, 22 Sep 2008 14:06:00 GMT Does anyone else think it is odd that my kid's school had a "code red alert" drill this morning? This is where they have the whole school pretend that there is a gun toting maniac on campus, and the class goes to a corner and hides. They practise being quiet while someone beats on the door, that sort of thing. <br/><br/> I find the whole thing just a little disturbing. <br/><br/><i>Tags for this post: blog(<a href="http://www.stillhq.com/diary"><img src="http://www.stillhq.com/favicon.png" border="0" alt="S"></a>) </i> <br/><br/> <a href="http://www.stillhq.com/diary/001097.commentform.html">Comment</a> http://www.stillhq.com/diary/001097.html http://www.stillhq.com/diary/001097.html The Stainless Steel Rat for President /book/Harry_Harrison Wed, 17 Sep 2008 19:57:00 GMT I need a break from all this serious reading, and the Stainless Steel Rat books are always amusing. In fact, this book was much better than the previous two I have read (<a href="http://www.stillhq.com/book/Harry_Harrison/The_Stainless_Steel_Rat_Saves_The_World.html">The Stainless Steel Rat Saves The World</a> and <a href="http://www.stillhq.com/book/Harry_Harrison/The_Stainless_Steel_Rat_Wants_You.html">The Stainless Steel Rat Wants You</a>) as it didn't suffer from the incredibly weak plot lines that books involving time travel seem to cause for Harrison. <br/><br/> This book is back to the classic rat -- a simple criminal romp through an unsuspecting society, his hottie wife in tow, and with his two now grown kids along for the fun. I enjoyed this book a lot. <br/><br/><a href="http://www.librarything.com/isbn/0553227599">LibraryThing link for ISBN 0553227599</a>. <script type="text/javascript">GBS_insertPreviewButtonPopup('ISBN:0553227599');</script> <br/><br/><i>Tags for this post: book(<a href="http://www.stillhq.com/book"><img src="http://www.stillhq.com/favicon.png" border="0" alt="S"></a>) Harry_Harrison(<a href="http://www.stillhq.com/Harry_Harrison"><img src="http://www.stillhq.com/favicon.png" border="0" alt="S"></a>) </i> <br/><br/> <a href="http://www.stillhq.com/book/Harry_Harrison/The_Stainless_Steel_Rat_for_President.commentform.html">Comment</a> http://www.stillhq.com/book/Harry_Harrison/The_Stainless_Steel_Rat_for_President.html http://www.stillhq.com/book/Harry_Harrison/The_Stainless_Steel_Rat_for_President.html Fixed LibraryThing links /book Wed, 17 Sep 2008 13:09:00 GMT I only just realized that the links to LibraryThing that I automatically insert into book posts only work if you have a LibraryThing account. I've now fixed that so that there is a link to a public page, as well as a link to your personal library if you use LibraryThing and also have a book that I mention. <br/><br/><i>Tags for this post: book(<a href="http://www.stillhq.com/book"><img src="http://www.stillhq.com/favicon.png" border="0" alt="S"></a>) </i> <br/><br/> <a href="http://www.stillhq.com/book/000002.commentform.html">Comment</a> http://www.stillhq.com/book/000002.html http://www.stillhq.com/book/000002.html Guardians of the West /book/David_Eddings Tue, 16 Sep 2008 13:35:00 GMT I read this book as a child, and must admit I didn't like it. That's interesting to me, because it quite liked it this time. Its not the greatest literature ever written, but it is a good read. You need to have read the <a href="http://www.stillhq.com/book/David_Eddings/Belgariad.html">Belgariad</a> first though, because this book (the first of the <a href="http://www.stillhq.com/book/David_Eddings/Malloreon.html">Mallorean</a>) reuses the characters without spending a lot of time introducing them to you. I think I prefer it that way because it would be annoying to have to go through all that character development again as someone who has read the first series. <br/><br/><a href="http://www.librarything.com/isbn/0345352661">LibraryThing link for ISBN 0345352661</a>. <script type="text/javascript">GBS_insertPreviewButtonPopup('ISBN:0345352661');</script> <br/><br/><i>Tags for this post: book(<a href="http://www.stillhq.com/book"><img src="http://www.stillhq.com/favicon.png" border="0" alt="S"></a>) David_Eddings(<a href="http://www.stillhq.com/David_Eddings"><img src="http://www.stillhq.com/favicon.png" border="0" alt="S"></a>) </i> <br/><br/> <a href="http://www.stillhq.com/book/David_Eddings/Guardians_of_the_West.commentform.html">Comment</a> http://www.stillhq.com/book/David_Eddings/Guardians_of_the_West.html http://www.stillhq.com/book/David_Eddings/Guardians_of_the_West.html Weird paramiko problem /python/paramiko Tue, 16 Sep 2008 11:41:00 GMT I had a strange paramiko problem the other day. Sometimes executing a command through a channel (via the exec_command() call) would result in an exit code being returned, but no stdout or stderr. This was for a command I was absolutely sure always returns output, and it wasn't consistent -- I'd run batches of commands and about 10% of them would fail, but not always on the same machine and not always at the same time. I spent ages looking at my code, and the code for the command running at the other end of the channel. <br/><br/> Then it occurred to me that this seemed a lot like a race condition. I started looking at the code for the paramiko Channel class, and ended up deciding that the answer was to check that the eof_received member variable was true before trying to close the channel. <br/><br/> It turns out this just works. I've my code running commands for a couple of days now and have had zero more instances of the "no output, but did exit" error. So, there you go. Its a shame that member variable doesn't have accessors and isn't documented though. I guess that makes my code a little more fragile than I would be happy with. <br/><br/><i>Tags for this post: python(<a href="http://www.stillhq.com/python"><img src="http://www.stillhq.com/favicon.png" border="0" alt="S"></a>) paramiko(<a href="http://www.stillhq.com/paramiko"><img src="http://www.stillhq.com/favicon.png" border="0" alt="S"></a>) </i> <br/><br/> <a href="http://www.stillhq.com/python/paramiko/000003.commentform.html">Comment</a> http://www.stillhq.com/python/paramiko/000003.html http://www.stillhq.com/python/paramiko/000003.html Couldn't determine the video directory? /mythtv/mythnettv/tips Sun, 14 Sep 2008 10:32:00 GMT A couple of people have contacted me in the last couple of days with an error where MythNetTV can't determine the directory to put videos in. The error would look something like this: <br/><br/> <pre><ul> Importing data/tekzilla--0050--tehbunniez--hd.h264.mp4 Traceback (most recent call last): File "./mythnettv", line 453, in <module> main(sys.argv) File "./mythnettv", line 212, in main mythnettvcore.DownloadAndImport(db, guid, out=out) File "/home/mythbox/Scripts/mythnettv/mythnettvcore.py", line 92, in DownloadAndImport prog.Import(out=out) File "/home/mythbox/Scripts/mythnettv/program.py", line 472, in Import raise FilenameException(self.db, 'Could not determine the video ' program.FilenameException: Could not determine the video directory for this machine. Please report this to mythnettv@stillhq.com </pre></ul> <br/><br/> The stack trace is mostly irrelevant. The problem here is that MythNetTV couldn't decide what directory to put the video in once downloaded. Please execute the following SQL statements against your MythTV database: <br/><br/> <ul><pre> select * from storagegroup where groupname="MythNetTV"; select * from storagegroup where groupname="Default"; select * from settings where value="RecordFilePrefix"; </pre></ul> <br/><br/> This will dump all of the possible places MythNetTV will look for a video directory. <br/><br/> Once you've dumped this information, perform some simple checks: <br/><br/> <ul> <li>Is there anything listed at all? If not, you need to configure storage groups with the MythTV user interface <li>Is there anything listed with the hostname that MythNetTV is running on? If not, you need to add configuration entries for your current hostname. </ul> <br/><br/> If you're still having problems, please send email to mythnettv@stillhq.com, with the output of those select commands, and the output of the <b>hostname</b> command. <br/><br/><i>Tags for this post: mythtv(<a href="http://www.stillhq.com/mythtv"><img src="http://www.stillhq.com/favicon.png" border="0" alt="S"></a>) mythnettv(<a href="http://www.stillhq.com/mythnettv"><img src="http://www.stillhq.com/favicon.png" border="0" alt="S"></a>) tips(<a href="http://www.stillhq.com/tips"><img src="http://www.stillhq.com/favicon.png" border="0" alt="S"></a>) </i> <br/><br/> <a href="http://www.stillhq.com/mythtv/mythnettv/tips/000001.commentform.html">Comment</a> http://www.stillhq.com/mythtv/mythnettv/tips/000001.html http://www.stillhq.com/mythtv/mythnettv/tips/000001.html Foundation and Empire /book/Isaac_Asimov Sat, 13 Sep 2008 18:22:00 GMT This is the second book in the original foundation trilogy, which I am reading as part of the <a href="http://www.stillhq.com/book/Isaac_Asimov/Foundation_Series.html">the extended Foundation series</a> that I am working my way slowly though. This book contains two stories -- both of them Seldon crises, although one of them unpredicted by Hari. As Hari had always said in the series -- his techniques can only predict broad social trends, and the not the work on individuals. What happens if a single person who could not be predicted appears? This story covers that scenario. <br/><br/> I found this book harder to read than the previous one, but that might have been because I've had a pretty distracted week. Once I actually sat down to read without too many interruptions, I enjoyed it. <br/><br/> The comments from others on LibraryThing are fair though -- the character names are odd, and the writing does feel a little awkward. <br/><br/><a href="http://www.librarything.com/isbn/0553293370">LibraryThing link for ISBN 0553293370</a>. <script type="text/javascript">GBS_insertPreviewButtonPopup('ISBN:0553293370');</script> <br/><br/> (LibraryThing for some reason gets the ISBN mapping for this book wrong. The above link's ISBN is right, but <a href="http://www.librarything.com/work/1707870">this link</a> goes to the right place). <br/><br/><i>Tags for this post: book(<a href="http://www.stillhq.com/book"><img src="http://www.stillhq.com/favicon.png" border="0" alt="S"></a>) Isaac_Asimov(<a href="http://www.stillhq.com/Isaac_Asimov"><img src="http://www.stillhq.com/favicon.png" border="0" alt="S"></a>) </i> <br/><br/> <a href="http://www.stillhq.com/book/Isaac_Asimov/Foundation_and_Empire.commentform.html">Comment</a> http://www.stillhq.com/book/Isaac_Asimov/Foundation_and_Empire.html http://www.stillhq.com/book/Isaac_Asimov/Foundation_and_Empire.html