<?xml version="1.0" encoding="latin1"?>
<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>Ade</title>
	<atom:link href="http://socialtech.ca/ade/index.php/feed/" rel="self" type="application/rss+xml" />
	<link>http://socialtech.ca/ade</link>
	<description></description>
	<lastBuildDate>Thu, 12 Nov 2009 15:30:07 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9-rare</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Hpricot &#8211; [BUG] Bus Error &#8211; Solution / Workaround</title>
		<link>http://socialtech.ca/ade/index.php/2009/11/hpricot-bug-bus-error-solution-workaround/</link>
		<comments>http://socialtech.ca/ade/index.php/2009/11/hpricot-bug-bus-error-solution-workaround/#comments</comments>
		<pubDate>Thu, 12 Nov 2009 15:30:07 +0000</pubDate>
		<dc:creator>Ade</dc:creator>
				<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://socialtech.ca/ade/?p=437</guid>
		<description><![CDATA[Problem:
You&#8217;re using Hpricot to parse web content, but it&#8217;s throwing an error like this that completely kills the process (probably crashing your app, or your background task, as the case may be):

/usr/local/lib/ruby/gems/1.8/gems/hpricot-0.8.2/lib/hpricot/parse.rb:33: [BUG] Bus Error
ruby 1.8.7 (2009-04-08 patchlevel 160) [i686-darwin8.11.1]
Abort trap

This resource suggests that the problem is that the content retrieved is precisely 16384 bytes [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Problem:</strong></p>
<p>You&#8217;re using Hpricot to parse web content, but it&#8217;s throwing an error like this that completely kills the process (probably crashing your app, or your background task, as the case may be):<br />
<code><br />
/usr/local/lib/ruby/gems/1.8/gems/hpricot-0.8.2/lib/hpricot/parse.rb:33: [BUG] Bus Error<br />
ruby 1.8.7 (2009-04-08 patchlevel 160) [i686-darwin8.11.1]<br />
Abort trap<br />
</code></p>
<p><a href="http://justsoftwareconsulting.com/blog/?p=123">This resource</a> suggests that the problem is that the content retrieved is precisely 16384 bytes long, however, that was not the problem in my case.</p>
<p>My problem is replicated in <a href="http://gist.github.com/232348">this gist</a>.  Examination of the URL it was trying to retrieve using curl with -i indicated that this was returning a 302 redirect:<br />
<code><br />
HTTP/1.1 302 Found<br />
Date: Thu, 12 Nov 2009 14:50:53 GMT<br />
Server: Microsoft-IIS/6.0<br />
X-Powered-By: ASP.NET<br />
X-AspNet-Version: 2.0.50727<br />
X-UA-Compatible: IE=EmulateIE7<br />
Location: /<br />
Set-Cookie: ASP.NET_SessionId=p2s0dljru11tiwer3e01jfq2; path=/; HttpOnly<br />
Set-Cookie: Forum2backURL=/tm.aspx?m=1859288#1859354; path=/<br />
Set-Cookie: Forum2preURL=; path=/<br />
Cache-Control: private<br />
Expires: Wed, 11 Nov 2009 13:50:53 GMT<br />
Content-Type: text/html; charset=utf-8<br />
Content-Length: 120<br />
</code></p>
<p>I am not sure why Ruby&#8217;s OpenURI open method was not capable of parsing / following this redirect.  However, I determined that the file returned by open() had a size of zero bytes, and this was causing Hpricot to blow up.</p>
<p>My workaround is just to check the size of the file returned by open() and only try to parse it if it is greater than 0:<br />
<code><br />
f = open(file_or_uri)<br />
if f.size > 0<br />
    doc = Hpricot(f)<br />
else<br />
    raise "Could not retrieve content due to zero-sized file, possibly due to site redirect."<br />
end<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://socialtech.ca/ade/index.php/2009/11/hpricot-bug-bus-error-solution-workaround/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Thoughts on O, 2</title>
		<link>http://socialtech.ca/ade/index.php/2009/11/thoughts-on-o-2/</link>
		<comments>http://socialtech.ca/ade/index.php/2009/11/thoughts-on-o-2/#comments</comments>
		<pubDate>Tue, 10 Nov 2009 02:33:45 +0000</pubDate>
		<dc:creator>Ade</dc:creator>
				<category><![CDATA[Oliver]]></category>

		<guid isPermaLink="false">http://socialtech.ca/ade/?p=431</guid>
		<description><![CDATA[Oliver is two years and three months old.  He&#8217;s an amazing little man.  He seems to get cuter every day, an impossible feat.  He trucks around with determination, his little legs whipping along, always moving from one thing to the next.
He&#8217;s curious.  When he hears something, he asks, &#8220;What was that? [...]]]></description>
			<content:encoded><![CDATA[<p>Oliver is two years and three months old.  He&#8217;s an amazing little man.  He seems to get cuter every day, an impossible feat.  He trucks around with determination, his little legs whipping along, always moving from one thing to the next.</p>
<p>He&#8217;s curious.  When he hears something, he asks, &#8220;What was that? What was that noise?&#8221;  He loves to pick things up from the ground &#8211; sticks, rocks, whatever.  To his mother&#8217;s horror, the other day he scavenged a french fry from the floor of the mall and happily ate it.  In other words, he is resourceful.</p>
<p>He is observant.  He can spot a sliver of the moon in broad daylight, when it scarcely looks different than a scrap of cloud.  He learns quickly and is unafraid of embarrassing himself.  I&#8217;m in a constant pattern of language instruction with him, introducing new words and asking him to repeat them.  He does very well at it.  I like to throw some curveballs in there too.  &#8220;That&#8217;s called &#8216;manipulation&#8217;, Oliver. Can you say &#8216;manipulation&#8217;?&#8221;  &#8220;Manish-ship-ship-shun.&#8221;  &#8220;Can you say controversial?&#8221;  &#8220;Con-oh-SERial!&#8221;</p>
<p>Although his vocabulary may not have caught up to mine yet, he has already superseded my musical ability.  His rendition of <em>Gincle Gincle Little Star</em> is far sweeter to the ear than my best attempts.  He is also adept at filling in the parts of songs he doesn&#8217;t know with semi-melodic mumbling, which will put him in good stead when he needs to sing the national anthem later on in life.</p>
<p>He loves to be tickled.  When he&#8217;s had enough, he lets me know: &#8220;Daddy, dop!&#8221;  In general he is not afraid to let me know when I&#8217;m being a pain in the ass.  &#8220;No, Daddy.  Go way, Daddy!&#8221;</p>
<p>On the other hand, he doesn&#8217;t like it when I leave.  We have interesting conversations in the front hallway on weekday mornings when he tries to prevent me from going to work.</p>
<p>&#8220;No Daddy go!&#8221;</p>
<p>&#8220;Daddy has to go to work.&#8221;</p>
<p>&#8220;Why Daddy work?&#8221;</p>
<p>&#8220;Daddy has to work so that he can make money.&#8221;</p>
<p>&#8220;Why money?&#8221;</p>
<p>&#8220;Because we need money so that we can buy food.&#8221;</p>
<p>&#8220;Why?&#8221;</p>
<p>&#8220;Because we need to eat.&#8221;</p>
<p>&#8220;Why?&#8221;</p>
<p>Why indeed?  I used to believe that when I had a child, I would always try to explain things to that child and never resort to the pat answers I&#8217;d hear from other parents (&#8221;just because&#8221;).  My child is only two and he is already defeating this goal.  Why DO we need to eat?</p>
<p>You can answer that question, sure, but ask enough &#8220;whys&#8221;, and you&#8217;ll find yourself trying to explain the nature and reasons for existence of the universe &#8211; to a two-year-old.</p>
<p>Then again, he&#8217;s probably got as good a chance of understanding it as most.  In fact, I think he&#8217;s taught me far more about the ultimate nature of life and existence than I could ever teach him.</p>
]]></content:encoded>
			<wfw:commentRss>http://socialtech.ca/ade/index.php/2009/11/thoughts-on-o-2/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Rare Satisfaction</title>
		<link>http://socialtech.ca/ade/index.php/2009/07/rare-satisfaction/</link>
		<comments>http://socialtech.ca/ade/index.php/2009/07/rare-satisfaction/#comments</comments>
		<pubDate>Tue, 21 Jul 2009 02:02:02 +0000</pubDate>
		<dc:creator>Ade</dc:creator>
				<category><![CDATA[General Interest]]></category>

		<guid isPermaLink="false">http://socialtech.ca/ade/?p=394</guid>
		<description><![CDATA[You&#8217;re driving, going at a decent clip.  Some jerk is tailgating you anyway.  He&#8217;s so close you can see his face in your rear view mirror.  He looks like a douchebag.
He keeps drifting to the left to see if he can pass.  He can&#8217;t, which makes him frustrated.  He probably [...]]]></description>
			<content:encoded><![CDATA[<p>You&#8217;re driving, going at a decent clip.  Some jerk is tailgating you anyway.  He&#8217;s so close you can see his face in your rear view mirror.  He looks like a douchebag.</p>
<p>He keeps drifting to the left to see if he can pass.  He can&#8217;t, which makes him frustrated.  He probably has a crap job and a worse family, which are stressing him out.  Or whoever he&#8217;s talking to on his cellphone isn&#8217;t telling him what he wants to hear.</p>
<p>He finally gets a chance to pass.  Steps on it to make a point and roars past.  &#8220;<em>Man</em>,&#8221; you think, &#8220;I <em>really, really</em> hope that jerkoff gets pulled over a few blocks ahead.  I&#8217;ll smirk as I drive past.  Maybe give him a friendly wave.  That prick.&#8221;</p>
<p>That never, ever happens.  But the other night, I got a tiny glimpse of what it would feel like.</p>
<p>I&#8217;m coasting in to an intersection.  It&#8217;s a four-way stop.  Some dude is rolling in to the intersection at the same time, opposite to me but turning left (down the street on my right).  That means only one of us can go.  We&#8217;re going to have to stop together, and then one of us is going to have to yield to the other.  Either he&#8217;ll make his left turn, or I&#8217;ll head straight through.</p>
<p>I don&#8217;t mind yielding &#8211; I&#8217;m not in any rush.  But he doesn&#8217;t give me the chance.  He decides to preempt our little negotiation by not stopping at all.  He just keeps going, makes his turn, and heads down the street on my right.</p>
<p>Unfortunately for him, we weren&#8217;t the only people waiting at the intersection.  A third vehicle had arrived at the same time on the same street this guy just headed down.  This vehicle, it just so happens, is a police vehicle, driven by a rather large police officer.  At the moment I see him his hand is raised, palm upward, in a gesture that clearly communicates exactly the same thing I&#8217;m thinking: WTF?</p>
<p>I pause.  The cop doesn&#8217;t.  He u-turns and heads after the dude.</p>
<p>The moment is over, but the feeling remains: a rare, sweet satisfaction.</p>
]]></content:encoded>
			<wfw:commentRss>http://socialtech.ca/ade/index.php/2009/07/rare-satisfaction/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Similarity Breeds Dislike</title>
		<link>http://socialtech.ca/ade/index.php/2009/06/similarity-breeds-dislike/</link>
		<comments>http://socialtech.ca/ade/index.php/2009/06/similarity-breeds-dislike/#comments</comments>
		<pubDate>Fri, 12 Jun 2009 03:50:31 +0000</pubDate>
		<dc:creator>Ade</dc:creator>
				<category><![CDATA[Social &#038; Political]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[web design]]></category>

		<guid isPermaLink="false">http://socialtech.ca/ade/?p=382</guid>
		<description><![CDATA[When the wildly popular online multiplayer game World of Warcraft came out a few years ago, I played it for about six months.  Like just about every other multiplayer game out there, WoW players a faction to belong to, in WoW&#8217;s case, either the Horde or the Alliance.
This choice is often arbitrary, although once [...]]]></description>
			<content:encoded><![CDATA[<p>When the wildly popular online multiplayer game World of Warcraft came out a few years ago, I played it for about six months.  Like just about every other multiplayer game out there, WoW players a faction to belong to, in WoW&#8217;s case, either the Horde or the Alliance.</p>
<p>This choice is often arbitrary, although once someone has chosen a particular faction, their friends will often choose the same one so they can play together.  But at the time a player joins, they have no particular love for the side they choose or hatred for their faction&#8217;s enemies.</p>
<p>This soon changes, however, especially on game servers that promote warfare between the factions (so called player-vs-player servers, such as the one I played on).  A raging hatred exists between players on opposite factions that extends out of the game world and onto forums, blogs and so on, where people insult each other, claim the other side has an unfair advantage, etc.</p>
<p>In other words, people who have a ton of things in common, from their frequently similar personal characteristics (young, male, etc.) to their obvious appreciation for the same type of entertainment, spend hours flaming each other as a result of an arbitrary, meaningless choice when they first started playing the game.</p>
<p>As in the world of video games, so in the world of web development.  I&#8217;m sometimes dismayed by the attitudes expressed by Python programmers towards Ruby programmers, and vice versa.  </p>
<p>Don&#8217;t get me wrong: lots of people from these two communities are perfectly civil towards one another, and some of the tension is simply a healthy competitive rivalry.  But that is not always the case, which is weird: after all, both languages are dynamic and cutting-edge, both communities are producing fantastic software, and both communities are generally contemptuous towards people who program in PHP.  So what&#8217;s the problem?</p>
<p>Or check out the <a href="http://www.smashingmagazine.com/2009/06/10/why-web-developers-dont-need-a-mac/">massive flamewar</a> on Smashing Magazine because someone had the nerve to suggest that web developers don&#8217;t need to use Macs.  Five hundred comments (and counting) of Mac users bashing Windows users bashing Mac users, occasionally interspersed by pious Linux users wondering what all the fuss is about.</p>
<p>But <em>all of these people are web developers</em>.  Some, of course, are respectful to each other, but others are not: the fact they are speaking to someone who is probably much like them, with the same career and probably many of the same interests, does not matter as much (at least at that moment) as that person&#8217;s choice of computer.</p>
<p>When we&#8217;re online, we often disagree the most with the people who are just like us.  Is this the result of competition, like the conjured up war between the Horde and the Alliance in World of Warcraft or the pressures of the hyperactive pace of web development?  Or is it a way of insisting that we are unique individuals, even when presented with evidence to the contrary &#8211; our peers?</p>
<p>Offline, the situation changes.  Put a Ruby programmer and a Python programmer in a room together at a party and they&#8217;re bound to meet at some point and trigger the kind of endless, arcane-to-normal-people conversation that prompts their wives to suggest leaving.  Put a couple of WoW players into a room at a party &#8211; actually, never mind, WoW players don&#8217;t really leave the house.</p>
<p>There&#8217;s a simple solution for all of this then: when you deal with people online, treat them the way you treat the people you see every day, in person.  Even if they still use PHP.  Or they&#8217;re Horde.  You ganking bastards.</p>
]]></content:encoded>
			<wfw:commentRss>http://socialtech.ca/ade/index.php/2009/06/similarity-breeds-dislike/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>What, you&#8217;ve never heard of Manny Schwartz?</title>
		<link>http://socialtech.ca/ade/index.php/2009/06/manny-schwartz/</link>
		<comments>http://socialtech.ca/ade/index.php/2009/06/manny-schwartz/#comments</comments>
		<pubDate>Tue, 02 Jun 2009 03:36:14 +0000</pubDate>
		<dc:creator>Ade</dc:creator>
				<category><![CDATA[Social &#038; Political]]></category>
		<category><![CDATA[science]]></category>

		<guid isPermaLink="false">http://socialtech.ca/ade/?p=377</guid>
		<description><![CDATA[If you&#8217;re fairly well-informed when it comes to science, you may often feel, and sometimes express, skepticism about someone else&#8217;s supposedly scientific claims.
For example, if you were to see Suzanne Somers on Oprah telling women that injecting estrogen directly into their vaginas (don&#8217;t worry, that link does not go to a photo) will make them [...]]]></description>
			<content:encoded><![CDATA[<p>If you&#8217;re fairly well-informed when it comes to science, you may often feel, and sometimes express, skepticism about someone else&#8217;s supposedly scientific claims.</p>
<p>For example, if you were to see Suzanne Somers on Oprah telling women that <a href="http://www.newsweek.com/id/200025/output/print">injecting estrogen directly into their vaginas</a> (don&#8217;t worry, that link does not go to a photo) will make them look and feel younger, you may think, &#8220;that&#8217;s crazy,&#8221; and you may even feel compelled to remark to someone near you that you believe &#8220;that woman is freaking nuts&#8221;.</p>
<p>When you criticize an apparently ridiculous person or idea, however, you open yourself up to a common line of attack, which is to point out that history&#8217;s revolutionary thinkers and inventors were usually mocked when they announced their discoveries.</p>
<p>I&#8217;m slogging my way through Steven Pinker&#8217;s <a href="http://en.wikipedia.org/wiki/The_Stuff_of_Thought">The Stuff of Thought</a> right now and I came across a brilliant counter-argument to that.  In this paragraph, Pinker is discussing the radical linguistic theories of philosopher and psychologist <a href="http://en.wikipedia.org/wiki/Jerry_Fodor">Jerry Fodor</a>:</p>
<blockquote><p>
Fodor correctly notes that history has often vindicated unconventional ideas &#8211; after all, they all laughed at Christopher Columbus and Thomas Edison.  The problem is that they all laughed at Manny Schwartz, too.  What, you&#8217;ve never heard of Manny Schwartz?  He was the originator and chief defender of the theory of Continental Drip: that the southern continents are pointy at the bottom because they dribbled downward as they cooled from a molten state.  The point is that they were <em>right</em> to laugh at Manny Schwartz.  Extraordinary claims [...] deserve extraordinary evidence.
</p></blockquote>
<p>So the next time someone pulls this one on you when you express skepticism about an extraordinary claim, just ask, &#8220;What, you&#8217;ve never heard of Manny Schwartz?&#8221;</p>
]]></content:encoded>
			<wfw:commentRss>http://socialtech.ca/ade/index.php/2009/06/manny-schwartz/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Thoughts on O</title>
		<link>http://socialtech.ca/ade/index.php/2009/05/thoughts-on-o/</link>
		<comments>http://socialtech.ca/ade/index.php/2009/05/thoughts-on-o/#comments</comments>
		<pubDate>Tue, 26 May 2009 02:35:44 +0000</pubDate>
		<dc:creator>Ade</dc:creator>
				<category><![CDATA[General Interest]]></category>

		<guid isPermaLink="false">http://socialtech.ca/ade/?p=374</guid>
		<description><![CDATA[Our son Oliver is almost two years old (just a couple of months to go).  I&#8217;ve been thinking lately that I&#8217;d like to record some memories from around this time, so here goes.
Lately he&#8217;s been learning how to jump, which he does by bending all the way forward, in a full crouch with his [...]]]></description>
			<content:encoded><![CDATA[<p>Our son Oliver is almost two years old (just a couple of months to go).  I&#8217;ve been thinking lately that I&#8217;d like to record some memories from around this time, so here goes.</p>
<p>Lately he&#8217;s been learning how to jump, which he does by bending all the way forward, in a full crouch with his chest horizontal to the ground, and then extending upwards as vigorously as he can.  This earns him about an inch of air.</p>
<p>In the morning, though, when I get him out of his crib, he holds onto the side of it and jumps up and down like a maniac.  This technique gives him a lot more height, and it&#8217;s very funny to watch.  It makes getting him out of bed in the morning doubly enjoyable.  It&#8217;s hard to stay irritated with a Monday morning when someone else&#8217;s reaction to the new day is this much excitement.</p>
<p>Eating is always an adventure.  An activity that I view as one of life&#8217;s great pleasures is a mixed bag for Oliver.  Certain foods are always in favour (any type of pasta is met with the exclamation &#8220;noose!&#8221;, which means &#8220;noodles&#8221;), while the mere proximity of others is offensive, even if no attempt is being made to force the issue (broccoli may not be in contact with any part of his high chair).</p>
<p>His refusal to eat certain healthy foods has resulted in us playing the deception card, a parental favourite, by cutting food up and mixing it in with yogurt (another sure winner).  Oliver enjoyed every bite of a wretched mixture of yogurt and chopped asparagus and chicken.</p>
<p>Last night, while at the in-laws, Oliver and I were indoors while the rest of the family was outside, and he shut a heavy door on his finger.  He immediately started screaming in pain, stamping his feet in anguish and holding out his hand for me to look at.  I could see that he did not understand <em>why</em> it hurt so much.  This confusion is tragic to me.  Growing up, he will often hurt, and many times will not know why, just like the rest of us.</p>
<p>This morning, although his fingernail was purple, it wasn&#8217;t bothering him any more.  I&#8217;d say that now he&#8217;s less likely to play with doors, but I don&#8217;t think that&#8217;s true.  Instead, he&#8217;ll probably just be a little better at it.  The resilience of children and their determination to <em>get good</em> at stuff is amazing.</p>
<p>As Oliver gets older, our relationship is changing.  I used to take care of him as a baby, now, I&#8217;m getting to know him as a person.  Few experiences in my life have felt this meaningful.</p>
]]></content:encoded>
			<wfw:commentRss>http://socialtech.ca/ade/index.php/2009/05/thoughts-on-o/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fixing HAML in jEdit</title>
		<link>http://socialtech.ca/ade/index.php/2008/07/fixing-haml-in-jedit/</link>
		<comments>http://socialtech.ca/ade/index.php/2008/07/fixing-haml-in-jedit/#comments</comments>
		<pubDate>Fri, 18 Jul 2008 02:56:51 +0000</pubDate>
		<dc:creator>Ade</dc:creator>
				<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://socialtech.ca/ade/index.php/2008/07/fixing-haml-in-jedit/</guid>
		<description><![CDATA[(This one is purely for tech people, Ruby on Rails developers who use jEdit to be exact.)
Chances are, if you use jEdit and HAML, you&#8217;re using or you&#8217;ve tried out Jim Morris&#8216; jEdit HAML edit mode.
If you&#8217;ve done so, and you&#8217;re using an up-to-date version of jEdit (e.g. 4.3 pre14) you&#8217;ll have noticed that the [...]]]></description>
			<content:encoded><![CDATA[<p>(This one is purely for tech people, Ruby on Rails developers who use jEdit to be exact.)</p>
<p>Chances are, if you use jEdit and HAML, you&#8217;re using or you&#8217;ve tried out <a href="http://blog.wolfman.com/articles/2006/12/01/a-haml-edit-mode-for-jedit">Jim Morris</a>&#8216; <a href="http://haml.googlegroups.com/web/haml.xml">jEdit HAML edit mode</a>.</p>
<p>If you&#8217;ve done so, and you&#8217;re using an up-to-date version of jEdit (e.g. 4.3 pre14) you&#8217;ll have noticed that the way it deals with indentation is really buggy.  Here&#8217;s a description of the problem I posted to the jEdit mailing list, without much luck:</p>
<blockquote><p>
This is the code I want:<br />
<code><br />
%table.form<br />
&nbsp;&nbsp;= form_row("First name")<br />
</code></p>
<p>In the code above, as soon as I type the &#8220;a&#8221; in name (actually the point varies a bit, could be anywhere inside the double quotes), the line unindents, giving me this:<br />
<code><br />
%table.form<br />
= form_row("First na<br />
</code></p>
<p>This means that I have to go and reindent the line, so that it&#8217;s back the way I want it to be.</p>
<p>This also happens in cases where I am using braces { }.  Here is the code I may want:<br />
<code><br />
%a{:href => "/some/link"}<br />
&nbsp;&nbsp;= "#{@user.login}"<br />
</code></p>
<p>As soon as I type the opening brace { in that string, the line unindents:<br />
<code><br />
%a{:href => "/some/link"}<br />
= "#{<br />
</code></p>
<p>And again, I have to reindent it.</p>
<p>What&#8217;s even more annoying (incredibly annoying!) is that after I reindent it, as I continue to type, it will continually unindent.  So I end up fighting with my editor.
</p></blockquote>
<p>You can fix this problem by hacking up a new Ruby mode for jEdit that removes all of the indentation rules.  Then, change the HAML edit mode to delegate to your new hacked Ruby mode, instead of the proper one.</p>
<p><strong>Step 1:</strong></p>
<p>Open the jEdit catalog file, probably in the modes folder (precise location depends on your system).  Find the entry for Ruby and create a new one called ruby_stripped_down that references a new file called ruby_stripped_down.xml:<br />
<code><br />
&lt;mode NAME="ruby_stripped_down" FILE="ruby_stripped_down.xml" /&gt;<br />
</code></p>
<p>You don&#8217;t need all the info about file extensions, since this mode will only get called from the HAML mode.</p>
<p><strong>Step 2:</strong></p>
<p>Open up the ruby.xml file from the same folder as the catalog.  Save a copy of it as ruby_stripped_down.xml.  Now delete all of the lines inside the &lt;props&gt; tags near the beginning.</p>
<p><strong>Step 3:</strong></p>
<p>Open up the haml.xml file from the same folder.  Wherever you see:<br />
<code><br />
DELEGATE="ruby::MAIN"<br />
</code></p>
<p>Change it to:<br />
<code><br />
DELEGATE="ruby_stripped_down::MAIN"<br />
</code></p>
<p>This occurs in four places.</p>
<p>Save it.  Restart jEdit.  Your problem should be solved.</p>
<p><strong>If you&#8217;re lazy,</strong> you can also download my edited haml, ruby_stripped_down, and catalog files.  However, be warned that overwriting your versions is at your risk (especially the catalog file &#8211; the others aren&#8217;t nearly as risky).</p>
<p><a href="http://socialtech.ca/ade/misc/haml/haml.xml">haml.xml</a><br />
<a href="http://socialtech.ca/ade/misc/haml/ruby_stripped_down.xml">ruby_stripped_down.xml</a><br />
<a href="http://socialtech.ca/ade/misc/haml/catalog">catalog</a></p>
]]></content:encoded>
			<wfw:commentRss>http://socialtech.ca/ade/index.php/2008/07/fixing-haml-in-jedit/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Food Is Not Just Another Commodity</title>
		<link>http://socialtech.ca/ade/index.php/2008/04/food-is-not-just-another-commodity/</link>
		<comments>http://socialtech.ca/ade/index.php/2008/04/food-is-not-just-another-commodity/#comments</comments>
		<pubDate>Wed, 30 Apr 2008 02:11:03 +0000</pubDate>
		<dc:creator>Ade</dc:creator>
				<category><![CDATA[Social &#038; Political]]></category>
		<category><![CDATA[food]]></category>
		<category><![CDATA[politics]]></category>

		<guid isPermaLink="false">http://socialtech.ca/ade/index.php/2008/04/food-is-not-just-another-commodity/</guid>
		<description><![CDATA[Wrote a blog post for RTH:

Global food prices continue to rise. United Nations secretary-general Ban Ki-moon has warned that &#8220;We risk the spectre of wider-spread hunger, malnutrition and social unrest on an unprecedented scale&#8221;.
Food riots in Haiti, rice rationing in India and even the United States, panic buying in Britain: so far, Canadians have been [...]]]></description>
			<content:encoded><![CDATA[<p>Wrote a blog post for RTH:</p>
<blockquote><p>
Global food prices continue to rise. United Nations secretary-general Ban Ki-moon has warned that &#8220;We risk the spectre of wider-spread hunger, malnutrition and social unrest on an unprecedented scale&#8221;.</p>
<p>Food riots in Haiti, rice rationing in India and even the United States, panic buying in Britain: so far, Canadians have been insulated from these phenomena, but not for long. Our rendezvous with rising prices for life&#8217;s essentials is on the way.</p>
<p>To markets, food is just another commodity, subject to the same profiteering and speculation as tech stocks, minerals and oil futures.</p>
<p>The difference is that food, like air and water, is the most basic of necessities. Not being able to afford food is a death sentence.</p>
<p>Markets for food used to represent a means to fairly compensate farmers and a motivation for them to keep growing food. Now, global markets have set up a powerful and dangerous competition for a vital resource.
</p></blockquote>
<p><a href="http://raisethehammer.org/blog.asp?id=990">Go read the rest if you&#8217;re interested.</a></p>
]]></content:encoded>
			<wfw:commentRss>http://socialtech.ca/ade/index.php/2008/04/food-is-not-just-another-commodity/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Photoshopped? No!</title>
		<link>http://socialtech.ca/ade/index.php/2008/03/photoshopped-no/</link>
		<comments>http://socialtech.ca/ade/index.php/2008/03/photoshopped-no/#comments</comments>
		<pubDate>Thu, 13 Mar 2008 18:39:22 +0000</pubDate>
		<dc:creator>Ade</dc:creator>
				<category><![CDATA[General Interest]]></category>

		<guid isPermaLink="false">http://socialtech.ca/ade/index.php/2008/03/photoshopped-no/</guid>
		<description><![CDATA[Some people who saw this remarkable photo of what appears to be a wolf have claimed that it is fake or altered.
I contacted the person who sent me the photograph originally and she was kind enough to provide a full-sized version of the photo, which you can see here:
Wolf, full-size
I&#8217;m no photo expert but I [...]]]></description>
			<content:encoded><![CDATA[<p>Some people who saw <a href="http://socialtech.ca/ade/index.php/2008/03/beware-the-big-bad-black-wolf/">this remarkable photo of what appears to be a wolf</a> have claimed that it is fake or altered.</p>
<p>I contacted the person who sent me the photograph originally and she was kind enough to provide a full-sized version of the photo, which you can see here:</p>
<p><a href="http://socialtech.ca/ade/misc/wolf_full_size.jpg">Wolf, full-size</a></p>
<p>I&#8217;m no photo expert but I think this goes a long way to disproving the critics.</p>
<p>I know it may seem hard to believe that they did indeed have a close encounter with a wild animal that is notoriously shy, but these things do happen.  The rarity of the event just makes it all the more incredible.</p>
]]></content:encoded>
			<wfw:commentRss>http://socialtech.ca/ade/index.php/2008/03/photoshopped-no/feed/</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
		<item>
		<title>Beware the big bad black wolf</title>
		<link>http://socialtech.ca/ade/index.php/2008/03/beware-the-big-bad-black-wolf/</link>
		<comments>http://socialtech.ca/ade/index.php/2008/03/beware-the-big-bad-black-wolf/#comments</comments>
		<pubDate>Thu, 13 Mar 2008 13:21:36 +0000</pubDate>
		<dc:creator>Ade</dc:creator>
				<category><![CDATA[General Interest]]></category>

		<guid isPermaLink="false">http://socialtech.ca/ade/index.php/2008/03/beware-the-big-bad-black-wolf/</guid>
		<description><![CDATA[These people didn&#8217;t notice that they weren&#8217;t alone until they looked at the photo on their computer.

The photo was taken in Campbell River, British Columbia.
The people in this photograph were hiking in Seal Bay Park.  At the end of their walk, they found some butter mushrooms on a mossy log, and were inspecting them. [...]]]></description>
			<content:encoded><![CDATA[<p>These people didn&#8217;t notice that they weren&#8217;t alone until they looked at the photo on their computer.</p>
<p><img class="centered" src="http://socialtech.ca/ade/misc/black_wolf.jpg" /></p>
<p>The photo was taken in <a href="http://maps.google.com/maps?f=q&#038;hl=en&#038;geocode=&#038;q=Campbell+River,+BC,+Canada&#038;ie=UTF8&#038;z=11&#038;iwloc=addr">Campbell River, British Columbia</a>.</p>
<p>The people in this photograph were hiking in Seal Bay Park.  At the end of their walk, they found some butter mushrooms on a mossy log, and were inspecting them.  One of them decided to take a photograph, <del>but not being terribly good at photography</del>, the photo was taken off center.</p>
<p>When they returned home and downloaded the pictures off of the camera they got quite a surprise &#8211; a large animal that appears to be a wolf heading straight towards them.</p>
<p>They theorize that the flash from the camera scared it off, although I don&#8217;t know if it would be a danger or not.  Certainly, it&#8217;s not the kind of animal you would normally want to be too close to!</p>
<p>EDIT: If you think this photo is fake, <a href="http://socialtech.ca/ade/misc/wolf_full_size.jpg">check out the full sized version</a>.</p>
<p>EDIT 2: Here&#8217;s the story behind the photo as told by the woman in the foreground whose back is to the camera:</p>
<blockquote><p>
This wolf picture incident has just been crazy! It&#8217;s spreading around like wildfire! For sure you can use the pic if you&#8217;d like. The story behind it is pretty ridiculous. I was visiting my brother, niece and my niece&#8217;s mother with my mom in Courtenay, BC. Me, my mom, XXXX and XXXX went for a hike at Seal Bay Park. This picture was taken at the end of the walk&#8230;me, XXXX and XXXX were inspecting some really cool butter mushrooms on a mossy log. My mom decided to take a picture, but she&#8217;s not very good at it, so it came out totally off center (imagine if she was actually good at taking pictures- we never would have even seen it!!!). We didn&#8217;t notice anything at the time, and the &#8220;wolf&#8221; wasn&#8217;t even noticed until after getting home, and my mom had put the pictures on the computer. She didn&#8217;t even notice at first, but my other brother was like &#8220;what the hell is that??!!&#8221;. So, yeah. I don&#8217;t even know if it is a wolf, but there were no dogs or anything! around. It&#8217;s just a pretty creepy picture- that&#8217;s all I know! And it was actually my mom who took the picture (I&#8217;m in it- in the gray jacket), so credit for the photo isn&#8217;t necessary. Well, that&#8217;s my story!
</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://socialtech.ca/ade/index.php/2008/03/beware-the-big-bad-black-wolf/feed/</wfw:commentRss>
		<slash:comments>61</slash:comments>
		</item>
	</channel>
</rss>
