<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-1286475992168261676</id><updated>2018-10-05T17:55:41.637+10:00</updated><category term="programming"/><category term="rant"/><category term="cleanfeed"/><category term="politics"/><category term="python"/><category term="movies"/><category term="opensource"/><category term="parenting"/><category term="win32"/><category term="windows"/><category term="ai"/><category term="betrayed by elmo"/><category term="books"/><category term="comics"/><category term="delphi"/><category term="disposable"/><category term="funny"/><category term="games"/><category term="heuristic errors"/><category term="procrastination"/><category term="stupid_c_tricks"/><category term="testing"/><category term="wine"/><category term="zombies"/><title type='text'>Plastic Cups</title><subtitle type='html'>...the way nature intended it to be</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://blog.otherchirps.net/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1286475992168261676/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://blog.otherchirps.net/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/1286475992168261676/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>otherchirps</name><uri>http://www.blogger.com/profile/14004343695694930803</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://1.bp.blogspot.com/_aEyDjCywtFY/S2a0slGWndI/AAAAAAAABl0/dMnHtJHvn10/s1600-R/61aad7aa6e8cff40e22f420015d5aee9.png'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>32</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-1286475992168261676.post-6057359247423077290</id><published>2012-09-11T22:48:00.000+10:00</published><updated>2012-09-11T22:48:03.541+10:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="programming"/><category scheme="http://www.blogger.com/atom/ns#" term="windows"/><title type='text'>Foxpro ODBC goose chase</title><content type='html'>          &lt;style type=&quot;text/css&quot;&gt; &lt;!--   @page { size: 8.5in 11in; margin: 0.79in }   P { margin-bottom: 0.08in }  --&gt; &lt;/style&gt;  &lt;br /&gt;&lt;div class=&quot;western&quot; style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;text-decoration: none;&quot;&gt;&lt;span style=&quot;font-family: Arial;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-style: normal;&quot;&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;&lt;span style=&quot;background: transparent;&quot;&gt;Recently I’ve needed to integrate a Sybiz dataset into a web application. &amp;nbsp;The new application was replacing a legacy Access application, which had a view of the Sybiz data via a ODBC-backed table.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;text-decoration: none;&quot;&gt;&lt;span style=&quot;font-family: Arial;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-style: normal;&quot;&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;&lt;span style=&quot;background: transparent;&quot;&gt;On the client’s system, the ODBC link in question, was a Visual Foxpro ODBC driver. &amp;nbsp;A little googling supports the guess that Sybiz (or at least this version anyway) was built on top of Visual Foxpro.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;text-decoration: none;&quot;&gt;&lt;span style=&quot;font-family: Arial;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-style: normal;&quot;&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;&lt;span style=&quot;background: transparent;&quot;&gt;Cool!  Should be simple to set up a matching development environment, right? &amp;nbsp;Those old foxpro ODBC drivers have been bundled as part of windows for donkeys-years. &amp;nbsp;Here we go, I’ll fire up a Windows XP machine (again... matching environment), and create a ODBC system DSN to the sample sybiz dataset I was given:&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;western&quot; style=&quot;margin-bottom: 0in;&quot;&gt;&lt;/div&gt;&lt;div class=&quot;western&quot; style=&quot;margin-bottom: 0in;&quot;&gt;&lt;/div&gt;&lt;div class=&quot;western&quot; style=&quot;margin-bottom: 0in;&quot;&gt;&lt;/div&gt;&lt;div class=&quot;western&quot; style=&quot;margin-bottom: 0in;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://4.bp.blogspot.com/-aCCkgAac2kg/UE8t4mVWV9I/AAAAAAAABxk/VzU_uIwSs8Y/s1600/add_vfp_odbc.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;300&quot; src=&quot;http://4.bp.blogspot.com/-aCCkgAac2kg/UE8t4mVWV9I/AAAAAAAABxk/VzU_uIwSs8Y/s400/add_vfp_odbc.PNG&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;western&quot; style=&quot;margin-bottom: 0in;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;western&quot; style=&quot;margin-bottom: 0in;&quot;&gt;&lt;/div&gt;&lt;div class=&quot;western&quot; style=&quot;margin-bottom: 0in;&quot;&gt;&lt;/div&gt;&lt;div class=&quot;western&quot; style=&quot;margin-bottom: 0in;&quot;&gt;&lt;/div&gt;&lt;div class=&quot;western&quot; style=&quot;margin-bottom: 0in;&quot;&gt;&lt;/div&gt;&lt;div class=&quot;western&quot; style=&quot;margin-bottom: 0in;&quot;&gt;&lt;/div&gt;&lt;div class=&quot;western&quot; style=&quot;margin-bottom: 0in;&quot;&gt;&lt;/div&gt;&lt;div class=&quot;western&quot; style=&quot;margin-bottom: 0in;&quot;&gt;&lt;/div&gt;&lt;div class=&quot;western&quot; style=&quot;margin-bottom: 0in;&quot;&gt;&lt;/div&gt;&lt;div class=&quot;western&quot; style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;text-decoration: none;&quot;&gt;&lt;span style=&quot;font-family: Arial;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-style: normal;&quot;&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;&lt;span style=&quot;background: transparent;&quot;&gt;There we go, I can see the “Microsoft FoxPro VFP Driver (*.dbf)” option in the list.  This is what the target system, with Sybiz installed, was using. Development environment, here we come!&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;western&quot; style=&quot;margin-bottom: 0in;&quot;&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://1.bp.blogspot.com/-Wnge4LBKvfA/UE8uKVbXsZI/AAAAAAAABxs/i16T_wzY8yg/s1600/add_vfp_odbc_fail_1.PNG&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;http://1.bp.blogspot.com/-Wnge4LBKvfA/UE8uKVbXsZI/AAAAAAAABxs/i16T_wzY8yg/s1600/add_vfp_odbc_fail_1.PNG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;western&quot; style=&quot;margin-bottom: 0in;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;western&quot; style=&quot;margin-bottom: 0in;&quot;&gt;&lt;/div&gt;&lt;div class=&quot;western&quot; style=&quot;margin-bottom: 0in;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;western&quot; style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;text-decoration: none;&quot;&gt;&lt;span style=&quot;font-family: Arial;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-style: normal;&quot;&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;&lt;span style=&quot;background: transparent;&quot;&gt;Nope. It&#39;s a stub. “You must install the current version of the Visual FoxPro ODBC Driver.” At least it spells out where to fetch the real driver.  I try to go to the link given in the error, http://msdn.microsoft.com/vfoxpro/downloads.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;western&quot; style=&quot;margin-bottom: 0in;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;western&quot; style=&quot;margin-bottom: 0in;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://2.bp.blogspot.com/-mKbkLk0bw1o/UE8u0J_JPvI/AAAAAAAABx0/QNaBL8oyyd8/s1600/msdn_download_deadlink.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;300&quot; src=&quot;http://2.bp.blogspot.com/-mKbkLk0bw1o/UE8u0J_JPvI/AAAAAAAABx0/QNaBL8oyyd8/s400/msdn_download_deadlink.PNG&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;western&quot; style=&quot;margin-bottom: 0in;&quot;&gt;&lt;br /&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;text-decoration: none;&quot;&gt;&lt;span style=&quot;font-family: Arial;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-style: normal;&quot;&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;&lt;span style=&quot;background: transparent;&quot;&gt;Arg! Some Geo-IP action going on, redirected me to the en-au site, so I couldn&#39;t reach the given link exactly.  Still, there was an option to search the worldwide MSDN site. So I tried that.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;text-decoration: none;&quot;&gt;&lt;span style=&quot;font-family: Arial;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-style: normal;&quot;&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;&lt;span style=&quot;background: transparent;&quot;&gt;Success! Found the Visual FoxPro downloads. Off I went hunting for mentions of the ODBC Driver. There was one: &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;western&quot; style=&quot;margin-bottom: 0in;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://1.bp.blogspot.com/-HUEfyN-Tc1g/UE8u2SK4p9I/AAAAAAAABx8/oiILoBm7MiI/s1600/msdn_download_deadlink_2.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;http://1.bp.blogspot.com/-HUEfyN-Tc1g/UE8u2SK4p9I/AAAAAAAABx8/oiILoBm7MiI/s1600/msdn_download_deadlink_2.PNG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;western&quot; style=&quot;margin-bottom: 0in;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;western&quot; style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;text-decoration: none;&quot;&gt;&lt;span style=&quot;font-family: Arial;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-style: normal;&quot;&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;&lt;span style=&quot;background: transparent;&quot;&gt;Uh oh.  This wasn&#39;t looking good.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;western&quot; style=&quot;margin-bottom: 0in;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;western&quot; style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;text-decoration: none;&quot;&gt;&lt;span style=&quot;font-family: Arial;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-style: normal;&quot;&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;&lt;span style=&quot;background: transparent;&quot;&gt;There&#39;s a “more information” link, so I gave that a whirl.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;blockquote class=&quot;tr_bq&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;text-decoration: none;&quot;&gt;&lt;span style=&quot;font-family: Arial;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-style: normal;&quot;&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;&lt;span style=&quot;background: transparent;&quot;&gt;&quot;The FoxPro ODBC driver is in maintenance mode only. No further updates to this product are planned, unless they are designed to specifically address a problem identified to have a wide impact on its users.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;text-decoration: none;&quot;&gt;&lt;span style=&quot;font-family: Arial;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-style: normal;&quot;&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;&lt;span style=&quot;background: transparent;&quot;&gt;The OLE DB provider for Visual FoxPro (&quot;the provider&quot;) is the recommended replacement for the FoxPro ODBC driver. The provider began shipping with VFP 7.0. The most recent version of the provider is available for download from the Microsoft Developer Network (MSDN) Web site and can be distributed as part of your solutions as outlined in the included EULA.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;text-decoration: none;&quot;&gt;&lt;span style=&quot;font-family: Arial;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-style: normal;&quot;&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;&lt;span style=&quot;background: transparent;&quot;&gt;All versions of Microsoft Windows 2000 and Microsoft Windows Millennium Editionshipped with MDAC version 2.5 preinstalled. Therefore, the most recent VFP ODBC driver is already included in these operating systems. This driver is not removed by upgrading to MDAC 2.6 or later versions. Microsoft Windows XP and Microsoft Windows 2000 shipped with the Visual FoxPro ODBC Driver version 1.00.02.00. &lt;i&gt;&lt;b&gt;This is just a nonfunctional stub or a placeholder. To connect to FoxPro data, you must download and install either the VFP ODBC driver or the provider.&lt;/b&gt;&lt;/i&gt;&quot;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/blockquote&gt;&lt;div class=&quot;western&quot; style=&quot;margin-bottom: 0in;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;western&quot; style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;text-decoration: none;&quot;&gt;&lt;span style=&quot;font-family: Arial;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-style: normal;&quot;&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;&lt;span style=&quot;background: transparent;&quot;&gt;This just told me what I&#39;d already figured out. The page gives a link back to where I just came from to fetch the VFP &quot;OLE DB Provider&quot;. But I&#39;d prefer a development environment that matches the actual production environment. &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;western&quot; style=&quot;margin-bottom: 0in;&quot;&gt;&lt;br /&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;text-decoration: none;&quot;&gt;&lt;span style=&quot;font-family: Arial;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-style: normal;&quot;&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;&lt;span style=&quot;background: transparent;&quot;&gt;Surely I couldn&#39;t be the only person who prefers to grab the native ODBC driver, despite OLE DB being the blessed path.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;text-decoration: none;&quot;&gt;&lt;span style=&quot;font-family: Arial;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-style: normal;&quot;&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;&lt;span style=&quot;background: transparent;&quot;&gt;Reading further:&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;blockquote class=&quot;tr_bq&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;text-decoration: none;&quot;&gt;&lt;span style=&quot;font-family: Arial;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-style: normal;&quot;&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;&lt;span style=&quot;background: transparent;&quot;&gt;&quot;We strongly recommend that you use the OLE DB Provider for VFP to access VFP data. However, a stand-alone installation for the VFP ODBC driver is still available at the following Web site:&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;text-decoration: none;&quot;&gt;&lt;span style=&quot;font-family: Arial;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-style: normal;&quot;&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;&lt;span style=&quot;background: transparent;&quot;&gt;http://msdn2.microsoft.com/en-us/vfoxpro/bb190233.aspx&quot;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/blockquote&gt;&lt;div class=&quot;western&quot; style=&quot;margin-bottom: 0in;&quot;&gt;&lt;br /&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;text-decoration: none;&quot;&gt;&lt;span style=&quot;font-family: Arial;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-style: normal;&quot;&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;&lt;span style=&quot;background: transparent;&quot;&gt;Sweet! Might be possible after all!&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;text-decoration: none;&quot;&gt;&lt;span style=&quot;font-family: Arial;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-style: normal;&quot;&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;&lt;span style=&quot;background: transparent;&quot;&gt;But, no.  It just leads back to the same Visual FoxPro download page I started from, with its lonely reference to the VFP ODBC driver:&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;western&quot; style=&quot;margin-bottom: 0in;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://1.bp.blogspot.com/-HUEfyN-Tc1g/UE8u2SK4p9I/AAAAAAAABx8/oiILoBm7MiI/s1600/msdn_download_deadlink_2.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;http://1.bp.blogspot.com/-HUEfyN-Tc1g/UE8u2SK4p9I/AAAAAAAABx8/oiILoBm7MiI/s1600/msdn_download_deadlink_2.PNG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;western&quot; style=&quot;margin-bottom: 0in;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;western&quot; style=&quot;margin-bottom: 0in;&quot;&gt;&lt;/div&gt;&lt;div class=&quot;western&quot; style=&quot;margin-bottom: 0in;&quot;&gt;&lt;/div&gt;&lt;div class=&quot;western&quot; style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;text-decoration: none;&quot;&gt;&lt;span style=&quot;font-family: Arial;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-style: normal;&quot;&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;&lt;span style=&quot;background: transparent;&quot;&gt;But, there was mention about it being removed in MDAC version 2.6. Maybe I could click on that &quot;Old MDAC downloads&quot; link. Nope. Oldest available is 2.8 (circa 2005). That&#39;s too new.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&amp;nbsp; &lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;text-decoration: none;&quot;&gt;&lt;span style=&quot;font-family: Arial;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-style: normal;&quot;&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;&lt;span style=&quot;background: transparent;&quot;&gt;A &quot;new&quot; thing, from 2005, might be getting a bit far away from feasible struggle... That was when I decided to stop fighting the tide.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&amp;nbsp; &lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;text-decoration: none;&quot;&gt;&lt;span style=&quot;font-family: Arial;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-style: normal;&quot;&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;&lt;span style=&quot;background: transparent;&quot;&gt;Went back and downloaded &quot;&lt;a href=&quot;http://msdn2.microsoft.com/en-us/vfoxpro/bb190233.aspx&quot;&gt;Microsoft OLE DB Provider for Visual FoxPro 9.0SP2&lt;/a&gt;&quot;. Updated the production environment to require the OLE DB Provider to be installed as well.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;western&quot; style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;text-decoration: none;&quot;&gt;&lt;span style=&quot;font-family: Arial;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-style: normal;&quot;&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;&lt;span style=&quot;background: transparent;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;text-decoration: none;&quot;&gt;&lt;span style=&quot;font-family: Arial;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-style: normal;&quot;&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;&lt;span style=&quot;background: transparent;&quot;&gt;This way, I can have my development and production code match, which in the end is the most important part.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;text-decoration: none;&quot;&gt;&lt;span style=&quot;font-family: Arial;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-style: normal;&quot;&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;&lt;span style=&quot;background: transparent;&quot;&gt;However, in production, there is more than one application using the original VFP ODBC connection. What I can&#39;t test anymore is whether there are conflicts when different applications fetch data from the two sources, around the same time.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;text-decoration: none;&quot;&gt;&lt;span style=&quot;font-family: Arial;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-style: normal;&quot;&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;&lt;span style=&quot;background: transparent;&quot;&gt;Not ideal, but given the circular link maze that Microsoft has left me, I don&#39;t see much choice.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://blog.otherchirps.net/feeds/6057359247423077290/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1286475992168261676&amp;postID=6057359247423077290' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1286475992168261676/posts/default/6057359247423077290'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1286475992168261676/posts/default/6057359247423077290'/><link rel='alternate' type='text/html' href='http://blog.otherchirps.net/2012/09/foxpro-odbc-goose-chase.html' title='Foxpro ODBC goose chase'/><author><name>otherchirps</name><uri>http://www.blogger.com/profile/14004343695694930803</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://1.bp.blogspot.com/_aEyDjCywtFY/S2a0slGWndI/AAAAAAAABl0/dMnHtJHvn10/s1600-R/61aad7aa6e8cff40e22f420015d5aee9.png'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://4.bp.blogspot.com/-aCCkgAac2kg/UE8t4mVWV9I/AAAAAAAABxk/VzU_uIwSs8Y/s72-c/add_vfp_odbc.PNG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1286475992168261676.post-3227397453212833855</id><published>2011-11-27T01:00:00.001+11:00</published><updated>2011-11-27T01:16:51.694+11:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="programming"/><title type='text'>Validate an ABN</title><content type='html'>If you find yourself needing to do something this boring, here&#39;s a quick python implementation, of the &lt;a href=&quot;http://www.ato.gov.au/businesses/content.aspx?doc=/content/13187.htm&amp;amp;pc=001/003/021/001/008&amp;amp;mnu=0&amp;amp;mfp=&amp;amp;st=&amp;amp;cy=&quot;&gt;steps outlined&lt;/a&gt; on the &lt;a href=&quot;http://ato.gov.au/&quot;&gt;ATO&lt;/a&gt; website.&lt;br /&gt;&lt;br /&gt;You can find a slightly bigger version of this &quot;abn_check.py&quot;, with tests, over on &lt;a href=&quot;https://bitbucket.org/otherchirps/py_misc/src&quot;&gt;my bitbucket&lt;/a&gt; account.&lt;br /&gt;&lt;br /&gt;Feel free to use it if you&#39;d like.&lt;br /&gt;&lt;br /&gt;&lt;pre class=&quot;brush: python; wrap-lines: false;&quot; type=&quot;syntaxhighlighter&quot;&gt;class ABN:&lt;br /&gt;    &quot;&quot;&quot; Simple validator of an Australian Business Number (ABN). &quot;&quot;&quot;&lt;br /&gt;&lt;br /&gt;    WEIGHT = (10, 1, 3, 5, 7, 9, 11, 13, 15, 17, 19)&lt;br /&gt;    CHECKSUM_DIVISOR = 89&lt;br /&gt;&lt;br /&gt;    def __init__(self, num=None):&lt;br /&gt;        self.number = num&lt;br /&gt;&lt;br /&gt;    def is_valid(self):&lt;br /&gt;        if self.number is None:&lt;br /&gt;            return False&lt;br /&gt;&lt;br /&gt;        try:&lt;br /&gt;            digits = [int(c) for c in &quot;{0:011}&quot;.format(self.number)]&lt;br /&gt;        except:&lt;br /&gt;            return False&lt;br /&gt;        &lt;br /&gt;        # Subtract 1 from the first (left) digit to give a new eleven digit number&lt;br /&gt;        digits[0] = digits[0] - 1&lt;br /&gt;        assert len(digits) == len(self.WEIGHT)&lt;br /&gt;        &lt;br /&gt;        # Multiply each of the digits in this new number by its weighting factor&lt;br /&gt;        # Sum the resulting 11 products        &lt;br /&gt;        checksum = sum([d * self.WEIGHT[idx] for idx, d in enumerate(digits)])&lt;br /&gt;        &lt;br /&gt;        # Divide the total by 89, noting the remainder&lt;br /&gt;        remainder = checksum % self.CHECKSUM_DIVISOR&lt;br /&gt;&lt;br /&gt;        # If the remainder is zero the number is valid&lt;br /&gt;        return (remainder == 0)&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;</content><link rel='replies' type='application/atom+xml' href='http://blog.otherchirps.net/feeds/3227397453212833855/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1286475992168261676&amp;postID=3227397453212833855' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1286475992168261676/posts/default/3227397453212833855'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1286475992168261676/posts/default/3227397453212833855'/><link rel='alternate' type='text/html' href='http://blog.otherchirps.net/2011/11/validate-abn.html' title='Validate an ABN'/><author><name>otherchirps</name><uri>http://www.blogger.com/profile/14004343695694930803</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://1.bp.blogspot.com/_aEyDjCywtFY/S2a0slGWndI/AAAAAAAABl0/dMnHtJHvn10/s1600-R/61aad7aa6e8cff40e22f420015d5aee9.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1286475992168261676.post-6399230029740134667</id><published>2011-05-13T01:11:00.000+10:00</published><updated>2011-05-14T06:30:34.576+10:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="opensource"/><category scheme="http://www.blogger.com/atom/ns#" term="programming"/><title type='text'>PasswordSafe to KeePassX conversion</title><content type='html'>I&#39;ve been happily using &lt;a href=&quot;http://passwordsafe.sourceforge.net/&quot;&gt;PasswordSafe&lt;/a&gt; for years now, starting back  when Bruce Schneier was building the thing himself (&lt;a href=&quot;http://www.schneier.com/passsafe.html&quot;&gt;he doesn&#39;t  anymore&lt;/a&gt;).&lt;br /&gt;&lt;br /&gt;It&#39;s a handy little utility to manage the copious  number of password one collects.  Especially over the 10 or so years  I&#39;ve been using the thing.&lt;br /&gt;&lt;br /&gt;However, it&#39;s a windows application.   Increasingly these days, I&#39;m hopping fairly equally across windows and  linux systems.  Soon I hope to be adding Mac OSX to the mix as well.&lt;br /&gt;&lt;br /&gt;It &lt;a href=&quot;http://appdb.winehq.org/appview.php?iAppId=4017&quot;&gt;runs well under wine&lt;/a&gt;, but I figured I&#39;d give something more cross-platform a try.&lt;br /&gt;&lt;br /&gt;&lt;a href=&quot;http://www.keepassx.org/&quot;&gt;KeePassX&lt;/a&gt; seems the first to fit the bill.&lt;br /&gt;&lt;br /&gt;It  can import the databases from several other password managers, but not  currently one for PasswordSafe. Googling around yields a few scripts, on  the &lt;a href=&quot;http://www.keepassx.org/forum/viewtopic.php?f=2&amp;amp;t=1629&amp;amp;hilit=passwordsafe&quot;&gt;keepassx forum&lt;/a&gt;, to handle the import.  &lt;br /&gt;&lt;br /&gt;Aside from an  aversion to perl (that&#39;s just me though... ;) the scripts depend  on the PasswordSafe database being exported to plain text, and that the default column order of that export doesn&#39;t change.  There are other ones that count  on the plain text export being generated by other apps, which can  themselves import from PasswordSafe.  In one case, it specifies that  the text file should be generated by &lt;a href=&quot;https://github.com/zdia/gorilla/wiki/&quot;&gt;Password Gorilla&lt;/a&gt; (which itself  aims to be a cross platform interpretation of PasswordSafe... probably  worth checking out as well).  &lt;br /&gt;&lt;br /&gt;So I&#39;ve done the usual thing  people do: ignored the available options and &lt;a href=&quot;https://bitbucket.org/otherchirps/pwsafe2keepassx/&quot;&gt;made my own converter&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;Tested with Python 2.7.&amp;nbsp; It doesn&#39;t  handle &lt;a href=&quot;https://bitbucket.org/otherchirps/pwsafe2keepassx/issue/3/no-support-for-nested-passwordsafe-groups&quot;&gt;nested groups&lt;/a&gt; (yet), since I didn&#39;t have any, and had this  converter working before I knew PasswordSafe &lt;a href=&quot;http://sourceforge.net/tracker/?func=detail&amp;amp;aid=3194472&amp;amp;group_id=41019&amp;amp;atid=429579&quot;&gt;supported group nesting&lt;/a&gt;... o_O), so it Works For Me(tm). I&#39;ve thrown it out there in case anyone else, in this rather niche market, will find it useful too.</content><link rel='replies' type='application/atom+xml' href='http://blog.otherchirps.net/feeds/6399230029740134667/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1286475992168261676&amp;postID=6399230029740134667' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1286475992168261676/posts/default/6399230029740134667'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1286475992168261676/posts/default/6399230029740134667'/><link rel='alternate' type='text/html' href='http://blog.otherchirps.net/2011/05/passwordsafe-to-keepassx-conversion.html' title='PasswordSafe to KeePassX conversion'/><author><name>otherchirps</name><uri>http://www.blogger.com/profile/14004343695694930803</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://1.bp.blogspot.com/_aEyDjCywtFY/S2a0slGWndI/AAAAAAAABl0/dMnHtJHvn10/s1600-R/61aad7aa6e8cff40e22f420015d5aee9.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1286475992168261676.post-2935990179565510264</id><published>2010-12-09T14:56:00.001+11:00</published><updated>2010-12-09T14:57:44.310+11:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="programming"/><category scheme="http://www.blogger.com/atom/ns#" term="python"/><title type='text'>virtualenv, windows, and file associations</title><content type='html'>Here&#39;s what I&#39;m doing. I&#39;m using &lt;a bitly=&quot;BITLY_PROCESSED&quot; href=&quot;http://virtualenv.openplans.org/&quot;&gt;virtualenv&lt;/a&gt; to create &quot;sandboxed&quot; python environments. One use case for this is being able to install whatever python packages you like, in your lowly non-admin account.&lt;br /&gt;&lt;br /&gt;It mostly works without any trouble.&amp;nbsp; However, what I&#39;m seeing, on my windows 7 machine, is that while this works and runs the virtualenv copy of python:&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&amp;nbsp;(testenv) c:\testenv&amp;gt; python test.py&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;This doesn&#39;t:&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&amp;nbsp;(testenv) c:\testenv&amp;gt; test.py&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;The difference is that in the first case, the PATH is searched, and the first &quot;python&quot; on the path is the one belonging to the virtualenv.&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;(testenv) c:\testenv&amp;gt;echo %PATH%&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;C:\testenv\Scripts;...&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;In the second case, windows is jumping to its file association mappings, and&amp;nbsp; finding:&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;(testenv) c:\testenv&amp;gt;assoc .py&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;.py=Python.File&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;(testenv) c:\testenv&amp;gt;ftype Python.File&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;Python.File=&quot;C:\Python27\python.exe&quot; &quot;%1&quot; %*&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;The problem with this is that the &quot;native&quot; python on the system (at &lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;C:\Python27&lt;/span&gt;) doesn&#39;t see my libraries installed into the virtualenv. It hunts for libraries in the system default of &quot;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;C:\Python27\Lib&lt;/span&gt;&quot;, rather than the virtualenv setup of &quot;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;C:\testenv\Lib;C:\Python27\Lib&lt;/span&gt;&quot;.&amp;nbsp; &lt;br /&gt;&amp;nbsp; &lt;br /&gt;Ok, there&#39;s no problem if I always type &#39;python&#39; before the script filename. But that&#39;s annoying.&amp;nbsp; The fingers remember the script, before the trouble.&lt;br /&gt;&lt;br /&gt;Before having a peek at the python source code, the README it supplies says:&lt;br /&gt;&lt;blockquote&gt;&quot;All PC ports use this scheme to try to set up a module search path:&lt;br /&gt;&lt;br /&gt;&amp;nbsp; 1) The script location; the current directory without script.&lt;br /&gt;&amp;nbsp; 2) The PYTHONPATH variable, if set.&lt;br /&gt;&amp;nbsp; 3) For Win32 platforms (NT/95), paths specified in the Registry.&lt;br /&gt;&amp;nbsp; 4) Default directories lib, lib/win, lib/test, lib/tkinter;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; these are searched relative to the environment variable&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PYTHONHOME, if set, or relative to the executable and its&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ancestors, if a landmark file (Lib/string.py) is found ,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; or the current directory (not useful).&lt;br /&gt;&amp;nbsp; 5) The directory containing the executable.&quot;&lt;/blockquote&gt;Point 4 talks about PYTHONHOME, and that does solve things.&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;(testenv) c:\testenv&amp;gt; set PYTHONHOME=%VIRTUAL_ENV%&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;(testenv) c:\testenv&amp;gt; test.py&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Success!&lt;br /&gt;&lt;br /&gt;But...&lt;br /&gt;&lt;br /&gt;It seems that there have been &lt;a bitly=&quot;BITLY_PROCESSED&quot; href=&quot;https://bugs.launchpad.net/virtualenv/+bug/290844&quot;&gt;problems in the past&lt;/a&gt;, with PYTHONHOME and virtualenv. Will have to check those out before submitting a fix.&lt;br /&gt;&lt;br /&gt;Superficially, setting PYTHONHOME like this appears to work well on windows.</content><link rel='replies' type='application/atom+xml' href='http://blog.otherchirps.net/feeds/2935990179565510264/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1286475992168261676&amp;postID=2935990179565510264' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1286475992168261676/posts/default/2935990179565510264'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1286475992168261676/posts/default/2935990179565510264'/><link rel='alternate' type='text/html' href='http://blog.otherchirps.net/2010/12/virtualenv-windows-and-file.html' title='virtualenv, windows, and file associations'/><author><name>otherchirps</name><uri>http://www.blogger.com/profile/14004343695694930803</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://1.bp.blogspot.com/_aEyDjCywtFY/S2a0slGWndI/AAAAAAAABl0/dMnHtJHvn10/s1600-R/61aad7aa6e8cff40e22f420015d5aee9.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1286475992168261676.post-8653690478933506164</id><published>2010-12-09T14:21:00.000+11:00</published><updated>2010-12-09T14:21:22.085+11:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="politics"/><category scheme="http://www.blogger.com/atom/ns#" term="rant"/><title type='text'>Interesting Times</title><content type='html'>From &lt;a bitly=&quot;BITLY_PROCESSED&quot; href=&quot;http://www.crikey.com.au/2010/12/09/welcome-to-the-internet-wars/&quot;&gt;Crikey&lt;/a&gt;:&lt;br /&gt;&lt;blockquote&gt;&quot;Whoever christened the WikiLeaks saga the first major war over the  internet was right. Quite apart from what you’re seeing in the  mainstream media, the internet equivalent of a shooting war has broken  out and shows no signs of dying down.&quot;&lt;/blockquote&gt;This is getting bigger.&amp;nbsp; Come next election, I&#39;m voting for Wikileaks.</content><link rel='replies' type='application/atom+xml' href='http://blog.otherchirps.net/feeds/8653690478933506164/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1286475992168261676&amp;postID=8653690478933506164' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1286475992168261676/posts/default/8653690478933506164'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1286475992168261676/posts/default/8653690478933506164'/><link rel='alternate' type='text/html' href='http://blog.otherchirps.net/2010/12/interesting-times.html' title='Interesting Times'/><author><name>otherchirps</name><uri>http://www.blogger.com/profile/14004343695694930803</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://1.bp.blogspot.com/_aEyDjCywtFY/S2a0slGWndI/AAAAAAAABl0/dMnHtJHvn10/s1600-R/61aad7aa6e8cff40e22f420015d5aee9.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1286475992168261676.post-8900417938046557589</id><published>2010-09-09T22:25:00.000+10:00</published><updated>2010-09-09T22:25:07.586+10:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="procrastination"/><title type='text'>Wheels within wheels</title><content type='html'>Don&#39;t know why, but I still get a kick out of being able to do this kind of thing:&lt;br /&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://2.bp.blogspot.com/_aEyDjCywtFY/TIjPVVhN2hI/AAAAAAAABoY/XoZ2EDeROdM/s1600/wheelsinwheels.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;264&quot; src=&quot;http://2.bp.blogspot.com/_aEyDjCywtFY/TIjPVVhN2hI/AAAAAAAABoY/XoZ2EDeROdM/s320/wheelsinwheels.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;That looks like a C64, but it&#39;s actually a C128 emulator, emulating a C64.&amp;nbsp; So I guess the complete chain is:&lt;br /&gt;C64 ➔ C128 ➔ WinXP 32bit ➔ Win7 64bit ➔ matrix ➔ ???</content><link rel='replies' type='application/atom+xml' href='http://blog.otherchirps.net/feeds/8900417938046557589/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1286475992168261676&amp;postID=8900417938046557589' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1286475992168261676/posts/default/8900417938046557589'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1286475992168261676/posts/default/8900417938046557589'/><link rel='alternate' type='text/html' href='http://blog.otherchirps.net/2010/09/wheels-within-wheels.html' title='Wheels within wheels'/><author><name>otherchirps</name><uri>http://www.blogger.com/profile/14004343695694930803</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://1.bp.blogspot.com/_aEyDjCywtFY/S2a0slGWndI/AAAAAAAABl0/dMnHtJHvn10/s1600-R/61aad7aa6e8cff40e22f420015d5aee9.png'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://2.bp.blogspot.com/_aEyDjCywtFY/TIjPVVhN2hI/AAAAAAAABoY/XoZ2EDeROdM/s72-c/wheelsinwheels.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1286475992168261676.post-2223263695838645381</id><published>2010-05-20T17:33:00.000+10:00</published><updated>2010-05-20T17:33:24.399+10:00</updated><title type='text'>You&#39;re doing it wrong</title><content type='html'>What&#39;s wrong with this picture? &lt;br /&gt;&lt;blockquote&gt;&quot;You have been assigned the [Company X] Security Awareness Training course... &lt;br /&gt;...&lt;br /&gt;You will need to use Internet Explorer with cookies and pop-ups enabled.&quot;&lt;/blockquote&gt;And yes, that &lt;a href=&quot;http://www.theregister.co.uk/2010/05/16/microsoft_rotten_milk_ie6_upgrade/&quot;&gt;spoilt milk browser&lt;/a&gt;, IE6, is still the corporate standard in the place. Hm.</content><link rel='replies' type='application/atom+xml' href='http://blog.otherchirps.net/feeds/2223263695838645381/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1286475992168261676&amp;postID=2223263695838645381' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1286475992168261676/posts/default/2223263695838645381'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1286475992168261676/posts/default/2223263695838645381'/><link rel='alternate' type='text/html' href='http://blog.otherchirps.net/2010/05/youre-doing-it-wrong.html' title='You&#39;re doing it wrong'/><author><name>otherchirps</name><uri>http://www.blogger.com/profile/14004343695694930803</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://1.bp.blogspot.com/_aEyDjCywtFY/S2a0slGWndI/AAAAAAAABl0/dMnHtJHvn10/s1600-R/61aad7aa6e8cff40e22f420015d5aee9.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1286475992168261676.post-8127994950156150614</id><published>2010-04-03T01:59:00.002+11:00</published><updated>2010-04-03T02:03:09.821+11:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="programming"/><category scheme="http://www.blogger.com/atom/ns#" term="stupid_c_tricks"/><title type='text'>Old obfuscated code</title><content type='html'>I&#39;ve been digging though some of the crusty parts of the hard drive, and stumbled on some of my early uni archives.&lt;br /&gt;&lt;br /&gt;Most of the code samples and binaries are circa 1994/5, pulled down off gopher, and need a dosbox to run at all. But this code from an anonymous &quot;joke.c&quot; file still impresses.&lt;br /&gt;&lt;br /&gt;&lt;pre class=&quot;brush: c; wrap-lines: false;&quot;&gt;#include &amp;lt;stdio.h&amp;gt;&lt;br /&gt;&lt;br /&gt;main(t,_,a)&lt;br /&gt;&lt;br /&gt;char *a;&lt;br /&gt;&lt;br /&gt;{return!0&amp;lt;t?t&amp;lt;3?main(-79,-13,a+main(-87,1-_,&lt;br /&gt;main(-86, 0, a+1 )+a)):1,t&amp;lt;_?main(t+1, _, a ):3,main ( -94, -27+t, a )&lt;br /&gt;&amp;amp;&amp;amp;t == 2 ?_&amp;lt;13 ?main ( 2, _+1, &amp;quot;%s %d %d\n&amp;quot; ):9:16:t&amp;lt;0?t&amp;lt;-72?main( _, t,&lt;br /&gt;&amp;quot;@n&#39;+,#&#39;/*{}w+/w#cdnr/+,{}r/*de}+,/*{*+,/w{%+,/w#q#n+,/#{l,+,/n{n+,/+#n+,/#;\&lt;br /&gt;#q#n+,/+k#;*+,/&#39;r :&#39;d*&#39;3,}{w+K w&#39;K:&#39;+}e#&#39;;dq#&#39;l q#&#39;+d&#39;K#!/+k#;\&lt;br /&gt;q#&#39;r}eKK#}w&#39;r}eKK{nl]&#39;/#;#q#n&#39;){)#}w&#39;){){nl]&#39;/+#n&#39;;d}rw&#39; i;# ){nl]!/n{n#&#39;; \&lt;br /&gt;r{#w&#39;r nc{nl]&#39;/#{l,+&#39;K {rw&#39; iK{;[{nl]&#39;/w#q#\&lt;br /&gt;n&#39;wk nw&#39; iwk{KK{nl]!/w{%&#39;l##w#&#39; i; :{nl]&#39;/*{q#&#39;ld;r&#39;}{nlwb!/*de}&#39;c ;;\&lt;br /&gt;{nl&#39;-{}rw]&#39;/+,}##&#39;*}#nc,&#39;,#nw]&#39;/+kd&#39;+e}+;\&lt;br /&gt;#&#39;rdq#w! nr&#39;/ &#39;) }+}{rl#&#39;{n&#39; &#39;)# }&#39;+}##(!!/&amp;quot;)&lt;br /&gt;:t&amp;lt;-50?_==*a ?putchar(a[31]):main(-65,_,a+1):&lt;br /&gt;main((*a == &#39;/&#39;) + t, _, a + 1 ):0&amp;lt;t?main ( 2, 2 , &amp;quot;%s&amp;quot;):*a==&#39;/&#39;||main(0,&lt;br /&gt;main(-61,*a, &amp;quot;!ek;dc i@bK&#39;(q)-[w]*%n+r3#l,{}:\nuwloca-O;m .vpbks,fxntdCeghiry&amp;quot;),&lt;br /&gt;a+1);}&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;This compiled without warning or error, on my ubuntu box, with gcc 4.4.1.&lt;br /&gt;Running yields:&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;On the first day of Christmas my true love gave to me&lt;br /&gt;a partridge in a pear tree.&lt;br /&gt;&lt;br /&gt;On the second day of Christmas my true love gave to me&lt;br /&gt;two turtle doves&lt;br /&gt;and a partridge in a pear tree.&lt;br /&gt;&lt;br /&gt;On the third day of Christmas my true love gave to me&lt;br /&gt;three french hens, two turtle doves&lt;br /&gt;and a partridge in a pear tree.&lt;br /&gt;&lt;br /&gt;On the fourth day of Christmas my true love gave to me&lt;br /&gt;four calling birds, three french hens, two turtle doves&lt;br /&gt;and a partridge in a pear tree.&lt;br /&gt;&lt;br /&gt;On the fifth day of Christmas my true love gave to me&lt;br /&gt;five gold rings;&lt;br /&gt;four calling birds, three french hens, two turtle doves&lt;br /&gt;and a partridge in a pear tree.&lt;br /&gt;&lt;br /&gt;On the sixth day of Christmas my true love gave to me&lt;br /&gt;six geese a-laying, five gold rings;&lt;br /&gt;four calling birds, three french hens, two turtle doves&lt;br /&gt;and a partridge in a pear tree.&lt;br /&gt;&lt;br /&gt;On the seventh day of Christmas my true love gave to me&lt;br /&gt;seven swans a-swimming,&lt;br /&gt;six geese a-laying, five gold rings;&lt;br /&gt;four calling birds, three french hens, two turtle doves&lt;br /&gt;and a partridge in a pear tree.&lt;br /&gt;&lt;br /&gt;On the eighth day of Christmas my true love gave to me&lt;br /&gt;eight maids a-milking, seven swans a-swimming,&lt;br /&gt;six geese a-laying, five gold rings;&lt;br /&gt;four calling birds, three french hens, two turtle doves&lt;br /&gt;and a partridge in a pear tree.&lt;br /&gt;&lt;br /&gt;On the ninth day of Christmas my true love gave to me&lt;br /&gt;nine ladies dancing, eight maids a-milking, seven swans a-swimming,&lt;br /&gt;six geese a-laying, five gold rings;&lt;br /&gt;four calling birds, three french hens, two turtle doves&lt;br /&gt;and a partridge in a pear tree.&lt;br /&gt;&lt;br /&gt;On the tenth day of Christmas my true love gave to me&lt;br /&gt;ten lords a-leaping,&lt;br /&gt;nine ladies dancing, eight maids a-milking, seven swans a-swimming,&lt;br /&gt;six geese a-laying, five gold rings;&lt;br /&gt;four calling birds, three french hens, two turtle doves&lt;br /&gt;and a partridge in a pear tree.&lt;br /&gt;&lt;br /&gt;On the eleventh day of Christmas my true love gave to me&lt;br /&gt;eleven pipers piping, ten lords a-leaping,&lt;br /&gt;nine ladies dancing, eight maids a-milking, seven swans a-swimming,&lt;br /&gt;six geese a-laying, five gold rings;&lt;br /&gt;four calling birds, three french hens, two turtle doves&lt;br /&gt;and a partridge in a pear tree.&lt;br /&gt;&lt;br /&gt;On the twelfth day of Christmas my true love gave to me&lt;br /&gt;twelve drummers drumming, eleven pipers piping, ten lords a-leaping,&lt;br /&gt;nine ladies dancing, eight maids a-milking, seven swans a-swimming,&lt;br /&gt;six geese a-laying, five gold rings;&lt;br /&gt;four calling birds, three french hens, two turtle doves&lt;br /&gt;and a partridge in a pear tree.&lt;br /&gt;&lt;/blockquote&gt;</content><link rel='replies' type='application/atom+xml' href='http://blog.otherchirps.net/feeds/8127994950156150614/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1286475992168261676&amp;postID=8127994950156150614' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1286475992168261676/posts/default/8127994950156150614'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1286475992168261676/posts/default/8127994950156150614'/><link rel='alternate' type='text/html' href='http://blog.otherchirps.net/2010/04/old-obfuscated-code.html' title='Old obfuscated code'/><author><name>otherchirps</name><uri>http://www.blogger.com/profile/14004343695694930803</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://1.bp.blogspot.com/_aEyDjCywtFY/S2a0slGWndI/AAAAAAAABl0/dMnHtJHvn10/s1600-R/61aad7aa6e8cff40e22f420015d5aee9.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1286475992168261676.post-762501198799603482</id><published>2010-01-26T01:26:00.007+11:00</published><updated>2010-01-26T02:20:39.926+11:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="cleanfeed"/><category scheme="http://www.blogger.com/atom/ns#" term="rant"/><title type='text'>The Great Australian Internet Blackout</title><content type='html'>This silly filtering idea is still steaming along. Feels like forever ago when I &lt;a href=&quot;http://blog.otherchirps.net/2008/12/cleanfeed-no-thanks.html&quot;&gt;first complained about it&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;Not that I think it will change anyone&#39;s mind, seeing as how little Conroy and Rudd have been open to debate on this so far, but I thought I&#39;d take part in the &lt;a href=&quot;http://www.internetblackout.com.au/&quot;&gt;e-protest&lt;/a&gt; anyway.  At least to show, in some small way, I loathe the proposal.&lt;br /&gt;&lt;br /&gt;Not long ago, Hillary Clinton took a &lt;a href=&quot;http://www.state.gov/secretary/rm/2010/01/135519.htm&quot;&gt;swipe at the idea of internet censorship&lt;/a&gt;. This was mainly in response to the whole Google vs China thing, but it still sounded bad for governments wanting to set up the same kind of controls... like ours here in Australia. Conroy had a go at agreeing with our US allies, while at the same time &lt;a href=&quot;http://www.efa.org.au/2010/01/22/government-global-internet-freedom-means-censorship/&quot;&gt;twisting Clinton&#39;s speech&lt;/a&gt; to sound like it was supporting the filter anyway. One of Conroy&#39;s comments, in &lt;a href=&quot;http://www.minister.dbcde.gov.au/media/media_releases/2010/006&quot;&gt;that press release of his&lt;/a&gt; was,&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;&quot;Critics of the policy continue to mislead the Australian public by suggesting that any content other than RC-rated content will be blocked.&quot;&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;Even if we take him at his word, and ignore all the other faults with the idea (eg. transparency, inaccuracy, right of appeal, accountability of those performing the censorship, network performance), we have no fail-safes against future governments or lobby groups pushing the scope of this thing.  &lt;br /&gt;&lt;br /&gt;Really, not a good idea.  Expensive, unnecessary, unwanted, and unjust.</content><link rel='replies' type='application/atom+xml' href='http://blog.otherchirps.net/feeds/762501198799603482/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1286475992168261676&amp;postID=762501198799603482' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1286475992168261676/posts/default/762501198799603482'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1286475992168261676/posts/default/762501198799603482'/><link rel='alternate' type='text/html' href='http://blog.otherchirps.net/2010/01/great-australian-internet-blackout.html' title='The Great Australian Internet Blackout'/><author><name>otherchirps</name><uri>http://www.blogger.com/profile/14004343695694930803</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://1.bp.blogspot.com/_aEyDjCywtFY/S2a0slGWndI/AAAAAAAABl0/dMnHtJHvn10/s1600-R/61aad7aa6e8cff40e22f420015d5aee9.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1286475992168261676.post-2538314834972462754</id><published>2010-01-17T00:58:00.009+11:00</published><updated>2010-01-20T21:23:55.350+11:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="parenting"/><category scheme="http://www.blogger.com/atom/ns#" term="rant"/><title type='text'>Little Toyshop of Horror</title><content type='html'>&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;http://2.bp.blogspot.com/_aEyDjCywtFY/S1HG1tT8_xI/AAAAAAAABlM/52PcKV-C6Mo/s1600-h/16012010_640x480.jpg&quot;&gt;&lt;img style=&quot;display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 320px; height: 240px;&quot; src=&quot;http://2.bp.blogspot.com/_aEyDjCywtFY/S1HG1tT8_xI/AAAAAAAABlM/52PcKV-C6Mo/s320/16012010_640x480.jpg&quot; border=&quot;0&quot; alt=&quot;&quot;id=&quot;BLOGGER_PHOTO_ID_5427337651956809490&quot; /&gt;&lt;/a&gt;&lt;br /&gt;On sale for just AU$129.99! Give your little one a leg-up towards their McJob of the future.  &lt;br /&gt;&lt;br /&gt;I found this on the weekend, wandering around the local Toys &#39;R&#39; Us store.&lt;br /&gt;&lt;br /&gt;In case you can&#39;t read the writing on the box, it includes:&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;&quot;Grill, deep-fryer, soda fountain, and McFlurry. &lt;br /&gt;All make realistic sounds.&quot;&lt;/blockquote&gt;&lt;br /&gt;What fun.&lt;br /&gt;&lt;br /&gt;Suffering kiddie brooms, kitchen sets, and tiny smiley-face vacuum cleaners is slightly justifiable.  The little one wants to copy mum &amp; dad.  &lt;br /&gt;&lt;br /&gt;But the golden arches are already seared into their brains by the time they hit two.  Extra help remembering Ronald &amp; friends is necessary?</content><link rel='replies' type='application/atom+xml' href='http://blog.otherchirps.net/feeds/2538314834972462754/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1286475992168261676&amp;postID=2538314834972462754' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1286475992168261676/posts/default/2538314834972462754'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1286475992168261676/posts/default/2538314834972462754'/><link rel='alternate' type='text/html' href='http://blog.otherchirps.net/2010/01/little-toyshop-of-horror.html' title='Little Toyshop of Horror'/><author><name>otherchirps</name><uri>http://www.blogger.com/profile/14004343695694930803</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://1.bp.blogspot.com/_aEyDjCywtFY/S2a0slGWndI/AAAAAAAABl0/dMnHtJHvn10/s1600-R/61aad7aa6e8cff40e22f420015d5aee9.png'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://2.bp.blogspot.com/_aEyDjCywtFY/S1HG1tT8_xI/AAAAAAAABlM/52PcKV-C6Mo/s72-c/16012010_640x480.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1286475992168261676.post-3535123324366139000</id><published>2010-01-12T21:48:00.003+11:00</published><updated>2010-01-12T21:51:18.862+11:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="disposable"/><title type='text'>Xmas Trash</title><content type='html'>&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;http://1.bp.blogspot.com/_aEyDjCywtFY/S0xTvfSBVnI/AAAAAAAABlE/SzRj3rQeklc/s1600-h/old_tvs.jpg&quot;&gt;&lt;img style=&quot;display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 320px; height: 240px;&quot; src=&quot;http://1.bp.blogspot.com/_aEyDjCywtFY/S0xTvfSBVnI/AAAAAAAABlE/SzRj3rQeklc/s400/old_tvs.jpg&quot; border=&quot;0&quot; alt=&quot;&quot;id=&quot;BLOGGER_PHOTO_ID_5425803726390646386&quot; /&gt;&lt;/a&gt;&lt;br /&gt;I&#39;m guessing there were a few flat screen TV sets under the tree this year?</content><link rel='replies' type='application/atom+xml' href='http://blog.otherchirps.net/feeds/3535123324366139000/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1286475992168261676&amp;postID=3535123324366139000' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1286475992168261676/posts/default/3535123324366139000'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1286475992168261676/posts/default/3535123324366139000'/><link rel='alternate' type='text/html' href='http://blog.otherchirps.net/2010/01/xmas-trash.html' title='Xmas Trash'/><author><name>otherchirps</name><uri>http://www.blogger.com/profile/14004343695694930803</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://1.bp.blogspot.com/_aEyDjCywtFY/S2a0slGWndI/AAAAAAAABl0/dMnHtJHvn10/s1600-R/61aad7aa6e8cff40e22f420015d5aee9.png'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://1.bp.blogspot.com/_aEyDjCywtFY/S0xTvfSBVnI/AAAAAAAABlE/SzRj3rQeklc/s72-c/old_tvs.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1286475992168261676.post-4363971657017258347</id><published>2009-12-23T08:45:00.006+11:00</published><updated>2009-12-23T08:59:05.846+11:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="cleanfeed"/><category scheme="http://www.blogger.com/atom/ns#" term="rant"/><title type='text'>The Australian: astroturfer?</title><content type='html'>This entire &lt;a href=&quot;http://www.abc.net.au/news/stories/2009/12/15/2772467.htm&quot;&gt;cleanfeed&lt;/a&gt; &lt;a href=&quot;http://newmatilda.com/2009/12/16/conroys-clean-feed-wont-block&quot;&gt;fiasco&lt;/a&gt; is infuriating.&lt;br /&gt;&lt;br /&gt;From &lt;a href=&quot;http://bit.ly/8TOPPe&quot;&gt;Crikey&lt;/a&gt;:&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;In this weekend&#39;s Australian (19/20 Dec), the letters-to-the-editor page&lt;/span&gt; contained five letters responding to the internet filter and Labor&#39;s plan to filter out all material refused classification. The three pro-filter letters were written by alleged &quot;citizens&quot;:&lt;br /&gt;&lt;br /&gt;David Everard -- Australian Christian Lobby Vic, Executive&lt;br /&gt;Gabrielle Walsh -- Australian Family Association, Nat Sec&lt;br /&gt;Joe Lopez -- Australian Family Association, Secretary&lt;br /&gt;&lt;br /&gt;These three did not disclose that they were from Christian lobby groups, not only as members, but executive members.&lt;br /&gt;&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;http://media.crikey.com.au/wp-content/uploads/2009/12/oz-conroy1.jpg&quot;&gt;&lt;img style=&quot;display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 600px; height: 626px;&quot; src=&quot;http://media.crikey.com.au/wp-content/uploads/2009/12/oz-conroy1.jpg&quot; border=&quot;0&quot; alt=&quot;&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;Here&#39;s hoping the anti-filtering guys don&#39;t &lt;a href=&quot;http://www.abc.net.au/unleashed/stories/s2778257.htm&quot;&gt;fail&lt;/a&gt;. This thing goes ahead, everyone loses.</content><link rel='replies' type='application/atom+xml' href='http://blog.otherchirps.net/feeds/4363971657017258347/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1286475992168261676&amp;postID=4363971657017258347' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1286475992168261676/posts/default/4363971657017258347'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1286475992168261676/posts/default/4363971657017258347'/><link rel='alternate' type='text/html' href='http://blog.otherchirps.net/2009/12/australian-astroturfer.html' title='The Australian: astroturfer?'/><author><name>otherchirps</name><uri>http://www.blogger.com/profile/14004343695694930803</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://1.bp.blogspot.com/_aEyDjCywtFY/S2a0slGWndI/AAAAAAAABl0/dMnHtJHvn10/s1600-R/61aad7aa6e8cff40e22f420015d5aee9.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1286475992168261676.post-1191675552757860121</id><published>2009-12-09T00:32:00.004+11:00</published><updated>2009-12-09T00:38:06.413+11:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="funny"/><category scheme="http://www.blogger.com/atom/ns#" term="heuristic errors"/><title type='text'>A friend of a friend of mine...</title><content type='html'>Founded &lt;a href=&quot;http://www.apple.com&quot;&gt;Apple&lt;/a&gt;?  Wtf?&lt;br /&gt;&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;http://3.bp.blogspot.com/_aEyDjCywtFY/Sx5VwB3KjbI/AAAAAAAABkc/ia_MsjA_MQw/s1600-h/Screenshot.png&quot;&gt;&lt;img style=&quot;display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 400px; height: 348px;&quot; src=&quot;http://3.bp.blogspot.com/_aEyDjCywtFY/Sx5VwB3KjbI/AAAAAAAABkc/ia_MsjA_MQw/s400/Screenshot.png&quot; border=&quot;0&quot; alt=&quot;&quot;id=&quot;BLOGGER_PHOTO_ID_5412858085767810482&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;I think &lt;a href=&quot;http://linkedin.com&quot;&gt;LinkedIn&lt;/a&gt;&#39;s &quot;People you may know&quot; feature is stretching things a little. I&#39;m fairly sure I&#39;ve never met, or swapped emails with, Steve Wozniak. Either that, or with friends like mine, I should be driving a much better car.</content><link rel='replies' type='application/atom+xml' href='http://blog.otherchirps.net/feeds/1191675552757860121/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1286475992168261676&amp;postID=1191675552757860121' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1286475992168261676/posts/default/1191675552757860121'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1286475992168261676/posts/default/1191675552757860121'/><link rel='alternate' type='text/html' href='http://blog.otherchirps.net/2009/12/friend-of-friend-of-mine.html' title='A friend of a friend of mine...'/><author><name>otherchirps</name><uri>http://www.blogger.com/profile/14004343695694930803</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://1.bp.blogspot.com/_aEyDjCywtFY/S2a0slGWndI/AAAAAAAABl0/dMnHtJHvn10/s1600-R/61aad7aa6e8cff40e22f420015d5aee9.png'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://3.bp.blogspot.com/_aEyDjCywtFY/Sx5VwB3KjbI/AAAAAAAABkc/ia_MsjA_MQw/s72-c/Screenshot.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1286475992168261676.post-1151800945309211039</id><published>2009-12-07T00:26:00.006+11:00</published><updated>2009-12-07T00:51:49.806+11:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="parenting"/><category scheme="http://www.blogger.com/atom/ns#" term="rant"/><title type='text'>Baby trolley blackmarket?</title><content type='html'>A few weeks ago we found a new &lt;a href=&quot;http://coles.com.au/&quot;&gt;Coles&lt;/a&gt; had opened nearby, in &lt;a href=&quot;http://maps.google.com.au/maps?q=waterloo,+sydney&amp;oe=utf-8&amp;client=firefox-a&amp;ie=UTF8&amp;hq=&amp;hnear=Waterloo+NSW&amp;gl=au&amp;ei=CbYbS83HKsuGkAXYr_ThAw&amp;ved=0CAsQ8gEwAA&amp;t=h&amp;z=14&quot;&gt;Waterloo&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;This isn&#39;t newsworthy. Coles opens plenty of shops, and they&#39;re all boring. You go there, grab some milk and &lt;a href=&quot;http://www.nestle.com.au/Products/CerealSnack/UNCLE+TOBYS/Cereals/UNCLE_TOBYS_Vita_Brits.htm&quot;&gt;vita brits&lt;/a&gt;, and get out before the fluorescent lights dazzle you much more into numbness.&lt;br /&gt;&lt;br /&gt;But... this one had kiddie trolleys!&lt;br /&gt;&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;http://2.bp.blogspot.com/_aEyDjCywtFY/SxuySbHr05I/AAAAAAAABj4/bOkSlnzZORY/s1600-h/28112009(003)-2+(Modified).jpg&quot;&gt;&lt;img style=&quot;float:center; margin:0 0 10px 10px;cursor:pointer; cursor:hand;width: 380px; height: 243px;&quot; src=&quot;http://2.bp.blogspot.com/_aEyDjCywtFY/SxuySbHr05I/AAAAAAAABj4/bOkSlnzZORY/s400/28112009(003)-2+(Modified).jpg&quot; border=&quot;0&quot; alt=&quot;&quot;id=&quot;BLOGGER_PHOTO_ID_5412115406803162002&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;My little one instantly fell in love with the place.  Suddenly, instead of being a passenger, she was in charge. Somehow, from that point on, our normal shopping load had to fit into a space about one fifth the size of a regular trolley.  They have these little flags, which reach about eye-level of an average adult, to draw attention to the rug-rats underfoot.  A surprising number of noses were almost lost, as these &quot;flags&quot; zipped past an unaware walker.  Nothing stops someone squishing an unseen 3 year old faster than a hard plastic flag slicing the tip of their nose.&lt;br /&gt;&lt;br /&gt;There was much good-feeling from how smoothly the trip went, thanks to the novelty item.  Seemed an ample number to go round, as lots of kids were happily zipping round the aisles.  One of the deals in many good-behaviour negotiations over the next fortnight was, &quot;we might visit the shop with the baby trolleys again.&quot;&lt;br /&gt;&lt;br /&gt;Today, being out of vita brits, we tried to make good on this promise. Over the last two weeks, a bunch of scumbags stole 20 of the things!  There are now only 2 remaining.  Now in very high demand, and requiring you to hand over your license, as insurance against absconding.&lt;br /&gt;&lt;br /&gt;It seems there&#39;s a &lt;a href=&quot;http://www.themorningbulletin.com.au/story/2009/10/12/trolley-folly-is-no-joke-for-mum/&quot;&gt;nationwide&lt;/a&gt; &lt;a href=&quot;http://www.winghamchronicle.com.au/news/local/news/general/who-nicked-our-trolleys/1617734.aspx&quot;&gt;spree&lt;/a&gt; of &lt;a href=&quot;http://www.news.com.au/couriermail/story/0,23739,26291068-661,00.html&quot;&gt;stealing&lt;/a&gt; these baby trolleys.  &lt;br /&gt;&lt;br /&gt;Pretty low.  &lt;br /&gt;&lt;br /&gt;Maybe for some it&#39;s easier to pop it into the car, rather than convince the screaming toddler that it actually belongs to the shop.  But next time they go back, and there&#39;s none left to use, their kid might be saying the same thing mine did, &quot;I&#39;m actually very sad not to have my baby trolley.&quot;  &lt;br /&gt;&lt;br /&gt;At least she&#39;s had the idea of &quot;theft&quot; explained to her now.</content><link rel='replies' type='application/atom+xml' href='http://blog.otherchirps.net/feeds/1151800945309211039/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1286475992168261676&amp;postID=1151800945309211039' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1286475992168261676/posts/default/1151800945309211039'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1286475992168261676/posts/default/1151800945309211039'/><link rel='alternate' type='text/html' href='http://blog.otherchirps.net/2009/12/baby-trolley-blackmarket.html' title='Baby trolley blackmarket?'/><author><name>otherchirps</name><uri>http://www.blogger.com/profile/14004343695694930803</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://1.bp.blogspot.com/_aEyDjCywtFY/S2a0slGWndI/AAAAAAAABl0/dMnHtJHvn10/s1600-R/61aad7aa6e8cff40e22f420015d5aee9.png'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://2.bp.blogspot.com/_aEyDjCywtFY/SxuySbHr05I/AAAAAAAABj4/bOkSlnzZORY/s72-c/28112009(003)-2+(Modified).jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1286475992168261676.post-2669086305560101367</id><published>2009-11-26T21:05:00.020+11:00</published><updated>2009-11-26T22:29:12.630+11:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="programming"/><category scheme="http://www.blogger.com/atom/ns#" term="python"/><category scheme="http://www.blogger.com/atom/ns#" term="windows"/><title type='text'>So you want to start your service in Safe Mode?</title><content type='html'>...&lt;span style=&quot;font-style:italic;&quot;&gt;And&lt;/span&gt; you still want to qualify for your &quot;Made for Windows 7&quot; logo?  One of the &lt;a href=&quot;http://go.microsoft.com/?linkid=9630189&quot;&gt;requirements&lt;/a&gt; for getting this logo is to ensure that any services you install don&#39;t automatically start when booting into Safe Mode.  Amongst other things, requirement 8 in the document says:&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;&quot;drivers and services must not be set to load in safe mode.&quot;&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;When windows launches into Safe Mode, the Service Control Manager (SCM) will refuse to run any services not entered under specific registry keys. Namely:&lt;br /&gt;&lt;ul&gt;&lt;br /&gt; &lt;li&gt;HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\SafeBoot\Minimal, or&lt;/li&gt;&lt;br /&gt; &lt;li&gt;HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\SafeBoot\Network&lt;/li&gt;&lt;br /&gt;&lt;/ul&gt;&lt;br /&gt;Where &quot;Minimal&quot; is a plain Safe Mode start, and &quot;Network&quot; is for the &quot;Safe Mode with Network support&quot; option.&lt;br /&gt;&lt;br /&gt;If you try anyway, the SCM will just reject you with error &lt;span style=&quot;font-weight:bold;&quot;&gt;1084&lt;/span&gt; (&lt;span style=&quot;font-weight:bold;&quot;&gt;ERROR_NOT_SAFEBOOT_SERVICE&lt;/span&gt;).  This is normally a good thing, since the entire point of Safe Mode is to run with a minimal set of services that are &lt;span style=&quot;font-style:italic;&quot;&gt;known&lt;/span&gt; to work.  Eject all frills and buggy drivers.&lt;br /&gt;&lt;br /&gt;In my case, our GUI app will normally attempt to start the service if it&#39;s not running.  Safe Mode breaks this.  One of our features is &quot;doing stuff in Safe Mode&quot;.  The service does the real work of our product.  Adding the service entry at install time would be breaking the logo rules.  Automatic starts are not an option.  But, if the user asks us to manually start the service once they&#39;ve logged in, that seems ok.  It&#39;s not explicitly ruled out, anyway.  I think.  Given this, one option is to have the loader app add the service entry keys, then ask the SCM to start our service.&lt;br /&gt;&lt;br /&gt;Not really. &lt;br /&gt;&lt;br /&gt;What happens if the service and GUI crash (eg. something causes a BSOD)?  Or the power gets cut?  Our entries are still where they shouldn&#39;t be, enabling our service, under the SafeBoot key.  No logo for you!  Sure, you can add the service entry as a &quot;Manual&quot; service, so it wouldn&#39;t actually launch, but just having entries there at all -- without Microsoft&#39;s blessing -- is equally bad.&lt;br /&gt;&lt;br /&gt;This is where &lt;span style=&quot;font-style:italic;&quot;&gt;volatile&lt;/span&gt; registry keys come in handy.  These are keys that are created in memory only, and never written to the hive file on disk.  If the machine reboots, or the lights go out, they&#39;re gone. Along with the possibility of us leaving entries under that SafeBoot key at startup.&lt;br /&gt;&lt;br /&gt;eg.&lt;br /&gt;&lt;pre type=&quot;syntaxhighlighter&quot; class=&quot;brush: python; wrap-lines: false;&quot;&gt;&lt;br /&gt;import win32api  # could do all this with the _winreg module, but pywin32 lets us &lt;br /&gt;                 # stick closer to the normal looking win32 api function names.&lt;br /&gt;&lt;br /&gt;from win32api import RegCreateKeyEx, RegOpenKeyEx, RegCloseKey, RegSetValue &lt;br /&gt;from win32con import HKEY_LOCAL_MACHINE, KEY_CREATE_SUB_KEY, \&lt;br /&gt;                     KEY_QUERY_VALUE, KEY_ENUMERATE_SUB_KEYS, \&lt;br /&gt;                     KEY_READ, REG_SZ, KEY_SET_VALUE&lt;br /&gt;from winnt import REG_OPTION_VOLATILE&lt;br /&gt;&lt;br /&gt;def add_temporary_safeboot_keys(service_name):&lt;br /&gt;    root_hive = HKEY_LOCAL_MACHINE&lt;br /&gt;    safeboot_parent = &amp;quot;System\\CurrentControlSet\\Control\\SafeBoot&amp;quot;&lt;br /&gt;    safeboot_paths = (safeboot_parent + &amp;quot;\\Minimal&amp;quot;, &lt;br /&gt;                      safeboot_parent + &amp;quot;\\Network&amp;quot;)&lt;br /&gt;&lt;br /&gt;    for safeboot_path in safeboot_paths:&lt;br /&gt;        # python will throw an exception if this fails... so no need to check last error, etc.&lt;br /&gt;        safeboot_key = RegOpenKeyEx(root_hive, safeboot_path, 0, &lt;br /&gt;                                    KEY_CREATE_SUB_KEY | &lt;br /&gt;                                    KEY_QUERY_VALUE | &lt;br /&gt;                                    KEY_ENUMERATE_SUB_KEYS)&lt;br /&gt;        try:&lt;br /&gt;            new_key, create_disposition = RegCreateKeyEx(safeboot_key, service_name, &lt;br /&gt;                                                         KEY_SET_VALUE, None,&lt;br /&gt;                                                         REG_OPTION_VOLATILE,&lt;br /&gt;                                                         None, None)&lt;br /&gt;&lt;br /&gt;            # We don&#39;t actually need to do anything with the new key... just wanted it made.&lt;br /&gt;            # But, just to be nice, many of the other SafeBoot entries supply a hint, &lt;br /&gt;            # as to what kind of service they&#39;re starting.&lt;br /&gt;            # Normally we set the default value to either &amp;quot;Service&amp;quot;, for a normal &lt;br /&gt;            # usermode service. Or &amp;quot;Driver&amp;quot;, if this service is hosting&lt;br /&gt;            # a kernel driver.&lt;br /&gt;            RegSetValue(new_key, None, REG_SZ, &amp;quot;Service&amp;quot;)&lt;br /&gt;            &lt;br /&gt;            # create_disposition will be REG_CREATED_NEW_KEY or REG_OPENED_EXISTING_KEY.&lt;br /&gt;            # Either way, we don&#39;t really care.&lt;br /&gt;            RegCloseKey(new_key)&lt;br /&gt;        finally:&lt;br /&gt;            RegCloseKey(safeboot_key)&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;Now we can add the &lt;span style=&quot;font-style:italic;&quot;&gt;volatile&lt;/span&gt; entries under SafeBoot, and the SCM will happily kickstart our service on demand. No trace will remain on machine restart.&lt;br /&gt;&lt;br /&gt;Of course, those who actually bother to read the aforementioned &quot;requirement 8&quot; may notice that it also says:&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;&quot;Drivers and services that must be started in safe mode require a waiver.&quot;&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;So, hopefully it&#39;s not, but this all might be breaking the rules anyway, if you assume there&#39;s an implicit &lt;span style=&quot;font-style:italic;&quot;&gt;&quot;at all&quot;&lt;/span&gt; after the &quot;started in safe mode&quot;.  But if you focus on the earlier part about &quot;services must not be set to load &lt;span style=&quot;font-style:italic;&quot;&gt;[at startup]&lt;/span&gt;&quot;, and consider that with the keys being volatile, evidence of your crime is fleeting.  Besides, it mightn&#39;t be an implicit &quot;at all&quot;. It &lt;span style=&quot;font-style:italic;&quot;&gt;could&lt;/span&gt; be an implicit &lt;span style=&quot;font-style:italic;&quot;&gt;&quot;automatically&quot;&lt;/span&gt; instead.  Maybe it&#39;s worth a roll of the dice.&lt;br /&gt;&lt;br /&gt;The better way would be to split out the functionality needed into a shared library, and have a standalone application do what you need, instead of the service. But you&#39;ve been painted into a corner (there&#39;s that phantom coder again), and there&#39;s no time for a grand refactoring.  Ship first, refactor later.</content><link rel='replies' type='application/atom+xml' href='http://blog.otherchirps.net/feeds/2669086305560101367/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1286475992168261676&amp;postID=2669086305560101367' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1286475992168261676/posts/default/2669086305560101367'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1286475992168261676/posts/default/2669086305560101367'/><link rel='alternate' type='text/html' href='http://blog.otherchirps.net/2009/11/so-you-want-to-start-your-service-in.html' title='So you want to start your service in Safe Mode?'/><author><name>otherchirps</name><uri>http://www.blogger.com/profile/14004343695694930803</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://1.bp.blogspot.com/_aEyDjCywtFY/S2a0slGWndI/AAAAAAAABl0/dMnHtJHvn10/s1600-R/61aad7aa6e8cff40e22f420015d5aee9.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1286475992168261676.post-3643107023574822101</id><published>2009-11-22T12:34:00.005+11:00</published><updated>2009-11-22T12:41:41.307+11:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="betrayed by elmo"/><title type='text'>Oh Elmo, how could you?</title><content type='html'>Found these on my phone, from earlier this year.&lt;br /&gt;&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;http://3.bp.blogspot.com/_aEyDjCywtFY/SwiVl6YJiOI/AAAAAAAABiw/yvtTW8IkDxs/s1600/elmo1_small.jpg&quot;&gt;&lt;img style=&quot;display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 320px; height: 240px;&quot; src=&quot;http://3.bp.blogspot.com/_aEyDjCywtFY/SwiVl6YJiOI/AAAAAAAABiw/yvtTW8IkDxs/s400/elmo1_small.jpg&quot; border=&quot;0&quot; alt=&quot;&quot;id=&quot;BLOGGER_PHOTO_ID_5406735831216523490&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;http://1.bp.blogspot.com/_aEyDjCywtFY/SwiV34kPA4I/AAAAAAAABi4/UJiSGGSeJhM/s1600/elmo2_small.jpg&quot;&gt;&lt;img style=&quot;display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 300px; height: 345px;&quot; src=&quot;http://1.bp.blogspot.com/_aEyDjCywtFY/SwiV34kPA4I/AAAAAAAABi4/UJiSGGSeJhM/s400/elmo2_small.jpg&quot; border=&quot;0&quot; alt=&quot;&quot;id=&quot;BLOGGER_PHOTO_ID_5406736139967988610&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;I always liked &lt;a href=&quot;http://muppet.wikia.com/wiki/Grover&quot;&gt;Grover&lt;/a&gt; better, anyway.</content><link rel='replies' type='application/atom+xml' href='http://blog.otherchirps.net/feeds/3643107023574822101/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1286475992168261676&amp;postID=3643107023574822101' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1286475992168261676/posts/default/3643107023574822101'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1286475992168261676/posts/default/3643107023574822101'/><link rel='alternate' type='text/html' href='http://blog.otherchirps.net/2009/11/oh-elmo-how-could-you.html' title='Oh Elmo, how could you?'/><author><name>otherchirps</name><uri>http://www.blogger.com/profile/14004343695694930803</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://1.bp.blogspot.com/_aEyDjCywtFY/S2a0slGWndI/AAAAAAAABl0/dMnHtJHvn10/s1600-R/61aad7aa6e8cff40e22f420015d5aee9.png'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://3.bp.blogspot.com/_aEyDjCywtFY/SwiVl6YJiOI/AAAAAAAABiw/yvtTW8IkDxs/s72-c/elmo1_small.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1286475992168261676.post-8722704153079625011</id><published>2009-11-21T02:29:00.014+11:00</published><updated>2009-11-26T22:50:08.491+11:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="delphi"/><category scheme="http://www.blogger.com/atom/ns#" term="programming"/><category scheme="http://www.blogger.com/atom/ns#" term="win32"/><title type='text'>Delphi 2007: Wrong GetSecurityInfo() declarations in AclAPI.pas</title><content type='html'>This one is for the 5 people left in the country still using Delphi at work. Or rather, the 1 out of those that is writing system code with Delphi. My place of work is one of these rarities. Delphi isn&#39;t usually a language most folk associate with system programming.  Normally it&#39;s more for GUI front-ends or desktop apps. Its included standard libraries revolve around its VCL (Visual Component Library), which are explicitly aimed at this kind of development.&lt;br /&gt;&lt;br /&gt;As a language, it does have its good points.  Very clean, copy-on-write ref counted strings, pointers to hang yourself with if you&#39;re in the mood.  When the &lt;a href=&quot;http://golang.org&quot;&gt;Go guys&lt;/a&gt; were raving about their quick compiler, it didn&#39;t seem like anything new looking on with Delphi eyes.  We&#39;ve had that for the past decade or two. :P &lt;br /&gt;&lt;br /&gt;But... it is definitely aimed at the desktop application builder.  Not the systems level monkeys. Like I seem to be at the moment.&lt;br /&gt;&lt;br /&gt;Which is probably why this incorrect translation of the Windows API has gone unnoticed (or just ignored) for so long.  I mean, I&#39;m using the 2007 version, and judging by &lt;a href=&quot;http://qc.embarcadero.com/wc/qcmain.aspx?d=75759&quot;&gt;this bug report&lt;/a&gt;, it&#39;s still there in the latest 2009 edition.&lt;br /&gt;&lt;br /&gt;Over in AclAPI.pas, a bunch of the windows security types and functions are declared.  The one that got me was &lt;span style=&quot;font-weight:bold;&quot;&gt;GetSecurityInfo()&lt;/span&gt;.  If you blindly trust your standard lib&#39;s autocomplete to tell you the correct parameters, you won&#39;t find out it&#39;s broken until you see something like &lt;span style=&quot;font-weight:bold;&quot;&gt;&lt;a href=&quot;http://msdn.microsoft.com/en-us/library/aa374815%28VS.85%29.aspx&quot;&gt;AccessCheck()&lt;/a&gt;&lt;/span&gt; returning a &lt;span style=&quot;font-weight:bold;&quot;&gt;ERROR_NOACCESS&lt;/span&gt; (ie. there was probably a &lt;span style=&quot;font-weight:bold;&quot;&gt;STATUS_ACCESS_VIOLATION&lt;/span&gt; somewhere down below).&lt;br /&gt;&lt;br /&gt;Here&#39;s the &lt;a href=&quot;http://msdn.microsoft.com/en-us/library/aa446654%28VS.85%29.aspx&quot;&gt;MSDN C version&lt;/a&gt;, that Delphi should be faithful to:&lt;br /&gt;&lt;br /&gt;&lt;pre class=&quot;brush: c&quot;&gt;&lt;br /&gt;DWORD WINAPI GetSecurityInfo(&lt;br /&gt;  __in       HANDLE handle,&lt;br /&gt;  __in       SE_OBJECT_TYPE ObjectType,&lt;br /&gt;  __in       SECURITY_INFORMATION SecurityInfo,&lt;br /&gt;  __out_opt  PSID *ppsidOwner,&lt;br /&gt;  __out_opt  PSID *ppsidGroup,&lt;br /&gt;  __out_opt  PACL *ppDacl,&lt;br /&gt;  __out_opt  PACL *ppSacl,&lt;br /&gt;  __out_opt  PSECURITY_DESCRIPTOR *ppSecurityDescriptor&lt;br /&gt;);&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;The current AclAPI delphi translation is this:&lt;br /&gt;&lt;br /&gt;&lt;pre class=&quot;brush: delphi; wrap-lines: false;&quot;&gt;&lt;br /&gt;function GetSecurityInfo(&lt;br /&gt;           AHandle                 : THandle;&lt;br /&gt;           ObjectType              : SE_OBJECT_TYPE;&lt;br /&gt;           SecurityInfo            : SECURITY_INFORMATION;&lt;br /&gt;           ppsidOwner              : PPSID; &lt;br /&gt;           ppsidGroup              : PPSID; &lt;br /&gt;           ppDacl, ppSacl          : PACL;&lt;br /&gt;           var ppSecurityDescriptor: PPSECURITY_DESCRIPTOR&lt;br /&gt;         ): DWORD; stdcall;&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;What&#39;s wrong with this picture?  A few things.&lt;br /&gt;&lt;br /&gt;For starters, the C version is expecting &lt;span style=&quot;font-style:italic;&quot;&gt;pointers&lt;/span&gt; to PACL ppDacl &amp; ppSacl.  The delphi version is passing the PACLs directly, not pointers to them.&lt;br /&gt;&lt;br /&gt;Also, same kind of thing for ppSecurityDescriptor. It&#39;s meant to be a pointer to a PSECURITY_DESCRIPTOR.  &lt;br /&gt;&lt;br /&gt;I hear you ask, &quot;Isn&#39;t that what the extra &#39;P&#39; in PPSECURITY_DESCRIPTOR means?&quot;&lt;br /&gt;&lt;br /&gt;Yes, but the &quot;var&quot; in &quot;var ppSecurityDescriptor&quot; means to &lt;span style=&quot;font-style:italic;&quot;&gt;pass by reference&lt;/span&gt;.  So in effect the delphi version is sending a PPPSECURITY_DESCRIPTOR to GetSecurityInfo().  Which is bad news.&lt;br /&gt;&lt;br /&gt;The correct delphi version should look more like this:&lt;br /&gt;&lt;br /&gt;&lt;pre class=&quot;brush: delphi; wrap-lines: false;&quot;&gt;&lt;br /&gt;type&lt;br /&gt;  PPACL = ^PACL;&lt;br /&gt;&lt;br /&gt;function GetSecurityInfo(&lt;br /&gt;           AHandle                 : THandle;&lt;br /&gt;           ObjectType              : SE_OBJECT_TYPE;&lt;br /&gt;           SecurityInfo            : SECURITY_INFORMATION;&lt;br /&gt;           ppsidOwner              : PPSID; &lt;br /&gt;           ppsidGroup              : PPSID; &lt;br /&gt;           ppDacl, ppSacl          : PPACL;&lt;br /&gt;           var ppSecurityDescriptor: PSECURITY_DESCRIPTOR&lt;br /&gt;         ): DWORD; stdcall; external advapi32 &lt;br /&gt;                            name &#39;GetSecurityInfo&#39;;&lt;br /&gt;&lt;/pre&gt;</content><link rel='replies' type='application/atom+xml' href='http://blog.otherchirps.net/feeds/8722704153079625011/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1286475992168261676&amp;postID=8722704153079625011' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1286475992168261676/posts/default/8722704153079625011'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1286475992168261676/posts/default/8722704153079625011'/><link rel='alternate' type='text/html' href='http://blog.otherchirps.net/2009/11/delphi-2007-wrong-getsecurityinfo.html' title='Delphi 2007: Wrong GetSecurityInfo() declarations in AclAPI.pas'/><author><name>otherchirps</name><uri>http://www.blogger.com/profile/14004343695694930803</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://1.bp.blogspot.com/_aEyDjCywtFY/S2a0slGWndI/AAAAAAAABl0/dMnHtJHvn10/s1600-R/61aad7aa6e8cff40e22f420015d5aee9.png'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1286475992168261676.post-7268636567304919567</id><published>2009-07-27T22:26:00.006+10:00</published><updated>2009-07-28T00:23:05.398+10:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="cleanfeed"/><category scheme="http://www.blogger.com/atom/ns#" term="politics"/><category scheme="http://www.blogger.com/atom/ns#" term="rant"/><title type='text'>Filtering trials reporting initial results (or, &quot;Surprise! The government is your friend!&quot;)</title><content type='html'>The turkeys are gobbling.  The tiny sample set of purpose-picked ISPs &lt;a href=&quot;http://www.arnnet.com.au/article/312354/isps_give_clean_feed_filter_technical_green-light&quot;&gt;have begun reporting that everything is cool&lt;/a&gt; with filtering on, and their customers are unaffected by speed drops.&lt;br /&gt;&lt;br /&gt;I have some problems with this.  &lt;br /&gt;&lt;br /&gt;Firstly, the results were going to be smell biased in the government&#39;s favour, with ISPs having vested interest in &quot;good&quot; results. &lt;a href=&quot;http://www.webshield.net.au&quot;&gt;One of the test ISPs&lt;/a&gt; already provides a clean feed.  It&#39;s going to suddenly come out and say, “Oh, by the way, filtering slows things down a bit. My, oh, my, what have we been selling these past few years?”  Saying that filtering doesn&#39;t affect speed is a lie. &lt;a href=&quot;http://en.wikipedia.org/wiki/Observer_effect&quot;&gt;Observer effect&lt;/a&gt;, people?  To inspect is to interfere.&lt;br /&gt;&lt;br /&gt;Given that the number of ISPs is small, even if you ignore that some of them may be biased to begin with, most of them ran the trial as an opt-in scheme. Meaning they let their customers decide if they wanted to take part.  So you can take your small sample set of results, and cut it again. One of them reported only 1% of the customers joined the scheme. In that case, it meant there were &lt;span style=&quot;font-style:italic;&quot;&gt;15 users&lt;/span&gt;. From a group of 15, the Rudd and Conroy seriously expect to extrapolate meaningful results to a national scale?  Tell &#39;em they&#39;re dreamin&#39;. As &lt;a href=&quot;http://twitter.com/NewtonMark/statuses/2831365473&quot;&gt;Mark Newton tweeted&lt;/a&gt;:&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;“Grant for $10,000, 15 customers tested. Teh succecss is z0mg awesome!”&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;Secondly, my main problem is – and has &lt;span style=&quot;font-style:italic;&quot;&gt;always&lt;/span&gt; been – that this is going on &lt;span style=&quot;font-style:italic;&quot;&gt;at all&lt;/span&gt;.  Ignore the suspect speed results, and assume that this can work fast enough, and be entirely transparent to all users.  Why the hell is this going ahead? There was a &lt;a href=&quot;http://www.crikey.com.au/2009/07/27/internet-filtering-speed-won%25e2%2580%2599t-be-the-issue/&quot;&gt;great article over on Crikey&lt;/a&gt; wondering the same thing. Speed won&#39;t be the issue, come the end of the trials.  The tests will give the desired numbers. By hook, or by crook. As they mention, protest groups like &lt;a href=&quot;http://www.getup.org.au/campaign/SaveTheNet/442&quot;&gt;GetUp&lt;/a&gt; have been mainly focussing on the speed / technological performance hits, should filtering go ahead (well, at least the &lt;a href=&quot;https://www.getup.org.au/campaign/SaveTheNet&amp;id=684&quot;&gt;Censordyne&lt;/a&gt; thing did). It feels like they&#39;re falling into a trap, with rigged trial numbers about to pounce. &lt;br /&gt;&lt;br /&gt;Maybe these groups feel it&#39;s easier to appeal to the masses this way, rather than concentrating more on the humanitarian side – privacy, free speech, and all that jazz.  If that&#39;s true, we suck, and deserve to be filtered. Surrendering our rights out of sheer apathy.&lt;br /&gt;&lt;br /&gt;I&#39;ve &lt;a href=&quot;http://blog.otherchirps.net/2008/12/still-not-getting-it.html&quot;&gt;talked&lt;/a&gt; &lt;a href=&quot;http://blog.otherchirps.net/2008/12/cleanfeed-no-thanks.html&quot;&gt;before&lt;/a&gt; about my distaste for censorship in general.  Especially in this case, where the blacklist is &lt;span style=&quot;font-style:italic;&quot;&gt;secret&lt;/span&gt;, maintained by &lt;span style=&quot;font-style:italic;&quot;&gt;unaccountable&lt;/span&gt; bureaucrats.  The way Conroy, and by proxy Rudd, seem so fixated on making this happen screams ulterior motive.  Secret blacklist, with fuzzy statements on what exactly will be blocked, and bogus speed trials to give the government numbers it likes.  They&#39;re pushing hard, and not telling anyone why.  &lt;br /&gt;&lt;br /&gt;Even if this government has genuinely benign intentions, allowing the police-state tools to infest the nation is a scary road to start down.  Who knows who will have the keys to the control room later on.&lt;br /&gt;&lt;br /&gt;Or is it sheer political incompetence?  Haven&#39;t really seen this from Rudd Co. yet, so unlikely. But an “anonymous coward” said this, &lt;a href=&quot;http://tech.slashdot.org/comments.pl?sid=1314689&amp;cid=28816871&quot;&gt;over on slashdot&lt;/a&gt;:&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;“I&#39;m posting anonymously, as I work for an Australian ISP (and no, not the one indicated by my IP address).&lt;br /&gt;&lt;br /&gt;The previous government did have a filtering plan. Which it had been investigating for around five years. Every time they needed Senator Harridine&#39;s balance-of-power vote, they&#39;d announce another inquiry into Internet censorship. And having got his vote they&#39;d shelve the report. For all Senator Alston&#39;s lack of understanding of the Internet, he was superb at politics and he knew how to create the illusion of progress whilst making sure the rubber never actually hit the road. Which Alston was clever enough to know would lead to a showdown between the liberal (Costello) and conservative (Howard) elements in the party. A showdown which would damage the government, and thus to be avoided.&lt;br /&gt;&lt;br /&gt;Then Labor arrives. And hey, how inefficient was the previous government, making no progress on this for the past five years, despite all of that work? So the new minister tells the department that he want results this time. Without quite understanding what he is asking for. Again there&#39;s a rabid conservative religious nutter holding the balance of power. But the new minister lacks the political skills of the old, and has set the snowball rolling...”&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;Comforting, since the “benign” &lt;span style=&quot;font-style:italic;&quot;&gt;intentions&lt;/span&gt;, of not knowing what you&#39;re doing, are blatant.  However, it still starts us on the same horrible police-state path.&lt;br /&gt;&lt;br /&gt;I actually voted for these guys last election.  They did &lt;span style=&quot;font-style:italic;&quot;&gt;not&lt;/span&gt; outline their draconian filtering plan at the time.  On most other fronts, I&#39;ve been happy with them.  Yes, economically.  Yes, pushing new health reforms.  Quite flaky, environmentally, but seem to be willing to dance if prodded hard enough.  But the pig-headed way they&#39;re shoving this mandatory filtering down our throats really makes me ashamed, and a bit frightened, that Labor gained office.&lt;br /&gt;&lt;br /&gt;Still, it appears to be a &lt;a href=&quot;http://www.nzherald.co.nz/technology/news/article.cfm?c_id=5&amp;objectid=10584710&quot;&gt;global&lt;/a&gt; trend at the &lt;a href=&quot;http://news.bbc.co.uk/2/hi/middle_east/1959481.stm&quot;&gt;moment&lt;/a&gt;. All the &lt;a href=&quot;http://news.bbc.co.uk/newsbeat/hi/technology/newsid_7264000/7264277.stm&quot;&gt;cool countries&lt;/a&gt; are doing it. Why not Oz?</content><link rel='replies' type='application/atom+xml' href='http://blog.otherchirps.net/feeds/7268636567304919567/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1286475992168261676&amp;postID=7268636567304919567' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1286475992168261676/posts/default/7268636567304919567'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1286475992168261676/posts/default/7268636567304919567'/><link rel='alternate' type='text/html' href='http://blog.otherchirps.net/2009/07/filtering-trials-reporting-initial.html' title='Filtering trials reporting initial results (or, &quot;Surprise! The government is your friend!&quot;)'/><author><name>otherchirps</name><uri>http://www.blogger.com/profile/14004343695694930803</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://1.bp.blogspot.com/_aEyDjCywtFY/S2a0slGWndI/AAAAAAAABl0/dMnHtJHvn10/s1600-R/61aad7aa6e8cff40e22f420015d5aee9.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1286475992168261676.post-8250579125678358982</id><published>2009-07-23T23:51:00.008+10:00</published><updated>2009-07-24T00:06:22.809+10:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="games"/><category scheme="http://www.blogger.com/atom/ns#" term="wine"/><title type='text'>Thank you WINE! Multiwinia working again!  Oh, hang on...</title><content type='html'>For the last several iterations of &lt;a href=&quot;http://www.winehq.org/&quot;&gt;WINE&lt;/a&gt;, many of my &lt;a href=&quot;http://store.steampowered.com/&quot;&gt;Steam&lt;/a&gt; games have been quite flaky.  No fault of WINE.  Keeping up with as many moving targets as it does is quite an achievement. However, while some of these games were flaky, &lt;a href=&quot;http://www.introversion.co.uk/multiwinia&quot;&gt;Multiwinia&lt;/a&gt; and &lt;a href=&quot;http://www.introversion.co.uk/darwinia&quot;&gt;Darwinia&lt;/a&gt; have simply been broken.  Couldn&#39;t start.  &lt;br /&gt;&lt;br /&gt;I could have reinstalled Windows, and played without any trouble.  They were built for Windows, after all. But I&#39;ve been happily running Ubuntu for quite a while now.  I&#39;m in no hurry to jump back into the pay-for-your-operating-system fold. I could just pirate windows and be done with it.  But (ignoring the naughtiness) why bother, when there are perfectly functional free (as in &lt;span style=&quot;font-style:italic;&quot;&gt;speech&lt;/span&gt; and &lt;span style=&quot;font-style:italic;&quot;&gt;beer&lt;/span&gt;) operating systems around? Besides, the ever-energetic WINE developers seem to churn out updates like you wouldn&#39;t believe.  Surely one of the upcoming versions will make everything better. Still, in the meantime, I was missing Multiwinia.&lt;br /&gt;&lt;br /&gt;I&#39;ve especially been wanting to start playing it again, as its creators think it&#39;s hardly being played. Read the &lt;a href=&quot;http://forums.introversion.co.uk/introversion/viewtopic.php?t=2012&quot;&gt;saga on their blog&lt;/a&gt;. Apparently, the &lt;span style=&quot;font-style:italic;&quot;&gt;conversion rate&lt;/span&gt;, from a taste of the demo to paid product, is extremely high.  That&#39;s pretty cool. Hats off, and a big well-done to those guys. It&#39;s just that due to some bad timing with magazine review schedules and stuff, there haven&#39;t been that many people trying the demo in the first place.&lt;br /&gt;&lt;br /&gt;Well, after being addicted to their earlier game, Darwinia, I was one of those rare demo players.  The theory held true in my case.  After tasting the demo, I immediately bought a copy of Multiwinia.  It&#39;s fun.  Fun games are getting harder to find.  Many are cinematic, operatic, atmospheric, realistic, acrobatic, or just plain crap, but increasingly it&#39;s rare for any to be a joy to play.  I think that&#39;s partially why &lt;a href=&quot;http://www.zelda.com&quot;&gt;Zelda&lt;/a&gt; keeps &lt;a href=&quot;http://www.foxnews.com/story/0,2933,232145,00.html&quot;&gt;selling crazily&lt;/a&gt; whenever it&#39;s released.  Folks keep wanting to regain the fun they had when they first played it when they were 9.  The successes I&#39;ve been having lately have been with the smaller independent products, like these Introversion wares, and also a few others: the &lt;a href=&quot;http://www.worldofgoo.com/&quot;&gt;World of Goo&lt;/a&gt;, and (played, but still to buy) &lt;a href=&quot;http://braid-game.com/&quot;&gt;Braid&lt;/a&gt;. &lt;br /&gt;&lt;br /&gt;So, it was with much joy I found that Multiwinia was running again, since upgrading to WINE 1.1.26.  Lickity-split, my green darwinians were battling against teams of red, blue and yellow.  My little green guys were kicking arse.  Then, when they&#39;d claimed about half the map, everything starts stuttering badly.  The camera jumps wildly all over the place, anytime I try moving around.  Things just simply suffer.&lt;br /&gt;&lt;br /&gt;Jumping out to the resource monitor, I notice this:&lt;br /&gt;&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;http://2.bp.blogspot.com/_aEyDjCywtFY/SmhuARnO6GI/AAAAAAAABik/RsqYYfK62MQ/s1600-h/Screenshot.png&quot;&gt;&lt;img style=&quot;display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 400px; height: 96px;&quot; src=&quot;http://2.bp.blogspot.com/_aEyDjCywtFY/SmhuARnO6GI/AAAAAAAABik/RsqYYfK62MQ/s400/Screenshot.png&quot; border=&quot;0&quot; alt=&quot;&quot;id=&quot;BLOGGER_PHOTO_ID_5361656307391588450&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Multiwinia is eating copious amounts of memory. On my 2GB system, 1.4GB is a fair bit for any one app to chew.  &lt;br /&gt;&lt;br /&gt;Now, I&#39;m betting this is not normal behaviour when running it natively on windows, since there&#39;s no mention of this on the forums.  My money is on some  other subtle difference between windows and WINE.  Same enough to run, but still different enough in this case to leak memory like a river.  I didn&#39;t see this on the older versions of WINE when these games were working before.  &lt;br /&gt;&lt;br /&gt;Sigh.  Nearly there.  Maybe 1.1.27 will be better.  Maybe I&#39;ll get off my butt and start trying to track down the problem too?  Get some git-foo and &lt;a href=&quot;http://wiki.winehq.org/GitWine#head-fc6d68a85d32bb6a8f4ea0485f50dbb6409ab6f4&quot;&gt;run a bisect&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;Note: I am running this on a system Introversion didn&#39;t explicitly intend.  If you&#39;re running windows, these games will probably work without trouble, and you will like them a lot.  Try the free demos on Steam.</content><link rel='replies' type='application/atom+xml' href='http://blog.otherchirps.net/feeds/8250579125678358982/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1286475992168261676&amp;postID=8250579125678358982' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1286475992168261676/posts/default/8250579125678358982'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1286475992168261676/posts/default/8250579125678358982'/><link rel='alternate' type='text/html' href='http://blog.otherchirps.net/2009/07/thank-you-wine-multiwinia-working-again.html' title='Thank you WINE! Multiwinia working again!  Oh, hang on...'/><author><name>otherchirps</name><uri>http://www.blogger.com/profile/14004343695694930803</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://1.bp.blogspot.com/_aEyDjCywtFY/S2a0slGWndI/AAAAAAAABl0/dMnHtJHvn10/s1600-R/61aad7aa6e8cff40e22f420015d5aee9.png'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://2.bp.blogspot.com/_aEyDjCywtFY/SmhuARnO6GI/AAAAAAAABik/RsqYYfK62MQ/s72-c/Screenshot.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1286475992168261676.post-6652399422399273179</id><published>2009-07-09T01:05:00.003+10:00</published><updated>2009-07-09T01:15:01.292+10:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="opensource"/><title type='text'>Sourceforge.net 2009 Community Choice Awards</title><content type='html'>&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;http://4.bp.blogspot.com/_aEyDjCywtFY/SlS3n1HmQcI/AAAAAAAABgs/GD4i_0oTMPw/s1600-h/cca_bg21.png&quot;&gt;&lt;img style=&quot;float:right; margin:0 0 10px 10px;cursor:pointer; cursor:hand;width: 205px; height: 261px;&quot; src=&quot;http://4.bp.blogspot.com/_aEyDjCywtFY/SlS3n1HmQcI/AAAAAAAABgs/GD4i_0oTMPw/s320/cca_bg21.png&quot; border=&quot;0&quot; alt=&quot;&quot;id=&quot;BLOGGER_PHOTO_ID_5356107751752090050&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Here&#39;s what I &lt;a href=&quot;https://sourceforge.net/community/cca09/&quot;&gt;voted for&lt;/a&gt;:&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;ReactOS&lt;/span&gt; for Best Project&lt;br /&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;eeebuntu&lt;/span&gt; for Best New Project&lt;br /&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;TurboCASH&lt;/span&gt; Accounting for Best Commercial Open Source Project&lt;br /&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;XBMC Media Center&lt;/span&gt; for Best Visual Design&lt;br /&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;matplotlib&lt;/span&gt; for Best Project for Academia&lt;br /&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;Clam AntiVirus&lt;/span&gt; for Best Tool or Utility for SysAdmins&lt;br /&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;Notepad++&lt;/span&gt; for Best Tool or Utility for Developers&lt;br /&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;Elastix&lt;/span&gt; for Best Project for the Enterprise&lt;br /&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;Nexuiz&lt;/span&gt; for Best Project for Gamers&lt;br /&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;Audacity&lt;/span&gt; for Best Project for Multimedia&lt;br /&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;Medical&lt;/span&gt; for Best Project for Government&lt;br /&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;RepRap&lt;/span&gt; for Most Likely to Change the Way You Do Everything&lt;br /&gt;&lt;br /&gt;You?</content><link rel='replies' type='application/atom+xml' href='http://blog.otherchirps.net/feeds/6652399422399273179/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1286475992168261676&amp;postID=6652399422399273179' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1286475992168261676/posts/default/6652399422399273179'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1286475992168261676/posts/default/6652399422399273179'/><link rel='alternate' type='text/html' href='http://blog.otherchirps.net/2009/07/sourceforgenet-2009-community-choice.html' title='Sourceforge.net 2009 Community Choice Awards'/><author><name>otherchirps</name><uri>http://www.blogger.com/profile/14004343695694930803</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://1.bp.blogspot.com/_aEyDjCywtFY/S2a0slGWndI/AAAAAAAABl0/dMnHtJHvn10/s1600-R/61aad7aa6e8cff40e22f420015d5aee9.png'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://4.bp.blogspot.com/_aEyDjCywtFY/SlS3n1HmQcI/AAAAAAAABgs/GD4i_0oTMPw/s72-c/cca_bg21.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1286475992168261676.post-3379723213611473368</id><published>2009-04-17T02:03:00.003+10:00</published><updated>2009-04-17T02:17:46.448+10:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="movies"/><category scheme="http://www.blogger.com/atom/ns#" term="zombies"/><title type='text'>The Boat That Rocked, and Surry Hills zombies</title><content type='html'>Stayed a bit late at work tonight.  Was about the same number of hours as most taxi drivers do everyday. For this little fish, who isn&#39;t used to such stretches, it was a bit mind sapping.&lt;br /&gt;&lt;br /&gt;On impulse I went directly to the movies for a night of blissful non-thinking.  Didn&#39;t know what was on, so was a bit disheartened when the only option was a coin toss between “Aliens vs Monsters”, and “&lt;a href=&quot;http://www.imdb.com/title/tt1131729/&quot;&gt;The Boat That Rocked&lt;/a&gt;”.  Tails, went with the boat.  Pleasantly surprising, despite the horror tag line “from the makers of Notting Hill”. Shudder.   &lt;br /&gt;&lt;br /&gt;Philip Seymour Hoffman was great, as always.  Was a little annoyed they copped-out and let his character live.  Sorry if that was a spoiler for anyone, but honestly, you see it coming for ages, so it&#39;s really never a surprise even when you&#39;re watching the first time. You hope they won&#39;t, but you know they will.  Bill Nighy (Quentin – boss of the boat) is simply super-cool.  The evil government ministers are a bit &lt;span style=&quot;font-style:italic;&quot;&gt;too&lt;/span&gt; evil to be believed.  Though, the government guys made up for it by being funny. Especially loved the Christmas dinner “party”.  Thought the boat running aground was a bit of a long-stretch as well, but apparently it happened a lot to the &lt;a href=&quot;http://en.wikipedia.org/wiki/Radio_Caroline&quot;&gt;pirate radio boat this movie is loosely based on&lt;/a&gt;. That&#39;s all I have about the movie. Nothing amazing, just some light fun.  I&#39;m happy with the way my coin landed.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Of course, seeing that the movie started at 9:30 at night meant I was still making my way home after midnight.  Creatures of &lt;a href=&quot;http://www.cityofsydney.nsw.gov.au/aboutsydney/CityLocalities/SurryHills.asp&quot;&gt;Surry Hills&lt;/a&gt; after dark, they&#39;re a funny bunch.  One character chastised me for carrying a bottle of milk (here&#39;s me dreaming of breakfast already), “Enjoy that bottle of milk”.  Writing it, that doesn&#39;t sound bad. It was the way it was said. With that aussie drunken, aggressive tone that – to my male ears anyway – translated immediately as, “Let&#39;s you and me fight. Right now.”&lt;br /&gt;&lt;br /&gt;My usual approach of laughing, in a “I&#39;m-totally-not-threatened-but-I&#39;m-still-not-making-eye-contact” way, and not stopping the walk-by, did the trick.  Not hard to sidestep these zombies if you don&#39;t arc-up and engage. These guys are normally so drunk that if you don&#39;t give them a reason to focus, their attention flutters between staving off semi-unconsciousness, and finding a taxi to the next pub that will let them in.&lt;br /&gt;&lt;br /&gt;Still, had to laugh. “Enjoy that bottle of milk”.  Heh... Great minds in overdrive.</content><link rel='replies' type='application/atom+xml' href='http://blog.otherchirps.net/feeds/3379723213611473368/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1286475992168261676&amp;postID=3379723213611473368' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1286475992168261676/posts/default/3379723213611473368'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1286475992168261676/posts/default/3379723213611473368'/><link rel='alternate' type='text/html' href='http://blog.otherchirps.net/2009/04/boat-that-rocked-and-surry-hills.html' title='The Boat That Rocked, and Surry Hills zombies'/><author><name>otherchirps</name><uri>http://www.blogger.com/profile/14004343695694930803</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://1.bp.blogspot.com/_aEyDjCywtFY/S2a0slGWndI/AAAAAAAABl0/dMnHtJHvn10/s1600-R/61aad7aa6e8cff40e22f420015d5aee9.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1286475992168261676.post-7142748106919850432</id><published>2009-04-13T21:33:00.005+10:00</published><updated>2009-04-13T22:24:38.127+10:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="movies"/><title type='text'>Movies while my girls are away: Watchmen</title><content type='html'>My lovely lady and little girl have been on vacation this month, visiting relatives.  Besides the house suddenly being &lt;span style=&quot;font-weight:bold;&quot;&gt;&lt;span style=&quot;font-style:italic;&quot;&gt;way&lt;/span&gt;&lt;/span&gt; too quiet, I&#39;ve been catching up on some of the things having a small child normally precludes, like cinema.  When movie tickets cost $20 a pop, then you add babysitting charges for the night on top, you&#39;ve got to &lt;span style=&quot;font-weight:bold;&quot;&gt;&lt;span style=&quot;font-style:italic;&quot;&gt;really&lt;/span&gt;&lt;/span&gt; want to see that movie.  For a long while, there hasn&#39;t been any such thing.  There have been some passing by, that I wouldn&#39;t have minded seeing.  Not wanting as badly as $100 or more though. &lt;br /&gt;&lt;br /&gt;The selection at the moment has been pretty ordinary.  When the multiplex boards are filled with crap like “17 Again”, or “Andre Rieu - Live from the Red Carpet”, and you&#39;ve only got the month to scratch your popcorn-and-movie itch, it&#39;s a bit of a let-down.  Still, not a complete loss, first up there was &lt;a href=&quot;http://www.imdb.com/title/tt0409459/&quot;&gt;Watchmen&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;Ah. Watchmen.  Yes, &lt;a href=&quot;http://www.amazon.com/gp/product/0930289234?ie=UTF8&amp;tag=plascups-20&amp;linkCode=as2&amp;camp=1789&amp;creative=9325&amp;creativeASIN=0930289234&quot;&gt;I&#39;m deeply in love with the book&lt;/a&gt;&lt;img src=&quot;http://www.assoc-amazon.com/e/ir?t=plascups-20&amp;l=as2&amp;o=1&amp;a=0930289234&quot; width=&quot;1&quot; height=&quot;1&quot; border=&quot;0&quot; alt=&quot;&quot; style=&quot;border:none !important; margin:0px !important;&quot; /&gt;.  Sure, the art is dated (what from the 80s isn&#39;t?), but the core story never stops singing to me.  Quis custodiet ipsos custodes?  How do the batman types manage to “retire”?  How do you ignore your &lt;span style=&quot;font-style:italic;&quot;&gt;calling&lt;/span&gt;, especially when it&#39;s &lt;span style=&quot;font-style:italic;&quot;&gt;someone else&lt;/span&gt; (the government) telling you that you have to?  Many of them spend much of their cape-and-outside-underwear careers trying to acheive “good” results using not-so-good means.  eg. violence.  How are you the good guy, when you bash the stuffing out of everyone in your way?  Because you deem the bad guy deserves it?  Yet, by the end of the Watchmen, they have to confront this.  Was the achievment worth the cost?  Are they fit to judge their own actions?  Is it &lt;span style=&quot;font-style:italic;&quot;&gt;still&lt;/span&gt; ok if everyone else finds out?&lt;br /&gt;&lt;br /&gt;Before the Watchmen hit our shelves in the mid-80s, all comics were just written off as “just for kids”.  The Watchmen, and at around the same time &quot;&lt;a href=&quot;http://www.amazon.com/gp/product/1563893428?ie=UTF8&amp;tag=plascups-20&amp;linkCode=as2&amp;camp=1789&amp;creative=9325&amp;creativeASIN=1563893428&quot;&gt;Batman: The Dark Knight Returns&lt;/a&gt;&lt;img src=&quot;http://www.assoc-amazon.com/e/ir?t=plascups-20&amp;l=as2&amp;o=1&amp;a=1563893428&quot; width=&quot;1&quot; height=&quot;1&quot; border=&quot;0&quot; alt=&quot;&quot; style=&quot;border:none !important; margin:0px !important;&quot; /&gt;&quot;, hit the stands and suddenly folks in the west started realising, “Oh, yeah... you can use this medium for real stories”.  This was a real turning point for the industry.  The &lt;a href=&quot;http://en.wikipedia.org/wiki/Watchmen&quot;&gt;wikipedia entry&lt;/a&gt; can flesh that out those assertions for me.  My point is that, despite my better judgement, I held high hopes for the Watchmen movie.&lt;br /&gt;&lt;br /&gt;Why against my better judgment?  Well, you know, books to movies... not usually something that works.  When it&#39;s a book you love, it&#39;s &lt;span style=&quot;font-style:italic;&quot;&gt;especially&lt;/span&gt; rare not to be disappointed.  Just sticking with other books by Alan Moore, that track record alone is proof enough.  Remember “The League of Extraordinary Gentlemen”.  Yeesh.  What a mutated waste of life that was to watch. A pity, because again, &lt;a href=&quot;http://www.amazon.com/gp/product/1563898586?ie=UTF8&amp;tag=plascups-20&amp;linkCode=as2&amp;camp=1789&amp;creative=9325&amp;creativeASIN=1563898586&quot;&gt;the books&lt;/a&gt;&lt;img src=&quot;http://www.assoc-amazon.com/e/ir?t=plascups-20&amp;l=as2&amp;o=1&amp;a=1563898586&quot; width=&quot;1&quot; height=&quot;1&quot; border=&quot;0&quot; alt=&quot;&quot; style=&quot;border:none !important; margin:0px !important;&quot; /&gt; are great. (Must&#39;ve been some &quot;artistic differences&quot;, since Connery&#39;s character - Quartermain - ended up being the &quot;leader&quot;, instead of the Miss Mina Murray girl...)&lt;br /&gt;&lt;br /&gt;I will give them one thing straight away.  It&#39;s obvious that the film was translated to screen by people who also loved the book.  The level of detail they went to was blatant.  Each image on screen was a meticulous reproduction of the illustrations.  The actors all seemed to grok their characters as well, each a seemingly perfect fit for their role. The fly in the ointment, for me, was the editing.  Scene jumps were so jarring. They&#39;d jump from a cafe to a funeral, and my brain would recognise the image as familiar, from the book, but I&#39;d be wondering for a while how we got there.  Hang on, weren&#39;t they just.... But now we&#39;re where?  Some people might also call shenanigans on how the ending was altered from the book.  But they&#39;d be idiots.  True, it was different in one detail, but the spirit of what the story was aiming for was intact. Don&#39;t want to spell it out. That&#39;d be an unnecessary spoiler. &lt;br /&gt;&lt;br /&gt;The last 20 minutes of the film could&#39;ve used a big chop.  The day was done, loose ends resolved, but everyone was dragging out these pointless conversations.  At one point here, the Silk Spectre says, “John would say that nothing ever truly ends.”  Sitting in the cinema, the automatic thought: “Like this bloody movie.” &lt;br /&gt;&lt;br /&gt;The musical score was &lt;span style=&quot;font-style:italic;&quot;&gt;way&lt;/span&gt; too noticeable.  It jumps out at times so you can barely here the dialogue.  Maybe it was just my cinema being screwy, so I&#39;ll give the filmmakers the benefit of doubt.  Though having it sound as it did for me, I found myself wondering what they were trying to sell more: the story, or the soundtrack?  Maybe that&#39;s normal now?  Like I said, haven&#39;t been to the cinema for a while now.&lt;br /&gt;&lt;br /&gt;Some people complain about the graphic violence.  To me it wasn&#39;t a problem.  This was part of the book, and translated faithfully.  I wasn&#39;t just ready for it, I was &lt;span style=&quot;font-style:italic;&quot;&gt;expecting&lt;/span&gt; it.  I would&#39;ve felt ripped off if they had omitted it.  If you hadn&#39;t read the book, and weren&#39;t prepared, it might be a touch much.  Really though, you get more disturbing imagery from Dexter on free-to-air telly.  If you&#39;re ideologically opposed to violence on screen, you might want to go see that Andre Rieu movie instead. &lt;br /&gt;&lt;br /&gt;I&#39;ve listed a lot of things I didn&#39;t like. But I did actually enjoy parts. For one thing, it didn&#39;t attempt to decide whether the characters&#39; actions were right or wrong.  Too many movies try to connect the dots for the audience, not trusting them to be able to mull things over themselves.  The action scenes are great.  You really get a sense of how kick-arse these guys and gals still are, even though they&#39;ve been &quot;retired&quot; for years. Rorschach&#39;s uncompromising viciousness is both frightening at times, and encouraging in the face of his compatriots&#39; fickleness. Yes, he&#39;s a mean bastard, but you know where you stand with him. Always got to appreciate that in someone.  Whether they all did right or wrong, Rorschach is the little glimmer that shows the bare truth of things will be uncovered again one day. Whether that&#39;s a good thing or not, again, up to you.  &lt;br /&gt;&lt;br /&gt;So, did I like it?  The makers quelled my greatest fear, that they weren&#39;t going to be faithful enough to the book.  They were.  My sense of relief battles with the after-taste of dodgy editing.  I&#39;m avoiding a real answer.  One day I might make up my mind on this one. Until then, the verdict is: Unsure.  It was better than “V for Vendetta”, anyway.</content><link rel='replies' type='application/atom+xml' href='http://blog.otherchirps.net/feeds/7142748106919850432/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1286475992168261676&amp;postID=7142748106919850432' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1286475992168261676/posts/default/7142748106919850432'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1286475992168261676/posts/default/7142748106919850432'/><link rel='alternate' type='text/html' href='http://blog.otherchirps.net/2009/04/movies-while-my-girls-are-away-watchmen.html' title='Movies while my girls are away: Watchmen'/><author><name>otherchirps</name><uri>http://www.blogger.com/profile/14004343695694930803</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://1.bp.blogspot.com/_aEyDjCywtFY/S2a0slGWndI/AAAAAAAABl0/dMnHtJHvn10/s1600-R/61aad7aa6e8cff40e22f420015d5aee9.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1286475992168261676.post-952716704951986245</id><published>2009-02-15T22:53:00.011+11:00</published><updated>2009-02-16T01:30:01.749+11:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="programming"/><category scheme="http://www.blogger.com/atom/ns#" term="win32"/><title type='text'>Win32 Virtual Processes</title><content type='html'>Seen over at the slashdotted &lt;a href=&quot;http://philosecurity.org/2009/01/12/interview-with-an-adware-author&quot;&gt;article at Philosecurity&lt;/a&gt;.  The ex-spyware author talks about his time working for the &quot;bad guys&quot;. Very interesting the way he describes the gradual slide to the dark side.&lt;br /&gt;&lt;br /&gt;One technical method he describes was creating virtual processes.  A normal process is a collection of one or more threads, usually sharing some stuff - like memory address space.  The method of using the win32 function CreateRemoteThread to have other processes run your code isn&#39;t new.  It&#39;s kind of old-hat these days.  Though the term itself, &quot;virtual process&quot;, was new to me and struck me as kinda cool.&lt;br /&gt;&lt;br /&gt;The nice thing about injecting other people&#39;s processes, with threads under your control, is that your thread has access to everything that the host process does.  Some program holding a file open exclusively? No problem - inject a thread and have it call ExitProcess on itself. Some applications hook these routines, and refuse outside calls to TerminateProcess/ExitProcess, but more often than not, they&#39;ll listen when it&#39;s &quot;themselves&quot; issuing the call.  A common activity is to have your injected thread do a LoadLibrary, having the host process attach itself to one of your own DLLs.  It&#39;s a much easier way to have &quot;them&quot; run lots of your code.&lt;br /&gt;&lt;br /&gt;The downside is also that you&#39;ve only got access to whatever the host process does.  You don&#39;t get &quot;superuser&quot; privileges when you&#39;re running inside a peon process, run by some guest account.  &lt;br /&gt;&lt;br /&gt;Still, if all you want to do is monitor or control the processes running on the machine, it can be pretty useful.  &lt;br /&gt;&lt;br /&gt;This has been contained somewhat on Vista.  Vista has copped a lot of flack, I think partially because it started cracking down on a lot of these tricks.  This ended up breaking many folks&#39; software, since every man and his dogs were using them.  All those times you see the annoying UAC prompt? Yup - that&#39;s another lazy programmer assuming the user is a local administrator (which is usually correct, but beside the point).  I&#39;m no MS fanboy, but I can&#39;t find it in me to blame MS for the annoyance level of UAC.  It&#39;s doing its job well. This is actually a case of it being everyone else&#39;s fault. If anything, it should be prompting &lt;i&gt;more&lt;/i&gt; often. What&#39;s up with &lt;a href=&quot;http://theinvisiblethings.blogspot.com/2007/02/running-vista-every-day.html&quot;&gt;implicitly trusting anything called &quot;setup.exe&quot;&lt;/a&gt;?&lt;br /&gt;&lt;br /&gt;CreateRemoteThread will only work on processes in your own session now.  Actually, &lt;a href=&quot;http://msdn.microsoft.com/en-us/library/ms682437(VS.85).aspx&quot;&gt;that&#39;s the way it always worked&lt;/a&gt;. However, under Vista, all the system processes and services -- which are usually the most interesting things to infect -- are running in their own session.  LUser processes now get shunted to at least the next one along. &lt;br /&gt;&lt;br /&gt;You can use RtlCreateUserThread to slip around this, since it&#39;s flying at a lower level than all that session business. Setting up the thread&#39;s stack is much more hands on, but still quite doable. Especially when you&#39;ve got the wonderful wombles over at &lt;a href=&quot;http://www.reactos.org/generated/doxygen/de/dbc/lib_2rtl_2thread_8c.html&quot;&gt;ReactOS documenting how to do it&lt;/a&gt; anyway.&lt;br /&gt;&lt;br /&gt;His comments about avoiding the need for any threads at all, and just hijacking interrupts, got me excited for a bit.  But then I remembered this was what everyone was doing back in the day of the single-threaded OS.  Like DOS, or even earlier on machines like the &lt;a href=&quot;http://www.c64.com/&quot;&gt;C64&lt;/a&gt;.  No threads on those puppies.  You wanted to intercept stuff, or &quot;multi-task&quot;, you &lt;a href=&quot;http://en.wikipedia.org/wiki/Terminate_and_Stay_Resident&quot;&gt;poke in an interrupt wedge&lt;/a&gt;.  &lt;br /&gt;Everything old is new again.</content><link rel='replies' type='application/atom+xml' href='http://blog.otherchirps.net/feeds/952716704951986245/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1286475992168261676&amp;postID=952716704951986245' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1286475992168261676/posts/default/952716704951986245'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1286475992168261676/posts/default/952716704951986245'/><link rel='alternate' type='text/html' href='http://blog.otherchirps.net/2009/02/win32-virtual-processes.html' title='Win32 Virtual Processes'/><author><name>otherchirps</name><uri>http://www.blogger.com/profile/14004343695694930803</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://1.bp.blogspot.com/_aEyDjCywtFY/S2a0slGWndI/AAAAAAAABl0/dMnHtJHvn10/s1600-R/61aad7aa6e8cff40e22f420015d5aee9.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1286475992168261676.post-6649997078514710796</id><published>2008-12-15T23:31:00.004+11:00</published><updated>2008-12-15T23:43:30.236+11:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="cleanfeed"/><category scheme="http://www.blogger.com/atom/ns#" term="politics"/><category scheme="http://www.blogger.com/atom/ns#" term="rant"/><title type='text'>Still not getting it</title><content type='html'>Seen over at the &lt;a href=&quot;http://www.nytimes.com/2008/12/12/technology/internet/12cyber.html?partner=permalink&amp;exprod=permalink&quot;&gt;NY Times&lt;/a&gt; &lt;br /&gt;&lt;blockquote&gt;Australia’s largest service provider, Telstra, has also expressed doubts about the plan. The firm’s chief operating officer, Greg Winn, said last week that using service provider filters to stop illicit content was “like trying to boil the ocean.” As soon as the filter was applied, he said, someone would find a way to break it.&lt;/blockquote&gt;&lt;br /&gt;Duh. It&#39;s not about whether it&#39;s &lt;span style=&quot;font-style:italic;&quot;&gt;difficult&lt;/span&gt; to do, but whether it &lt;a href=&quot;http://www.crikey.com.au/Politics/20081121-The-practical-reality-of-interweb-censorship.html&quot;&gt;should&lt;/a&gt; &lt;a href=&quot;http://nocleanfeed.com&quot;&gt;be&lt;/a&gt; &lt;a href=&quot;http://techwiredau.com/2008/12/breaking-conroy-fails-to-answer-questions-in-senate-video/&quot;&gt;done&lt;/a&gt; &lt;a href=&quot;http://www.boingboing.net/2008/11/30/childrens-welfare-gr.html&quot;&gt;at&lt;/a&gt; &lt;a href=&quot;http://www.somebodythinkofthechildren.com/clive-hamilton-straw-men-five-year-old-polls-cherry-picked-libertarians/&quot;&gt;all&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;Argh!</content><link rel='replies' type='application/atom+xml' href='http://blog.otherchirps.net/feeds/6649997078514710796/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1286475992168261676&amp;postID=6649997078514710796' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1286475992168261676/posts/default/6649997078514710796'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1286475992168261676/posts/default/6649997078514710796'/><link rel='alternate' type='text/html' href='http://blog.otherchirps.net/2008/12/still-not-getting-it.html' title='Still not getting it'/><author><name>otherchirps</name><uri>http://www.blogger.com/profile/14004343695694930803</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://1.bp.blogspot.com/_aEyDjCywtFY/S2a0slGWndI/AAAAAAAABl0/dMnHtJHvn10/s1600-R/61aad7aa6e8cff40e22f420015d5aee9.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1286475992168261676.post-7093449036272368794</id><published>2008-12-07T00:32:00.013+11:00</published><updated>2009-11-26T22:51:51.903+11:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="programming"/><category scheme="http://www.blogger.com/atom/ns#" term="python"/><title type='text'>Python easter eggs</title><content type='html'>With the release of &lt;a href=&quot;http://python.org/download/releases/3.0/&quot;&gt;Python 3.0&lt;/a&gt;, lots of folks have been talking about their new favourite easter eggs embeded into the language.&lt;br /&gt;&lt;br /&gt;Everyone knows about:&lt;br /&gt;&lt;pre name=&quot;code&quot; class=&quot;python:nocontrols:nogutter&quot;&gt;&lt;br /&gt;import this&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;I&#39;m a bit slow though -- there are quite a few more, it seems. This one&#39;s been there forever as well:&lt;br /&gt;&lt;pre class=&quot;brush: python; wrap-lines: false;&quot;&gt;&lt;br /&gt;&gt;&gt;&gt; from __future__ import braces&lt;br /&gt;  File &quot;&lt;stdin&gt;&quot;, line 1&lt;br /&gt;SyntaxError: not a chance&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;Or...&lt;br /&gt;&lt;pre class=&quot;brush: python; wrap-lines: false;&quot;&gt;&lt;br /&gt;&gt;&gt;&gt; import __hello__&lt;br /&gt;Hello world...&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;This one is new as of version 3.0:&lt;br /&gt;&lt;pre class=&quot;brush: python; wrap-lines: false;&quot;&gt;&lt;br /&gt;&gt;&gt;&gt; import antigravity&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;Very nice. :)  &lt;a href=&quot;http://xkcd.com/353/&quot;&gt;XKCD&lt;/a&gt; - gotta love it.&lt;br /&gt;&lt;br /&gt;But as &lt;a href=&quot;http://developers.slashdot.org/comments.pl?sid=1050435&amp;cid=25988457&quot;&gt;this guy on slashdot commented&lt;/a&gt;, the code in the comic strip is &lt;a href=&quot;http://docs.python.org/dev/3.0/whatsnew/3.0.html#print-is-a-function&quot;&gt;broken under 3.0&lt;/a&gt;. Print is a function now.&lt;br /&gt;&lt;br /&gt;Can&#39;t have that... Here&#39;s my new &lt;a href=&quot;http://svn.python.org/view/python/trunk/Lib/antigravity.py?rev=66902&amp;view=markup&quot;&gt;antigravity.py&lt;/a&gt; module, to keep the strip accurate (of course, anything else you do will probably break):&lt;br /&gt;&lt;pre class=&quot;brush: python; wrap-lines: false;&quot;&gt;&lt;br /&gt;import webbrowser&lt;br /&gt;&lt;br /&gt;webbrowser.open(&quot;http://xkcd.com/353/&quot;)&lt;br /&gt;&lt;br /&gt;###### Start of crap to keep comic accurate ######&lt;br /&gt;import cmd&lt;br /&gt;&lt;br /&gt;class Py3kOldPrintKludge(cmd.Cmd):&lt;br /&gt;&lt;br /&gt;        def do_print(self, arg):&lt;br /&gt;                print(str(arg))&lt;br /&gt;&lt;br /&gt;        def default(self, line):&lt;br /&gt;                return exec(line)&lt;br /&gt;&lt;br /&gt;c = Py3kOldPrintKludge(cmd.Cmd):&lt;br /&gt;c.prompt = &quot;&gt;&gt;&gt; &quot;&lt;br /&gt;c.cmdloop()&lt;br /&gt;&lt;/pre&gt;</content><link rel='replies' type='application/atom+xml' href='http://blog.otherchirps.net/feeds/7093449036272368794/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1286475992168261676&amp;postID=7093449036272368794' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1286475992168261676/posts/default/7093449036272368794'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1286475992168261676/posts/default/7093449036272368794'/><link rel='alternate' type='text/html' href='http://blog.otherchirps.net/2008/12/python-easter-eggs.html' title='Python easter eggs'/><author><name>otherchirps</name><uri>http://www.blogger.com/profile/14004343695694930803</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://1.bp.blogspot.com/_aEyDjCywtFY/S2a0slGWndI/AAAAAAAABl0/dMnHtJHvn10/s1600-R/61aad7aa6e8cff40e22f420015d5aee9.png'/></author><thr:total>0</thr:total></entry></feed>