<?xml version="1.0"?>
<rss version="2.0.">
  <channel>
    <title>Advogato blog for mikal</title>
    <link>http://www.advogato.org/person/mikal/</link>
    <description>Advogato blog for mikal</description>
    <language>en-us</language>
    <generator>mod_virgule</generator>
    <pubDate>Fri, 9 May 2008 21:28:11 GMT</pubDate>
    <item>
      <pubDate>Wed, 7 May 2008 18:05:15 GMT</pubDate>
      <title>Blathering for Wednesday, 07 May 2008</title>
      <link>http://www.advogato.org/person/mikal/diary.html?start=325</link>
      <guid>http://www.stillhq.com/blather/20080507.html</guid>
      <description>&lt;b&gt;09:16&lt;/b&gt;: &lt;a href="http://www.sfgate.com/cgi-bin/article.cgi?f=/c/a/2008/05/07/BAPO10HQF4.DTL&amp;feed=rss.news" &gt;$10 theft cost a $250,000 spill cleanup&lt;/a&gt;&lt;br/&gt;
&lt;b&gt;09:16&lt;/b&gt;: " The 3,500-gallon spill of a toxic chemical into San Pablo Bay over the weekend cost an estimated $250,000 to clean up - and it was all for a lousy $10 worth of brass. The thieves who caused the spill of the chemical toluene at Reaction Products in Richmond were after the valves on holding tanks - the latest example of a crime wave involving barely precious metals that yield a few dollars at the recycling yard but can cost taxpayers big bucks."&lt;br/&gt;
&lt;b&gt;09:57&lt;/b&gt;: &lt;a href="http://online.wsj.com/article/SB120995103004666569.html?mod=opinion_main_commentaries" &gt;Professor sues own students&lt;/a&gt;&lt;br/&gt;
&lt;b&gt;09:58&lt;/b&gt;: "Priya Venkatesan taught English at Dartmouth College. She maintains that some of her students were so unreceptive of "French narrative theory" that it amounted to a hostile working environment. She is also readying lawsuits against her superiors, who she says papered over the harassment, as well as a confessional expose, which she promises will "name names.""&lt;br/&gt;
&lt;b&gt;09:58&lt;/b&gt;: ... I guess that's one way of retaining control in the classroom&lt;br/&gt;

&lt;br/&gt;&lt;br/&gt;&lt;i&gt;Tags for this post: blather(&lt;a href="http://www.stillhq.com/blather" &gt;&lt;img src="http://www.stillhq.com/favicon.png" border="0" alt="S"&gt;&lt;/a&gt;) &lt;/i&gt;        
    &lt;br/&gt;&lt;br/&gt;
    &lt;a href="http://www.stillhq.com/blather/20080507.commentform.html" &gt;Comment on this post&lt;/a&gt;
  </description>
    </item>
    <item>
      <pubDate>Wed, 7 May 2008 03:03:38 GMT</pubDate>
      <title>The Complete Hammer's Slammers Volume 1 and 2</title>
      <link>http://www.advogato.org/person/mikal/diary.html?start=324</link>
      <guid>http://www.stillhq.com/book/David_Drake/The_Complete_Hammers_Slammers_Volume_1_and_2.html</guid>
      <description>It occurred to me over the weekend that it was odd that I was updating books I had recently read on a book site like &lt;a href="http://www.goodreads.com" &gt;goodreads&lt;/a&gt;, given that all I'm doing by entering data on their site is blogging someplace that not even I remember to read. I'm therefore going to move all of that stuff over to here, and then try to remember to blog about books I've read recently in the future. Don't worry though, I don't get much time to read in between work, study and kids, so it wont be too many posts.

&lt;br/&gt;&lt;br/&gt;

Dad got me these books for my birthday last year, and they were awesome. The books are about a future tank squadron which takes on mercenary jobs, none of which ever seem to be clean or simple. Along the way you end up learning that they're all just misfits who haven't managed to find any other job which is a better fit for them. Worse than that, I'm left with the impression that in the back of their minds they all realize that they're running on borrowed time. David Drake has a unique position to comment on what its like to fight in a war, given he is a Vietnam veteran. These stories are fantastic science fiction, and often leave you with a realization that war often isn't simple, or fair. I first encountered David's writing when I was a kid reading a remaindered anthology called "Battlefields Beyond Tomorrow", which was a collection of short war science fiction stories. Luckily for me 15 or so years after I first encountered them I still think they are great stories. These books are highly recommended.

[isbn: 189238969X]
[isbn: 1892389738]

&lt;br/&gt;&lt;br/&gt;&lt;i&gt;Tags for this post: book(&lt;a href="http://www.stillhq.com/book" &gt;&lt;img src="http://www.stillhq.com/favicon.png" border="0" alt="S"&gt;&lt;/a&gt;)  David_Drake(&lt;a href="http://www.stillhq.com/David_Drake" &gt;&lt;img src="http://www.stillhq.com/favicon.png" border="0" alt="S"&gt;&lt;/a&gt;) &lt;/i&gt;        
    &lt;br/&gt;&lt;br/&gt;
    &lt;a href="http://www.stillhq.com/book/David_Drake/The_Complete_Hammers_Slammers_Volume_1_and_2.commentform.html" &gt;Comment on this post&lt;/a&gt;
  </description>
    </item>
    <item>
      <pubDate>Wed, 7 May 2008 03:03:38 GMT</pubDate>
      <title>A Stainless Steel Rat is Born</title>
      <link>http://www.advogato.org/person/mikal/diary.html?start=323</link>
      <guid>http://www.stillhq.com/book/Harry_Harrison/A_Stainless_Steel_Rat_is_born.html</guid>
      <description>This was another book I read as a kid and had fond memories of. When I found it at Powell's books for under $4 I just had to pick it up. Harrison seems to focus on "pulp science fiction" -- all of the stuff I have seen from him has been short and easy reading, as is the case with this book. What do you do if you're stuck on a farming planet, smart, and bored out of your brain? Apparently the answer is to turn to a life of crime for entertainment. That's what James DeGriz does, and he is a great anti-hero while he's at it. Great book.

[isbn: 0553279424]

&lt;br/&gt;&lt;br/&gt;&lt;i&gt;Tags for this post: book(&lt;a href="http://www.stillhq.com/book" &gt;&lt;img src="http://www.stillhq.com/favicon.png" border="0" alt="S"&gt;&lt;/a&gt;)  Harry_Harrison(&lt;a href="http://www.stillhq.com/Harry_Harrison" &gt;&lt;img src="http://www.stillhq.com/favicon.png" border="0" alt="S"&gt;&lt;/a&gt;) &lt;/i&gt;        
    &lt;br/&gt;&lt;br/&gt;
    &lt;a href="http://www.stillhq.com/book/Harry_Harrison/A_Stainless_Steel_Rat_is_born.commentform.html" &gt;Comment on this post&lt;/a&gt;
  </description>
    </item>
    <item>
      <pubDate>Tue, 6 May 2008 23:04:55 GMT</pubDate>
      <title>Estimating the progress of queries on MySQL</title>
      <link>http://www.advogato.org/person/mikal/diary.html?start=322</link>
      <guid>http://www.stillhq.com/mysql/000011.html</guid>
      <description>I've been doing a lot of batch updates on one of my databases at home recently. &lt;i&gt;show processlist&lt;/i&gt; says something like this:

&lt;br/&gt;&lt;br/&gt;

&lt;pre&gt;
mysql&gt; show processlist;
+-------+------+---------------+--------------+---------+-------+----------+------------------------------------------+
| Id    | User | Host          | db           | Command | Time  | State    | Info                                     |
+-------+------+---------------+--------------+---------+-------+----------+------------------------------------------|
| 18354 | root | maui:37403    | smtp_servers | Query   | 57234 | Updating | update ips_218 set reverse_lookup = null |
| 22286 | root | maui:37348    | smtp_servers | Query   | 38103 | Updating | update ips_80 set reverse_lookup = null, |
| 22851 | root | maui:54982    | smtp_servers | Query   | 34091 | Updating | update ips_19 set reverse_lookup = null, | 
| 23351 | root | molokai:58232 | smtp_servers | Sleep   |    57 |          | NULL                                     |
| 23496 | root | maui:40923    | smtp_servers | Query   | 29973 | Updating | update ips_62 set reverse_lookup = null, |
| 23906 | root | maui:38068    | smtp_servers | Query   | 26794 | Updating | update ips_83 set reverse_lookup = null, |
| 25675 | root | maui:56438    | smtp_servers | Query   | 12505 | Updating | update ips_82 set reverse_lookup = null, |
| 25846 | root | maui:41334    | smtp_servers | Query   | 10948 | Updating | update ips_90 set reverse_lookup = null, |
| 26437 | root | maui:41139    | smtp_servers | Query   |  6211 | Updating | update ips_66 set reverse_lookup = null, |
| 26773 | root | maui:32885    | smtp_servers | Query   |  3526 | Updating | update ips_76 set reverse_lookup = null, |
| 27073 | root | maui:42607    | smtp_servers | Query   |  1148 | Updating | update ips_11 set reverse_lookup = null, |
| 27202 | root | molokai:50688 | smtp_servers | Query   |     0 | NULL     | show processlist                         |
| 27203 | root | molokai:50689 | smtp_servers | Sleep   |     2 |          | NULL                                     |
+-------+------+---------------+--------------+---------+-------+----------+------------------------------------------+
14 rows in set (0.20 sec)
&lt;/pre&gt;

&lt;br/&gt;&lt;br/&gt;

Now, wouldn't it be nice if MySQL provided some extra information about the progress of those queries? Like for example the number of rows which have been updated so far, or an estimate of how long the query has left to run? I'm ok with such queries not being very accurate, but I assume the storage engine has to have some idea of how many rows are in the table and how many it has touched already.

&lt;br/&gt;&lt;br/&gt;

Perhaps something like this already exists and I haven't noticed? I'm using innodb if that matters.

&lt;br/&gt;&lt;br/&gt;

&lt;i&gt;Update&lt;/i&gt;: it seems like innodb can answer this question for me:

&lt;br/&gt;&lt;br/&gt;

&lt;pre&gt;
mysql&gt; show engine innodb status \G;
...
---TRANSACTION 0 40056, ACTIVE 39794 sec, process no 22984, OS thread id 3020733328 waiting in InnoDB queue
mysql tables in use 1, locked 1
6672 lock struct(s), heap size 748864, undo log entries 909825
MySQL thread id 22851, query id 351217 maui 192.168.1.93 root Updating
update ips_19 set reverse_lookup = null, reverse = null, reverse_extracted
...
&lt;/pre&gt;

&lt;br/&gt;&lt;br/&gt;

That doesn't give you an estimate of percentage complete though. I assume there is a 1:1 correlation between undo row entries and rows altered by the query?

&lt;br/&gt;&lt;br/&gt;&lt;i&gt;Tags for this post: mysql(&lt;a href="http://www.stillhq.com/mysql" &gt;&lt;img src="http://www.stillhq.com/favicon.png" border="0" alt="S"&gt;&lt;/a&gt;) &lt;/i&gt;        
    &lt;br/&gt;&lt;br/&gt;
    &lt;a href="http://www.stillhq.com/mysql/000011.commentform.html" &gt;Comment on this post&lt;/a&gt;
  </description>
    </item>
    <item>
      <pubDate>Tue, 6 May 2008 21:05:45 GMT</pubDate>
      <title>Blathering for Tuesday, 06 May 2008</title>
      <link>http://www.advogato.org/person/mikal/diary.html?start=321</link>
      <guid>http://www.stillhq.com/blather/20080506.html</guid>
      <description>&lt;b&gt;12:57&lt;/b&gt;: &lt;a href="http://www.craigslist.org/about/best/cle/628259611.html" &gt;I am RICH and I want to spend it on YOU tonight&lt;/a&gt;&lt;br/&gt;
&lt;b&gt;12:57&lt;/b&gt;: "I am so rich. Goodness, gracious. My, my, my. I am so, very, very wealthy. How many dollars do I have? That's a question only my team of ten fat accountants can answer, because they have golden calculators which I bought for them with my money. And what is on those golden calculators? Numbers. And those numbers equal the dollars in my bank accounts, which are huge... In my vehicles I have stored many bottles of rare, delicious wines. These wines are hundreds of years old and covered in dust and cobwebs, which means that they are the most delicious kind, and that they were grown from grapes which were so succulent and juicy that the poor grape-pickers of France wanted to eat them right then and there. But they were whipped, by my shift-leader vintner, who makes sure that the best grapes in my vineyard go only into the wine. That's right, my great grandfather, who was also rich, owned the vineyard where this wine was made. And it's really strong too, it can get you wasted quickly."&lt;br/&gt;
&lt;b&gt;12:57&lt;/b&gt;: (And so much more)&lt;br/&gt;
&lt;b&gt;14:37&lt;/b&gt;: Why is it that all ecommerce sites in Australia are terrible? Take for example Canberra Sand and Gravel. I want a quote on some sleepers, so off to &lt;a href="http://users.tpg.com.au/csgfysh/products.html" &gt;http://users.tpg.com.au/csgfysh/products.html&lt;/a&gt;. There they have a list of the products they sell, &lt;i&gt;but not the prices&lt;/i&gt;. So now I know what a sleeper looks like (in case I've never been in the outside world before I suppose), but still have no idea what they cost. Thanks guys.&lt;br/&gt;

&lt;br/&gt;&lt;br/&gt;&lt;i&gt;Tags for this post: blather(&lt;a href="http://www.stillhq.com/blather" &gt;&lt;img src="http://www.stillhq.com/favicon.png" border="0" alt="S"&gt;&lt;/a&gt;) &lt;/i&gt;        
    &lt;br/&gt;&lt;br/&gt;
    &lt;a href="http://www.stillhq.com/blather/20080506.commentform.html" &gt;Comment on this post&lt;/a&gt;
  </description>
    </item>
    <item>
      <pubDate>Mon, 5 May 2008 18:04:02 GMT</pubDate>
      <title>Blathering for Monday, 05 May 2008</title>
      <link>http://www.advogato.org/person/mikal/diary.html?start=320</link>
      <guid>http://www.stillhq.com/blather/20080505.html</guid>
      <description>&lt;b&gt;09:42&lt;/b&gt;: &lt;a href="http://feeds.feedburner.com/~r/boingboing/gadgets/~3/284028819/chargeback-database.html" &gt;Some merchants are contributing to a database of people who have used chargebacks when a transaction is disputed&lt;/a&gt;&lt;br/&gt;
&lt;b&gt;09:42&lt;/b&gt;: "The idea that merchants maintain and share such a thing, adding to it any customer who asserts this consumer right regardless of whether the complaint is merited or not, is deliciously unscrupulous. Curious, I googled the phrase. There are a number of online businesses that threaten to add you to this mysterious chargeback database  but who will happily remove you from it if you pay a cash penalty."&lt;br/&gt;
&lt;b&gt;09:43&lt;/b&gt;: ... So, if you're unhappy with a vendor and issue a charge back, they punish you. Lovely.&lt;br/&gt;
&lt;b&gt;16:56&lt;/b&gt;: &lt;a href="http://spamlinks.net/filter-dnsbl-lists.htm" &gt;This is a nice list of spam blacklists&lt;/a&gt;, which might come in handy one day&lt;br/&gt;

&lt;br/&gt;&lt;br/&gt;&lt;i&gt;Tags for this post: blather(&lt;a href="http://www.stillhq.com/blather" &gt;&lt;img src="http://www.stillhq.com/favicon.png" border="0" alt="S"&gt;&lt;/a&gt;) &lt;/i&gt;        
    &lt;br/&gt;&lt;br/&gt;
    &lt;a href="http://www.stillhq.com/blather/20080505.commentform.html" &gt;Comment on this post&lt;/a&gt;
  </description>
    </item>
    <item>
      <pubDate>Sat, 3 May 2008 19:09:03 GMT</pubDate>
      <title>A ssh quickie</title>
      <link>http://www.advogato.org/person/mikal/diary.html?start=319</link>
      <guid>http://www.stillhq.com/linux/000053.html</guid>
      <description>I tend to have lots of ssh tunnels running with port forwarding on my laptop. The problem with that is that there are of course different host keys for localhost then. That makes me sad. Luckily, the following config option disables host key checking for localhost:

&lt;br/&gt;&lt;br/&gt;

&lt;pre&gt;
$ cat /home/mikal/.ssh/config 
NoHostAuthenticationForLocalhost yes
&lt;/pre&gt;

&lt;br/&gt;&lt;br/&gt;

Too easy.

&lt;br/&gt;&lt;br/&gt;&lt;i&gt;Tags for this post: linux(&lt;a href="http://www.stillhq.com/linux" &gt;&lt;img src="http://www.stillhq.com/favicon.png" border="0" alt="S"&gt;&lt;/a&gt;) &lt;/i&gt;        
    &lt;br/&gt;&lt;br/&gt;
    &lt;a href="http://www.stillhq.com/linux/000053.commentform.html" &gt;Comment on this post&lt;/a&gt;
  </description>
    </item>
    <item>
      <pubDate>Fri, 2 May 2008 03:04:35 GMT</pubDate>
      <title>Blathering for Thursday, 01 May 2008</title>
      <link>http://www.advogato.org/person/mikal/diary.html?start=318</link>
      <guid>http://www.stillhq.com/blather/20080501.html</guid>
      <description>&lt;b&gt;18:04&lt;/b&gt;: &lt;a href="http://feeds.gawker.com/~r/consumerist/full/~3/281698907/mazda-to-destroy-100-million-worth-of-brand-new-cars" &gt;Mazda To Destroy $100 Million Worth Of Brand New Cars&lt;/a&gt;&lt;br/&gt;
&lt;b&gt;18:05&lt;/b&gt;: "The Wall Street Journal says that Mazda had lots of potential buyers. Movie studios wanted to use them as stunt cars. High schools wanted them for auto shop classes. In the end, Mazda decided to destroy them. All of them. Mazda turned everyone away. It worried about getting sued someday if, say, an air-bag failed to fire properly due to overexposure to salty sea air."&lt;br/&gt;
&lt;b&gt;18:05&lt;/b&gt;: &lt;a href="http://www.dallasnews.com/sharedcontent/dws/dn/latestnews/stories/050108dnmetbillion.b623795f.html" &gt;Man accused of trying to cash check for $360,000,000,000&lt;/a&gt;&lt;br/&gt;
&lt;b&gt;18:08&lt;/b&gt;: " A man has been accused of attempting to pass a $360 billion check, which he claims was given to him by his girlfriends mother to start a record business, Fort Worth police said."&lt;br/&gt;
&lt;b&gt;20:16&lt;/b&gt;: &lt;a href="http://wiki.eeeuser.com/getting_ubuntu_8.04_to_work_perfectly" &gt;How to setup Ubuntu Hardy Herron on an awesome pink eee pc&lt;/a&gt;&lt;br/&gt;

&lt;br/&gt;&lt;br/&gt;&lt;i&gt;Tags for this post: blather(&lt;a href="http://www.stillhq.com/blather" &gt;&lt;img src="http://www.stillhq.com/favicon.png" border="0" alt="S"&gt;&lt;/a&gt;) &lt;/i&gt;        
    &lt;br/&gt;&lt;br/&gt;
    &lt;a href="http://www.stillhq.com/blather/20080501.commentform.html" &gt;Comment on this post&lt;/a&gt;
  </description>
    </item>
    <item>
      <pubDate>Fri, 2 May 2008 00:04:41 GMT</pubDate>
      <title>What packages are taking all my disk?</title>
      <link>http://www.advogato.org/person/mikal/diary.html?start=317</link>
      <guid>http://www.stillhq.com/linux/ubuntu/000006.html</guid>
      <description>I'm using Ubuntu here, but this would work on any Debian based distribution... I want to find out what packages are sucking up all the disk on my new laptop. So, I run:

&lt;br/&gt;&lt;br/&gt;

&lt;pre&gt;
mikal@mikal-eee:~$ dpkg-query -W --showformat='${Installed-Size} ${Package}\n' | sort -n
&lt;/pre&gt;

&lt;br/&gt;&lt;br/&gt;

Which will give you a list of packages sorted by size when installed. In my case, removing evolution and open office ill make a big difference to my free disk space.

&lt;br/&gt;&lt;br/&gt;&lt;i&gt;Tags for this post: linux(&lt;a href="http://www.stillhq.com/linux" &gt;&lt;img src="http://www.stillhq.com/favicon.png" border="0" alt="S"&gt;&lt;/a&gt;)  ubuntu(&lt;a href="http://www.stillhq.com/ubuntu" &gt;&lt;img src="http://www.stillhq.com/favicon.png" border="0" alt="S"&gt;&lt;/a&gt;) &lt;/i&gt;        
    &lt;br/&gt;&lt;br/&gt;
    &lt;a href="http://www.stillhq.com/linux/ubuntu/000006.commentform.html" &gt;Comment on this post&lt;/a&gt;
  </description>
    </item>
    <item>
      <pubDate>Wed, 30 Apr 2008 17:04:55 GMT</pubDate>
      <title>Blathering for Wednesday, 30 April 2008</title>
      <link>http://www.advogato.org/person/mikal/diary.html?start=316</link>
      <guid>http://www.stillhq.com/blather/20080430.html</guid>
      <description>&lt;b&gt;08:06&lt;/b&gt;: &lt;a href="http://evakitty.evaair.com/" &gt;Awesome. Hello Kitty airlines&lt;/a&gt;! Via &lt;a href="http://blogs.msdn.com/oldnewthing/archive/2008/04/30/8440202.aspx" &gt;the old new thing&lt;/a&gt;.&lt;br/&gt;
&lt;b&gt;14:13&lt;/b&gt;: Work just got me an engraved pink Asus Eee PC! Awesome!&lt;br/&gt;
&lt;b&gt;14:39&lt;/b&gt;: &lt;a href="http://joelapenna.com/blog/2008/04/pink-eeek_30" &gt;&lt;img src="http://joelapenna.com/blog/uploaded_images/pink3-727001-727029.jpg"&gt;&lt;/a&gt;&lt;br/&gt;

&lt;br/&gt;&lt;br/&gt;&lt;i&gt;Tags for this post: blather(&lt;a href="http://www.stillhq.com/blather" &gt;&lt;img src="http://www.stillhq.com/favicon.png" border="0" alt="S"&gt;&lt;/a&gt;) &lt;/i&gt;        
    &lt;br/&gt;&lt;br/&gt;
    &lt;a href="http://www.stillhq.com/blather/20080430.commentform.html" &gt;Comment on this post&lt;/a&gt;
  </description>
    </item>
  </channel>
</rss>
