<?xml version="1.0"?>
<rss version="2.0">
  <channel>
    <title>Advogato blog for asmodai</title>
    <link>http://www.advogato.org/person/asmodai/</link>
    <description>Advogato blog for asmodai</description>
    <language>en-us</language>
    <generator>mod_virgule</generator>
    <pubDate>Fri, 10 Feb 2012 17:44:43 GMT</pubDate>
    <item>
      <pubDate>Sat, 14 May 2011 21:15:55 GMT</pubDate>
      <title>Small touches that inspire</title>
      <link>http://www.advogato.org/person/asmodai/diary.html?start=52</link>
      <guid>http://www.in-nomine.org/2011/05/14/small-touches-that-inspire/</guid>
      <description>&lt;p&gt;It&amp;#8217;s the littlest of things that can really brighten my mood when I notice them. In this case I was watching Fallout: New Vegas&amp;#8217; DLC trailer for Honest Hearts. In the trailer you see the player with a pistol and on one side of the pistol at least is written: &amp;#8220;&#x3BA;&#x3B1;&#x1F76; &#x1F21; &#x3C3;&#x3BA;&#x3BF;&#x3C4;&#x3AF;&#x3B1; &#x3B1;&#x1F50;&#x3C4;&#x1F78; &#x3BF;&#x1F50; &#x3BA;&#x3B1;&#x3C4;&#x3AD;&#x3BB;&#x3B1;&#x3B2;&#x3B5;&#x3BD;&amp;#8221;. This is Greek and refers to the second part of the verse of John 1:5 in the New Testament of the bible, meaning in English: &amp;#8220;and the darkness did not comprehend it&amp;#8221;. In my opinion a great way to bring enlightenment by the bullet.&lt;/p&gt;
</description>
    </item>
    <item>
      <pubDate>Fri, 11 Feb 2011 13:16:51 GMT</pubDate>
      <title>TortoiseSVN (Subversion) and Windows 7 file corruption</title>
      <link>http://www.advogato.org/person/asmodai/diary.html?start=51</link>
      <guid>http://www.in-nomine.org/2011/02/11/tortoisesvn-subversion-and-windows-7-file-corruption/</guid>
      <description>&lt;p&gt;During a checkout of a Subversion tree on my Windows 7 installation I got quite a fair share of errors from TortoiseSVN, all of which ended with &lt;code&gt;The file or directory is corrupted and unreadable&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;After digging around a bit, I came across &lt;a href="http://subversion.wandisco.com/blogs/windows-7-bogus-errorfilecorrupt-error-.html" &gt;this blog post on the exact same problem&lt;/a&gt;. And subsequently I found there is a hotfix available from Microsoft on their page about &lt;a href="http://support.microsoft.com/kb/982927/en-us" [y]ou receive an error message that states the file system is broken in Windows 7 or in Windows Server 2008 R2&lt;/a&gt;. This hotfix will be in the upcoming service pack 1.&lt;/p&gt;
&lt;p&gt;You might also be able to work around it by disabling indexing on the particular folder or drive. It solved it for me at least.&lt;/p&gt;
</description>
    </item>
    <item>
      <pubDate>Thu, 10 Feb 2011 13:16:44 GMT</pubDate>
      <title>Visual Studio editor rulers</title>
      <link>http://www.advogato.org/person/asmodai/diary.html?start=50</link>
      <guid>http://www.in-nomine.org/2011/02/10/visual-studio-editor-rulers/</guid>
      <description>&lt;p&gt;If you like to have a visual cue for, say, where the 80th column is then &lt;a href="http://stackoverflow.com/questions/84209/adding-a-guideline-to-the-editor-in-visual-studio" &gt;this page over at Stack Overflow&lt;/a&gt; details the various registry keys you might need to add as well as showing which extensions can do it for you. For VS 2010 Professional and up you can use the &lt;a href="http://visualstudiogallery.msdn.microsoft.com/d0d33361-18e2-46c0-8ff2-4adea1e34fef/" &gt;Productivity Power Tools&lt;/a&gt;, but it seems that Visual Studio 2010 Express has no guides support.&lt;/p&gt;
</description>
    </item>
    <item>
      <pubDate>Wed, 2 Feb 2011 12:12:18 GMT</pubDate>
      <title>Sublime Text with 80 and 120 column rulers</title>
      <link>http://www.advogato.org/person/asmodai/diary.html?start=49</link>
      <guid>http://www.in-nomine.org/2011/02/02/sublime-text-with-80-and-120-column-rulers/</guid>
      <description>&lt;p&gt;For many programming languages we still like to use either 80 or 120 columns in our editors to ensure it fits easily on print, as well as to use it as an aid for ensuring concise code.&lt;/p&gt;
&lt;p&gt;In Sublime Text you can set vertical rulers for this by going to &lt;code&gt;Preferences &gt; User File Preferences&lt;/code&gt; and add &lt;code&gt;rulers 80 120&lt;/code&gt; and save the file.&lt;/p&gt;
&lt;p&gt;For Sublime Text 2 it&amp;#8217;s again under &lt;code&gt;Preferences &gt; User File Preferences&lt;/code&gt;, but the configuration file is now in JSON format, so you need to add &lt;code&gt;"rulers": [80, 120]&lt;/code&gt; and maybe you need to append a comma at the end if you have more configuration directives following it.&lt;/p&gt;
</description>
    </item>
    <item>
      <pubDate>Thu, 20 Jan 2011 13:15:59 GMT</pubDate>
      <title>PyCharm 1.1.1 released</title>
      <link>http://www.advogato.org/person/asmodai/diary.html?start=48</link>
      <guid>http://www.in-nomine.org/2011/01/20/pycharm-1-1-1-released/</guid>
      <description>&lt;p&gt;PyCharm 1.1.1 was released yesterday. It consists mostly of bugfixes, find the &lt;a href="http://confluence.jetbrains.net/display/PYH/PyCharm+1.1.1+Release+Notes" &gt;full release notes&lt;/a&gt; on their site.&lt;/p&gt;
</description>
    </item>
    <item>
      <pubDate>Fri, 7 Jan 2011 14:15:05 GMT</pubDate>
      <title>Mercurial 1.7, cacerts, and FreeBSD</title>
      <link>http://www.advogato.org/person/asmodai/diary.html?start=47</link>
      <guid>http://www.in-nomine.org/2011/01/07/mercurial-1-7-cacerts-and-freebsd/</guid>
      <description>&lt;p&gt;So with recent Mercurial 1.7 releases HTTPS support was tightened, so you are bound to encounter a warning in the form of: &lt;code&gt;warning: bitbucket.org certificate not verified (check web.cacerts config setting)&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;Now, &lt;a href="http://mercurial.selenic.com/wiki/CACertificates" &gt;on http://mercurial.selenic.com/wiki/CACertificates&lt;/a&gt; there are details on what to configure for certain operating systems. Given I use FreeBSD, I altered my &lt;code&gt;$HOME/.hgrc&lt;/code&gt; as follows:&lt;/p&gt;
&lt;pre class="brush: plain; title: ;"&gt;
[web]
cacerts = /etc/ssl/cert.pem
&lt;/pre&gt;
&lt;p&gt;For OpenBSD this should be in the same place since release 3.8. But apparently NetBSD does not have such a file in base.&lt;/p&gt;
</description>
    </item>
    <item>
      <pubDate>Tue, 14 Dec 2010 13:15:46 GMT</pubDate>
      <title>PyCharm and external lint tools</title>
      <link>http://www.advogato.org/person/asmodai/diary.html?start=46</link>
      <guid>http://www.in-nomine.org/2010/12/14/pycharm-and-external-lint-tools/</guid>
      <description>&lt;p&gt;PyCharm already has a number of features present in various tools to lint/check your source code with, but offers a way to hook up external tools. Under &lt;code&gt;File &gt; Settings&lt;/code&gt; is a section called &lt;code&gt;IDE Settings&lt;/code&gt;. One of the headings here is called &lt;code&gt;External Tools&lt;/code&gt;. Select this heading and then press the &lt;code&gt;Add...&lt;/code&gt; button on the right hand pane to configure a new external tool.&lt;/p&gt;
&lt;p&gt;In the &lt;code&gt;Edit Tool&lt;/code&gt; window that now appeared fill in a name, e.g. &lt;code&gt;PEP8&lt;/code&gt; and a group name &lt;code&gt;Lint&lt;/code&gt; and add a description. Next point the &lt;code&gt;Program&lt;/code&gt; to the location of the &lt;code&gt;pep8.exe&lt;/code&gt; executable, e.g. &lt;code&gt;C:\Python27\Scripts\pep8.exe&lt;/code&gt;. For &lt;code&gt;Parameters&lt;/code&gt; you need to use &lt;code&gt;$FilePath&lt;/code&gt; and &lt;code&gt;Working directory&lt;/code&gt; should be filled in by default. Once done, you can close it by pressing the &lt;code&gt;OK&lt;/code&gt; button.&lt;/p&gt;
&lt;p&gt;Now, pyflakes has no .exe or .bat file to accompany it. You will need to add a pyflakes.bat in your &lt;code&gt;Scripts&lt;/code&gt; directory inside Python with the following contents:&lt;/p&gt;
&lt;pre class="brush: plain; title: ;"&gt;
@echo off
rem Use python to execute the python script having the same name as this batch
rem file, but without any extension, located in the same directory as this
rem batch file
python &amp;quot;%~dpn0&amp;quot; %*
&lt;/pre&gt;
&lt;p&gt;Within PyCharm you follow largely the same settings as for pep8, however make sure to point to the batch file of pyflakes under &lt;code&gt;Program&lt;/code&gt;. Close the external tools configuration windows by clicking &lt;code&gt;OK&lt;/code&gt; twice. Under the menu heading &lt;code&gt;Tools&lt;/code&gt; you should see an submenu heading &lt;code&gt;Lint&lt;/code&gt; which, in turn, should contain two menu items: PEP8 and Pyflakes.&lt;/p&gt;
&lt;p&gt;Now open a Python file, go to &lt;code&gt;Tools &gt; Lint &gt; PEP8&lt;/code&gt; and you should get output like the following in your Run (4) window:&lt;/p&gt;
&lt;pre class="brush: plain; title: ;"&gt;
D:\Python26\Scripts\pep8.exe D:\pprojects\babel\babel\tests\__init__.py
D:\pprojects\babel\babel\tests\__init__.py:16:1: E302 expected 2 blank lines, found 1

Process finished with exit code 1
&lt;/pre&gt;
</description>
    </item>
    <item>
      <pubDate>Mon, 29 Nov 2010 13:12:17 GMT</pubDate>
      <title>svn switch in Mercurial (hg)</title>
      <link>http://www.advogato.org/person/asmodai/diary.html?start=45</link>
      <guid>http://www.in-nomine.org/2010/11/29/svn-switch-in-mercurial-hg/</guid>
      <description>&lt;p&gt;For my own sanity:&lt;/p&gt;
&lt;p&gt;In order to change the parent repository URL of a Mercurial clone (as &lt;code&gt;svn switch&lt;/code&gt; does) one simply edits &lt;code&gt;.hg/hgrc&lt;/code&gt; and adjusts the &lt;code&gt;default&lt;/code&gt; under &lt;code&gt;[paths]&lt;/code&gt;.&lt;/p&gt;
</description>
    </item>
    <item>
      <pubDate>Mon, 25 Oct 2010 10:22:46 GMT</pubDate>
      <title>PyCharm 1.0</title>
      <link>http://www.advogato.org/person/asmodai/diary.html?start=44</link>
      <guid>http://www.in-nomine.org/2010/10/25/pycharm-1-0/</guid>
      <description>&lt;p&gt;So I was so impressed by PyCharm that I purchased a license. I haven&amp;#8217;t noticed much of any delays or slowdowns that other people have complained about.&lt;/p&gt;
</description>
    </item>
    <item>
      <pubDate>Sat, 19 Jun 2010 18:12:53 GMT</pubDate>
      <title>On the topic of sensible date and temperature defaults in applications and websites</title>
      <link>http://www.advogato.org/person/asmodai/diary.html?start=43</link>
      <guid>http://www.in-nomine.org/2010/06/19/on-the-topic-of-sensible-date-and-temperature-defaults-in-applications-and-websites/</guid>
      <description>&lt;p&gt;Something that can always get me a bit frustrated is the choice of defaults used in applications.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Dates&lt;/strong&gt;: Aside from Belize, Canada, the Federated States of Micronesia, Palau, the Philippines, and the United States are the only countries using a date format where the month is the first entry, followed by day, and lastly year (mm/dd/yyyy). To put to numbers that&amp;#8217;s about 436 million people who use this versus 6.35 billion that don&amp;#8217;t (ratio of about 14:1). Of that 6.35 billion about 3.8 billion use a date format where day is first, followed by month, and lastly year (dd/mm/yyyy &amp;#8212; ratio of about 9:1 to the month first users). About 1.81 billion use a form where the year is first, followed by month, and lastly day (yyyy/mm/dd, roughly equivalent to ISO 8601 &amp;#8212; ratio of about 4:1 to the month first users). (Note: these 1.81 billion have a slight overlap with the 3.8 billion due to some countries having two date formatting forms in use or due to two or more distinct scripts with different date formatting styles.) So using a format where the month is first is only confusing for the majority of the world&amp;#8217;s population. If you need a default date, use the ISO 8601 format &amp;#8212; not only is it less ambiguous, it also allows for much better chronological sorting.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Temperature&lt;/strong&gt;: Aside from Belize and the United States (I so far managed to find), the worldwide standard for temperature is Celcius, not Fahrenheit. If you are using Fahrenheit you are putting 6.48 billion people at a disadvantage solely against something like 313 million people. That&amp;#8217;s a ratio of about 22:1, meaning you put 22 people at a disadvantage for every one person you are trying to please.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Disclaimer:&lt;/strong&gt; do note that this of course only makes sense if you are appealing to an international audience. If you are just targetting a specific country you will of course default to what they use. On the other hand, properly fixing your code to be i18n-ready is the way to go anyway.&lt;/p&gt;
</description>
    </item>
  </channel>
</rss>

