<?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>/dev/tty &#187; Open Source Projects</title>
	<atom:link href="http://blog.tty.nl/category/open-source-projects/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.tty.nl</link>
	<description>Notes on Web Development, Computer Programming, and Software Engineering</description>
	<lastBuildDate>Fri, 03 Sep 2010 11:44:41 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Simple ranked text search for MongoDB</title>
		<link>http://blog.tty.nl/2010/02/08/simple-ranked-text-search-for-mongodb/</link>
		<comments>http://blog.tty.nl/2010/02/08/simple-ranked-text-search-for-mongodb/#comments</comments>
		<pubDate>Mon, 08 Feb 2010 14:46:28 +0000</pubDate>
		<dc:creator>Ward Bekker</dc:creator>
				<category><![CDATA[Open Source Projects]]></category>
		<category><![CDATA[Ruby]]></category>
		<category><![CDATA[Software Engineering]]></category>

		<guid isPermaLink="false">http://blog.tty.nl/?p=329</guid>
		<description><![CDATA[In this code snippit you can see how to do a basic ranked text search for MongoDB. The code relies on two simple mapreduce operations. One to create an inverted index from some demo text, and a second one to score the matching documents based on query term hits.
]]></description>
			<content:encoded><![CDATA[<p>In this <a href="http://gist.github.com/298175">code snippit</a> you can see how to do a basic ranked text search for <a href="http://www.mongodb.org">MongoDB</a>. The code relies on two simple mapreduce operations. One to create an<a href="http://en.wikipedia.org/wiki/Inverted_index"> inverted index</a> from some demo text, and a second one to score the matching documents based on query term hits.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.tty.nl/2010/02/08/simple-ranked-text-search-for-mongodb/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Compiling Apache from source on Ubuntu 9.10 (Karmic Koala)</title>
		<link>http://blog.tty.nl/2009/11/11/compiling-apache-from-source-on-ubuntu-9-10-karmic-koala/</link>
		<comments>http://blog.tty.nl/2009/11/11/compiling-apache-from-source-on-ubuntu-9-10-karmic-koala/#comments</comments>
		<pubDate>Wed, 11 Nov 2009 15:43:14 +0000</pubDate>
		<dc:creator>Henry Snoek</dc:creator>
				<category><![CDATA[Open Source Projects]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://blog.tty.nl/?p=262</guid>
		<description><![CDATA[Last week my OS got upgraded to Ubuntu 9.10. After that I wanted to compile Apache from source. Unfortunately I got this build error:
htpasswd.c:101: error: conflicting types for ‘getline’
/usr/include/stdio.h:651: note: previous declaration of ‘getline’ was here
make[2]: *** [htpasswd.o] Error 1
This is fixed by replacing getline with parseline on line 651 in /usr/include/stdio.h
Kudos to HowtoForge for [...]]]></description>
			<content:encoded><![CDATA[<p>Last week my OS got upgraded to Ubuntu 9.10. After that I wanted to compile Apache from source. Unfortunately I got this build error:</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:600px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">htpasswd.c:101: error: conflicting types for ‘getline’<br />
/usr/include/stdio.h:651: note: previous declaration of ‘getline’ was here<br />
make[2]: *** [htpasswd.o] Error 1</div></div>
<p>This is fixed by replacing getline with parseline on line 651 in /usr/include/stdio.h</p>
<p>Kudos to HowtoForge for pointing <a href="http://www.howtoforge.com/perfect-server-ubuntu-9.10-karmic-koala-ispconfig-2-p7" target="_blank">this</a> out.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.tty.nl/2009/11/11/compiling-apache-from-source-on-ubuntu-9-10-karmic-koala/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>100% completeness-fu</title>
		<link>http://blog.tty.nl/2009/09/23/100-completeness-fu/</link>
		<comments>http://blog.tty.nl/2009/09/23/100-completeness-fu/#comments</comments>
		<pubDate>Wed, 23 Sep 2009 21:25:51 +0000</pubDate>
		<dc:creator>Josh Kalderimis</dc:creator>
				<category><![CDATA[Open Source Projects]]></category>
		<category><![CDATA[Rails]]></category>
		<category><![CDATA[Ruby]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[development]]></category>

		<guid isPermaLink="false">http://blog.tty.nl/?p=214</guid>
		<description><![CDATA[The age of completeness-fu is upon us!
Sometimes validations just don&#8217;t cut the mustard and all you want to do is to grade an instance based on how complete its information is. For example, a Location has a title and a description but no address, thus its only 60% complete. Or maybe title is worth more [...]]]></description>
			<content:encoded><![CDATA[<p><strong>The age of completeness-fu is upon us!</strong></p>
<p>Sometimes validations just don&#8217;t cut the mustard and all you want to do is to grade an instance based on how complete its information is. For example, a Location has a title and a description but no address, thus its only 60% complete. Or maybe title is worth more than description and address so its 80% complete. Whatever the case, this is not a new problem and recreating the wheel is a bit unnecessary, so welcome to <a href="http://github.com/joshk/completeness-fu">completeness-fu</a>.</p>
<p>The dsl is based on the <a href="http://github.com/freelancing-god/thinking-sphinx/">thinking-sphinx</a> configuration, which is nice, clean and simple, but very effective.</p>
<p>Here is a sample of the config code used to define a set of checks for a completeness score:</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:600px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">define_completeness_scoring do<br />
&nbsp; check :title, &nbsp; &nbsp; &nbsp; lambda { |per| per.title.present? }, &nbsp;:high<br />
&nbsp; check :description, lambda { |per| per.description.present? }, :medium<br />
&nbsp; check :main_image, &nbsp;lambda { |per| per.main_image? }, &nbsp; &nbsp; :low<br />
end</div></div>
<p>It still needs some more tlc, but its a nice start and a simple solution for a common problem. </p>
<p>So please, have a play around with it, fork the code, make some improvements/enhancements and let me know what you think.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.tty.nl/2009/09/23/100-completeness-fu/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Cake&#8217;s Progress</title>
		<link>http://blog.tty.nl/2009/08/24/cakes-progress/</link>
		<comments>http://blog.tty.nl/2009/08/24/cakes-progress/#comments</comments>
		<pubDate>Mon, 24 Aug 2009 17:56:25 +0000</pubDate>
		<dc:creator>Michel Rijnders</dc:creator>
				<category><![CDATA[Cake]]></category>
		<category><![CDATA[Open Source Projects]]></category>

		<guid isPermaLink="false">http://blog.tty.nl/?p=113</guid>
		<description><![CDATA[Cake is progressing rather slowly at the moment. Its next release (0.2) is about receiving requests, and thus will involve lots of networking code. Since I know very little about network programming I am first working my way through &#34;UNIX Network Programming&#34;, Volume 1.
In the meantime, to still do some Haskell coding, I&#8217;m trying to [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://github.com/rmies/Cake/tree/master" target="_blank">Cake</a> is progressing rather slowly at the moment. Its next release (0.2) is about receiving requests, and thus will involve lots of networking code. Since I know very little about network programming I am first working my way through <a href="http://www.unpbook.com/" target="_blank">&quot;UNIX Network Programming&quot;, Volume 1</a>.</p>
<p>In the meantime, to still do some Haskell coding, I&#8217;m trying to solve some <a href="http://perl.plover.com/qotw/" target="_blank">Perl</a> and <a href="http://rubyquiz.com/" target="_blank">Ruby</a> quizzes in Haskell. I&#8217;ll post my solutions plus explanations here.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.tty.nl/2009/08/24/cakes-progress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
