<?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>Sketchpad - Dan Sketcher's personal blog &#187; rant</title>
	<atom:link href="http://www.dansketcher.com/category/rant/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.dansketcher.com</link>
	<description>Dan Sketcher on Rails, computers, and other junk</description>
	<lastBuildDate>Wed, 17 Mar 2010 05:42:15 +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>Thinking-Sphinx :with =&gt; @geodist returns no results</title>
		<link>http://www.dansketcher.com/2010/01/01/thinking-sphinx-with-geodist-returns-no-results/</link>
		<comments>http://www.dansketcher.com/2010/01/01/thinking-sphinx-with-geodist-returns-no-results/#comments</comments>
		<pubDate>Fri, 01 Jan 2010 06:06:11 +0000</pubDate>
		<dc:creator>dansketcher</dc:creator>
				<category><![CDATA[Rails]]></category>
		<category><![CDATA[gems]]></category>
		<category><![CDATA[rant]]></category>
		<category><![CDATA[software development]]></category>

		<guid isPermaLink="false">http://www.dansketcher.com/?p=111</guid>
		<description><![CDATA[Having just recently started using Thinking Sphinx, I&#8217;ve been toying with the geograhical search that it provides to simply do distance-based searches while querying other information. The Geo-searching part of the manual shows how to do searches limiting distance:

# Searching for places within 10km
Place.search "pancakes", :geo => [@lat, @lng],
  :with => {"@geodist" => 0..10_000}
# [...]]]></description>
			<content:encoded><![CDATA[<p>Having just recently started using Thinking Sphinx, I&#8217;ve been toying with the geograhical search that it provides to simply do distance-based searches while querying other information. The <a href="http://freelancing-god.github.com/ts/en/geosearching.html" onClick="javascript:urchinTracker ('/outbound/article/freelancing-god.github.com');">Geo-searching part of the manual</a> shows how to do searches limiting distance:</p>
<pre>
# Searching for places within 10km
Place.search "pancakes", :geo => [@lat, @lng],
  :with => {"@geodist" => 0..10_000}
# Searching for places sorted by closest first
Place.search "pancakes", :geo => [@lat, @lng],
  :order => "@geodist ASC, @relevance DESC"
</pre>
<p>Unfortunately, the first style of query where @geodist is limited in range &#8211; when used as-is &#8211; does not work I found in my testing that I could order by @geodist as per the second query but when I added the :with range, I had no results.</p>
<p>The solution was actually simple, but really annoying. You have to use Floats instead of Integers for the range numbers! So changing the first query to:</p>
<pre>
Place.search "pancakes", :geo => [@lat, @lng],
  :with => {"@geodist" => 0.0..10_000.0}

# or more neatly

Place.search "pancakes", :geo => [@lat, @lng],
  :with => {"@geodist" => Range.new(0.0, 10_000.0)}
</pre>
<p>makes it all work. Now to get someone to update those docs!<br />
<strong>Update</strong>: <a href="http://freelancing-god.github.com/ts/en/geosearching.html" onClick="javascript:urchinTracker ('/outbound/article/freelancing-god.github.com');">Updated!</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.dansketcher.com/2010/01/01/thinking-sphinx-with-geodist-returns-no-results/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>On comments</title>
		<link>http://www.dansketcher.com/2009/04/15/on-comments/</link>
		<comments>http://www.dansketcher.com/2009/04/15/on-comments/#comments</comments>
		<pubDate>Wed, 15 Apr 2009 20:24:24 +0000</pubDate>
		<dc:creator>dansketcher</dc:creator>
				<category><![CDATA[rant]]></category>

		<guid isPermaLink="false">http://www.dansketcher.com/?p=63</guid>
		<description><![CDATA[Blog comments. I used to like them. Some of my blog posts even have threads of helpful and useful feedback left by you, dear reader. Or should I say, some of you.
More recently I have started receiving a new sort of comment. The specious or outright false, hit-and-run attacks from anonymous morons who have somehow [...]]]></description>
			<content:encoded><![CDATA[<p>Blog comments. I used to like them. Some of my blog posts even have threads of helpful and useful feedback left by you, dear reader. Or should I say, some of you.</p>
<p>More recently I have started receiving a new sort of comment. The specious or outright false, hit-and-run attacks from anonymous morons who have somehow decided that the access to a keyboard and a place to exercise it allows them to write whatever they want. Well not here.</p>
<p>Should have listened to <a href="http://al3x.net/2009/02/24/why-no-comments-more-everything-buckets.html" onClick="javascript:urchinTracker ('/outbound/article/al3x.net');">Alex Payne</a> earlier&#8230;</p>
<p>If you want to reply to me, trackbacks are still enabled (for now)&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dansketcher.com/2009/04/15/on-comments/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>New Job, more code, lots of &#8216;life&#8217; things</title>
		<link>http://www.dansketcher.com/2006/11/16/new-job-more-code-lots-of-life-things/</link>
		<comments>http://www.dansketcher.com/2006/11/16/new-job-more-code-lots-of-life-things/#comments</comments>
		<pubDate>Thu, 16 Nov 2006 11:27:49 +0000</pubDate>
		<dc:creator>dansketcher</dc:creator>
				<category><![CDATA[rant]]></category>
		<category><![CDATA[software development]]></category>

		<guid isPermaLink="false">http://www.dansketcher.com/2006/11/16/new-job-more-code-lots-of-life-things/</guid>
		<description><![CDATA[So it turns out that sometimes when someone calls a job a Project Managment role, they actually mean Sales. The interview is no help, because it&#8217;s all agreement and &#8220;we want to go that way&#8221; stuff. But you walk in the door and it&#8217;s something else.
Not fun.
So anyway, I&#8217;ve got another job.
And I&#8217;m married now. [...]]]></description>
			<content:encoded><![CDATA[<p>So it turns out that sometimes when someone calls a job a Project Managment role, they actually mean Sales. The interview is no help, because it&#8217;s all agreement and &#8220;we want to go that way&#8221; stuff. But you walk in the door and it&#8217;s something else.</p>
<p>Not fun.</p>
<p>So anyway, I&#8217;ve got another job.</p>
<p>And I&#8217;m married now. It&#8217;s been a busy coupla months!</p>
<p>The good thing is that I am away from phone calls long enough now to actually do some coding, and it&#8221;s a nice change. (truth be told, in the final days at the old place I was debugging <a href="/2006/07/02/friggin-mambo/">Mambo</a> just for something different.</p>
<p>On the plus side, I met some nice people at the old place, namely the <a href="http://www.ppq.com.au" onClick="javascript:urchinTracker ('/outbound/article/www.ppq.com.au');">PPQ</a> girls and boys. If you&#8217;re not in Queensland, you&#8217;ve got no chance of knowing who they are, and if you are and you want a personalised plate, they&#8217;re who you have NO CHOICE but to use ;) But they&#8217;re tops.</p>
<p>Anyway, wine in hand, <a href="http://www.rubyonrails.org" onClick="javascript:urchinTracker ('/outbound/article/www.rubyonrails.org');">Ruby on Rails</a> open in <a href="http://editplus.com/" onClick="javascript:urchinTracker ('/outbound/article/editplus.com');">Editplus</a>, and I&#8217;m home.</p>
<p>Aaaaaahhhhhhhhhh.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dansketcher.com/2006/11/16/new-job-more-code-lots-of-life-things/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>gem, rake, webricks hangs &#8211; resolved! (damn you windows)</title>
		<link>http://www.dansketcher.com/2006/09/03/gem-rake-webricks-hangs-resolved-damn-you-windows/</link>
		<comments>http://www.dansketcher.com/2006/09/03/gem-rake-webricks-hangs-resolved-damn-you-windows/#comments</comments>
		<pubDate>Sun, 03 Sep 2006 06:29:18 +0000</pubDate>
		<dc:creator>dansketcher</dc:creator>
				<category><![CDATA[Rails]]></category>
		<category><![CDATA[rant]]></category>
		<category><![CDATA[software development]]></category>

		<guid isPermaLink="false">http://www.dansketcher.com/2006/09/03/gem-rake-webricks-hangs-resolved-damn-you-windows/</guid>
		<description><![CDATA[You know you&#8217;re in for a fun day when you go to the code that you were working on yesterday and it stops working today.
In this case, I tried to start webrick to check my site, and the damn thing would not start. It would get as far as &#8220;=> Booting WEBrick&#8230;&#8221; and then hang. [...]]]></description>
			<content:encoded><![CDATA[<p>You know you&#8217;re in for a fun day when you go to the code that you were working on yesterday and it stops working today.</p>
<p>In this case, I tried to start webrick to check my site, and the damn thing would not start. It would get as far as &#8220;=> Booting WEBrick&#8230;&#8221; and then hang. Ok, fine. Google a bit, maybe it&#8217;s the firewall? stop the firewall, no good.</p>
<p>Then, I tried to upgrade rails. &#8216;gem install&#8217; hangs, before it says &#8220;upgrading source index&#8221;. Hrm. Must be something wrong with ruby. Try &#8220;gem list -r&#8221; which does not work on this machine but does work on my other workstation. Ok, got to be a ruby problem &#8211; upgrade ruby. no good. upgrade again. no good.</p>
<p>Then I uninstalled, rebooted, and reinstalled. &#8220;gem install&#8221; works! hooray! I install all the dependencies I need, and try to start webrick. Same bloody issue.</p>
<p>At this point, it&#8217;s fairly clear that it&#8217;s not a ruby or rails issue, it&#8217;s got to be a windows issue. I google for (out of desperation) &#8220;webrick hang&#8221; and I see, 4 down, a blog entry called <a href="http://www.db75.com/new_blog/?p=249" onClick="javascript:urchinTracker ('/outbound/article/www.db75.com');">WEBrick Server Hangs in Windows XP</a> &#8211; have a look and it recommends running the following command to flush the Winsock Catalogue:</p>
<p><strong>netsh winsock reset</strong></p>
<p>And everything is fixed. Rake runs, webrick runs, gems still work. Bye bye 3 hours of my life. Thanks Windows. You&#8217;re a champ.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dansketcher.com/2006/09/03/gem-rake-webricks-hangs-resolved-damn-you-windows/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Friggin Mambo</title>
		<link>http://www.dansketcher.com/2006/07/02/friggin-mambo/</link>
		<comments>http://www.dansketcher.com/2006/07/02/friggin-mambo/#comments</comments>
		<pubDate>Sun, 02 Jul 2006 08:10:32 +0000</pubDate>
		<dc:creator>dansketcher</dc:creator>
				<category><![CDATA[rant]]></category>
		<category><![CDATA[software development]]></category>

		<guid isPermaLink="false">http://www.dansketcher.com/2006/07/02/friggin-mambo/</guid>
		<description><![CDATA[I know Mambo has been pretty popular in the past. Personally I never warmed to it, because once I got past the fancy veneer it was excruciatingly difficult for a newbie to discover how to write a >1 page module.
Apparently, I am not alone in that difficulty. For the last week I&#8217;ve been trying to [...]]]></description>
			<content:encoded><![CDATA[<p>I know Mambo has been pretty popular in the past. Personally I never warmed to it, because once I got past the fancy veneer it was excruciatingly difficult for a newbie to discover how to write a >1 page module.</p>
<p>Apparently, I am not alone in that difficulty. For the last week I&#8217;ve been trying to get a bit of Mambo work done at my new job and it seems that Mambo developers are so scarce that anyone who is worth their salt has a job in it while no-one else knows diddly about it.</p>
<p>Personally I&#8217;d be happier if I could get the sites redeveloped in ANYTHING, but that&#8217;s a bit hard when the customer actually <span style="font-style: italic">likes </span>the admin side of Mambo and sees no reason to change. Can&#8217;t blame them for that, really&#8230;</p>
<p>Anyway, what a PITA. Thanks to my buddy over at <a href="http://albinoirishman.org" onClick="javascript:urchinTracker ('/outbound/article/albinoirishman.org');">albinoirishman.org</a> though, things might come good. But why is this &#8216;big thing&#8217; from a year ago now nothing but a blip on the radar? I guess from the standpoint of a CMS-only website there are new frameworks out there like Drupal, but ferchrissakes, you&#8217;d think people would want to cash in those skills for which they worked so hard. Although, from what I&#8217;ve seen, it&#8217;s not worth the pain.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dansketcher.com/2006/07/02/friggin-mambo/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>I love a good rant</title>
		<link>http://www.dansketcher.com/2006/06/19/i-love-a-good-rant/</link>
		<comments>http://www.dansketcher.com/2006/06/19/i-love-a-good-rant/#comments</comments>
		<pubDate>Mon, 19 Jun 2006 12:44:28 +0000</pubDate>
		<dc:creator>dansketcher</dc:creator>
				<category><![CDATA[rant]]></category>

		<guid isPermaLink="false">http://www.dansketcher.com/2006/06/19/i-love-a-good-rant/</guid>
		<description><![CDATA[I love to rant. Love it. Unfortunately, when I&#8217;m in the mood for a-ranting, I&#8217;m seldom calm enough to properly construct a sufficiently soul-destroying bile-fest to inflict upon my foes. That&#8217;s one of the reasons I wanted a blog. Another reason is to pay kudos to others, especially other champion ranters. There is also the [...]]]></description>
			<content:encoded><![CDATA[<p>I love to rant. Love it. Unfortunately, when I&#8217;m in the mood for a-ranting, I&#8217;m seldom calm enough to properly construct a sufficiently soul-destroying bile-fest to inflict upon my foes. That&#8217;s one of the reasons I wanted a blog. Another reason is to pay kudos to others, especially other champion ranters. There is also the banging on about crap that is the <span class="l">raison d&#8217;être</span> of blogging in general &#8211; I&#8217;m good at that too.</p>
<p>One of my rant heroes is Zed Shaw. He cracks &#8216;em out, disregarding any potential offence &#8211; the way it <em>should</em> be. The first rant of his I ever saw was an article entitled <a href="http://www.zedshaw.com/blog/programming/indirection_is_not_abstraction.html" onClick="javascript:urchinTracker ('/outbound/article/www.zedshaw.com');">Indirection Is Not Abstraction</a>, where he says (referring to EJB):</p>
<p>&#8220;To summarize, just to get to where we could add an object to the collection, we had to follow this chain of calls: new InitialContext() -> InitialContext.lookup() -> LocalSubscriptionHome.findByPrimaryKey() -> CustomerBean.addSubscription() -> CustomerBean.getSubscriptions() -> Collection.add(). An unbelievable 6 levels of indirection just to add a fucking object to a fucking collection. <em>This is the kind of bullshit that chaps my ass purple and makes me want to eat babies</em>.&#8221;</p>
<p>(emphasis his. That is pretty crap too, btw.)</p>
<p>I love it. He says it like he means it, and it <em>hurts</em>. Comedy gold. So I&#8217;ve made a &#8220;rant&#8221; post category, through which to vent bile. I hope it&#8217;s as much fun as it looks.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dansketcher.com/2006/06/19/i-love-a-good-rant/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.203 seconds -->
