<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Square Wheel</title>
	<atom:link href="http://squarewheel.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://squarewheel.wordpress.com</link>
	<description>Rants on ruby on rails ridiculness</description>
	<lastBuildDate>Fri, 19 Jun 2009 23:32:22 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='squarewheel.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Square Wheel</title>
		<link>http://squarewheel.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://squarewheel.wordpress.com/osd.xml" title="Square Wheel" />
	<atom:link rel='hub' href='http://squarewheel.wordpress.com/?pushpress=hub'/>
		<item>
		<title>A new blog</title>
		<link>http://squarewheel.wordpress.com/2009/01/30/a-new-blog/</link>
		<comments>http://squarewheel.wordpress.com/2009/01/30/a-new-blog/#comments</comments>
		<pubDate>Fri, 30 Jan 2009 22:52:02 +0000</pubDate>
		<dc:creator>squarewheel</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://squarewheel.wordpress.com/2009/01/30/a-new-blog/</guid>
		<description><![CDATA[The &#8220;Square Wheel blog&#8221;, previously available at WordPress has moved to a new site – http://squarewheel.pl<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=squarewheel.wordpress.com&amp;blog=2030543&amp;post=22&amp;subd=squarewheel&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>The &#8220;Square Wheel blog&#8221;, previously available at <a class="reference external" href="../">WordPress</a> has moved to a new site – <a class="reference external" href="http://squarewheel.pl/">http://squarewheel.pl</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/squarewheel.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/squarewheel.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/squarewheel.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/squarewheel.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/squarewheel.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/squarewheel.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/squarewheel.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/squarewheel.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/squarewheel.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/squarewheel.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/squarewheel.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/squarewheel.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/squarewheel.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/squarewheel.wordpress.com/22/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=squarewheel.wordpress.com&amp;blog=2030543&amp;post=22&amp;subd=squarewheel&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://squarewheel.wordpress.com/2009/01/30/a-new-blog/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1ce2229dab491ccee498784c650786f9?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">squarewheel</media:title>
		</media:content>
	</item>
		<item>
		<title>Taxpayer data collection</title>
		<link>http://squarewheel.wordpress.com/2008/12/12/taxpayer-data-collection/</link>
		<comments>http://squarewheel.wordpress.com/2008/12/12/taxpayer-data-collection/#comments</comments>
		<pubDate>Fri, 12 Dec 2008 15:49:38 +0000</pubDate>
		<dc:creator>squarewheel</dc:creator>
				<category><![CDATA[Random]]></category>

		<guid isPermaLink="false">http://squarewheel.wordpress.com/?p=18</guid>
		<description><![CDATA[I got a new identity card recently (I moved), so now I need to inform some institutions of the change. Not really unreasonable, eg. my bank knows this number and would check the ID card if I tried to close the account. One of the institutions that requires being informed of such change is Urząd [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=squarewheel.wordpress.com&amp;blog=2030543&amp;post=18&amp;subd=squarewheel&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I got a new identity card recently (I moved), so now I need to inform some institutions of the change. Not really unreasonable, eg. my bank knows this number and would check the ID card if I tried to close the account.</p>
<p>One of the institutions that requires being informed of such change is <em>Urząd Skarbowy</em> (Polish equivalent of IRS). So I filled a NIP-3 form and started wondering: does <em>Urząd Skarbowy</em> really need to know where I live (address &#8211; required field), what&#8217;s my phone number, e-mail address, bank account number? Most of those fields are optional, but anyway, why are they collected at all?</p>
<p>While I&#8217;m at it — I must admit <em>Urząd Skarbowy</em> is probably one of the most well-organized government offices</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/squarewheel.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/squarewheel.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/squarewheel.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/squarewheel.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/squarewheel.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/squarewheel.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/squarewheel.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/squarewheel.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/squarewheel.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/squarewheel.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/squarewheel.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/squarewheel.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/squarewheel.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/squarewheel.wordpress.com/18/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=squarewheel.wordpress.com&amp;blog=2030543&amp;post=18&amp;subd=squarewheel&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://squarewheel.wordpress.com/2008/12/12/taxpayer-data-collection/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1ce2229dab491ccee498784c650786f9?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">squarewheel</media:title>
		</media:content>
	</item>
		<item>
		<title>Travel plan</title>
		<link>http://squarewheel.wordpress.com/2008/09/01/travel-plan/</link>
		<comments>http://squarewheel.wordpress.com/2008/09/01/travel-plan/#comments</comments>
		<pubDate>Mon, 01 Sep 2008 13:29:33 +0000</pubDate>
		<dc:creator>squarewheel</dc:creator>
				<category><![CDATA[Random]]></category>

		<guid isPermaLink="false">http://squarewheel.wordpress.com/?p=16</guid>
		<description><![CDATA[02. IX 2008, 10:12–17:45 Train to Toruń 04. IX 2008, 10:12–13:17 Train to Malbork 04. IX 2008, 20:16–06:56 Train to Kraków.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=squarewheel.wordpress.com&amp;blog=2030543&amp;post=16&amp;subd=squarewheel&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>02. IX 2008, 10:12–17:45 Train to Toruń</p>
<p>04. IX 2008, 10:12–13:17 Train to Malbork</p>
<p>04. IX 2008, 20:16–06:56 Train to Kraków.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/squarewheel.wordpress.com/16/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/squarewheel.wordpress.com/16/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/squarewheel.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/squarewheel.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/squarewheel.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/squarewheel.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/squarewheel.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/squarewheel.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/squarewheel.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/squarewheel.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/squarewheel.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/squarewheel.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/squarewheel.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/squarewheel.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/squarewheel.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/squarewheel.wordpress.com/16/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=squarewheel.wordpress.com&amp;blog=2030543&amp;post=16&amp;subd=squarewheel&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://squarewheel.wordpress.com/2008/09/01/travel-plan/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1ce2229dab491ccee498784c650786f9?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">squarewheel</media:title>
		</media:content>
	</item>
		<item>
		<title>new_record?</title>
		<link>http://squarewheel.wordpress.com/2008/06/11/new_record/</link>
		<comments>http://squarewheel.wordpress.com/2008/06/11/new_record/#comments</comments>
		<pubDate>Wed, 11 Jun 2008 13:05:08 +0000</pubDate>
		<dc:creator>squarewheel</dc:creator>
				<category><![CDATA[Rails]]></category>

		<guid isPermaLink="false">http://squarewheel.wordpress.com/?p=14</guid>
		<description><![CDATA[Just in case anybody is interested &#8211; when a transaction fails (is rolled back), all the objects created in that transaction still respond false to new_record?, even though they are not saved to the db. One more reason to go for identity-mapping ORMs.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=squarewheel.wordpress.com&amp;blog=2030543&amp;post=14&amp;subd=squarewheel&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Just in case anybody is interested &#8211; when a transaction fails (is rolled back), all the objects created in that transaction still respond false to new_record?, even though they are not saved to the db. One more reason to go for identity-mapping ORMs.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/squarewheel.wordpress.com/14/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/squarewheel.wordpress.com/14/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/squarewheel.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/squarewheel.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/squarewheel.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/squarewheel.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/squarewheel.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/squarewheel.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/squarewheel.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/squarewheel.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/squarewheel.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/squarewheel.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/squarewheel.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/squarewheel.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/squarewheel.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/squarewheel.wordpress.com/14/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=squarewheel.wordpress.com&amp;blog=2030543&amp;post=14&amp;subd=squarewheel&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://squarewheel.wordpress.com/2008/06/11/new_record/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1ce2229dab491ccee498784c650786f9?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">squarewheel</media:title>
		</media:content>
	</item>
		<item>
		<title>Reinventing the square wheel again</title>
		<link>http://squarewheel.wordpress.com/2008/06/02/reinventing-the-square-wheel-again/</link>
		<comments>http://squarewheel.wordpress.com/2008/06/02/reinventing-the-square-wheel-again/#comments</comments>
		<pubDate>Mon, 02 Jun 2008 21:25:26 +0000</pubDate>
		<dc:creator>squarewheel</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://squarewheel.wordpress.com/?p=12</guid>
		<description><![CDATA[There was a recent post on pylons-discuss about creating a python web framework not based on WSGI, but on higher-level abstraction &#8211; WebOb. Well, I&#8217;m doing some research on web applications for my MSc thesis, where I&#8217;ll need a framework that is simple and stays off my way &#8211; in other words does as little [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=squarewheel.wordpress.com&amp;blog=2030543&amp;post=12&amp;subd=squarewheel&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>There was a recent post on pylons-discuss about creating a python web framework not based on WSGI, but on higher-level abstraction &#8211; WebOb.</p>
<p>Well, I&#8217;m doing some research on web applications for my MSc thesis, where I&#8217;ll need a framework that is simple and stays off my way &#8211; in other words does as little to possible. I&#8217;d have used CherryPy, but I found that even it is doing too much. So, with such a suggestion on discussion list I&#8217;m trying to build a framework around WebOb.</p>
<p>It&#8217;s simple with a layered architecture &#8211; each layer accepts an dictionary with a few objects in it (especially webob.Request object) and returns webob.Response. The topmost layer performs application-specific tasks, while lower layers add functionality &#8211; much like WSGI middlewares. And because WebOb is a helper for WSGI, I can use any WSGI middleware.</p>
<p>Because of that I&#8217;m not wasting time writing things like session support &#8211; I just put beaker into the stack and wrote a simple wrapper (7 lines of code).</p>
<p>Perhaps I&#8217;ll release the code when it&#8217;s usable. Maybe it&#8217;ll just serve as a proof of concept &#8211; but at least I&#8217;ll have some environment for my thesis-related research.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/squarewheel.wordpress.com/12/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/squarewheel.wordpress.com/12/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/squarewheel.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/squarewheel.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/squarewheel.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/squarewheel.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/squarewheel.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/squarewheel.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/squarewheel.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/squarewheel.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/squarewheel.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/squarewheel.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/squarewheel.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/squarewheel.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/squarewheel.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/squarewheel.wordpress.com/12/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=squarewheel.wordpress.com&amp;blog=2030543&amp;post=12&amp;subd=squarewheel&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://squarewheel.wordpress.com/2008/06/02/reinventing-the-square-wheel-again/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1ce2229dab491ccee498784c650786f9?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">squarewheel</media:title>
		</media:content>
	</item>
		<item>
		<title>Random late-night thoughts</title>
		<link>http://squarewheel.wordpress.com/2008/04/25/random-late-night-thoughts/</link>
		<comments>http://squarewheel.wordpress.com/2008/04/25/random-late-night-thoughts/#comments</comments>
		<pubDate>Thu, 24 Apr 2008 23:56:14 +0000</pubDate>
		<dc:creator>squarewheel</dc:creator>
				<category><![CDATA[Random]]></category>

		<guid isPermaLink="false">http://squarewheel.wordpress.com/?p=11</guid>
		<description><![CDATA[What kind of trouble-minded teenager would IM a randomly choosen strange person at 00:39 AM to talk about how stressed she is about high school final exams? What happened to good old face-to-face discussions with friends or parents? I guess there are a few people I could phone late at night if I were in [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=squarewheel.wordpress.com&amp;blog=2030543&amp;post=11&amp;subd=squarewheel&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>What kind of trouble-minded teenager would IM a randomly choosen strange person at 00:39 AM to talk about how stressed she is about high school final exams? What happened to good old face-to-face discussions with friends or parents?</p>
<p>I guess there are a few people I could phone late at night if I were in a dire need to talk to somebody &#8211; but these are people whom I know for a long time in real life and spent hours talking and listening to.</p>
<p>To all my friends, if you happen to stumble upon this &#8211; thank you for all the time, all the words and all the understanding.</p>
<p>PS. 19-yr old girls should really watch out whom they meet on the internet. Lying over the wire is so easy&#8230;</p>
<p>PPS. Sorry for a non-technical post.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/squarewheel.wordpress.com/11/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/squarewheel.wordpress.com/11/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/squarewheel.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/squarewheel.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/squarewheel.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/squarewheel.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/squarewheel.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/squarewheel.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/squarewheel.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/squarewheel.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/squarewheel.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/squarewheel.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/squarewheel.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/squarewheel.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/squarewheel.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/squarewheel.wordpress.com/11/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=squarewheel.wordpress.com&amp;blog=2030543&amp;post=11&amp;subd=squarewheel&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://squarewheel.wordpress.com/2008/04/25/random-late-night-thoughts/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1ce2229dab491ccee498784c650786f9?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">squarewheel</media:title>
		</media:content>
	</item>
		<item>
		<title>Some rails plugins</title>
		<link>http://squarewheel.wordpress.com/2008/03/10/some-rails-plugins/</link>
		<comments>http://squarewheel.wordpress.com/2008/03/10/some-rails-plugins/#comments</comments>
		<pubDate>Mon, 10 Mar 2008 22:24:39 +0000</pubDate>
		<dc:creator>squarewheel</dc:creator>
				<category><![CDATA[Rails]]></category>

		<guid isPermaLink="false">http://squarewheel.wordpress.com/?p=10</guid>
		<description><![CDATA[The company I work for &#8211; Code Sprinters &#8211; released three rails plugins I wrote under the MIT licence. OutputStream and FlashMessages Those two plugins allow safe mixing of unescaped text and html content. Strings are marked as being in either format and then are escaped appropriately in the view layer. This allows the developer [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=squarewheel.wordpress.com&amp;blog=2030543&amp;post=10&amp;subd=squarewheel&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>The company I work for &#8211; <a href="http://www.codesprinters.com/">Code Sprinters</a> &#8211; released three rails plugins I wrote under the MIT licence.</p>
<h3>OutputStream and FlashMessages</h3>
<p>Those two plugins allow safe mixing of unescaped text and html content. Strings are marked as being in either format and then are escaped appropriately in the view layer.  This allows the developer to embed eg. links to other pages in flash messages without worrying about having some other piece of data unescaped.</p>
<p>Strings not marked explicitly as safe for html are escaped with default rails <i>h</i>() helper.</p>
<p>Although currently the plugin only knows how to escape text output to HTML, it can be easily extended to support other formats.</p>
<h3>Expose</h3>
<p>This plugin is inspired by CherryPy (<a href="http://www.cherrypy.org">http://www.cherrypy.org</a>) &#8211; a simple yet powerful HTTP application server (and microframework).</p>
<p>This plugin changes the default policy of exporting all public methods of controllers via HTTP protocol to only exporting explicitly stated methods &#8211; and only to specified HTTP verbs. This helps prevent mistakingly exposing methods that should only be filters &#8211; or exposing via GET methods that should only accept POSTs.</p>
<p>Also, this is generally good practice to deny access by default &#8211; and allow access only when explicitly stated.</p>
<p>For actual downloads, go to <a href="http://www.codesprinters.com/resources/ruby-on-rails-resources">the plugin page</a>.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/squarewheel.wordpress.com/10/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/squarewheel.wordpress.com/10/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/squarewheel.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/squarewheel.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/squarewheel.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/squarewheel.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/squarewheel.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/squarewheel.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/squarewheel.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/squarewheel.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/squarewheel.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/squarewheel.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/squarewheel.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/squarewheel.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/squarewheel.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/squarewheel.wordpress.com/10/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=squarewheel.wordpress.com&amp;blog=2030543&amp;post=10&amp;subd=squarewheel&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://squarewheel.wordpress.com/2008/03/10/some-rails-plugins/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1ce2229dab491ccee498784c650786f9?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">squarewheel</media:title>
		</media:content>
	</item>
		<item>
		<title>Why I hate ActiveRecord &#8211; part II (validation)</title>
		<link>http://squarewheel.wordpress.com/2008/01/25/why-i-hate-activerecord-part-ii-validation/</link>
		<comments>http://squarewheel.wordpress.com/2008/01/25/why-i-hate-activerecord-part-ii-validation/#comments</comments>
		<pubDate>Fri, 25 Jan 2008 21:04:09 +0000</pubDate>
		<dc:creator>squarewheel</dc:creator>
				<category><![CDATA[Rails]]></category>

		<guid isPermaLink="false">http://squarewheel.wordpress.com/?p=9</guid>
		<description><![CDATA[Everybody using Rails probably knows that ActiveRecord provides many methods for declaring validation of records &#8211; the validate method as well as validates_xxx methods which generate code for most common validation tasks. There is a problem though&#8230; The validation can be easily skipped. Just use the update_attribute method and you can set any values without [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=squarewheel.wordpress.com&amp;blog=2030543&amp;post=9&amp;subd=squarewheel&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Everybody using Rails probably knows that ActiveRecord provides many methods for declaring validation of records &#8211; the validate method as well as validates_xxx methods which generate code for most common validation tasks. There is a problem though&#8230;</p>
<p>The validation can be easily skipped. Just use the update_attribute method and you can set any values without validation. Kinda scary if you&#8217;re used to encapsulating consistency checks in model &#8211; some other coder writing controllers for your model can just break your rules&#8230;</p>
<p>Just one more reason to ignore DHH&#8217;s words on moving validation to application layer and putting it back in database (where it should always be, even if you have the rules in your application layer too; skip consistency checks provided by the RDBMS only if they are too complicated to be effectively expressed with SQL or you&#8217;re using RDBMS with limited capabilites in this regard, like MySQL or SQLite)</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/squarewheel.wordpress.com/9/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/squarewheel.wordpress.com/9/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/squarewheel.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/squarewheel.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/squarewheel.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/squarewheel.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/squarewheel.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/squarewheel.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/squarewheel.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/squarewheel.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/squarewheel.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/squarewheel.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/squarewheel.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/squarewheel.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/squarewheel.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/squarewheel.wordpress.com/9/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=squarewheel.wordpress.com&amp;blog=2030543&amp;post=9&amp;subd=squarewheel&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://squarewheel.wordpress.com/2008/01/25/why-i-hate-activerecord-part-ii-validation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1ce2229dab491ccee498784c650786f9?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">squarewheel</media:title>
		</media:content>
	</item>
		<item>
		<title>Threading in RoR 2.0.2</title>
		<link>http://squarewheel.wordpress.com/2008/01/12/threading-in-ror-202/</link>
		<comments>http://squarewheel.wordpress.com/2008/01/12/threading-in-ror-202/#comments</comments>
		<pubDate>Fri, 11 Jan 2008 23:33:19 +0000</pubDate>
		<dc:creator>squarewheel</dc:creator>
				<category><![CDATA[Rails]]></category>

		<guid isPermaLink="false">http://squarewheel.wordpress.com/2008/01/12/threading-in-ror-202/</guid>
		<description><![CDATA[We&#8217;re working on a project using Ruby on Rails 2.0.2 currently. As you probably know, RoR is not thread-safe. But even if you are not using ActiveRecord, ActionPack nor any other Rails part you still might run into some problems if you thread. We use the probably most common setup &#8211; small loop launching threads [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=squarewheel.wordpress.com&amp;blog=2030543&amp;post=8&amp;subd=squarewheel&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>We&#8217;re working on a project using Ruby on Rails 2.0.2 currently.</p>
<p>As you probably know, RoR is not thread-safe. But even if you are not using ActiveRecord, ActionPack nor any other Rails part you still might run into some problems if you thread.</p>
<p>We use the probably most common setup &#8211; small loop launching threads to query some web services in parallel. This seemed safe, as it would not use any of RoR classes/modules.</p>
<p>Now here&#8217;s the gotcha &#8211; automatic constant resolver (part of ActiveSupport) that loads classes from properly named files. It&#8217;s a part of RoR too&#8230;. and has threading problems, just like the rest of RoR. If a constant is not known before the threads launched, every thread would try to load that constant on its own; only the first thread would succeeded, all the other would raise &#8220;constant X is not unknown&#8221; exception.</p>
<p>Currently we worked this around by requiring files defining all dependencies in the file that launches the thread <b>before</b> going parallel. It&#8217;s ugly and not easily maintainable, as threads use different functions, each with it&#8217;s own dependencies &#8211; but it works, for now.</p>
<p>Perhaps it&#8217;s time to port that project to python &#8211; it has proper thread support (not to mention the fact that I wouldn&#8217;t have to deal with RoR worst part, that is ActiveRecord &#8211; SqlAlchemy is <b>way better</b>)</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/squarewheel.wordpress.com/8/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/squarewheel.wordpress.com/8/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/squarewheel.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/squarewheel.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/squarewheel.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/squarewheel.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/squarewheel.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/squarewheel.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/squarewheel.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/squarewheel.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/squarewheel.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/squarewheel.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/squarewheel.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/squarewheel.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/squarewheel.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/squarewheel.wordpress.com/8/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=squarewheel.wordpress.com&amp;blog=2030543&amp;post=8&amp;subd=squarewheel&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://squarewheel.wordpress.com/2008/01/12/threading-in-ror-202/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1ce2229dab491ccee498784c650786f9?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">squarewheel</media:title>
		</media:content>
	</item>
		<item>
		<title>Unicode &#8220;support&#8221;</title>
		<link>http://squarewheel.wordpress.com/2007/12/06/unicode-support/</link>
		<comments>http://squarewheel.wordpress.com/2007/12/06/unicode-support/#comments</comments>
		<pubDate>Thu, 06 Dec 2007 20:21:51 +0000</pubDate>
		<dc:creator>squarewheel</dc:creator>
				<category><![CDATA[Rails]]></category>

		<guid isPermaLink="false">http://squarewheel.wordpress.com/2007/12/06/unicode-support/</guid>
		<description><![CDATA[Just a simple console session: &#62;&#62; "Zażółć"[0,3] =&#62; "Za\305" &#62;&#62; "Zażółć"[0,4] =&#62; "Zaż" &#62;&#62; "Zażółć".length =&#62; 10 OK, it quite works with Chars class: &#62;&#62; "Zażółć".chars[0,3].to_s =&#62; "Zaż" &#62;&#62; "Zażółć".chars[0,4].to_s =&#62; "Zażó" &#62;&#62; "Zażółć".chars.length =&#62; 6 Not the most elegant solution, but works.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=squarewheel.wordpress.com&amp;blog=2030543&amp;post=7&amp;subd=squarewheel&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Just a simple console session:</p>
<pre>
&gt;&gt; "Zażółć"[0,3]
=&gt; "Za\305"
&gt;&gt; "Zażółć"[0,4]
=&gt; "Zaż"
&gt;&gt; "Zażółć".length
=&gt; 10</pre>
<p>OK, it quite works with Chars class:</p>
<pre>
&gt;&gt; "Zażółć".chars[0,3].to_s
=&gt; "Zaż"
&gt;&gt; "Zażółć".chars[0,4].to_s
=&gt; "Zażó"
&gt;&gt; "Zażółć".chars.length
=&gt; 6</pre>
<p>Not the most elegant solution, but works.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/squarewheel.wordpress.com/7/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/squarewheel.wordpress.com/7/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/squarewheel.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/squarewheel.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/squarewheel.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/squarewheel.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/squarewheel.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/squarewheel.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/squarewheel.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/squarewheel.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/squarewheel.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/squarewheel.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/squarewheel.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/squarewheel.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/squarewheel.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/squarewheel.wordpress.com/7/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=squarewheel.wordpress.com&amp;blog=2030543&amp;post=7&amp;subd=squarewheel&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://squarewheel.wordpress.com/2007/12/06/unicode-support/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1ce2229dab491ccee498784c650786f9?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">squarewheel</media:title>
		</media:content>
	</item>
	</channel>
</rss>
