<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2titles.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemtitles.css"?><rss 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:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:creativeCommons="http://backend.userland.com/creativeCommonsRssModule" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>Millarian</title>
	
	<link>http://millarian.com</link>
	<description>Musings of a startup junkie and Ruby on Rails nerd.</description>
	<lastBuildDate>Thu, 17 Jun 2010 17:30:42 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/Millarian" /><feedburner:info uri="millarian" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><geo:lat>33.354418</geo:lat><geo:long>-112.569412</geo:long><image><link>http://creativecommons.org/licenses/by/3.0/</link><url>http://creativecommons.org/images/public/somerights20.gif</url><title>Some Rights Reserved</title></image><feedburner:emailServiceId>Millarian</feedburner:emailServiceId><feedburner:feedburnerHostname>http://feedburner.google.com</feedburner:feedburnerHostname><item>
		<title>IE tries to be helpful when using JavaScript to set the href attribute</title>
		<link>http://feedproxy.google.com/~r/Millarian/~3/7DXFV4k6wJs/</link>
		<comments>http://millarian.com/programming/ie-tries-to-be-helpful-when-using-javascript-to-set-the-href-attribute/#comments</comments>
		<pubDate>Thu, 17 Jun 2010 17:30:42 +0000</pubDate>
		<dc:creator>Curtis Miller</dc:creator>
				<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://millarian.com/?p=2587</guid>
		<description><![CDATA[I have to believe that the developers behind Internet Explorer have good intentions. It might ruin my world view and trust in people if that turned out to not be the case. However, there are instances where they go too far.

In this case, Internet Explorer tries to be "helpful" by automatically setting the link text when you set the href attribute of an anchor tag. I present the details of when this will happen and how you can get around it.]]></description>
			<content:encoded><![CDATA[<p>Have you ever tried to set an anchor tag&#8217;s <code>href</code> attribute using JavaScript? It&#8217;s pretty easy, even without a JavaScript library (jQuery, Prototype, etc.). All you need to do is find (or create) the element and then set the href attribute to the desired text.</p>
<p><script src="http://gist.github.com/436998.js"></script></p>
<p>Now, try executing the following in IE:</p>
<p><script src="http://gist.github.com/437011.js"></script></p>
<p>What would you expect to be the value of <code>link.innerHTML</code>? Turns out that it is the same as the href value, &#8216;http://flatterline.com&#8217;. It seems that, on IE only, if the inner HTML of an anchor tag looks like a URL, then upon replacing the href, it will also replace the inner HTML. Try the same experiment, but with link text that does not look like a URL:</p>
<p><script src="http://gist.github.com/437016.js"></script></p>
<p>Inspecting the innerHTML value will show that it was not replaced.</p>
<p>This is a browser level quirk, so using a JavaScript library won&#8217;t save from this unless your library has specifically made a special case for this. I originally saw this when using jQuery and thought it might be a problem with the jQuery framework.</p>
<p>I think the best workaround here is that when modifying an anchor tag with JavaScript, set attributes first, then set the link text.</p>
<p><strong>What do you think? Have a different workaround or solution?</strong></p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/Millarian?a=7DXFV4k6wJs:US_YA1VKw4I:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/Millarian?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Millarian?a=7DXFV4k6wJs:US_YA1VKw4I:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/Millarian?i=7DXFV4k6wJs:US_YA1VKw4I:D7DqB2pKExk" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Millarian?a=7DXFV4k6wJs:US_YA1VKw4I:YwkR-u9nhCs"><img src="http://feeds.feedburner.com/~ff/Millarian?d=YwkR-u9nhCs" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/Millarian/~4/7DXFV4k6wJs" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://millarian.com/programming/ie-tries-to-be-helpful-when-using-javascript-to-set-the-href-attribute/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<creativeCommons:license>http://creativecommons.org/licenses/by/3.0/</creativeCommons:license><feedburner:origLink>http://millarian.com/programming/ie-tries-to-be-helpful-when-using-javascript-to-set-the-href-attribute/</feedburner:origLink></item>
		<item>
		<title>IE7 resize window problem</title>
		<link>http://feedproxy.google.com/~r/Millarian/~3/Wzk8jJA2jO4/</link>
		<comments>http://millarian.com/programming/ie7-resize-window-problem/#comments</comments>
		<pubDate>Mon, 14 Jun 2010 16:30:39 +0000</pubDate>
		<dc:creator>Curtis Miller</dc:creator>
				<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://millarian.com/?p=2582</guid>
		<description><![CDATA[When developing for the web, if there is one browser that will not look correct, it is almost guaranteed to be a version of IE.

This was the case when I recently encountered elements that appeared to have a fixed position when they were not styled in that way. The problem was only visible on IE7 and, as I discovered, was a known bug in IE since version 6.

This article describes two different solutions to this problem.]]></description>
			<content:encoded><![CDATA[<p>While developing an embeddable JavaScript widget, I ran across a problem in IE7 recently that was pretty strange. Some of the elements on the page appeared to be fixed (i.e., <code>position: fixed</code>) when really they were not.</p>
<p>I was able to track it down to the use of <code>position: relative</code> on these particular elements. If I added <code>position: relative</code> to other elements, they would also appear to be fixed. I proceed to try relative positioning on surrounding elements, but it was only at the body level that all elements behaved as they should.</p>
<p>Armed with these clues, I was able to find a post by <a rel="external" href="http://friendlybit.com/css/ie6-resize-bug/">Emil Stenström</a> that documented the existence of this bug in IE6 and IE7 beta 2. He has a great explanation about how to recreate it. His suggestion was to add relative positioning to the body tag, but the real problem, as he explained, was the use of auto margin to center the body element.</p>
<p>Seeing as how this was an embeddable widget, I didn&#8217;t really want to have the widget affect any elements outside of itself. So I opted to advise the embedding page to add a centered div around their content and remove the centering on the body tag. This corrected the problem and, once again, all was right in the world.</p>
<p><strong>Or was it?</strong></p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/Millarian?a=Wzk8jJA2jO4:4guVUtWs6K0:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/Millarian?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Millarian?a=Wzk8jJA2jO4:4guVUtWs6K0:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/Millarian?i=Wzk8jJA2jO4:4guVUtWs6K0:D7DqB2pKExk" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Millarian?a=Wzk8jJA2jO4:4guVUtWs6K0:YwkR-u9nhCs"><img src="http://feeds.feedburner.com/~ff/Millarian?d=YwkR-u9nhCs" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/Millarian/~4/Wzk8jJA2jO4" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://millarian.com/programming/ie7-resize-window-problem/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		<creativeCommons:license>http://creativecommons.org/licenses/by/3.0/</creativeCommons:license><feedburner:origLink>http://millarian.com/programming/ie7-resize-window-problem/</feedburner:origLink></item>
		<item>
		<title>Honeypot Captchas for Rails</title>
		<link>http://feedproxy.google.com/~r/Millarian/~3/ThasF0ioufM/</link>
		<comments>http://millarian.com/programming/ruby-on-rails/honeypot-captchas-for-rails/#comments</comments>
		<pubDate>Mon, 12 Apr 2010 23:10:03 +0000</pubDate>
		<dc:creator>Curtis Miller</dc:creator>
				<category><![CDATA[Ruby on Rails]]></category>

		<guid isPermaLink="false">http://millarian.com/?p=2571</guid>
		<description><![CDATA[Honeypot captchas are a simple, unobtrusive way to try to combat automated form spam. I packaged some work I did a few years ago using this technique in Ruby on Rails forms and created a gem.]]></description>
			<content:encoded><![CDATA[<p>A while ago, I read a few articles on the technique of honeypot captchas and thought it was a pretty simple, but interesting, technique.</p>
<p>Essentially, with honeypot captchas you add fields into public facing forms that you expect to <strong>not</strong> be filled in, then you hide them through CSS (or other means). Since spam bots don&#8217;t usually apply CSS styles, the fields are visible to them, yet styled away for normal users. And we all know how spam bots love to fill in whatever fields they find&#8230; When the form is submitted, you simply check for these honeypot captcha fields to have values. If they do, then you stop processing the request and return as if everything completed a-okay.</p>
<p>I used this technique on a site several years ago and meant to package it into a gem. This weekend, I finally checked that off my todo list! Now, I&#8217;d like your feedback on whether this is useful and what I can do to make it better. Feel free to fork the repository and mess with the code. If you add a feature, please send me a pull request. Thanks!</p>
<p>You can find the repository here: <a rel="external" href="http://github.com/curtis/honeypot-captcha">Honeypot Captcha on Github</a>.</p>
<h3>References</h3>
<ul>
<li><a rel="external" href="http://haacked.com/archive/2007/09/11/honeypot-captcha.aspx">Honeypot Captcha by Phil Haack</a></li>
<li><a rel="external" href="http://nedbatchelder.com/text/stopbots.html">Stopping spambots with hashes and honeypots</a></li>
</ul>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/Millarian?a=ThasF0ioufM:rkS-JAsDWSw:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/Millarian?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Millarian?a=ThasF0ioufM:rkS-JAsDWSw:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/Millarian?i=ThasF0ioufM:rkS-JAsDWSw:D7DqB2pKExk" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Millarian?a=ThasF0ioufM:rkS-JAsDWSw:YwkR-u9nhCs"><img src="http://feeds.feedburner.com/~ff/Millarian?d=YwkR-u9nhCs" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/Millarian/~4/ThasF0ioufM" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://millarian.com/programming/ruby-on-rails/honeypot-captchas-for-rails/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		<creativeCommons:license>http://creativecommons.org/licenses/by/3.0/</creativeCommons:license><feedburner:origLink>http://millarian.com/programming/ruby-on-rails/honeypot-captchas-for-rails/</feedburner:origLink></item>
		<item><title>Links for 2010-02-27 [del.icio.us]</title><link>http://feedproxy.google.com/~r/Millarian/~3/OST76WXch_U/curtm95</link><pubDate>Sun, 28 Feb 2010 00:00:00 PST</pubDate><guid isPermaLink="false">http://del.icio.us/curtm95#2010-02-27</guid><description>&lt;ul&gt;
&lt;li&gt;&lt;a href="http://supportdetails.com/"&gt;Support Details | Tech Support Management&lt;/a&gt;&lt;br/&gt;
Quickly and easily obtain system details from customers.&lt;/li&gt;
&lt;/ul&gt;&lt;img src="http://feeds.feedburner.com/~r/Millarian/~4/OST76WXch_U" height="1" width="1"/&gt;</description><feedburner:origLink>http://del.icio.us/curtm95#2010-02-27</feedburner:origLink></item><item><title>Links for 2010-02-15 [del.icio.us]</title><link>http://feedproxy.google.com/~r/Millarian/~3/1E7Bh_JMQfk/curtm95</link><pubDate>Tue, 16 Feb 2010 00:00:00 PST</pubDate><guid isPermaLink="false">http://del.icio.us/curtm95#2010-02-15</guid><description>&lt;ul&gt;
&lt;li&gt;&lt;a href="http://www.fontsquirrel.com/"&gt;Font Squirrel&lt;/a&gt;&lt;br/&gt;
Commercial-use, free fonts.&lt;/li&gt;
&lt;/ul&gt;&lt;img src="http://feeds.feedburner.com/~r/Millarian/~4/1E7Bh_JMQfk" height="1" width="1"/&gt;</description><feedburner:origLink>http://del.icio.us/curtm95#2010-02-15</feedburner:origLink></item><item><title>Links for 2010-02-12 [del.icio.us]</title><link>http://feedproxy.google.com/~r/Millarian/~3/BClq0NXF_dY/curtm95</link><pubDate>Sat, 13 Feb 2010 00:00:00 PST</pubDate><guid isPermaLink="false">http://del.icio.us/curtm95#2010-02-12</guid><description>&lt;ul&gt;
&lt;li&gt;&lt;a href="http://thechangelog.com/post/385538912/quicksand-awesome-jquery-plugin-to-filter-animate-html-l"&gt;Quicksand: Awesome jQuery plugin to filter/animate HTML lists&lt;/a&gt;&lt;br/&gt;
Pretty cool animated list filter for jQuery.&lt;/li&gt;
&lt;/ul&gt;&lt;img src="http://feeds.feedburner.com/~r/Millarian/~4/BClq0NXF_dY" height="1" width="1"/&gt;</description><feedburner:origLink>http://del.icio.us/curtm95#2010-02-12</feedburner:origLink></item><item><title>Links for 2009-10-14 [del.icio.us]</title><link>http://feedproxy.google.com/~r/Millarian/~3/oQS5-2UXFvs/curtm95</link><pubDate>Thu, 15 Oct 2009 00:00:00 PDT</pubDate><guid isPermaLink="false">http://del.icio.us/curtm95#2009-10-14</guid><description>&lt;ul&gt;
&lt;li&gt;&lt;a href="http://flipc.blogspot.com/2009/02/damn-ie7-and-inline-block.html"&gt;The Mad Ranter: Damn IE7 and inline-block&lt;/a&gt;&lt;br/&gt;
ZOMG! It works!! How to deal with inline-block problems in IE7.&lt;/li&gt;
&lt;/ul&gt;&lt;img src="http://feeds.feedburner.com/~r/Millarian/~4/oQS5-2UXFvs" height="1" width="1"/&gt;</description><feedburner:origLink>http://del.icio.us/curtm95#2009-10-14</feedburner:origLink></item><item>
		<title>Quick Tip: Rails Named Bind Variables</title>
		<link>http://feedproxy.google.com/~r/Millarian/~3/FwC9212qUco/</link>
		<comments>http://millarian.com/programming/ruby-on-rails/quick-tip-rails-named-bind-variables/#comments</comments>
		<pubDate>Thu, 01 Oct 2009 16:30:28 +0000</pubDate>
		<dc:creator>Curtis Miller</dc:creator>
				<category><![CDATA[Ruby on Rails]]></category>

		<guid isPermaLink="false">http://millarian.com/?p=2549</guid>
		<description><![CDATA[Sometimes, Rails queries can get long and complicated. Using named bind variables is an easy way to give some context to the query and, when you need to supply the same value to multiple query conditions, can shorten the query parameters.]]></description>
			<content:encoded><![CDATA[<p>Have you ever come across a Ruby on Rails query that has so many conditions that it&#8217;s hard to figure out what is being replaced where? While this can be somewhat mitigated by using <a href="http://millarian.com/programming/ruby-on-rails/quick-tip-named_scope/">Rails named scopes</a>, you can also use named bind variables to make it easier to read. Named bind variables replace the question marks with symbols and you supply a hash with values for the matching symbol keys:</p>
<pre>Company.find(:first, :conditions => [
  "state = :state AND name = :name AND division = :division AND created_at > :some_date",
  { :state => :approved, :name => 'Flatterline', :division => 'First', :some_date => '2009-02-27' }
])</pre>
<p>This is also very handy when you have the same value for multiple parameters, since it will replace all matching bind variables with the value (e.g., the current time).</p>
<pre>Event.find(:first, :conditions => [
  "state = :state AND starts_at <= :now AND ends_at >= :now",
  { :state => :active, :now => Time.zone.now }
])</pre>
<h3>References</h3>
<ul>
<li><a rel="external" href="http://api.rubyonrails.org/classes/ActiveRecord/Base.html">ActiveRecord::Base API documentation</a>
  </li>
</ul>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/Millarian?a=FwC9212qUco:VdlQHBZERCA:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/Millarian?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Millarian?a=FwC9212qUco:VdlQHBZERCA:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/Millarian?i=FwC9212qUco:VdlQHBZERCA:D7DqB2pKExk" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Millarian?a=FwC9212qUco:VdlQHBZERCA:YwkR-u9nhCs"><img src="http://feeds.feedburner.com/~ff/Millarian?d=YwkR-u9nhCs" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/Millarian/~4/FwC9212qUco" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://millarian.com/programming/ruby-on-rails/quick-tip-rails-named-bind-variables/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<creativeCommons:license>http://creativecommons.org/licenses/by/3.0/</creativeCommons:license><feedburner:origLink>http://millarian.com/programming/ruby-on-rails/quick-tip-rails-named-bind-variables/</feedburner:origLink></item>
		<item>
		<title>Quick Tip: Cucumber Works-in-Progress</title>
		<link>http://feedproxy.google.com/~r/Millarian/~3/1eXF32D2trg/</link>
		<comments>http://millarian.com/programming/ruby-on-rails/quick-tip-cucumber-works-in-progress/#comments</comments>
		<pubDate>Wed, 30 Sep 2009 16:30:30 +0000</pubDate>
		<dc:creator>Curtis Miller</dc:creator>
				<category><![CDATA[Ruby on Rails]]></category>

		<guid isPermaLink="false">http://millarian.com/?p=2527</guid>
		<description><![CDATA[Cucumber has a relatively new feature that allows you to tag individual scenarios as "should pass" versus "work-in-progress". Rake tasks are provided that run the two groups of tagged scenarios separately.]]></description>
			<content:encoded><![CDATA[<p>After upgrading to the latest gems, including cucumber and webrat, I noticed a deprecation message when trying to run <strong>rake features</strong>. There are new rake tasks now for running cucumber features:</p>
<p><script src="http://gist.github.com/194601.js"></script></p>
<p>So now, you can indicate which scenarios should pass and which are still be worked on, then run them separately if you like. Simply add some meta-data to your scenarios like this:</p>
<p><script src="http://gist.github.com/194602.js"></script></p>
<p>This will tag the scenario as a test that should work. If you have a work-in-progress, simply tag with <strong>@wip</strong>.</p>
<p>Read about some other <a rel="external" href="http://robots.thoughtbot.com/post/189412598/five-ridiculously-awesome-cucumber-and-webrat">ridiculously awesome cucumber and webrat features</a> on the thoughtbot blog.</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/Millarian?a=1eXF32D2trg:-m76ywJFmNE:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/Millarian?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Millarian?a=1eXF32D2trg:-m76ywJFmNE:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/Millarian?i=1eXF32D2trg:-m76ywJFmNE:D7DqB2pKExk" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Millarian?a=1eXF32D2trg:-m76ywJFmNE:YwkR-u9nhCs"><img src="http://feeds.feedburner.com/~ff/Millarian?d=YwkR-u9nhCs" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/Millarian/~4/1eXF32D2trg" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://millarian.com/programming/ruby-on-rails/quick-tip-cucumber-works-in-progress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<creativeCommons:license>http://creativecommons.org/licenses/by/3.0/</creativeCommons:license><feedburner:origLink>http://millarian.com/programming/ruby-on-rails/quick-tip-cucumber-works-in-progress/</feedburner:origLink></item>
		<item>
		<title>Quick Tip: Rails Singularization of -ess</title>
		<link>http://feedproxy.google.com/~r/Millarian/~3/DG-Pz1l8b-c/</link>
		<comments>http://millarian.com/programming/ruby-on-rails/quick-tip-rails-singularization-of-ess/#comments</comments>
		<pubDate>Tue, 29 Sep 2009 16:30:05 +0000</pubDate>
		<dc:creator>Curtis Miller</dc:creator>
				<category><![CDATA[Ruby on Rails]]></category>

		<guid isPermaLink="false">http://millarian.com/?p=2515</guid>
		<description><![CDATA[The Ruby on Rails built-in inflections don't handle singularizing words like "business" or "address" correctly. Here's a quick way to make sure it's handled in your Rails project.]]></description>
			<content:encoded><![CDATA[<p>Have you ever created a Ruby on Rails application dealing with businesses or addresses? I&#8217;d be hard pressed to find someone who hasn&#8217;t.</p>
<p>Strangely, though, Rails does not have an inflection that deals with the singularization of these words correctly. From the command line, try singularizing the word &#8220;business&#8221;:</p>
<p><script src="http://gist.github.com/194495.js"></script></p>
<p>While this seems like a contrived situation, it&#8217;s actually not as hard to hit as you&#8217;d think (e.g., common code that needs to singularize the incoming argument). I saw this while using Acl9, a <a rel="external" href="http://github.com/be9/acl9">role-based authorization system for Rails</a>&#8230;</p>
<p><strong>Here&#8217;s a quick fix that you can add to your config/initializers/inflections.rb:</strong></p>
<p><script src="http://gist.github.com/194493.js"></script></p>
<p>You can read more about how this won&#8217;t be fixed in this <a rel="external" href="https://rails.lighthouseapp.com/projects/8994/tickets/2399-incorrect-inflectors-for-business-or-ness">ticket</a>.</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/Millarian?a=DG-Pz1l8b-c:rbFxrZd4NlU:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/Millarian?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Millarian?a=DG-Pz1l8b-c:rbFxrZd4NlU:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/Millarian?i=DG-Pz1l8b-c:rbFxrZd4NlU:D7DqB2pKExk" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Millarian?a=DG-Pz1l8b-c:rbFxrZd4NlU:YwkR-u9nhCs"><img src="http://feeds.feedburner.com/~ff/Millarian?d=YwkR-u9nhCs" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/Millarian/~4/DG-Pz1l8b-c" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://millarian.com/programming/ruby-on-rails/quick-tip-rails-singularization-of-ess/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<creativeCommons:license>http://creativecommons.org/licenses/by/3.0/</creativeCommons:license><feedburner:origLink>http://millarian.com/programming/ruby-on-rails/quick-tip-rails-singularization-of-ess/</feedburner:origLink></item>
		<item>
		<title>Fixing Multipart Uploads in Rack for Ruby 1.9</title>
		<link>http://feedproxy.google.com/~r/Millarian/~3/Pk4Jcx5zHfw/</link>
		<comments>http://millarian.com/programming/ruby-on-rails/fixing-multipart-uploads-in-rack-for-ruby-1-9/#comments</comments>
		<pubDate>Tue, 29 Sep 2009 04:05:13 +0000</pubDate>
		<dc:creator>Curtis Miller</dc:creator>
				<category><![CDATA[Ruby on Rails]]></category>

		<guid isPermaLink="false">http://millarian.com/?p=2536</guid>
		<description><![CDATA[Describes a fatal error in Rack v1.0.0 that may need to be patched until a new version is released. If you're seeing a "invalid byte sequence in US-ASCII" error, then read on!]]></description>
			<content:encoded><![CDATA[<p>There is a slight problem in Rack 1.0.0 that causes a fatal error to be produced when uploading files <= 110K in size. You may need to patch Rack if you see the following error when uploading a file (I saw it with Paperclip):</p>
<p><script src="http://gist.github.com/197155.js"></script></p>
<p><strong>Here's what you do to patch Rack:</strong></p>
<p><script src="http://gist.github.com/197215.js"></script></p>
<p>You should now be back in business. Hopefully it won't be too long before an update is released for Rack that includes the patch.</p>
<p>Happy uploading!</p>
<h3>References</h3>
<ul>
<li><a rel="external" href="https://rails.lighthouseapp.com/projects/8994/tickets/2497-rack-in-rails-232-throws-fatal-error-with-small-uploads">Rails Ticket #2497: Rack in Rails 2.3.2 throws fatal error with small uploads</a></li>
<li><a rel="external" href="http://github.com/rack/rack/commit/44ed4640f077504a49b7f1cabf8d6ad7a13f6441">Rack commit log: Fix multipart uploads on 1.9</a></li>
<li><a rel="external" href="http://rubynyc.wordpress.com/ruby-1-9-1/paperclip-triggering-a-invalid-byte-sequence-in-us-ascii/">Ruby NYC: paperclip triggering a “invalid byte sequence in US-ASCII” ruby 1.9 rails 2.3</a></li>
</ul>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/Millarian?a=Pk4Jcx5zHfw:W4Q9Gl-Lkbk:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/Millarian?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Millarian?a=Pk4Jcx5zHfw:W4Q9Gl-Lkbk:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/Millarian?i=Pk4Jcx5zHfw:W4Q9Gl-Lkbk:D7DqB2pKExk" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Millarian?a=Pk4Jcx5zHfw:W4Q9Gl-Lkbk:YwkR-u9nhCs"><img src="http://feeds.feedburner.com/~ff/Millarian?d=YwkR-u9nhCs" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/Millarian/~4/Pk4Jcx5zHfw" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://millarian.com/programming/ruby-on-rails/fixing-multipart-uploads-in-rack-for-ruby-1-9/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<creativeCommons:license>http://creativecommons.org/licenses/by/3.0/</creativeCommons:license><feedburner:origLink>http://millarian.com/programming/ruby-on-rails/fixing-multipart-uploads-in-rack-for-ruby-1-9/</feedburner:origLink></item>
		<item>
		<title>Trimming the Fat from your Social Media Diet</title>
		<link>http://feedproxy.google.com/~r/Millarian/~3/CpUk0JV3EcA/</link>
		<comments>http://millarian.com/community/trimming-the-fat-from-your-social-media-diet/#comments</comments>
		<pubDate>Tue, 15 Sep 2009 16:00:16 +0000</pubDate>
		<dc:creator>Curtis Miller</dc:creator>
				<category><![CDATA[Community]]></category>

		<guid isPermaLink="false">http://millarian.com/?p=2493</guid>
		<description><![CDATA[Social media isn't all about the numbers and it's not about pleasing everyone. Stopping worrying so much about who is or isn't following you, reading your blog posts or friending you on various social networks (that I don't belong to, btw).

It's about finding people that are relevant or interesting to you and establishing a relationship. Why sift through all the noise to find the relevant chunks? Remove the noise and begin to see things more clearly.

I describe my current process for keeping things relevant. Are you ready? It's time to start trimming the fat from your social media diet.]]></description>
			<content:encoded><![CDATA[<p>As I stated in my previous post about <a href="http://millarian.com/community/challenge-yourself-to-create-better-relationships-offline/">fostering better offline relationships</a>, new online tools allow us to find and connect with people that share our interests in many different ways. Sadly, many of these tools place an implicit or explicit emphasis on the number of people you&#8217;re connected with or that are connected with you. <strong>These numbers do not matter.</strong> What matters are the relationships you make with the people you choose to connect with. I try to follow the same process of elimination for everyone I connect with online.</p>
<p>I tend to give people the benefit of the doubt when it comes to subscribing to their RSS feed, following on Twitter, etc. It&#8217;s usually about a 2 week trial period, after which I reevaluate my choice. I also occasionally reevaluate long standing connections to see if it still makes sense for me to be connected to that person through whatever tool I&#8217;m using.</p>
<p>My main reason for cutting people is mostly due to a lack of relevance to me at that time. Just because one of your posts caught my attention doesn&#8217;t necessarily mean I&#8217;m going to be interested in the rest. If someone has ceased being relevant to me, why would I continue to skip over their posts in search of relevant content? (That&#8217;s a key indicator for me: I begin skipping over people&#8217;s blog posts, tweets, etc. That&#8217;s when I know it&#8217;s time to move on&#8230;)</p>
<p>Negative people seem to have an effect on my mood, so I choose to remove the negativity. You may have heard the phrase &#8220;negativity is contagious.&#8221; Well, I&#8217;ve found this to be true in online interactions as well. Occasional outbursts I can live with, it&#8217;s the constant negativity that gets to me&#8230;</p>
<p>I also try to cut people who are rude, racist, bigoted or arrogant. I&#8217;d really rather focus my attention elsewhere; it&#8217;s not worth devoting any energy to these people. Besides, it seems like many of these people are so vocal because they&#8217;re eager for responses; it&#8217;s fuel for the fire they&#8217;re stoking.</p>
<p>Remember, you don&#8217;t need to follow everyone; it&#8217;s your choice. Be picky. This will allow you more time to establish better relationships with the people you choose to maintain a connection with.</p>
<p><strong>Try taking some time to evaluate the people you follow, read, etc. and make a few cuts. Start with me if you&#8217;d like <img src='http://millarian.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  You might be surprised at how easy it actually is.</strong></p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/Millarian?a=CpUk0JV3EcA:TeuZxPQYYtE:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/Millarian?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Millarian?a=CpUk0JV3EcA:TeuZxPQYYtE:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/Millarian?i=CpUk0JV3EcA:TeuZxPQYYtE:D7DqB2pKExk" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Millarian?a=CpUk0JV3EcA:TeuZxPQYYtE:YwkR-u9nhCs"><img src="http://feeds.feedburner.com/~ff/Millarian?d=YwkR-u9nhCs" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/Millarian/~4/CpUk0JV3EcA" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://millarian.com/community/trimming-the-fat-from-your-social-media-diet/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<creativeCommons:license>http://creativecommons.org/licenses/by/3.0/</creativeCommons:license><feedburner:origLink>http://millarian.com/community/trimming-the-fat-from-your-social-media-diet/</feedburner:origLink></item>
		<item>
		<title>Challenge Yourself to Create Better Relationships… Offline</title>
		<link>http://feedproxy.google.com/~r/Millarian/~3/mmprwNAXTk8/</link>
		<comments>http://millarian.com/community/challenge-yourself-to-create-better-relationships-offline/#comments</comments>
		<pubDate>Thu, 10 Sep 2009 16:00:39 +0000</pubDate>
		<dc:creator>Curtis Miller</dc:creator>
				<category><![CDATA[Community]]></category>

		<guid isPermaLink="false">http://millarian.com/?p=2481</guid>
		<description><![CDATA[Even though there has been a big emphasis lately on building relationships online, it is still important to foster your offline relationships, too. It shouldn't be about quantity of connections as tools like Twitter, Facebook, LinkedIn, etc. would train us to believe.

Instead, it should be about the quality of the connections you have with people. Those relationships can be helped by taking time to meet with those people offline and in small groups. I present a specific challenge to you to do just that.]]></description>
			<content:encoded><![CDATA[<p>I see many people spending an inordinate amount of time talking about how to build relationships online through Twitter, Facebook, etc., which, frankly, is getting immensely boring. What I&#8217;ve been more interested in recently is much more old school: fostering relationships in real life. Now, I&#8217;m not talking about attending a networking event, that&#8217;s way too easy. What I&#8217;m talking about is smaller groups of people getting together for coffee, dinner, drinks, etc.</p>
<p>This came up in a conversation I had with local <a rel="external" href="http://tysoncrosbie.com">Phoenix artist and photographer, Tyson Crosbie</a> a few weeks ago. He posited that, while getting together in larger groups was fine for many things, it didn&#8217;t foster the same type of relationships that smaller groups did. Further, he stated that some of the best conversations he&#8217;d had were in very small groups. It shouldn&#8217;t be news to anyone that it&#8217;s easier for people to bond in smaller groups, right? I tended to agree and started thinking about it more.</p>
<p>New online tools make it easier for us to find people with which we share similar interests and they allow us to communicate with them. Having online friends is becoming the norm&#8230; there are many people I&#8217;ve talked with online that I&#8217;ve never met in real life. However, the communication mediums that currently exist online are flawed. For instance, we&#8217;ve probably all experienced how easily the subtleties of human interaction are lost when communicating online. After all, these are just tools; they&#8217;re not an end, they&#8217;re a means to an end!</p>
<p>When I do, occasionally, visit meatspace I&#8217;m either attending a networking event or some other social gathering. I think there&#8217;s a desire to be a part of something large because that&#8217;s often used as a measure of &#8220;success&#8221;. Much like many bureaucracies, the larger things get, the harder it is to accomplish something meaningful. I think making a more personal connection with a small group of people is far more valuable than being one of many in a semi-anonymous crowd.</p>
<p>So, why not challenge yourself this month? Use your tools to gather 3-4 people you don&#8217;t know well from amongst your diverse network of people and invite them for coffee, sit down for dinner or have a drink at a local bar. Hell, invite them over and cook them dinner, but whatever you do, start creating better relationships. Oh, and if you go out, please go to a local place and not a chain <img src='http://millarian.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><strong>Let us know your experience in the comments!</strong></p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/Millarian?a=mmprwNAXTk8:HFtiVmg_AVk:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/Millarian?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Millarian?a=mmprwNAXTk8:HFtiVmg_AVk:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/Millarian?i=mmprwNAXTk8:HFtiVmg_AVk:D7DqB2pKExk" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Millarian?a=mmprwNAXTk8:HFtiVmg_AVk:YwkR-u9nhCs"><img src="http://feeds.feedburner.com/~ff/Millarian?d=YwkR-u9nhCs" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/Millarian/~4/mmprwNAXTk8" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://millarian.com/community/challenge-yourself-to-create-better-relationships-offline/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		<creativeCommons:license>http://creativecommons.org/licenses/by/3.0/</creativeCommons:license><feedburner:origLink>http://millarian.com/community/challenge-yourself-to-create-better-relationships-offline/</feedburner:origLink></item>
		<item>
		<title>Reevaluating the Handshake</title>
		<link>http://feedproxy.google.com/~r/Millarian/~3/PNDo9osH7V8/</link>
		<comments>http://millarian.com/random/reevaluating-the-handshake/#comments</comments>
		<pubDate>Thu, 13 Aug 2009 17:00:37 +0000</pubDate>
		<dc:creator>Curtis Miller</dc:creator>
				<category><![CDATA[Random]]></category>

		<guid isPermaLink="false">http://millarian.com/?p=2445</guid>
		<description><![CDATA[I was taught a long time ago that giving a proper handshake involved only a few key elements. However, I found this ingrained idea about shaking hands challenged recently by an individual who followed a completely different set of rules for giving a handshake.

Afterward, I took a little time to evaluate my thoughts about it, which I document in this article.]]></description>
			<content:encoded><![CDATA[<p>Long ago, I was taught that a proper handshake involved several things. They&#8217;re pretty simple really:</p>
<ol>
<li>make eye contact; smile</li>
<li>perform a full clasp; no premature grabs</li>
<li>use a firm grasp; not too hard though</li>
<li>don&#8217;t be overzealous with the shaking</li>
<li>hold it for a few seconds after saying your intro (e.g., &#8220;nice to meet you&#8221;, &#8220;my name is X&#8221;)</li>
</ol>
<div class="alignright">
  <a href="http://www.flickr.com/photos/tenderlung/3130535844/"><img alt="" src="http://farm4.static.flickr.com/3248/3130535844_7b2684365e_m_d.jpg" title="Handshake | Photo by tenderlung" width="240" height="180" /></a></p>
<div xmlns:cc="http://creativecommons.org/ns#" about="http://www.flickr.com/photos/tenderlung/3130535844/in/photostream/">
    Photo by <a rel="cc:attributionURL" href="http://www.flickr.com/photos/tenderlung/">tenderlung</a> / <a rel="license" href="http://creativecommons.org/licenses/by-nc/2.0/">CC BY-NC 2.0</a>
  </div>
</div>
<p>If you were to search Google about <a rel="external" href="http://www.google.com/search?q=how+to+give+a+proper+handshake">how to give a proper handshake</a> then you would find articles and videos that mostly tell you the same things I learned. A handshake is one of the first impressions you get when meeting someone. With the way I was taught, there is an element of sizing up the individual with whom you&#8217;re shaking hands; there&#8217;s a certain machismo involved. If the grip is too weak or they avoid eye contact it could be construed as a sign of weakness and, therefore, leaves a bad impression. <a rel="external" href="http://www.careerbuilder.com/Article/CB-431-Getting-Hired-The-Secret-to-a-Perfect-Handshake/">CareerBuilder</a> cites a University of Alabama study to this effect:</p>
<blockquote><p>[The] study found that consistent with the etiquette and business literature, there is a substantial relationship between the features that characterize a firm handshake (strength, vigor, duration, eye contact and completeness of grip) and a favorable first impression.</p></blockquote>
<p>However, a few days ago I had my ingrained notion of what a handshake should be challenged by an unassuming individual. He didn&#8217;t challenge it directly, he simply shook my hand in a way that was entirely foreign to me. His handshake had the following characteristics:</p>
<ol>
<li>downcast eyes; slightly bent body</li>
<li>double handed clasp</li>
<li>soft grasp</li>
<li>barely any shaking involved</li>
<li>held it for longer than a normal handshake</li>
</ol>
<p>Normally, I might have a negative reaction to this type of handshake, but this time I didn&#8217;t. Why? The handshake was sincere, absolutely and utterly sincere, and conveyed quiet confidence. In fact, it was probably the most sincere handshake I&#8217;ve ever received, yet it goes against most of the things I&#8217;ve been taught about a proper handshake.</p>
<p>It made me wonder why we&#8217;ve trained ourselves to look for weakness and/or dominate the other person during first impressions instead of looking for sincerity, authenticity, trustworthiness and good will. Is it some sort of evolutionary thing; a throwback to the days when our ancestors continually fought for dominance of each other? I&#8217;m not sure, but I feel like the handshake has become an insincere, mechanical response to a common interaction. In essence, it&#8217;s lost it&#8217;s meaning.</p>
<p><strong>What do you think?</strong></p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/Millarian?a=PNDo9osH7V8:NuMIM9HfPbs:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/Millarian?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Millarian?a=PNDo9osH7V8:NuMIM9HfPbs:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/Millarian?i=PNDo9osH7V8:NuMIM9HfPbs:D7DqB2pKExk" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Millarian?a=PNDo9osH7V8:NuMIM9HfPbs:YwkR-u9nhCs"><img src="http://feeds.feedburner.com/~ff/Millarian?d=YwkR-u9nhCs" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/Millarian/~4/PNDo9osH7V8" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://millarian.com/random/reevaluating-the-handshake/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		<creativeCommons:license>http://creativecommons.org/licenses/by/3.0/</creativeCommons:license><feedburner:origLink>http://millarian.com/random/reevaluating-the-handshake/</feedburner:origLink></item>
	<item><title>Links for 2009-04-20 [del.icio.us]</title><link>http://feedproxy.google.com/~r/Millarian/~3/mYxW9f9J05I/curtm95</link><pubDate>Tue, 21 Apr 2009 00:00:00 PDT</pubDate><guid isPermaLink="false">http://del.icio.us/curtm95#2009-04-20</guid><description>&lt;ul&gt;
&lt;li&gt;&lt;a href="http://www.betaversion.org/~stefano/linotype/news/169/"&gt;Stefano's Linotype &amp;quot; Why Programmers Suck at CSS Design&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;img src="http://feeds.feedburner.com/~r/Millarian/~4/mYxW9f9J05I" height="1" width="1"/&gt;</description><feedburner:origLink>http://del.icio.us/curtm95#2009-04-20</feedburner:origLink></item><item><title>Links for 2009-01-15 [del.icio.us]</title><link>http://feedproxy.google.com/~r/Millarian/~3/Ik0Jb7pktd4/curtm95</link><pubDate>Fri, 16 Jan 2009 00:00:00 PST</pubDate><guid isPermaLink="false">http://del.icio.us/curtm95#2009-01-15</guid><description>&lt;ul&gt;
&lt;li&gt;&lt;a href="http://www.shirky.com/writings/ontology_overrated.html"&gt;Shirky: Ontology is Overrated -- Categories, Links, and Tags&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;img src="http://feeds.feedburner.com/~r/Millarian/~4/Ik0Jb7pktd4" height="1" width="1"/&gt;</description><feedburner:origLink>http://del.icio.us/curtm95#2009-01-15</feedburner:origLink></item><item><title>Links for 2009-01-11 [del.icio.us]</title><link>http://feedproxy.google.com/~r/Millarian/~3/PhY8wOvnl6w/curtm95</link><pubDate>Mon, 12 Jan 2009 00:00:00 PST</pubDate><guid isPermaLink="false">http://del.icio.us/curtm95#2009-01-11</guid><description>&lt;ul&gt;
&lt;li&gt;&lt;a href="http://www.joelonsoftware.com/articles/Unicode.html"&gt;The Absolute Minimum Every Software Developer Absolutely, Positively ...&lt;/a&gt;&lt;br/&gt;
The Absolute Minimum Every Software Developer Absolutely, Positively Must Know About Unicode and Character Sets (No Excuses!)&lt;/li&gt;
&lt;/ul&gt;&lt;img src="http://feeds.feedburner.com/~r/Millarian/~4/PhY8wOvnl6w" height="1" width="1"/&gt;</description><feedburner:origLink>http://del.icio.us/curtm95#2009-01-11</feedburner:origLink></item></channel>
</rss><!-- Dynamic page generated in 0.428 seconds. --><!-- Cached page generated by WP-Super-Cache on 2010-06-17 10:31:37 -->
