<?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>guh &#187; Technicality</title>
	<atom:link href="http://www.pageofguh.org/category/technicality/feed" rel="self" type="application/rss+xml" />
	<link>http://www.pageofguh.org</link>
	<description>sublime lemons</description>
	<lastBuildDate>Fri, 25 Sep 2009 04:43:13 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Installing psycopg2 in Mac OS 10.4 with MacPython and MacPorts</title>
		<link>http://www.pageofguh.org/technicality/715</link>
		<comments>http://www.pageofguh.org/technicality/715#comments</comments>
		<pubDate>Wed, 31 Oct 2007 22:06:53 +0000</pubDate>
		<dc:creator>ken-ichi</dc:creator>
				<category><![CDATA[Technicality]]></category>

		<guid isPermaLink="false">http://www.pageofguh.org/technicality/715</guid>
		<description><![CDATA[For some foolish reason, I installed MacPython on a MacBook Pro (Intel) and installed PostgreSQL with MacPorts. When I tried to install psycopg2, I was getting it kept breaking when it couldn&#8217;t find the libraries Python said were probably in /opt /Developer/SDKs/MacOSX10.4u.sdk/ and Postgres said were /opt/local/. libz was being especially problematic. My solution: In [...]]]></description>
			<content:encoded><![CDATA[<p>For some foolish reason, I installed MacPython on a MacBook Pro (Intel) and installed PostgreSQL with MacPorts.  When I tried to install psycopg2, I was getting it kept breaking when it couldn&#8217;t find the libraries Python said were probably in <code>/opt /Developer/SDKs/MacOSX10.4u.sdk/</code> and Postgres said were <code>/opt/local/</code>.  libz was being especially problematic.  </p>
<p>My solution:</p>
<ol>
<li>In the psycopg dir, edit <code>setup.cfg</code> and add the line
<p><code>library_dirs=/opt/local/lib</code></li>
<li>Add a symbolic link to patch weird zlib issues:
<p><code>ln -s /opt /Developer/SDKs/MacOSX10.4u.sdk/opt</code></p>
<p>I know this is unpleasant, but it works.  Got the idea from <a href="http://forums.macosxhints.com/archive/index.php/t-76288.html">here</a>.</li>
</ol>
<p>Now the build should work.  I still got warnings about arch conflicts, but I think this has something to do with it trying to build versions for both PPC and 386, and since I only need the 386 version, I blissfully ignore such warnings.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.pageofguh.org/technicality/715/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using wget to download a site</title>
		<link>http://www.pageofguh.org/technicality/703</link>
		<comments>http://www.pageofguh.org/technicality/703#comments</comments>
		<pubDate>Thu, 10 May 2007 03:35:31 +0000</pubDate>
		<dc:creator>ken-ichi</dc:creator>
				<category><![CDATA[Technicality]]></category>

		<guid isPermaLink="false">http://www.pageofguh.org/technicality/703</guid>
		<description><![CDATA[For future reference, downloading a site with wget, including external images and stylesheets with only one level of recursion, looks something like this: wget -H -rl 1 --page-requisites --convert-links --backup-converted --html-extension http://thesite.net]]></description>
			<content:encoded><![CDATA[<p>For future reference, downloading a site with wget, including external images and stylesheets with only one level of recursion, looks something like this:</p>
<p><code lang="bash">wget -H -rl 1 --page-requisites --convert-links --backup-converted --html-extension http://thesite.net</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.pageofguh.org/technicality/703/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installing Fonts for Ubuntu</title>
		<link>http://www.pageofguh.org/technicality/698</link>
		<comments>http://www.pageofguh.org/technicality/698#comments</comments>
		<pubDate>Tue, 27 Mar 2007 16:47:07 +0000</pubDate>
		<dc:creator>ken-ichi</dc:creator>
				<category><![CDATA[Technicality]]></category>

		<guid isPermaLink="false">http://www.pageofguh.org/technicality/698</guid>
		<description><![CDATA[Ubuntu seems to lack a decent font management system, which is definitely one of the things keeping it from the ranks of the big two commercial desktop OSs. Installing fonts is easy, though: just copy them to /home//.fonts/ Of course, you only learn this after finding the relatively ungooglable FontsInstallHowto.]]></description>
			<content:encoded><![CDATA[<p>Ubuntu seems to lack a decent font management system, which is definitely one of the things keeping it from the ranks of the big two commercial desktop OSs.  Installing fonts is easy, though: just  copy them to <code lang="bash">/home/<username>/.fonts/</code>  Of course, you only learn this after finding the relatively ungooglable <a href="https://help.ubuntu.com/community/FontInstallHowto">FontsInstallHowto</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.pageofguh.org/technicality/698/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Kid Mode for SubEthaEdit</title>
		<link>http://www.pageofguh.org/technicality/695</link>
		<comments>http://www.pageofguh.org/technicality/695#comments</comments>
		<pubDate>Wed, 14 Mar 2007 00:09:56 +0000</pubDate>
		<dc:creator>ken-ichi</dc:creator>
				<category><![CDATA[Technicality]]></category>

		<guid isPermaLink="false">http://www.pageofguh.org/technicality/695</guid>
		<description><![CDATA[I&#8217;m trying to pick up TurboGears, so I made a very rough SubEthaEdit mode for Kid files so I could get me some syntax highlighting. I basically just copied most of the Python mode into a copy of the HTML mode, and made the default color bold green. I&#8217;m still learning about Kid, so no [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m trying to pick up <a href="http://turbogears.com/">TurboGears</a>, so I made a very rough SubEthaEdit mode for <a href="http://kid-templating.org">Kid</a> files so I could get me some syntax highlighting.  I basically just copied most of the Python mode into a copy of the HTML mode, and made the default color bold green.  I&#8217;m still learning about Kid, so no doubt I&#8217;ve missed a few things.</p>
<p>To install, just drag the file <code>Kid.mode</code> to <code>~/Library/Application Support/SubEthaEdit/Modes/</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.pageofguh.org/technicality/695/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Listing Files with Direct Links in Plone</title>
		<link>http://www.pageofguh.org/technicality/677</link>
		<comments>http://www.pageofguh.org/technicality/677#comments</comments>
		<pubDate>Fri, 01 Dec 2006 22:22:07 +0000</pubDate>
		<dc:creator>ken-ichi</dc:creator>
				<category><![CDATA[Technicality]]></category>

		<guid isPermaLink="false">http://www.pageofguh.org/technicality/677</guid>
		<description><![CDATA[In Plone, items of content type File are represented as links to separate web pages, and only on that separate page can a user find a link to download the actual file. This, of course, is somewhat insane, but I got the solution from the very helpful joelburton on the #plone IRC channel: In the [...]]]></description>
			<content:encoded><![CDATA[<p>In Plone, items of content type <code>File</code> are represented as links to separate web pages, and only on that separate page can a user find a link to download the actual file.  This, of course, is somewhat insane, but I got the solution from the very helpful joelburton on the #plone IRC channel:</p>
<ol>
<li>In the ZMI, go to <code>portal_properties -> site_properties</code></li>
<li>In the <code>typesUseViewActionInListings</code> box, remove the <code>file</code> listing</li>
</ol>
<p>Simple once you know it, but seemingly impossible to find without intimate knowledge of the system.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.pageofguh.org/technicality/677/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using IPython</title>
		<link>http://www.pageofguh.org/technicality/673</link>
		<comments>http://www.pageofguh.org/technicality/673#comments</comments>
		<pubDate>Fri, 03 Nov 2006 18:48:51 +0000</pubDate>
		<dc:creator>ken-ichi</dc:creator>
				<category><![CDATA[Technicality]]></category>

		<guid isPermaLink="false">http://www.pageofguh.org/technicality/673</guid>
		<description><![CDATA[IPython is an enhanced interactive shell for Python, and it is very cool. Debugging Run a script through the Python debugger (pdb) run -d script.py Run a script through pdb w/ a breakpoint at line 10 run -d -b10 script.py List all variables in the local namespace whos Clear all variables in the local namespace [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://ipython.scipy.org/">IPython</a> is an enhanced interactive shell for Python, and it is very cool.</p>
<p><span id="more-673"></span><br />
<h3>Debugging</h3>
<h4>Run a script through the Python debugger (pdb)</h4>
<p><code lang="python">run -d script.py</code></p>
<h4>Run a script through pdb w/ a breakpoint at line 10</h4>
<p><code lang="python">run -d -b10 script.py</code></p>
<h4>List all variables in the local namespace</h4>
<p><code lang="python">whos</code></p>
<h4>Clear all variables in the local namespace</h4>
<p><code lang="python">reset</code></p>
<h4>Recusrively reload a module and its submodules</h4>
<p><code lang="python">dreload module</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.pageofguh.org/technicality/673/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Command-line Package Management in Debian/Ubuntu</title>
		<link>http://www.pageofguh.org/technicality/671</link>
		<comments>http://www.pageofguh.org/technicality/671#comments</comments>
		<pubDate>Fri, 27 Oct 2006 17:28:59 +0000</pubDate>
		<dc:creator>ken-ichi</dc:creator>
				<category><![CDATA[Technicality]]></category>

		<guid isPermaLink="false">http://www.pageofguh.org/technicality/671</guid>
		<description><![CDATA[Just a little cheat sheet for future reference. Installation apt-get install gimp Removal apt-get remove gimp Search apt-cache search gimp Dependencies apt-cache depends gimp apt-cache depends --installed gimp apt-cache rdepends gimp List Installed Packages dpkg -l &#124;grep gimp Manually Compiling &#038; Installing for Use in apt Manual compilation is all well and good, but compiling [...]]]></description>
			<content:encoded><![CDATA[<p>Just a little cheat sheet for future reference.</p>
<h3>Installation</h3>
<p><code lang="bash">apt-get install gimp</code></p>
<p><span id="more-671"></span><br />
<h3>Removal</h3>
<p><code lang="bash">apt-get remove gimp</code></p>
<h3>Search</h3>
<p><code lang="bash">apt-cache search gimp</code></p>
<h3>Dependencies</h3>
<p><code lang="bash">apt-cache depends gimp</code><br />
<code lang="bash">apt-cache depends --installed gimp</code><br />
<code lang="bash">apt-cache rdepends gimp</code></p>
<h3>List Installed Packages</h3>
<p><code lang="bash">dpkg -l |grep gimp</code></p>
<h3>Manually Compiling &#038; Installing for Use in apt</h3>
<p>Manual compilation is all well and good, but compiling a Debian package makes it easier to uninstall things cleanly.<br />
<code lang="bash">./configure<br />
checkinstall</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.pageofguh.org/technicality/671/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Open Source XML Development on Mac OS X</title>
		<link>http://www.pageofguh.org/technicality/663</link>
		<comments>http://www.pageofguh.org/technicality/663#comments</comments>
		<pubDate>Mon, 11 Sep 2006 20:53:42 +0000</pubDate>
		<dc:creator>ken-ichi</dc:creator>
				<category><![CDATA[Technicality]]></category>

		<guid isPermaLink="false">http://www.pageofguh.org/technicality/663</guid>
		<description><![CDATA[I&#8217;m taking an intro class in XML and, being a Mac user, I&#8217;d like to be able to do my work on a Mac. Also, being an open source person / cheapskate, I&#8217;d prefer that my software be open source, or at least freeware. There doesn&#8217;t seem to be any single package out there that [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m taking an intro class in XML and, being a Mac user, I&#8217;d like to be able to do my work on a Mac.  Also, being an open source person / cheapskate, I&#8217;d prefer that my software be open source, or at least freeware.  There doesn&#8217;t seem to be any single package out there that meets these requirements <em>and</em> does the kind of things that commercial packages like XMLSpy or oXygen do, but a lot of their functionality can be replicated piecemeal.</p>
<p><span id="more-663"></span><br />
<h3>Editing</h3>
<p><a href="http://developer.apple.com/tools/xcode/">Your</a> <a href="http://www.codingmonkeys.de/subethaedit/">favorite</a> <a href="http://www.barebones.com/products/textwrangler/">text</a> <a href="http://macromates.com/">editor</a>.</p>
<h3>Validation</h3>
<p><a href="http://xmlnanny.com/">XML Nanny</a> &#8211; supports DTD, XML Schema, RELAX NG, and Schematron</p>
<h3>Query &#038; Transformation</h3>
<p><a href="http://www.ditchnet.org/xslpalette/">XSLPalette</a> &#8211; haven&#8217;t played with it yet, but claims to support XSLT 2.0, XPath 2.0, and XQuery 1.0 debuggery.</p>
<h4>Addendum</h4>
<p>It does, but it&#8217;s certainly not a replacement for XMLSpy&#8217;s XPath functionality.  For that I turned to the <a href="http://4suite.org">4suite</a> XML package for Python.  Using it within an interpretive shell (<a href="http://ipython.scipy.org/">IPython</a>, in my case) worked alright:</p>
<p><code lang="python">from Ft.Xml.Domlette import NonvalidatingReader as NVR<br />
doc = NVR.parseUri('file:document.xml')<br />
doc.xpath('//someElement')</code></p>
<p>Aside from serious performance issues on large documents it seemed to work ok.  NOTE: if your XML document has a namespace set, the xpath() method will return nothing if you query for elements in the document without first decalring the XPath namespace.  It won&#8217;t give you any friendly error messages explaining what&#8217;s going wrong.  Check out the <a href="http://4suite.org/docs/CoreManual.xml#id184745260">docs</a>.</p>
<h3>Generating a Schema from an Instance</h3>
<p>Because sloth is a virtue in development.  A couple solutions discussed in <a href="http://www.oreilly.com/catalog/xmlhks/">XML Hacks</a> (sorry, not free), but the one that worked the quickes for me was&#8230;</p>
<p><a href="http://saxon.sourceforge.net/dtdgen.html">DTDGenerator</a> &#8211; creates a DTD from an XML document instance.<br />
Usage:<br />
<code lang="bash">java DTDGenerator inputfile > outputfile</code></p>
<p>Others: <a href="http://www.thaiopensource.com/relaxng/trang.html">Trang</a> (RELAX NG, DTD, XML Schema), <a href="http://www.relaxer.org/">Relaxer</a> (RELAX NG, DTD, XML Schema)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.pageofguh.org/technicality/663/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>.htaccess to divert traffic by IP address</title>
		<link>http://www.pageofguh.org/technicality/657</link>
		<comments>http://www.pageofguh.org/technicality/657#comments</comments>
		<pubDate>Mon, 21 Aug 2006 23:42:43 +0000</pubDate>
		<dc:creator>ken-ichi</dc:creator>
				<category><![CDATA[Technicality]]></category>

		<guid isPermaLink="false">http://www.pageofguh.org/technicality/657</guid>
		<description><![CDATA[I had to take down a site for updates today, so I decided I&#8217;d try and use a .htaccess file to redirect all requests to a holding page. Well, all requests other than my own, of course, since I needed to test things. My .htaccess file looked like this: # Need to have FollowSymlinks for [...]]]></description>
			<content:encoded><![CDATA[<p>I had to take down a site for updates today, so I decided I&#8217;d try and use a .htaccess file to redirect all requests to a holding page.  Well, all requests other than my own, of course, since I needed to test things.  My .htaccess file looked like this:</p>
<p><span id="more-657"></span><code lang="apache"># Need to have FollowSymlinks for mod_rewrite to work its magic<br />
Options +FollowSymlinks</p>
<p>RewriteEngine on</p>
<p># You might want to set the base of the rewrites (where Apache should look f<br />
# or the places to which you're redirecting)<br />
# RewriteBase /</p>
<p># Rewrite URL for all REMOTE ADDRESSES except mine<br />
RewriteCond %{REMOTE_ADDR} !^1.2.3.4</p>
<p># Send all requests to index-maintenance.html using a pass through, so the<br />
# request URL looks the same<br />
RewriteRule /* index-maintenance.html [PT]</code></p>
<p>Cribbed from <a href="http://httpd.apache.org/docs/2.0/misc/rewriteguide.html">here</a> and <a href="http://wordpress.org/support/topic/32727">here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.pageofguh.org/technicality/657/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Uglying up Ubuntu</title>
		<link>http://www.pageofguh.org/technicality/636</link>
		<comments>http://www.pageofguh.org/technicality/636#comments</comments>
		<pubDate>Thu, 06 Jul 2006 00:30:30 +0000</pubDate>
		<dc:creator>ken-ichi</dc:creator>
				<category><![CDATA[Technicality]]></category>

		<guid isPermaLink="false">http://www.pageofguh.org/technicality/636</guid>
		<description><![CDATA[Ubuntu is famous for being a user-friendly desktop distro, but what happens when you want to do un-user-friendly things like, say, compile your own software from source? Bad things. First of all, you actually have to install a bunch of very basic software apt-get install gcc g++ make Then, of course, there&#8217;s what comes with [...]]]></description>
			<content:encoded><![CDATA[<p>Ubuntu is famous for being a user-friendly desktop distro, but what happens when you want to do un-user-friendly things like, say, compile your own software from source?  Bad things.  First of all, you actually have to install a bunch of very basic software</p>
<p><code lang="bash">apt-get install gcc g++ make</code></p>
<p>Then, of course, there&#8217;s what comes with dealing with packaged versions of software you normally install yourself: installation in weird places.  Why are the PHP libs in /usr/share/php/ and not /usr/lib/?  What the hell?  Gentoo is far more sane when it comes to these things, but with far less hand-holding when it comes to X11 nonsense, which is why I&#8217;m trying Ubuntu.  But wait!  How do I get Ubuntu to recognize my Apple Cinema Display and set correct resolutions?  What&#8217;s that you say?  Open up a shell?!  What is this, Gentoo?  I shouldn&#8217;t even have to fix that.  And getting dual displays working apparently requires some more xorg hacking.  </p>
<p>Ubuntu has a ways to go as far as I&#8217;m concerned.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.pageofguh.org/technicality/636/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

