<?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>SameShirtEveryDay.com &#187; Misc</title>
	<atom:link href="http://sameshirteveryday.com/category/misc/feed/" rel="self" type="application/rss+xml" />
	<link>http://sameshirteveryday.com</link>
	<description>Personal blog of the one called Alex Gorbatchev, from Toronto, Canada.</description>
	<lastBuildDate>Wed, 30 Dec 2009 20:00:32 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Posting reasonable opinions under unreasonable titles</title>
		<link>http://sameshirteveryday.com/2009/02/18/posting-reasonable-opinions-under-unreasonable-titles/</link>
		<comments>http://sameshirteveryday.com/2009/02/18/posting-reasonable-opinions-under-unreasonable-titles/#comments</comments>
		<pubDate>Wed, 18 Feb 2009 19:11:00 +0000</pubDate>
		<dc:creator>Alex Gorbatchev</dc:creator>
				<category><![CDATA[Misc]]></category>
		<category><![CDATA[flex]]></category>
		<category><![CDATA[rant]]></category>

		<guid isPermaLink="false">http://www.sameshirteveryday.com/2009/02/18/posting-reasonable-opinions-under-unreasonable-titles/</guid>
		<description><![CDATA[Adobe Flex not ready for Enterprise applications &#8211; yup folks, that&#8217;s right. Apparently because Flex can&#8217;t render HTML and has spotty context menu support, it&#8217;s not ready. These days when recruiters and employers actually do bother to check on private blogs, these kind of posts could turn out to be career limiting. The actual issues [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://blog.codeglide.com/2009/02/18/adobe-flex-not-ready-for-enterprise-applications/" target="_blank">Adobe Flex not ready for Enterprise applications</a> &#8211; yup folks, that&#8217;s right. Apparently because Flex can&#8217;t render HTML and has spotty context menu support, it&#8217;s not ready.</p>
<p>These days when recruiters and employers actually do bother to check on private blogs, these kind of posts could turn out to be career limiting.</p>
<p>The actual issues mentioned are valid, but the conclusion drawn just sounds like whining in my opinion. It&#8217;s a good practice to evaluate potential platforms and check if you are able to implement core requirements on said platforms. It isn&#8217;t like Flex&#8217;s inability to render HTML was a big secret and if your product calls for that, you know what &#8211; don&#8217;t use Flex. It&#8217;s that simple.</p>
]]></content:encoded>
			<wfw:commentRss>http://sameshirteveryday.com/2009/02/18/posting-reasonable-opinions-under-unreasonable-titles/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Bash script to install Gems</title>
		<link>http://sameshirteveryday.com/2007/10/24/bash-script-to-install-gems/</link>
		<comments>http://sameshirteveryday.com/2007/10/24/bash-script-to-install-gems/#comments</comments>
		<pubDate>Wed, 24 Oct 2007 15:16:19 +0000</pubDate>
		<dc:creator>Alex Gorbatchev</dc:creator>
				<category><![CDATA[Misc]]></category>
		<category><![CDATA[Ruby]]></category>

		<guid isPermaLink="false">http://www.sameshirteveryday.com/2007/10/24/bash-script-to-install-gems/</guid>
		<description><![CDATA[I looked all over and couldn&#8217;t find a bash script which could check and if missing install a list of gems. I had to hack my own up: GEMS=( `cat gems.txt` ) # gems.txt has one gem name per line for gem in "${GEMS[@]}"; do found=`gem list $gem &#124; grep -i $gem` if [ "$found" [...]]]></description>
			<content:encoded><![CDATA[<p>I looked all over and couldn&#8217;t find a bash script which could check and if missing install a list of gems. I had to hack my own up:</p>
<pre>
GEMS=( `cat gems.txt` ) # gems.txt has one gem name per line

for gem in "${GEMS[@]}"; do
  found=`gem list $gem | grep -i $gem`
  if [ "$found" != "" ]; then
    parts=( $found )
    echo "Found ${parts[0]} ${parts[1]}"
    continue
  fi

  echo "---------------------------"
  echo "Installing $gem"
  sudo gem install $gem -y
  echo "---------------------------"
done
</pre>
]]></content:encoded>
			<wfw:commentRss>http://sameshirteveryday.com/2007/10/24/bash-script-to-install-gems/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Aptana &#8216;org.mozilla.rhino&#8217; error while installing RadRails</title>
		<link>http://sameshirteveryday.com/2007/09/01/aptana-orgmozillarhino-error-while-installing-radrails/</link>
		<comments>http://sameshirteveryday.com/2007/09/01/aptana-orgmozillarhino-error-while-installing-radrails/#comments</comments>
		<pubDate>Sat, 01 Sep 2007 20:17:16 +0000</pubDate>
		<dc:creator>Alex Gorbatchev</dc:creator>
				<category><![CDATA[Misc]]></category>

		<guid isPermaLink="false">http://www.sameshirteveryday.com/2007/09/01/aptana-orgmozillarhino-error-while-installing-radrails/</guid>
		<description><![CDATA[If you are installing RadRails on Aptana and getting &#8216;org.mozilla.rhino&#8217; error, you are probably upgrading your old installation. Searching for all files related to Aptana and deleting them before installing new version should fix the problem. After uninstalling older version of Aptana, I had over 110MB left in the &#8216;Programs Files/Aptana&#8217; folder. I&#8217;m not sure [...]]]></description>
			<content:encoded><![CDATA[<p>If you are installing RadRails on Aptana and getting &#8216;org.mozilla.rhino&#8217; error, you are probably upgrading your old installation. Searching for all files related to Aptana and deleting them before installing new version should fix the problem.</p>
<p>After uninstalling older version of Aptana, I had over 110MB left in the &#8216;Programs Files/Aptana&#8217; folder. I&#8217;m not sure where the files are kept on a *nix platform or OSX though.</p>
]]></content:encoded>
			<wfw:commentRss>http://sameshirteveryday.com/2007/09/01/aptana-orgmozillarhino-error-while-installing-radrails/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>No posts until August</title>
		<link>http://sameshirteveryday.com/2007/07/15/no-posts-until-august/</link>
		<comments>http://sameshirteveryday.com/2007/07/15/no-posts-until-august/#comments</comments>
		<pubDate>Sun, 15 Jul 2007 13:01:48 +0000</pubDate>
		<dc:creator>Alex Gorbatchev</dc:creator>
				<category><![CDATA[Misc]]></category>

		<guid isPermaLink="false">http://www.sameshirteveryday.com/2007/07/15/no-posts-until-august/</guid>
		<description><![CDATA[I&#8217;m getting married in a couple of hours and then off to Europe So I will probably not be posting anything until I get back first week of August.]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m getting married in a couple of hours and then off to Europe <img src='http://sameshirteveryday.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  So I will probably not be posting anything until I get back first week of August.</p>
]]></content:encoded>
			<wfw:commentRss>http://sameshirteveryday.com/2007/07/15/no-posts-until-august/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linotype FontExplorer X and xpcom.dll</title>
		<link>http://sameshirteveryday.com/2007/07/10/linotype-fontexplorer-x-and-xpcomdll/</link>
		<comments>http://sameshirteveryday.com/2007/07/10/linotype-fontexplorer-x-and-xpcomdll/#comments</comments>
		<pubDate>Tue, 10 Jul 2007 22:45:39 +0000</pubDate>
		<dc:creator>Alex Gorbatchev</dc:creator>
				<category><![CDATA[Misc]]></category>

		<guid isPermaLink="false">http://www.sameshirteveryday.com/2007/07/10/linotype-fontexplorer-x-and-xpcomdll/</guid>
		<description><![CDATA[Linotype FontExplorer X is my recent discovery and I find it to be the best font management tool out there. All of the sudden I started getting &#8220;xpcom.dll&#8221; error on startup. Googling didn&#8217;t turn up anything so I spent some time and narrowed down the problem. The application must be started from its folder, ie [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.linotype.com/fontexplorerX">Linotype FontExplorer X</a> is my recent discovery and I find it to be the best font management tool out there. All of the sudden I started getting &#8220;xpcom.dll&#8221; error on startup. Googling didn&#8217;t turn up anything so I spent some time and narrowed down the problem.</p>
<p>The application must be started from its folder, ie C:\Program Files\Linotype FontExplorer X. It looks that the menu shortcut is created without &#8220;Start in&#8221; filled in. All you have to do is to find the shortcut in the start menu, right click and set &#8220;Start in&#8221; value. After that it should work.</p>
]]></content:encoded>
			<wfw:commentRss>http://sameshirteveryday.com/2007/07/10/linotype-fontexplorer-x-and-xpcomdll/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Dreamhost just made my day</title>
		<link>http://sameshirteveryday.com/2007/06/10/dreamhost-just-made-my-day/</link>
		<comments>http://sameshirteveryday.com/2007/06/10/dreamhost-just-made-my-day/#comments</comments>
		<pubDate>Sun, 10 Jun 2007 20:27:37 +0000</pubDate>
		<dc:creator>Alex Gorbatchev</dc:creator>
				<category><![CDATA[Misc]]></category>

		<guid isPermaLink="false">http://www.sameshirteveryday.com/2007/06/10/dreamhost-just-made-my-day/</guid>
		<description><![CDATA[$ mc I&#8217;m in love with Midnight Commander. In fact, I&#8217;ve been a huge fan of dual panel interface since good old Norton Commander and later a far superior Dos Navigator. Far Manager is the very first thing I install after installing Windows. Midnight Commander makes it a pleasure to navigate remote host but very [...]]]></description>
			<content:encoded><![CDATA[<p><code>$ mc</code></p>
<p>I&#8217;m in love with <a href="http://www.ibiblio.org/mc/images/mc-panels.png">Midnight Commander</a>. In fact, I&#8217;ve been a huge fan of dual panel interface since good old <a href="http://en.wikipedia.org/wiki/Norton_Commander">Norton Commander</a> and later a far superior <a href="http://en.wikipedia.org/wiki/Dos_Navigator">Dos Navigator</a>. <a href="http://en.wikipedia.org/wiki/FAR_Manager">Far Manager</a> is the very first thing I install after installing Windows.</p>
<p>Midnight Commander makes it a pleasure to navigate remote host but very few IPSs actually install it.</p>
]]></content:encoded>
			<wfw:commentRss>http://sameshirteveryday.com/2007/06/10/dreamhost-just-made-my-day/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Growing up</title>
		<link>http://sameshirteveryday.com/2007/06/05/growing-up/</link>
		<comments>http://sameshirteveryday.com/2007/06/05/growing-up/#comments</comments>
		<pubDate>Tue, 05 Jun 2007 07:19:52 +0000</pubDate>
		<dc:creator>Alex Gorbatchev</dc:creator>
				<category><![CDATA[Misc]]></category>

		<guid isPermaLink="false">http://www.sameshirteveryday.com/2007/06/05/growing-up/</guid>
		<description><![CDATA[I didn&#8217;t think this moment would come this soon for me. I&#8217;ve only been playing with Rails and Ruby for about 3 months. I did some growing up as a Rails developer last night when I had to change Rails core for Noobkit. Testing &#8216;production&#8217; at 3am right before I &#8220;quickly&#8221; put up the new [...]]]></description>
			<content:encoded><![CDATA[<p>I didn&#8217;t think this moment would come this soon for me. I&#8217;ve only been playing with Rails and Ruby for about 3 months.</p>
<p>I did some growing up as a Rails developer last night when I had to change Rails core for <a href="http://www.noobkit.com">Noobkit</a>.</p>
<p>Testing &#8216;production&#8217; at 3am right before I &#8220;quickly&#8221; put up the new build brought up a problem with page caching. <a href="http://www.noobkit.com">Noobkit</a> is using URLs which include &#8216;::&#8217; characters in their paths and silly Rails tries to create fragment cache files with those characters in the path.</p>
<p>That resulted in an obscure and very non descriptive error <code>Errno::EINVAL</code>. This had to be fixed, and so it was:</p>
<pre name="code" class="ruby">module NoobkitCaching
  def self.append_features(base)
    base.extend(ClassMethods)
  end

  module ClassMethods
  private
    def page_cache_file(path)
      super.gsub(/::|\^/, '')
    end
  end
end

# and then in environment.rb
ActionController::Base.send :include, NoobkitCaching
</pre>
]]></content:encoded>
			<wfw:commentRss>http://sameshirteveryday.com/2007/06/05/growing-up/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>A little bit of restyling</title>
		<link>http://sameshirteveryday.com/2007/05/16/a-little-bit-of-restyling/</link>
		<comments>http://sameshirteveryday.com/2007/05/16/a-little-bit-of-restyling/#comments</comments>
		<pubDate>Thu, 17 May 2007 01:55:58 +0000</pubDate>
		<dc:creator>Alex Gorbatchev</dc:creator>
				<category><![CDATA[Misc]]></category>

		<guid isPermaLink="false">http://www.sameshirteveryday.com/2007/05/16/a-little-bit-of-restyling/</guid>
		<description><![CDATA[A little bit of restyling goes a long way. I love the Simpa theme from ifelse.co.uk, but it seems to be everywhere these days. I suppose that&#8217;s the price of success. A little bit of damask, a new font for those on Vista and it&#8217;s done. Â  If you want some for your own site, [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: left">A little bit of restyling goes a long way. I love the <a href="http://ifelse.co.uk/simpla">Simpa</a> theme from <a href="http://ifelse.co.uk/">ifelse.co.uk</a>, but it seems to be everywhere these days. I suppose that&#8217;s the price of success. A little bit of damask, a new font for those on Vista and it&#8217;s done.</p>
<p>Â <a href="http://www.flickr.com/photo_zoom.gne?id=501537242&amp;size=o"><img src="http://farm1.static.flickr.com/230/501537242_567103301e_m.jpg" height="160" width="240" /></a></p>
<p>If you want some for your own site, <a href="http://www.theinspirationgallery.com/wallpaper/damask/wp_damask01.htm">this page</a> has almost 300 tileable damask patterns.</p>
]]></content:encoded>
			<wfw:commentRss>http://sameshirteveryday.com/2007/05/16/a-little-bit-of-restyling/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Dual screen in Vista</title>
		<link>http://sameshirteveryday.com/2007/05/12/dual-screen-in-vista/</link>
		<comments>http://sameshirteveryday.com/2007/05/12/dual-screen-in-vista/#comments</comments>
		<pubDate>Sat, 12 May 2007 21:31:24 +0000</pubDate>
		<dc:creator>Alex Gorbatchev</dc:creator>
				<category><![CDATA[Misc]]></category>

		<guid isPermaLink="false">http://www.sameshirteveryday.com/2007/05/12/dual-screen-in-vista/</guid>
		<description><![CDATA[I&#8217;ve recently upgraded my workstation at home and among other things installed Vista. On XP I&#8217;ve always used UltraMon but on Vista it proved to be somewhat less than stable and I had to figure out something else. A radical (for me) solution was found in form of placing task bar in the middle of [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://farm1.static.flickr.com/210/495248638_b5a1c4ffac_b.jpg" rel="lightbox" title="Vista dual screen"><img src="http://farm1.static.flickr.com/210/495248638_b5a1c4ffac.jpg" /></a></p>
<p>I&#8217;ve recently upgraded my workstation at home and among other things installed Vista. On XP I&#8217;ve always used <a href="http://www.realtimesoft.com/ultramon/">UltraMon</a> but on Vista it proved to be somewhat less than stable and I had to figure out something else.<span id="more-7"></span></p>
<p>A radical (for me) solution was found in form of placing task bar in the middle of the screen. It took a few days getting used to it, but I absolutely love it now. It provides a good alternative to having two task bars at the bottom of each display which UltraMon gives.</p>
<p>I also moved the Sidebar on the same display. Combination of both has resulted in somewhat reduced desktop space, but I don&#8217;t mind it at all. I turned the clock off in the task bar and instead using more noticeable option on the Sidebar.</p>
]]></content:encoded>
			<wfw:commentRss>http://sameshirteveryday.com/2007/05/12/dual-screen-in-vista/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Hello world!</title>
		<link>http://sameshirteveryday.com/2007/05/12/hello-world/</link>
		<comments>http://sameshirteveryday.com/2007/05/12/hello-world/#comments</comments>
		<pubDate>Sat, 12 May 2007 18:46:58 +0000</pubDate>
		<dc:creator>Alex Gorbatchev</dc:creator>
				<category><![CDATA[Misc]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[&#8230; Ruby on Rails. That&#8217;s right, I&#8217;m doing most of my off hours development in Ruby on Rails now. Of course you don&#8217;t care, and why should you? You aren&#8217;t one of three people who know me. I just think it&#8217;s very editorial of me to address the crowd as if I&#8217;m a famous .NET [...]]]></description>
			<content:encoded><![CDATA[<p>&#8230; Ruby on Rails.</p>
<p>That&#8217;s right, I&#8217;m doing most of my off hours development in Ruby on Rails now. Of course you don&#8217;t care, and why should you? You aren&#8217;t one of three people who know me. I just think it&#8217;s very editorial of me to address the crowd as if I&#8217;m a <a href="http://weblogs.asp.net/scottgu/">famous</a> <a href="http://www.codinghorror.com/blog/">.NET</a> <a href="http://www.hanselman.com/blog/">celebrity</a>. And by &#8220;crowd&#8221; I mean you.<span id="more-1"></span></p>
<p>Speaking of, what are you doing here? Anyways, let me continue with my story&#8230;</p>
<p>Somewhere around, um, whenever the hell .NET beta 1 was released I started poking C# and pokable it was. It was also very huggable and cozy, fast and cute and when combined with Visual Studio 2003 it was the best thing since sliced bread. I swear, if I could toast, put Nutella and banana on C#, I would do that in a second.</p>
<p>Being a web developer I spend most of my time in <a href="http://www.asp.net">ASP.NET</a> infrequently delving into Windows applications for making small utilities which bring back good old memories of <a href="http://en.wikipedia.org/wiki/Borland_Delphi">Borland Delphi</a>.</p>
<p>A few years have passed, many web sites have been built. A pattern of development has emerged which can be summarized in 3 easy steps.</p>
<ol>
<li>Figure out what your site should do</li>
<li>Built a base framework</li>
<li>Build a site on top of that framework</li>
</ol>
<p>I think it&#8217;s a no brainer to see what I&#8217;m driving at. The dreaded, but unavoidable step number two. And it isn&#8217;t like you can reuse the framework you wrote last time around either. By the time you are done with one project, you probably realize that the framework you wrote isn&#8217;t as nice and flexible as you have invisioned it so next time around you going to do a much better job.</p>
<p>If you are still reading, I have got to give you some credit &#8211; I&#8217;m not a very easy person to read&#8230; or talk to.</p>
<p>Moving on. The framework problem brings up a whole other issue &#8211; procrastination. How many times have you found yourself going on to create a set of classes, or a library to do one simple thing? Oh, it must be flexible! What if in the future I want it to be able to do this thing other as well? Soon after, instead of working on the project, you are working on a library to support the framework that will in turn power the project. Been there, done that.</p>
<h3>Doing rails&#8230;</h3>
<p>No, I&#8217;m talking about <a href="http://www.rubyonrails.org/">Ruby on Rails</a>. Har, har, har! That was hilarious! Sometimes I kill myself&#8230; By the end of 2006 Rails was the it thing to learn, hype is at its peak, <a href="http://en.wikipedia.org/wiki/DHH">DHH</a> is god amongst people. It was enough of an eye sore that I finally decided to give it a try.</p>
<p>A few very painful days later I finally conditioned myself enough to type &#8220;end&#8221; instead of a curly at least half the time. Just like everyone else, I start with the infamous <a href="http://media.rubyonrails.org/video/rails_take2_with_sound.mov">&#8220;omg, look, I have can write a blog in 15 minutes&#8221;</a> video. Stuff like this can give anyone who spent enough time writing SQL code wood. It&#8217;s like developer&#8217;s porn with an extremely irritating voice narrating it and no music.</p>
<p>After about a month of spending an hour or two every day I no longer had to look in the manual to help me with every other line. It&#8217;s hard enough to pick up development in a completely new framework, it&#8217;s even harder to do that in a language that I&#8217;ve never seen before. Plus, the fact that my editor doesn&#8217;t look as pretty as the on in that video makes it so much worse.</p>
<p>Are you still reading? Holy crap, what is wrong with you? Don&#8217;t you have better things to do?</p>
<p>Where was I? Oh&#8230;right, by this time, being a good little developer that I am, the plans of the next big project that will make me <a href="http://en.wikipedia.org/wiki/Roman_Abramovich">filthy rich</a> or <a href="http://en.wikipedia.org/wiki/Chad_Hurley">just rich</a> are in motion and of course I&#8217;m writing it in Rails in my spare time. All of a sudden, a <a href="http://www.radicalbehavior.com/5-question-interview-with-twitter-developer-alex-payne/">scare article</a> comes out claiming Rails to be a slow dog&#8230; or dog slow&#8230; or both. I <a href="http://en.wikipedia.org/wiki/Don%27t_Panic_%28Hitchhiker%27s_Guide_to_the_Galaxy%29">panic</a> and decide to go back to ASP.NET.</p>
<p>Why am I telling you all this? Because this was the turning moment for me. By that time my Rails application is was still pretty small, maybe 6-8 tables, a couple of nested trees, some registration and a few test cases. Nothing special. When I sat down and created a new web site in Visual Studio .NET, I started off by planing my framework.</p>
<p>Holy crap, I&#8217;m writing a framework again! But that didn&#8217;t stop, oh no! What stopped me was when I a few days later I had to figure out what I need to rewrite in .NET to carry over few features that I have in my Rails application. The thought of having to wire models up with SQL made my <a href="http://www.youtube.com/watch?v=slD6k4zzPBI">nuts hurt</a>. What am I going to do about all the stuff I get for free from installing a couple of plugins and gems? Do I have to rewrite all of it or will I find something to replace it? Will I have to struggle to integrate it?</p>
<p>This is getting pretty long and I think it&#8217;s time to split this up into <a href="http://www.sameshirteveryday.com/2007/05/12/framework-vs-platform/">another post</a> because I&#8217;m want to talk about fundamental differences between ASP.NET and Rails.</p>
]]></content:encoded>
			<wfw:commentRss>http://sameshirteveryday.com/2007/05/12/hello-world/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
<enclosure url="http://media.rubyonrails.org/video/rails_take2_with_sound.mov" length="54364199" type="video/quicktime" />
		</item>
	</channel>
</rss>

