<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Infinite Injury &#187; Programming</title>
	<atom:link href="http://www.infiniteinjury.org/blog/topics/programming/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.infiniteinjury.org/blog</link>
	<description>Good Analysis, Bad Grammar</description>
	<lastBuildDate>Sat, 22 May 2010 13:18:22 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Google Desktop For OS X</title>
		<link>http://www.infiniteinjury.org/blog/2007/08/31/google-desktop-for-os-x/</link>
		<comments>http://www.infiniteinjury.org/blog/2007/08/31/google-desktop-for-os-x/#comments</comments>
		<pubDate>Sat, 01 Sep 2007 03:34:34 +0000</pubDate>
		<dc:creator>TruePath</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[tip]]></category>

		<guid isPermaLink="false">http://www.infiniteinjury.org/blog/2007/08/31/google-desktop-for-os-x/</guid>
		<description><![CDATA[Unfortunately one problem many people have with google desktop for mac is that it sometimes uses a bunch of system resources while indexing.  I've seen lots of complaints about this on various mac sites but no solutions so I'll post what I found made a big difference in case it helps anyone else.]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m a huge fan of google desktop for OS X.  I have <em>hoards</em> of pdf documents scattered around my hard drive (mostly docs for TeX macro packages installed with my TeXLive distribution) and google desktop is an awesomely useful way to look for whatever documentation I need.  Frankly I think this is what spotlight should have been<sup id="fnref:split"><a href="#fn:split" rel="footnote">1</a></sup>.</p>

<p>Unfortunately one problem many people have with google desktop for mac is that it sometimes uses a bunch of system resources while indexing.  I&#8217;ve seen lots of complaints about this on various mac sites but no solutions so I&#8217;ll post what I found made a big difference in case it helps anyone else.</p>

<p>Go to /Library/LaunchDaemons and open com.google.Desktop.Daemon.plist in Property List Editor (you probably need to change the permissions first so you will be able to save it).  Now add two new keys at the Top level.</p>

<dl>
<dt>Nice</dt>
<dd>Number: 19</dd>
<dt>LowPriorityIO</dt>
<dd>Boolean: Yes</dd>
</dl>

<p>When you reboot the slowdown from indexing should be a lot less bothersome.  Unfortunately what inspired me to make this post was I just had to repeat this modification when desktop upgraded itself and overwrote this plist.  I&#8217;m not sure why google desktop doesn&#8217;t do this by default but it seems to work for me.</p>

<div class="footnotes">
<hr />
<ol>

<li id="fn:split">
<p>More precisely I think spotlight should be split into a super version of the locate db with a big of metadata and something like google desktop.  Much as I like google as a company this sort of functionality is better off integrated with the OS.  I like to keep my recent web visits and stuff on my HD separate.  Why gnu locate is still so simple is beyond me, maybe gnome or kde has some replacement I&#8217;m unaware of on linux.&#160;<a href="#fnref:split" rev="footnote">&#8617;</a></p>
</li>

</ol>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.infiniteinjury.org/blog/2007/08/31/google-desktop-for-os-x/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fixing Latex Math in Textmate</title>
		<link>http://www.infiniteinjury.org/blog/2007/08/02/fixing-latex-math-in-textmate/</link>
		<comments>http://www.infiniteinjury.org/blog/2007/08/02/fixing-latex-math-in-textmate/#comments</comments>
		<pubDate>Fri, 03 Aug 2007 01:51:28 +0000</pubDate>
		<dc:creator>TruePath</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Teaching and Academia]]></category>
		<category><![CDATA[hacks]]></category>
		<category><![CDATA[latex]]></category>
		<category><![CDATA[math]]></category>
		<category><![CDATA[textmate]]></category>

		<guid isPermaLink="false">http://www.infiniteinjury.org/blog/2007/08/02/fixing-latex-math-in-textmate/</guid>
		<description><![CDATA[However, textmate's prompt syntax highlight combined with the depreciated use of '$$' to start displaymath mode was really annoying.  Each time I would start to add inline mathematics by typing '$' textmate would automatically provide the closing '$' leaving me a line like this:]]></description>
			<content:encoded><![CDATA[ <p>In addition to the cost I usually find closed source text editors and similar utilities to be lacking in features and insufficently extensible.  <a href="http://macromates.com/">Textmate</a> for OS X, however, is a glaring exception.  It is well worth the cost and I&#8217;m constantly surprised by the many useful bundles and customizations available (for instance convienient remote editing with <a href="cyberduck.ch/">Cyber Duck</a> or easy blog posting using the MetaWeblog API).  So when <a href="http://www.xm1math.net/texmaker/">Texmaker</a> started slowing down on large complex files<sup id="fnref:recommend"><a href="#fn:recommend" rel="footnote">1</a></sup> I resolved to switch over to using textmate to write up my mathematics in LaTeX.</p>

<p>However, textmate&#8217;s prompt syntax highlight combined with the depreciated use of &#8216;$$&#8217; to start displaymath mode was really annoying.  Each time I would start to add inline mathematics by typing &#8216;$&#8217; textmate would automatically provide the closing &#8216;$&#8217; leaving me a line like this:</p>

<blockquote>
every $g \fungeq f$ that is &#8216;close&#8217; to $f$ can compute $$
</blockquote>

<p>Of course textmate now interprets the remainder of my file as part of a displaymath block started by the &#8216;$$&#8217; consequently changing the syntax highlighting.  Since writing up theorems involves lots of inline mathematics this quickly became very annoying.</p>

<p>Anyway in case anyone else runs into the same problem let me share the quick fix I used.  Go into your bundle editor and in the Latex bundle edit the language TeX.  Find the following section</p>

<p><code>
name = 'string.other.math.block.tex'; <br />
&nbsp;&nbsp;&nbsp;begin = '\$\$'; <br />
&nbsp;&nbsp;&nbsp;end = '\$\$; 
</code></p>

<p>and change it to:</p>

<p><code>
name = 'string.other.math.block.tex'; <br />
&nbsp;&nbsp;&nbsp;begin = '\['; <br />
&nbsp;&nbsp;&nbsp;end = '\]';
</code></p>

<p>Of course this is something of a dirty hack since it disables the correct syntax highlighting for the &#8216;$$&#8217; abbreviation. But since that is depreciated you always use &#8216;[' and ']&#8216; <em>right</em>?</p>

<p>If anyone knows the &#8216;right&#8217; way to do this I&#8217;d love to hear.</p>

<div class="footnotes">
<hr />
<ol>

<li id="fn:recommend">
<p>I still heartily recommend Texmaker for begining latex users as it has a handy side panel showing commonly used symbols and greek characters <em>as they appear</em>.  Quite possibly they have fixed the slowdown I&#8217;m experiencing in a latter version and it didn&#8217;t bother me except on this one file.&#160;<a href="#fnref:recommend" rev="footnote">&#8617;</a></p>
</li>

</ol>
</div>
 <div class='series_toc'><h3 class="series_toc_header">LaTeX in TextMate:</h3><ul class="series_toc_list"><li>Fixing Latex Math in Textmate</li><li><a href='http://www.infiniteinjury.org/blog/2007/08/06/more-tips-for-latex-in-textmate/' title='More Tips For LaTeX in TextMate'>More Tips For LaTeX in TextMate</a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://www.infiniteinjury.org/blog/2007/08/02/fixing-latex-math-in-textmate/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>OpenID Login Working</title>
		<link>http://www.infiniteinjury.org/blog/2007/08/02/openid-login-working/</link>
		<comments>http://www.infiniteinjury.org/blog/2007/08/02/openid-login-working/#comments</comments>
		<pubDate>Thu, 02 Aug 2007 14:18:03 +0000</pubDate>
		<dc:creator>TruePath</dc:creator>
				<category><![CDATA[Meta]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[openid]]></category>

		<guid isPermaLink="false">http://www.infiniteinjury.org/blog/2007/08/02/openid-login-working/</guid>
		<description><![CDATA[So after I went to a great deal of effort to compile a custom version of php on dreamhost to support GMP (long integer library) and jumped through several other hoops just to get openid support working I forgot to change the trust_root after I changed the URL.  Anyway long story short openid logins [...]]]></description>
			<content:encoded><![CDATA[<p>So after I went to a great deal of effort to compile a custom version of php on dreamhost to support GMP (long integer library) and jumped through several other hoops just to get openid support working I forgot to change the trust_root after I changed the URL.  Anyway long story short openid logins are now working.</p>

<p>If you don&#8217;t know what that means check out a site like <a href="http://myopenid.com">myopenid.com</a> which will explain all about it.  However, if you have a livejournal or other sixapart hosted blog you may already have your own openid.  Google will reveal all if you ask.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.infiniteinjury.org/blog/2007/08/02/openid-login-working/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>New Blogging System</title>
		<link>http://www.infiniteinjury.org/blog/2007/06/30/new-blogging-system/</link>
		<comments>http://www.infiniteinjury.org/blog/2007/06/30/new-blogging-system/#comments</comments>
		<pubDate>Sun, 01 Jul 2007 03:03:35 +0000</pubDate>
		<dc:creator>TruePath</dc:creator>
				<category><![CDATA[Meta]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.infiniteinjury.org/blog/2007/6/30/new-blogging-system/</guid>
		<description><![CDATA[I&#8217;ve been avoiding doing anything with my blogs for a long time.  I&#8217;d come to dislike the look of my blogs and the nasty fragile hacks that held my movable type system together so I started putting off doing things with my blog until I could change the system. After my experiences hacking movabletype [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been avoiding doing anything with my blogs for a long time.  I&#8217;d come to dislike the look of my blogs and the nasty fragile hacks that held my movable type system together so I started putting off doing things with my blog until I could change the system. After my experiences hacking <a href="http://movabletype.org">movabletype</a> to support threaded comments (version 4 might be better) I decided I wanted an open source blogging system written in a more appropriate language than perl<sup id="fnref:perl"><a href="#fn:perl" rel="footnote">1</a></sup> with a well designed extension system.  <a href="http://www.ruby-lang.org">Ruby</a> on <a href="www.rubyonrails.org/">rails</a> still seems like the right way to go but I didn&#8217;t like the <a href="http://typosphere.org/">typo</a> codebase and <a href="http://mephistoblog.com/">mephisto</a> just isn&#8217;t mature enough yet to have the extensions I need, e.g., openid, and it&#8217;s API still seems to be in flux.</p>

<p>The fact that I&#8217;m going to be applying for jobs soon finally inspired me to do something about my web presence and despite being written in php I settled on wordpress based on it&#8217;s ease of modification and the amazingly comprehensive list of open source plugins availible.  Someday I may still switch to mephisto<sup id="fnref:mephisto"><a href="#fn:mephisto" rel="footnote">2</a></sup> or my own custom code but at the moment wordpress can&#8217;t be beat as a practical blogging solution for those of us who want extensive customizations and non-standard features.</p>

<p>For anyone who is interested in the code I&#8217;ve written to customize this blog or other related issues I&#8217;ll be posting them on my <a href="http://www.infiniteinjury.org/blog/wordpress/">wordpress</a> page.</p>

<div class="footnotes">
<hr />
<ol>

<li id="fn:perl">
<p>Perl&#8217;s a great language for scripting or gluing things together but perl 5 isn&#8217;t as well suited to building complex web applications.  From what I&#8217;ve read I expect perl 6 will be more appropriate for this sort of task but <a href="http://www.ruby-lang.org/en/">ruby</a> is really the right choice.&#160;<a href="#fnref:perl" rev="footnote">&#8617;</a></p>
</li>

<li id="fn:mephisto">
<p>I hope to explain what I like about the mephisto architecture in a latter post.&#160;<a href="#fnref:mephisto" rev="footnote">&#8617;</a></p>
</li>

</ol>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.infiniteinjury.org/blog/2007/06/30/new-blogging-system/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Threaded Comments! (for movable type)</title>
		<link>http://www.infiniteinjury.org/blog/2005/11/25/threaded-comments/</link>
		<comments>http://www.infiniteinjury.org/blog/2005/11/25/threaded-comments/#comments</comments>
		<pubDate>Sat, 26 Nov 2005 04:44:57 +0000</pubDate>
		<dc:creator>TruePath</dc:creator>
				<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://www.infiniteinjury.org/blog/2005/11/25/threaded-comments/</guid>
		<description><![CDATA[Obviously I no longer use this since switching to wordpress.  I&#8217;ll post the source code I used for anyone else&#8217;s benefit but I probably won&#8217;t be able to help you much getting it to work.  Unfortunately a limitation of the hooks I used to avoid patching the source code mean that this will [...]]]></description>
			<content:encoded><![CDATA[<p>Obviously I no longer use this since switching to wordpress.  I&#8217;ll post the source code I used for anyone else&#8217;s benefit but I probably won&#8217;t be able to help you much getting it to work.  Unfortunately a limitation of the hooks I used to avoid patching the source code mean that this will not work for registered commenters.</p>

<hr />

<p>You may have thought I abandoned my blog over the thanksgiving holiday.  Not so!  Instead I wrote up a plugin to enable threaded comments (and comment subjects as well).  Sure there was already a modification of MT code which let you do something like this but rather than modify it to work with movable type 3.2 I decided to write my own version as an actual comment.</p>

<p>If anyone wants they can take a look at the <a href="http://computationaltruth.net/EnhancedComments.pl">alpha version of the code</a>.  In order to make things work correctly you need a bit of DHTML magic for the comment form.  If you know what you are doing you can see this on my comment pages by viewing the source and edit it to be specific to your site.</p>

<p>When I get the code a bit more cleaned up and move some of the hardcoded stuff into options I will submit it to the MT plugins directory.  Until then I advise anyone who isn&#8217;t ready to dig deeply into the source to wait.</p>

<p>UPDATE:  There seems to be an incompatibility between my plugin and typekey login.  Hopefully it is just an issue with the page js but I&#8217;m afraid it may be because a typekey login somehow short-circuits the CommentFilter callback I&#8217;m using.  Further testing is needed.</p>

<p>UPDATE2: Problem with typekey logins fixed with a hack!  I can&#8217;t trust any commenters lest I disable the callback I use to grab extra info.  What a bitch.  Now I understand why people trying to come out with a nice really robust system to do this same stuff are taking so long.  Makes me think I should just clean up my code to provide those who want it with a workable hack so they can wait for someone to build a whole package.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.infiniteinjury.org/blog/2005/11/25/threaded-comments/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
