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 Executing a command with paramiko /python/paramiko Wed, 03 Sep 2008 15:11:00 GMT I wanted to provide a simple example of how to execute a command with paramiko as well. This is quite similar to the scp example, but is nicer than executing a command in a shell because there isn't any requirement to do parsing to determine when the command has finished executing. <br/><br/> <ul><pre> #!/usr/bin/python # A simple command example for Paramiko. # Args: # 1: hostname # 2: username # 3: command to run import getpass import os import paramiko import socket import sys # Socket connection to remote host sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) sock.connect((sys.argv[1], 22)) # Build a SSH transport t = paramiko.Transport(sock) t.start_client() t.auth_password(sys.argv[2], getpass.getpass('Password: ')) # Start a cmd channel cmd_channel = t.open_session() cmd_channel.exec_command(sys.argv[3]) data = cmd_channel.recv(1024) while data: sys.stdout.write(data) data = cmd_channel.recv(1024) # Cleanup cmd_channel.close() t.close() sock.close() </pre></ul> <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/000002.commentform.html">Comment</a> http://www.stillhq.com/python/paramiko/000002.html http://www.stillhq.com/python/paramiko/000002.html Implementing SCP with paramiko /python/paramiko Wed, 03 Sep 2008 13:28:00 GMT Regular readers will note that I've been <a href="http://www.stillhq.com/blather/20080902.html">interested in how scp works</a> and <a href="http://www.stillhq.com/blather/20080903.html">paramiko</a> for the last couple of days. There are <a href="http://www.lag.net/pipermail/paramiko/2007-May/000489.html">previous examples of how to do scp with paramiko out there</a>, but the code isn't all on one page, you have to read through the mail thread and work it out from there. I figured I might save someone some time (possibly me!) and note a complete example of scp with paramiko... <br/><br/> <ul><pre> #!/usr/bin/python # A simple scp example for Paramiko. # Args: # 1: hostname # 2: username # 3: local filename # 4: remote filename import getpass import os import paramiko import socket import sys # Socket connection to remote host sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) sock.connect((sys.argv[1], 22)) # Build a SSH transport t = paramiko.Transport(sock) t.start_client() t.auth_password(sys.argv[2], getpass.getpass('Password: ')) # Start a scp channel scp_channel = t.open_session() f = file(sys.argv[3], 'rb') scp_channel.exec_command('scp -v -t %s\n' % '/'.join(sys.argv[4].split('/')[:-1])) scp_channel.send('C%s %d %s\n' %(oct(os.stat(sys.argv[3]).st_mode)[-4:], os.stat(sys.argv[3])[6], sys.argv[4].split('/')[-1])) scp_channel.sendall(f.read()) # Cleanup f.close() scp_channel.close() t.close() sock.close() </pre></ul> <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/000001.commentform.html">Comment</a> http://www.stillhq.com/python/paramiko/000001.html http://www.stillhq.com/python/paramiko/000001.html Robot Visions /book/Isaac_Asimov Wed, 03 Sep 2008 13:07:00 GMT This was a pretty short read -- in fact I read it on the bus into work this morning. That's mainly because there are only three short stories in this book which aren't covered in <a href="http://www.stillhq.com/book/Isaac_Asimov/Robot_Short_Stories.html">one of Asimov's other robot short story collections</a>. The three stories were good, but I am not sure they were worth owning the entire book for. <br/><br/><a href="http://www.librarything.com/catalog.php?view=mikal&searchall=1&deepsearch=0451450647&shelf=list">LibraryThing link for ISBN 0451450647</a> <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/Robot_Visions.commentform.html">Comment</a> http://www.stillhq.com/book/Isaac_Asimov/Robot_Visions.html http://www.stillhq.com/book/Isaac_Asimov/Robot_Visions.html The Belgariad /book/David_Eddings Tue, 02 Sep 2008 19:36:00 GMT The Belgariad is a fantasy series by David Eddings. There are five books in the series, although there is also a follow series called the Mallorean, as well as three tie in books. The series follows a small farm boy as he grows up, discovering along the way that his relatives are famous, he's important to the history of the world, and that he has to defeat an ancient evil. The five books in the main series are: <br/><br/> <table> <tr><td><b>Year</b></td><td><b>Title</b></td></tr> <tr bgcolor="#DDDDDD"><td>1982</td><td><a href="http://www.stillhq.com/book/David_Eddings/Pawn_of_Prophecy.html">Pawn of Prophecy</a></td></tr> <tr><td>1982</td><td><a href="http://www.stillhq.com/book/David_Eddings/Queen_of_Sorcery.html">Queen of Sorcery</a></td></tr> <tr bgcolor="#DDDDDD"><td>1983</td><td><a href="http://www.stillhq.com/book/David_Eddings/Magicians_Gambit.html">Magician's Gambit</a></td></tr> <tr><td>1984</td><td><a href="http://www.stillhq.com/book/David_Eddings/Castle_Of_Wizardry.html">Castle of Wizardry</a></td></tr> <tr bgcolor="#DDDDDD"><td>1984</td><td><a href="http://www.stillhq.com/book/David_Eddings/Enchanters_End_Game.html">Enchanters' End Game</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/Belgariad.commentform.html">Comment</a> http://www.stillhq.com/book/David_Eddings/Belgariad.html http://www.stillhq.com/book/David_Eddings/Belgariad.html Enchanters End Game /book/David_Eddings Tue, 02 Sep 2008 19:29:00 GMT This is the final book in the <a href="http://www.stillhq.com/book/David_Eddings/Belgariad.html">Belgariad</a>. Its a good one, although knowing there is another series involving these characters makes it feel a little less final to me. I enjoyed it though. <br/><br/><a href="http://www.librarything.com/catalog.php?view=mikal&searchall=1&deepsearch=0345338715&shelf=list">LibraryThing link for ISBN 0345338715</a> <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/Enchanters_End_Game.commentform.html">Comment</a> http://www.stillhq.com/book/David_Eddings/Enchanters_End_Game.html http://www.stillhq.com/book/David_Eddings/Enchanters_End_Game.html Chrome user agent /chrome Tue, 02 Sep 2008 13:24:00 GMT I am sure this will come in handy... The chrome user agent looks like this: <br/><br/> <ul> Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/525.13 (KHTML, like Gecko) Chrome/0.2.149.27 Safari/525.13 </ul> <br/><br/><i>Tags for this post: chrome(<a href="http://www.stillhq.com/chrome"><img src="http://www.stillhq.com/favicon.png" border="0" alt="S"></a>) </i> <br/><br/> <a href="http://www.stillhq.com/chrome/000001.commentform.html">Comment</a> http://www.stillhq.com/chrome/000001.html http://www.stillhq.com/chrome/000001.html Books read in August 2008 /book/read Sun, 31 Aug 2008 11:38:00 GMT <ul> <li><a href="http://www.stillhq.com/book/Harry_Harrison/Stainless_Steel_Visions.html">Stainless Steel Visions</a> <li><a href="http://www.stillhq.com/book/Isaac_Asimov/The_Rest_of_the_Robots.html">The Rest of the Robots</a> <li><a href="http://www.stillhq.com/book/Isaac_Asimov/The_Complete_Robot.html">The Complete Robot</a> <li><a href="http://www.stillhq.com/book/Harry_Harrison/The_Stainless_Steel_Rat_Wants_You.html">The Stainless Steel Rat Wants You</a> <li><a href="http://www.stillhq.com/book/Isaac_Asimov/Robot_Dreams.html">Robot Dreams</a> <li><a href="http://www.stillhq.com/book/Patrick_Tilley/Cloud_Warrior.html">Cloud Warrior</a> <li><a href="http://www.stillhq.com/book/David_Eddings/Pawn_of_Prophecy.html">Pawn of Prophecy</a> <li><a href="http://www.stillhq.com/book/Tod_Hoffman/The_Spy_Within.html">The Spy Within</a> <li><a href="http://www.stillhq.com/book/Patrick_Tilley/First_Family.html">First Family</a> <li><a href="http://www.stillhq.com/book/David_Eddings/Queen_of_Sorcery.html">Queen of Sorcery</a> <li><a href="http://www.stillhq.com/book/David_Eddings/Magicians_Gambit.html">Magician's Gambit</a> <li><a href="http://www.stillhq.com/book/David_Eddings/Castle_Of_Wizardry.html">Castle Of Wizardry</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/200808.commentform.html">Comment</a> http://www.stillhq.com/book/read/200808.html http://www.stillhq.com/book/read/200808.html TCP_DENIED/403 for cache accesses using squid /linux/squid Sun, 31 Aug 2008 10:21:00 GMT I just spent some time debugging why squid wouldn't work for localhost, but seemed to work for other clients on my network. To cut a long story short, Linux for some reason wasn't using 127.0.0.1 for traffic to localhost. It was instead using the public IP address for the machine, which didn't match either the localhost ACL or the local network ACL. I am sure there is some fancy reason that this is the case, but if you see this problem, then consider checking your localhost ACL. <br/><br/><i>Tags for this post: linux(<a href="http://www.stillhq.com/linux"><img src="http://www.stillhq.com/favicon.png" border="0" alt="S"></a>) squid(<a href="http://www.stillhq.com/squid"><img src="http://www.stillhq.com/favicon.png" border="0" alt="S"></a>) </i> <br/><br/> <a href="http://www.stillhq.com/linux/squid/000001.commentform.html">Comment</a> http://www.stillhq.com/linux/squid/000001.html http://www.stillhq.com/linux/squid/000001.html MythNetTV release 5 /mythtv/mythnettv Sat, 30 Aug 2008 15:11:00 GMT New things in this release: <br/><br/> <ul> <li>There is now a users mailing list at <a href="http://lists.stillhq.com/listinfo.cgi/mythnettv-stillhq.com">http://lists.stillhq.com/listinfo.cgi/mythnettv-stillhq.com</a> <li>Moved to a public SVN server at <a href="http://www.stillhq.com/mythtv/mythnettv/svn/">http://www.stillhq.com/mythtv/mythnettv/svn/</a> <li>Added the 'justone' syntax to the download command <li>Another try at using gflags. This means that all the command lines have changed slightly. <li>Moved the core of MythTV out of the user interface file. <li>Started writing unit tests <li>Changed user output code so that it doesn't insist on writing to stdout. You can now write to other file descriptors, which makes things like unit tests much easier to write. <li>Added video/msvideo to the enclosure whitelist <li>Added HTTP download progress information <li>Added a flag which turns off the prompts for markread (--noprompt) <li>Patches from Thomas Mashos <ul> <li>Search ~/.mythtv/mysql.txt, /usr/share/mythtv/mysql.txt and /etc/mythtv/mysql.txt in that order for MySQL connection information <li>A manpage <li>setup.py </ul> <li>video.py now has a simple command line interface to let you query it <li>Fix update of inactive programs bug per <a href="http://ubuntuforums.org/showpost.php?p=5580005&postcount=4">http://ubuntuforums.org/showpost.php?p=5580005&postcount=4</a> <li>Better DB error handling <li>Included a COPYING file with the right version of the GPL (it was missing before) <li>Fixed a bug where programs would be downloaded more than once (found with a unit test!) <li>Started raising exceptions instead of just sys.exit(1). This should make life easier for user interfaces in the future <li>Default to using storage groups for storing recordings before falling back to the RecordFilePrefix. This makes the behaviour: use a storage group named "MythNetTV" if it exists; use the default storage group if it exists; use the value of RecordFilePrefix. <li>Transcode avc1 videos, because some need it <li>Force ASCII encoding of title, subtitle, and all fields in the database to get around feeds which use unicode which python / MySQL can't store correctly <li>If there is only one attachment to an item, and its not in our whitelist of video formats, then warn the user that you're assuming its a video file and then add it to the todo list <li>Slight tweak to the signature of video.MythNetTvVideo.Transcode() <li>Fix buf in RepairMissingDates which caused it to consistently crash <li>Fix typo in date warning code <li>Better handling of videos where the length of the video cannot be determined by mplayer </ul> <br/><br/> Release 5 is by far the best tested release of MythNetTV yet, with both unit tests and several users working quite closely with me to resolve problems found in the wild. You can <a href="http://www.stillhq.com/mythtv/mythnettv/source/release-5/mythnettv-release-5.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/000012.commentform.html">Comment</a> http://www.stillhq.com/mythtv/mythnettv/000012.html http://www.stillhq.com/mythtv/mythnettv/000012.html Castle Of Wizardry /book/David_Eddings Fri, 29 Aug 2008 21:55:00 GMT This is book four in the <a href="http://www.stillhq.com/book/David_Eddings/Belgariad.html">Belgariad</a>, and was as good as the others. This one only took a day to read, but that was helped a lot by the two hours I spent commuting to and from San Francisco today. This book is a little different than the others because it starts just as the quest for the Orb ends. Yet it turns out that the overall prophecy that the Belgariad describes is still incomplete, so the story continues. <br/><br/><a href="http://www.librarything.com/catalog.php?view=mikal&searchall=1&deepsearch=0345300807&shelf=list">LibraryThing link for ISBN 0345300807</a> <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/Castle_Of_Wizardry.commentform.html">Comment</a> http://www.stillhq.com/book/David_Eddings/Castle_Of_Wizardry.html http://www.stillhq.com/book/David_Eddings/Castle_Of_Wizardry.html Magician's Gambit /book/David_Eddings Thu, 28 Aug 2008 16:40:00 GMT This is the third book in the <a href="http://www.stillhq.com/book/David_Eddings/Belgariad.html">Belgariad</a> (<a href="http://www.stillhq.com/book/David_Eddings/Pawn_of_Prophecy.html">Book 1</a> and <a href="http://www.stillhq.com/book/David_Eddings/Queen_of_Sorcery.html">Book 2</a>). This book like the others was an enjoyable quick and easy read. I am starting to rethink my comments about these books being good for young readers -- it just occurred to me that a lot of people die in these books. They're all bad guys, and the violence isn't all that graphic, but I guess it might worry some parents. <br/><br/><a href="http://www.librarything.com/catalog.php?view=mikal&searchall=1&deepsearch=0345335457&shelf=list">LibraryThing link for ISBN 0345335457</a> <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/Magicians_Gambit.commentform.html">Comment</a> http://www.stillhq.com/book/David_Eddings/Magicians_Gambit.html http://www.stillhq.com/book/David_Eddings/Magicians_Gambit.html Queen of Sorcery /book/David_Eddings Tue, 26 Aug 2008 19:10:00 GMT This is book two of the <a href="http://www.stillhq.com/book/David_Eddings/Belgariad.html">Belgariad</a> (following on from <a href="http://www.stillhq.com/book/David_Eddings/Pawn_of_Prophecy.html">Pawn of Prophecy</a>). This book was a good quick read, and I think they'd be a good mid level reading book for a child. I liked it. <br/><br/><a href="http://www.librarything.com/catalog.php?view=mikal&searchall=1&deepsearch=0345335651&shelf=list">LibraryThing link for ISBN 0345335651</a> <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/Queen_of_Sorcery.commentform.html">Comment</a> http://www.stillhq.com/book/David_Eddings/Queen_of_Sorcery.html http://www.stillhq.com/book/David_Eddings/Queen_of_Sorcery.html Open Source video creation /diary Tue, 26 Aug 2008 10:53:00 GMT For the upcoming <a href="http://www.stillhq.com/mythtv/mythnettv/">MythNetTV</a> release I am toying with the idea of asking the user if its ok to include a default subscription to an announcement video blog. This blog could be used to inform MythNetTV users of things like new releases, and important bug fixes if such things happen. <br/><br/> This raises the question -- if I wanted to mix creative commons licensed music with some still images (the announcements), what tool is the best to do that? Specifically open source tools please. <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/001096.commentform.html">Comment</a> http://www.stillhq.com/diary/001096.html http://www.stillhq.com/diary/001096.html First Family /book/Patrick_Tilley Mon, 25 Aug 2008 09:59:00 GMT I finished this book on the bus into work this morning (I had a pretty distracted weekend, and didn't get much reading done). This is the second book in the Amtrak Wars series, and takes place immediately after <a href="http://www.stillhq.com/book/Patrick_Tilley/Cloud_Warrior.html">Cloud Warrior</a>. The book feels like it is only half a book -- there is plot development such as learning more about Roz, meeting the First Family, and the Iron Masters, but there isn't much action. Basically I look back on the book and wonder what happened in it -- it would have been better to combine this with the next book and have a complete story in one. <br/><br/><a href="http://www.librarything.com/catalog.php?view=mikal&searchall=1&deepsearch=0671655671&shelf=list">LibraryThing link for ISBN 0671655671</a> <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>) Patrick_Tilley(<a href="http://www.stillhq.com/Patrick_Tilley"><img src="http://www.stillhq.com/favicon.png" border="0" alt="S"></a>) </i> <br/><br/> <a href="http://www.stillhq.com/book/Patrick_Tilley/First_Family.commentform.html">Comment</a> http://www.stillhq.com/book/Patrick_Tilley/First_Family.html http://www.stillhq.com/book/Patrick_Tilley/First_Family.html Please help me test trunk /mythtv/mythnettv Sun, 24 Aug 2008 14:42:00 GMT I'm preparing a new release of MythNetTV, and would like some help testing the code, as I have re-factored how the user interface works and there is some risk that I have broken things in the process. You can get the 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/> The biggest change is that the command line syntax has changed slightly -- the dashes have been removed from the commands. Therefore, to update your list of feeds, you now use: <br/><br/> <ul><pre> mythnettv update </pre></ul> <br/><br/> Instead of: <br/><br/> <ul><pre> mythnettv --update </pre></ul> <br/><br/> And so on. This was done so that I could add "real" flags, which are used to change default values like where the database configuration is read from, as well as what the default location for the temporary data directory is. <br/><br/> "Real" flags which are currently supported are: <br/><br/> <ul><pre> --datadirdefault: The default location of the data directory (default: 'data') --db_host: The name of the host the MySQL database is on, don't define if you want to parse ~/.mythtv/mysql.txt instead (default: '') --db_name: The name of the database which MythNetTV uses, don't define if you want to parse ~/.mythtv/mysql.txt instead (default: '') --db_password: The password for the database user, don't define if you want to parse ~/.mythtv/mysql.txt instead (default: '') --db_user: The name of the user to connect to the database with, don't define if you want to parse ~/.mythtv/mysql.txt instead (default: '') --[no]commflag: Run the mythcommflag command on new videos (default: 'true') </pre></ul> <br/><br/> (These are the result of adding the gflags module back into the implementation). <br/><br/> I am hoping to release this version in the next few days, so if you find any bugs please send email to the <a href="http://lists.stillhq.com/listinfo.cgi/mythnettv-stillhq.com">mailing list</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/000011.commentform.html">Comment</a> http://www.stillhq.com/mythtv/mythnettv/000011.html http://www.stillhq.com/mythtv/mythnettv/000011.html The Spy Within /book/Tod_Hoffman Thu, 21 Aug 2008 21:43:00 GMT <a href="http://www.librarything.com">LibraryThing</a>, of which I am a <a href="http://www.librarything.com/profile/mikal">member</a> runs a program where members are shipped early copies of books for free, with the preference for them writing a review when they're done reading the book. The books are shipped by the publisher directly to the reviewers. This isn't that uncommon in the publishing industry -- both of my books have experienced a similar process, although less formal. <br/><br/> (In fact, any very early review of a book on a site light amazon.com should be viewed with a little bit of caution I suppose. These people probably got their review copies for free from the publisher.) <br/><br/> LibraryThing's implementation is a little different though, mainly because of the scale at which they hand out books, and the fact that the publishers don't appear to get any direct say in who gets the books. That means that there is less incentive to write a positive review, and that more people get access to early copies of new books. You can see a list of the books LibraryThing is currently handing out <a href="http://www.librarything.com/er_list.php">here</a>. <br/><br/> <i>The Spy Within</i> is the true story of a senior CIA agent who turned out to also be a Chinese spy. Its the first book I've received through the early review program, so I am still learning the ropes and have sat on this book for a few weeks before actually reading it. <br/><br/> As I said earlier, this is the "true story" a senior Chinese spy within the CIA. However, it should be noted that large portions of the book are pure speculation -- inserted simply to make the story more readable. In addition, as with all such works, the book is based on a limited number of interviews, and is subject to the biases of those who provide source material. <br/><br/> This kind of book isn't really my thing, and I would read less one one non-fiction contemporary history book a year. However, I found this to be an engaging read, especially because the books manuscript flows much like a novel. However, the story simply wasn't that gripping (so, Larry Chin was a dick, I get it). Its hard for non-fiction to compete with fantasy for story lines I suppose. <br/><br/><a href="http://www.librarything.com/catalog.php?view=mikal&searchall=1&deepsearch=1586421484&shelf=list">LibraryThing link for ISBN 1586421484</a> <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>) Tod_Hoffman(<a href="http://www.stillhq.com/Tod_Hoffman"><img src="http://www.stillhq.com/favicon.png" border="0" alt="S"></a>) </i> <br/><br/> <a href="http://www.stillhq.com/book/Tod_Hoffman/The_Spy_Within.commentform.html">Comment</a> http://www.stillhq.com/book/Tod_Hoffman/The_Spy_Within.html http://www.stillhq.com/book/Tod_Hoffman/The_Spy_Within.html SIGCOMM 2008 /conference/sigcomm2008 Thu, 21 Aug 2008 15:48:00 GMT <a href="http://conferences.sigcomm.org/sigcomm/2008/program.php">SIGCOMM 2008</a> had about 600 people attend, and felt a little like one of the early AUUG conferences. One of the things I am learning as I get older is that I am having increasing trouble sitting in hard hotel meeting chairs all day -- my back just wont let me. Surprisingly, I find most university lecture theatre seats more comfortable. <br/><br/> Below is a summary of the talks I thought are particularly good. <br/><br/> <b><a href="http://conferences.sigcomm.org/sigcomm/2008/award.php">Don Towsley keynote</a></b> <br/><br/> Don Towsley is the winner of the 2008 ACM SIGCOMM Award. His talk wasn't really a paper, he instead spoke about the need for models when performing Internet measurement research. If you don't have a theoretical model, then you don't have a way of verifying that your samples from the Internet are valid or not. This is an interesting point I hadn't considered, and which affects my own research work. My new problem is I'm not really sure how to produce models which have meaning to my current SMTP survey project. Additionally, Don asserts that PhD candidates shouldn't attempt to implement new applications. Instead they should work on enabling new applications. This observation is based on many years of supervising PhD candidates and their relative success. <br/><br/> <b><a href="http://ccr.sigcomm.org/online/?q=node/384">A Case for Adapting Channel Width in Wireless Networks</a></b> <br/><br/> Microsoft Research -- WiFi cards use a fixed bandwidth of 20 MHz. Using this quite large bandwidth for idle connections consumes a lot of power. This research proposes varying the size of the channel depending on what needs to be transferred -- 5MHz for an idle connection, up to 40 MHz for an active transfer. This does require a protocol for both sides of the connection to agree on a channel width. Sample implementation using the Zune peer to peer song sharing protocol. <br/><br/> <b><a href="http://ccr.sigcomm.org/online/?q=node/387">Spamming Botnets: Signatures and Characteristics</a></b> <br/><br/> Microsoft Research -- using URL extraction and a regular expression generator to find spam emails from botnets. Extract URLs from emails, track by domain over time and note bursty arrivals of such URLs. Send the bursty ones to a regular expression generator, which is then generalized to exclude victim specific IDs as well as domains, and then filter based on that. An interesting talk. <br/><br/> <b><a href="http://ccr.sigcomm.org/online/?q=node/389">To Filter or to Authorize: Network-Layer DoS Defense Against Multimillion-node Botnets</a></b> <br/><br/> University of California, Irvine -- DoS flooding attacks are a serious problem. The number of sources can be huge, as well as the packet count and bandwidth consumed. There are currently two schools of though on DoS protections -- filtering (anyone can send, and then filters are added when an attack occurs), and capability based systems (senders request permission before sending, and then use proof of that permission in each packet they send). This paper compares the two approaches. <br/><br/> <b><a href="http://ccr.sigcomm.org/online/?q=node/393">BitTorrent is an Auction: Analyzing and Improving BitTorrent’s Incentives</a></b> <br/><br/> University of Maryland -- the amount of research that is being conducted into peer to peer protocols, especially BitTorrent, is really interesting. This paper presented an alternative algorithm for how to select which blocks to offer for upload in return for the highest possible download rates. Specifically, it reframes BitTorrent as an auction system, in which leechers should be bidding the lowest possible in order to be selected as a download partner. This is implemented in BitTyrant (http://bittyrant.cs.washington.edu/). The rest of the talk focuses on strategies for gaming BitTorrent based on this observation. Very interesting. Implemented in a client at <a href="http://www.cs.umd.edu/projects/propshare/">http://www.cs.umd.edu/projects/propshare/</a>. <br/><br/> <b><a href="http://ccr.sigcomm.org/online/?q=node/397">Network Discovery from Passive Measurements</a></b> <br/><br/> UW Madison -- the traditional approach to mapping the Internet is to use active measurements. This paper proposes a solution using passive measurements. The underlying problem is that you have data in the form (source IP, destination IP, number of hops) and from that you need to determine which hops are in common for any given pair of readings. <br/><br/> <b><a href="http://ccr.sigcomm.org/online/?q=node/403">Taming the Torrent: A Practical Approach to Reducing Cross-ISP Traffic in Peer-to-Peer Systems</a></b> <br/><br/> Northwestern University -- this paper proposes piggy backing on CDN networks in order to determine which peer to peer clients are nearly to a p2p leecher. The network routing overlays produced by these networks can be used to select peers which can provide downloads more efficiently. <br/><br/><i>Tags for this post: conference(<a href="http://www.stillhq.com/conference"><img src="http://www.stillhq.com/favicon.png" border="0" alt="S"></a>) sigcomm2008(<a href="http://www.stillhq.com/sigcomm2008"><img src="http://www.stillhq.com/favicon.png" border="0" alt="S"></a>) </i> <br/><br/> <a href="http://www.stillhq.com/conference/sigcomm2008/000001.commentform.html">Comment</a> http://www.stillhq.com/conference/sigcomm2008/000001.html http://www.stillhq.com/conference/sigcomm2008/000001.html Pawn of Prophecy /book/David_Eddings Tue, 19 Aug 2008 17:34:00 GMT The <a href="http://www.stillhq.com/book/David_Eddings/Belgariad.html">Belgariad</a> is a pretty formula fantasy epic, with striking similarities to things like stories of King Arthur. The series is written in a style which is very accessible to younger readers, which might explain why I loved these books as a kid. Its also a pretty "safe" story, in that nothing truly bad is allowed to happen to the main character, who is a child who grows up during the books. That might be why I loved these books so much as a child, and read them many times. <br/><br/> As an adult, this is a pretty easy read, and quite entertaining. I imagine its a lot like the Harry Potter series in its accessibility, although I haven't actually read Harry Potter as its not my kind of thing. <br/><br/> I quite like this book, and would recommend it to young readers interested in fantasy books. <br/><br/><a href="http://www.librarything.com/catalog.php?view=mikal&searchall=1&deepsearch=0552148075&shelf=list">LibraryThing link for ISBN 0552148075</a> <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/Pawn_of_Prophecy.commentform.html">Comment</a> http://www.stillhq.com/book/David_Eddings/Pawn_of_Prophecy.html http://www.stillhq.com/book/David_Eddings/Pawn_of_Prophecy.html Hotel Max /travel/usa/washington/seattle Tue, 19 Aug 2008 16:25:00 GMT When I was looking for a hotel to stay at for SIGCOMM 2008, I had trouble finding one in downtown Seattle which wasn't insanely expensive. In the end I picked <a href="http://www.hotelmaxseattle.com">Hotel Max</a> because it was only moderately expensive, instead of insane like the Grant Hyatt. The hotel is interesting because apparently it was quite run down until a few years ago when it was done up. Now every room has its own unique art, and the halls and lobby are filled with different bits of art as well. Very hip. <br/><br/> The room itself is quite small by American standards, which means its about the same size as the room that I stayed in while staying in London a few years ago. The shower and bathroom are literally cupboards off a corridor, but the bed is a full size queen. I'm not surprised about that given <a href="http://www.yelp.com/biz/hotel-max-seattle">the yelp.com reviews</a>. <br/><br/> Given all I do in hotels is sleep and work on my laptop, I like this place. If I had the kids with me I would go insane however. Also be careful to get a room that faces Stewart Street. Mine faces an alley and I can hear the binging noise from the streetcar until about 10pm, and the air conditioning plant from the building next door for a while after that. I still slept ok though, so I guess people turned all that stuff off at some point during the night. <br/><br/> <i>Update</i>: I was wrong. The binging isn't the street car, its instead the beeping thingie that all underground carparks seem to have here to warn pedestrians that there is a car about to enter the sidewalk. Its very annoying. <br/><br/><i>Tags for this post: travel(<a href="http://www.stillhq.com/travel"><img src="http://www.stillhq.com/favicon.png" border="0" alt="S"></a>) usa(<a href="http://www.stillhq.com/usa"><img src="http://www.stillhq.com/favicon.png" border="0" alt="S"></a>) washington(<a href="http://www.stillhq.com/washington"><img src="http://www.stillhq.com/favicon.png" border="0" alt="S"></a>) seattle(<a href="http://www.stillhq.com/seattle"><img src="http://www.stillhq.com/favicon.png" border="0" alt="S"></a>) </i> <br/><br/> <a href="http://www.stillhq.com/travel/usa/washington/seattle/000002.commentform.html">Comment</a> http://www.stillhq.com/travel/usa/washington/seattle/000002.html http://www.stillhq.com/travel/usa/washington/seattle/000002.html Cloud Warrior /book/Patrick_Tilley Mon, 18 Aug 2008 17:47:00 GMT I read this post-nuclear holocaust book as a kid and liked it, so I thought I'd give it a try again. Given most second hand science fiction books are $2, the barrier to entry is admittedly quite low as well. This book revolves around two groups -- the Amtrak Federation (a military society formed from survivors of those who crewed MX missile trains, <a href="http://query.nytimes.com/gst/fullpage.html?res=950DE1DF1530F933A05752C1A96F948260">a real system of roaming trains carrying nuclear missiles from the late 1980s and early 1990s</a> -- the idea was that something which moved was harder for the Russians to find) and the "Mutes" (the civilan survivors of the holocaust, who are now mutated by radiation). Its a good book, although very different from the Asimov I've been reading recently. That's a good thing, because I think I need a bit of an Asimov break to be honest. <br/><br/><a href="http://www.librarything.com/catalog.php?view=mikal&searchall=1&deepsearch=0671559729&shelf=list">LibraryThing link for ISBN 0671559729</a> <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>) Patrick_Tilley(<a href="http://www.stillhq.com/Patrick_Tilley"><img src="http://www.stillhq.com/favicon.png" border="0" alt="S"></a>) </i> <br/><br/> <a href="http://www.stillhq.com/book/Patrick_Tilley/Cloud_Warrior.commentform.html">Comment</a> http://www.stillhq.com/book/Patrick_Tilley/Cloud_Warrior.html http://www.stillhq.com/book/Patrick_Tilley/Cloud_Warrior.html