<?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>Ruby on Rails UI Designer &#124; Ruby on Rails Frontend Developer</title>
	<atom:link href="http://torsd.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://torsd.wordpress.com</link>
	<description>Just another WordPress.com weblog</description>
	<lastBuildDate>Wed, 23 Jun 2010 07:41:19 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='torsd.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Ruby on Rails UI Designer &#124; Ruby on Rails Frontend Developer</title>
		<link>http://torsd.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://torsd.wordpress.com/osd.xml" title="Ruby on Rails UI Designer &#124; Ruby on Rails Frontend Developer" />
	<atom:link rel='hub' href='http://torsd.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Odd distribute/setuptools issue</title>
		<link>http://torsd.wordpress.com/2010/06/23/odd-distributesetuptools-issue/</link>
		<comments>http://torsd.wordpress.com/2010/06/23/odd-distributesetuptools-issue/#comments</comments>
		<pubDate>Wed, 23 Jun 2010 07:41:19 +0000</pubDate>
		<dc:creator>torsd</dc:creator>
				<category><![CDATA[Python]]></category>

		<guid isPermaLink="false">http://torsd.wordpress.com/?p=39</guid>
		<description><![CDATA[’m using the system python 2.6 install on Snow Leopard, and occasionally get this when doing instally-type things: /Library/Python/2.6/site-packages/virtualenvwrapper/hook_loader.py:16: UserWarning: Module pkg_resources was already imported from /System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/pkg_resources.pyc, but /Library/Python/2.6/site-packages is being added to sys.path import pkg_resources /Library/Python/2.6/site-packages/virtualenvwrapper/hook_loader.py:16: UserWarning: Module site was already imported from /System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site.pyc, but /Library/Python/2.6/site-packages is being added to sys.path import pkg_resources I [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=torsd.wordpress.com&amp;blog=11645866&amp;post=39&amp;subd=torsd&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>’m using the system python 2.6 install on Snow Leopard, and  occasionally get this when doing instally-type things:</p>
<pre>/Library/Python/2.6/site-packages/virtualenvwrapper/hook_loader.py:16: UserWarning: Module pkg_resources was already imported from /System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/pkg_resources.pyc, but /Library/Python/2.6/site-packages is being added to sys.path
 import pkg_resources
/Library/Python/2.6/site-packages/virtualenvwrapper/hook_loader.py:16: UserWarning: Module site was already imported from /System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site.pyc, but /Library/Python/2.6/site-packages is being added to sys.path
 import pkg_resources</pre>
<p>I try to be good about using virtualenv and pip and whatnot, but I  probably slipped up somewhere.  Either way, I finally got tired of  seeing those warnings all the time and actually read them.  Throwing  caution to the wind, I deleted <code>/System/​Library/​Frameworks/​ Python.framework/​Versions/​2.6/​Extras/​lib/​python/​pkg_resources.pyc</code> and everything seems to be working</p>
<p>Source http://helveticascenario.net/blog/2010/02/odd-distributesetuptools-issue/</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/torsd.wordpress.com/39/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/torsd.wordpress.com/39/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/torsd.wordpress.com/39/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/torsd.wordpress.com/39/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/torsd.wordpress.com/39/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/torsd.wordpress.com/39/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/torsd.wordpress.com/39/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/torsd.wordpress.com/39/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/torsd.wordpress.com/39/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/torsd.wordpress.com/39/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/torsd.wordpress.com/39/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/torsd.wordpress.com/39/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/torsd.wordpress.com/39/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/torsd.wordpress.com/39/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=torsd.wordpress.com&amp;blog=11645866&amp;post=39&amp;subd=torsd&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://torsd.wordpress.com/2010/06/23/odd-distributesetuptools-issue/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c77e31af70e4b10c124d37b5a452eaeb?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">torsd</media:title>
		</media:content>
	</item>
		<item>
		<title>Share a session with mutliple subdomains in Rails</title>
		<link>http://torsd.wordpress.com/2010/05/31/share-a-session-with-mutliple-subdomains-in-rails/</link>
		<comments>http://torsd.wordpress.com/2010/05/31/share-a-session-with-mutliple-subdomains-in-rails/#comments</comments>
		<pubDate>Mon, 31 May 2010 07:38:24 +0000</pubDate>
		<dc:creator>torsd</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://torsd.wordpress.com/?p=35</guid>
		<description><![CDATA[Sharing a Session between multiple subdomains/rails-apps is quite easy. Make shure you&#8217;re using the ActiveRecord (db-based) session store and all instances share the same secret (- obviously the same db, too). In config/environment.rb (config-block): view source print? 1.config.action_controller.session_store = :active_record_store #store session in db 2.config.action_controller.session = { 3. :session_key =&#62; '_MYWEBAPP', #has to mach over [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=torsd.wordpress.com&amp;blog=11645866&amp;post=35&amp;subd=torsd&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<div>
<p>Sharing a Session between multiple subdomains/rails-apps is quite  easy.</p>
<p>Make shure you&#8217;re using the ActiveRecord (db-based) session store and  all instances share the same secret (- obviously the same db, too). In  config/environment.rb (config-block):</p>
<div id="highlighter_853209">
<div>
<div><a title="view source" href="http://skrrl.org/blog/show/rails_session_multiple_subdomains#viewSource">view  source</a></p>
<p><a title="print" href="http://skrrl.org/blog/show/rails_session_multiple_subdomains#printSource">print</a><a title="?" href="http://skrrl.org/blog/show/rails_session_multiple_subdomains#about">?</a></p>
</div>
</div>
<div>
<div><code>1.</code><code>config.action_controller.session_store = </code><code>:active_record_store</code> <code>#store session in db</code></div>
<div><code>2.</code><code>config.action_controller.session  = {</code></div>
<div><code>3.</code><code> </code><code>:session_key</code> <code>=&gt; </code><code>'_MYWEBAPP'</code><code>, </code><code>#has to mach over all instances</code></div>
<div><code>4.</code><code> </code><code>:secret</code> <code>=&gt; </code><code>'mysecretmysecretmysecret'</code> <code>#has to mach over all instances</code></div>
<div><code>5.</code><code>}</code></div>
</div>
</div>
<p>Tell rails to set the session-cookie on &#8220;all subdomains&#8221; by adding  this line to config/environments/myenvironment.rb. Note the leading dot  in &#8220;.mydomain.com&#8221;.</p>
<div id="highlighter_133862">
<div>
<div><a title="view source" href="http://skrrl.org/blog/show/rails_session_multiple_subdomains#viewSource">view  source</a></p>
<p><a title="print" href="http://skrrl.org/blog/show/rails_session_multiple_subdomains#printSource">print</a><a title="?" href="http://skrrl.org/blog/show/rails_session_multiple_subdomains#about">?</a></p>
</div>
</div>
<div>
<div><code>1.</code><code>ActionController::Base.session = { </code><code>:domain</code> <code>=&gt; </code><code>'.mydomain.com'</code> <code>}</code></div>
</div>
</div>
<p>(Apprently this works only for rails &gt;= 2.3)</p>
<p>http://skrrl.org/blog/show/rails_session_multiple_subdomains</p>
</div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/torsd.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/torsd.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/torsd.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/torsd.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/torsd.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/torsd.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/torsd.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/torsd.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/torsd.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/torsd.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/torsd.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/torsd.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/torsd.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/torsd.wordpress.com/35/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=torsd.wordpress.com&amp;blog=11645866&amp;post=35&amp;subd=torsd&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://torsd.wordpress.com/2010/05/31/share-a-session-with-mutliple-subdomains-in-rails/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c77e31af70e4b10c124d37b5a452eaeb?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">torsd</media:title>
		</media:content>
	</item>
		<item>
		<title>Paperclip, Amazon s3 &#8211; Stack Level Too Deep</title>
		<link>http://torsd.wordpress.com/2010/02/26/paperclip-amazon-s3-stack-level-too-deep/</link>
		<comments>http://torsd.wordpress.com/2010/02/26/paperclip-amazon-s3-stack-level-too-deep/#comments</comments>
		<pubDate>Fri, 26 Feb 2010 04:33:13 +0000</pubDate>
		<dc:creator>torsd</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://torsd.wordpress.com/?p=31</guid>
		<description><![CDATA[/Library/Ruby/Gems/1.8/gems/paperclip-2.3.1.1/lib/paperclip/interpolations.rb:31:in `interpolate' /Library/Ruby/Gems/1.8/gems/paperclip-2.3.1.1/lib/paperclip/interpolations.rb:30:in `gsub' /Library/Ruby/Gems/1.8/gems/paperclip-2.3.1.1/lib/paperclip/interpolations.rb:30:in `interpolate' /Library/Ruby/Gems/1.8/gems/activerecord-2.3.5/lib/active_record/base.rb:2036:in `inject' /Library/Ruby/Gems/1.8/gems/paperclip-2.3.1.1/lib/paperclip/interpolations.rb:29:in `each' /Library/Ruby/Gems/1.8/gems/paperclip-2.3.1.1/lib/paperclip/interpolations.rb:29:in `inject' /Library/Ruby/Gems/1.8/gems/paperclip-2.3.1.1/lib/paperclip/interpolations.rb:29:in `interpolate' /Library/Ruby/Gems/1.8/gems/paperclip-2.3.1.1/lib/paperclip/attachment.rb:392:in `interpolate' /Library/Ruby/Gems/1.8/gems/paperclip-2.3.1.1/lib/paperclip/attachment.rb:113:in `path' /Library/Ruby/Gems/1.8/gems/paperclip-2.3.1.1/lib/paperclip/storage.rb:156:in `s3_path_url' /Library/Ruby/Gems/1.8/gems/paperclip-2.3.1.1/lib/paperclip/interpolations.rb:31:in `send' /Library/Ruby/Gems/1.8/gems/paperclip-2.3.1.1/lib/paperclip/interpolations.rb:31:in `interpolate' /Library/Ruby/Gems/1.8/gems/paperclip-2.3.1.1/lib/paperclip/interpolations.rb:30:in `gsub' /Library/Ruby/Gems/1.8/gems/paperclip-2.3.1.1/lib/paperclip/interpolations.rb:30:in `interpolate' /Library/Ruby/Gems/1.8/gems/activerecord-2.3.5/lib/active_record/base.rb:2036:in `inject' /Library/Ruby/Gems/1.8/gems/paperclip-2.3.1.1/lib/paperclip/interpolations.rb:29:in `each' /Library/Ruby/Gems/1.8/gems/paperclip-2.3.1.1/lib/paperclip/interpolations.rb:29:in `inject' /Library/Ruby/Gems/1.8/gems/paperclip-2.3.1.1/lib/paperclip/interpolations.rb:29:in `interpolate' /Library/Ruby/Gems/1.8/gems/paperclip-2.3.1.1/lib/paperclip/attachment.rb:392:in `interpolate' /Library/Ruby/Gems/1.8/gems/paperclip-2.3.1.1/lib/paperclip/attachment.rb:104:in `url' /Library/Ruby/Gems/1.8/gems/paperclip-2.3.1.1/lib/paperclip/interpolations.rb:46:in `url' /Library/Ruby/Gems/1.8/gems/paperclip-2.3.1.1/lib/paperclip/interpolations.rb:31:in `send' /Library/Ruby/Gems/1.8/gems/paperclip-2.3.1.1/lib/paperclip/interpolations.rb:31:in `interpolate' /Library/Ruby/Gems/1.8/gems/paperclip-2.3.1.1/lib/paperclip/interpolations.rb:30:in `gsub' /Library/Ruby/Gems/1.8/gems/paperclip-2.3.1.1/lib/paperclip/interpolations.rb:30:in `interpolate' /Library/Ruby/Gems/1.8/gems/activerecord-2.3.5/lib/active_record/base.rb:2036:in `inject' /Library/Ruby/Gems/1.8/gems/paperclip-2.3.1.1/lib/paperclip/interpolations.rb:29:in `each' I [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=torsd.wordpress.com&amp;blog=11645866&amp;post=31&amp;subd=torsd&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<pre>
<pre><code>/Library/Ruby/Gems/1.8/gems/paperclip-2.3.1.1/lib/paperclip/interpolations.rb:31:in `interpolate'</code>
<code>/Library/Ruby/Gems/1.8/gems/paperclip-2.3.1.1/lib/paperclip/interpolations.rb:30:in `gsub'</code>
<code>/Library/Ruby/Gems/1.8/gems/paperclip-2.3.1.1/lib/paperclip/interpolations.rb:30:in `interpolate'</code>
<code>/Library/Ruby/Gems/1.8/gems/activerecord-2.3.5/lib/active_record/base.rb:2036:in `inject'</code>
<code>/Library/Ruby/Gems/1.8/gems/paperclip-2.3.1.1/lib/paperclip/interpolations.rb:29:in `each'</code>
<code>/Library/Ruby/Gems/1.8/gems/paperclip-2.3.1.1/lib/paperclip/interpolations.rb:29:in `inject'</code>
<code>/Library/Ruby/Gems/1.8/gems/paperclip-2.3.1.1/lib/paperclip/interpolations.rb:29:in `interpolate'</code>
<code>/Library/Ruby/Gems/1.8/gems/paperclip-2.3.1.1/lib/paperclip/attachment.rb:392:in `interpolate'</code>
<code>/Library/Ruby/Gems/1.8/gems/paperclip-2.3.1.1/lib/paperclip/attachment.rb:113:in `path'</code>
<code>/Library/Ruby/Gems/1.8/gems/paperclip-2.3.1.1/lib/paperclip/storage.rb:156:in `s3_path_url'</code>
<code>/Library/Ruby/Gems/1.8/gems/paperclip-2.3.1.1/lib/paperclip/interpolations.rb:31:in `send'</code>
<code>/Library/Ruby/Gems/1.8/gems/paperclip-2.3.1.1/lib/paperclip/interpolations.rb:31:in `interpolate'</code>
<code>/Library/Ruby/Gems/1.8/gems/paperclip-2.3.1.1/lib/paperclip/interpolations.rb:30:in `gsub'</code>
<code>/Library/Ruby/Gems/1.8/gems/paperclip-2.3.1.1/lib/paperclip/interpolations.rb:30:in `interpolate'</code>
<code>/Library/Ruby/Gems/1.8/gems/activerecord-2.3.5/lib/active_record/base.rb:2036:in `inject'</code>
<code>/Library/Ruby/Gems/1.8/gems/paperclip-2.3.1.1/lib/paperclip/interpolations.rb:29:in `each'</code>
<code>/Library/Ruby/Gems/1.8/gems/paperclip-2.3.1.1/lib/paperclip/interpolations.rb:29:in `inject'</code>
<code>/Library/Ruby/Gems/1.8/gems/paperclip-2.3.1.1/lib/paperclip/interpolations.rb:29:in `interpolate'</code>
<code>/Library/Ruby/Gems/1.8/gems/paperclip-2.3.1.1/lib/paperclip/attachment.rb:392:in `interpolate'</code>
<code>/Library/Ruby/Gems/1.8/gems/paperclip-2.3.1.1/lib/paperclip/attachment.rb:104:in `url'</code>
<code>/Library/Ruby/Gems/1.8/gems/paperclip-2.3.1.1/lib/paperclip/interpolations.rb:46:in `url'</code>
<code>/Library/Ruby/Gems/1.8/gems/paperclip-2.3.1.1/lib/paperclip/interpolations.rb:31:in `send'</code>
<code>/Library/Ruby/Gems/1.8/gems/paperclip-2.3.1.1/lib/paperclip/interpolations.rb:31:in `interpolate'</code>
<code>/Library/Ruby/Gems/1.8/gems/paperclip-2.3.1.1/lib/paperclip/interpolations.rb:30:in `gsub'</code>
<code>/Library/Ruby/Gems/1.8/gems/paperclip-2.3.1.1/lib/paperclip/interpolations.rb:30:in `interpolate'</code>
<code>/Library/Ruby/Gems/1.8/gems/activerecord-2.3.5/lib/active_record/base.rb:2036:in `inject'</code>
<code>/Library/Ruby/Gems/1.8/gems/paperclip-2.3.1.1/lib/paperclip/interpolations.rb:29:in `each'</code></pre>
<p><code></p>
<p></code>I loved using the Rails plugin Paperclip along with Amazon’s Simple Storage Service (’s3′) to do file attachments and uploads in Ruby on Rails.</p>
<p>Here are <strong>some of the missing steps</strong> from using the Paperclip<a href="http://github.com/thoughtbot/paperclip/tree/master"> instructions at github</a> and other places.</p>
<p><strong>1) Your model (the one you are attaching file to) will need something like this:</strong></p>
<p>has_attached_file :profile_pic,<br />
:styles =&gt; { :medium =&gt; “300×300&gt;”, :thumb =&gt; “100×100&gt;” },<br />
<em>:storage =&gt; :s3,<br />
:s3_credentials =&gt; “#{RAILS_ROOT}/config/amazon_s3.yml”,<br />
:path =&gt; “:class/:id/:style.:extension”</em></p>
<p>leaving out the :path, caused a recursive ’stack level too deep’ error for me.</p>
<p><strong>2) add <em>gem.config “right_aws”</em> to your environmnent.rb file.</strong></p>
<p>Terminal: ’sudo rake gems:install’ to install the gem</p>
<p><strong>3) The default <em>/config/amazon_sq.ym</em>l file misnames ‘bucket_name’, and needs to be called just ‘bucket’.</strong></p>
<p>But overall, this is an amazing solution for file uploads in Rails.  Applause to <a href="http://thoughtbot.com/">thoughtbot</a>, amazon, and the open source community that has worked on this.</pre>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/torsd.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/torsd.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/torsd.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/torsd.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/torsd.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/torsd.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/torsd.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/torsd.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/torsd.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/torsd.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/torsd.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/torsd.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/torsd.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/torsd.wordpress.com/31/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=torsd.wordpress.com&amp;blog=11645866&amp;post=31&amp;subd=torsd&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://torsd.wordpress.com/2010/02/26/paperclip-amazon-s3-stack-level-too-deep/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c77e31af70e4b10c124d37b5a452eaeb?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">torsd</media:title>
		</media:content>
	</item>
		<item>
		<title>Related `select` Dropdowns in Rails Views</title>
		<link>http://torsd.wordpress.com/2010/02/17/related-select-dropdowns-in-rails-views/</link>
		<comments>http://torsd.wordpress.com/2010/02/17/related-select-dropdowns-in-rails-views/#comments</comments>
		<pubDate>Wed, 17 Feb 2010 09:33:54 +0000</pubDate>
		<dc:creator>torsd</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://torsd.wordpress.com/?p=28</guid>
		<description><![CDATA[What you do is create a select tag with the “select” method like so: (using the client/project scenario) f.select(:client_id, The next value you pass to the select method has to be an array of text/value pairs like this: [ [ "Jason Johnson", 1], ["Trey Piepmeier", 2], ["Royall", 3] ] In order to create this array, [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=torsd.wordpress.com&amp;blog=11645866&amp;post=28&amp;subd=torsd&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<blockquote><p>What you do is create a select tag with the “<code>select</code>” method like so: (using the client/project scenario)</p>
<p><code>f.select(:client_id,</code></p>
<p>The next value you pass to the select method has to be an array of text/value pairs</p>
<p>like this: <code>[ [ "Jason Johnson", 1], ["Trey Piepmeier", 2], ["Royall", 3] ]</code></p>
<p>In order to create this array, you do a find on your clients table and use Ruby’s “<code>collect</code>” method.</p>
<p>like so:</p>
<p><code>Client.find(:all).collect {|c| [ c.name, c.id ]}</code></p>
<p>So, altogether now:</p></blockquote>
<pre><code>f.select(:client_id, Client.find(:all).collect {|c| [ c.name, c.id ] })
</code></pre>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/torsd.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/torsd.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/torsd.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/torsd.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/torsd.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/torsd.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/torsd.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/torsd.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/torsd.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/torsd.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/torsd.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/torsd.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/torsd.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/torsd.wordpress.com/28/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=torsd.wordpress.com&amp;blog=11645866&amp;post=28&amp;subd=torsd&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://torsd.wordpress.com/2010/02/17/related-select-dropdowns-in-rails-views/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c77e31af70e4b10c124d37b5a452eaeb?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">torsd</media:title>
		</media:content>
	</item>
		<item>
		<title>Kill a process using a particular port in ubuntu</title>
		<link>http://torsd.wordpress.com/2010/02/15/kill-a-process-using-a-particular-port-in-ubuntu/</link>
		<comments>http://torsd.wordpress.com/2010/02/15/kill-a-process-using-a-particular-port-in-ubuntu/#comments</comments>
		<pubDate>Mon, 15 Feb 2010 08:50:42 +0000</pubDate>
		<dc:creator>torsd</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://torsd.wordpress.com/2010/02/15/kill-a-process-using-a-particular-port-in-ubuntu/</guid>
		<description><![CDATA[How to Find and Kill a Process that is Using a Particular Port in Ubuntu 26Feb09 I had a problem with tomcat, it says that port 8080 is already in use so I can not use it … What I did ? 1- Find what application/process is using the pro, type: sudo netstat -lpn &#124;grep :8080 [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=torsd.wordpress.com&amp;blog=11645866&amp;post=27&amp;subd=torsd&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<div>
<h3><a title="Permanent Link to &quot;How to Find and Kill a Process that is Using a Particular Port in Ubuntu&quot;" rel="bookmark" href="http://geekbrigade.wordpress.com/2009/02/26/how-to-find-and-kill-a-process-that-is-using-a-particular-port-in-ubuntu/">How to Find and Kill a Process that is Using a Particular Port in Ubuntu</a></h3>
<div>26Feb09</div>
<p><!-- The following two sections are for a noteworthy plugin currently in alpha. They'll get cleaned up and integrated better --></div>
<p>I had a problem with tomcat, it says that port 8080 is already in use so I can not use it …</p>
<p>What I did<strong> ?</strong></p>
<p><strong>1- Find what application/process is using the pro, type:</strong></p>
<p><code>sudo netstat -lpn |grep :8080</code></p>
<p>and press Enter.</p>
<p>You will get an output similar to this one</p>
<p><code>tcp6       0      0 :::8080                 :::*                    LISTEN      6782/java</code></p>
<p><strong>2- I have got the process Id, which is 6782, now this is the process that is using port 8080.</strong></p>
<p><strong>3- Kill the process, type:</strong>kill 6782</p>
<p><code>kill 6782</code></p>
<p>and now port 8080 is free.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/torsd.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/torsd.wordpress.com/27/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/torsd.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/torsd.wordpress.com/27/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/torsd.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/torsd.wordpress.com/27/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/torsd.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/torsd.wordpress.com/27/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/torsd.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/torsd.wordpress.com/27/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/torsd.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/torsd.wordpress.com/27/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/torsd.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/torsd.wordpress.com/27/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=torsd.wordpress.com&amp;blog=11645866&amp;post=27&amp;subd=torsd&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://torsd.wordpress.com/2010/02/15/kill-a-process-using-a-particular-port-in-ubuntu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c77e31af70e4b10c124d37b5a452eaeb?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">torsd</media:title>
		</media:content>
	</item>
		<item>
		<title>no such file to load — hmac-sha1</title>
		<link>http://torsd.wordpress.com/2010/02/15/no-such-file-to-load-%e2%80%94-hmac-sha1/</link>
		<comments>http://torsd.wordpress.com/2010/02/15/no-such-file-to-load-%e2%80%94-hmac-sha1/#comments</comments>
		<pubDate>Mon, 15 Feb 2010 07:17:37 +0000</pubDate>
		<dc:creator>torsd</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://torsd.wordpress.com/2010/02/15/no-such-file-to-load-%e2%80%94-hmac-sha1/</guid>
		<description><![CDATA[no such file to load — hmac-sha1 July 3rd, 2009 by Radar When you encounter the above error, it means you’re missing the ruby-openid ruby-hmac gem. I couldn’t find anything on google that clearly stated this, so I’m posting it here as a reminder for myself and others. Thanks to the comments for clarifying the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=torsd.wordpress.com&amp;blog=11645866&amp;post=26&amp;subd=torsd&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<div id="post-634">
<h2><a title="Permanent Link: no such file to load — hmac-sha1" rel="bookmark" href="http://ryanbigg.com/2009/07/no-such-file-to-load-hmac-sha1/">no such file to load — hmac-sha1</a></h2>
<p>July 3rd, 2009 by Radar</p>
<div>
<p>When you encounter the above error, it means you’re missing the ruby-openid ruby-hmac gem. I couldn’t find anything on google that clearly stated this, so I’m posting it here as a reminder for myself and others.</p>
<p>Thanks to the comments for clarifying the gem needed.</p>
<p> This entry was posted 												on Friday, July 3rd, 2009 at 4:31 pm						and is filed under <a title="View all posts in Cool Shit" rel="category tag" href="http://ryanbigg.com/category/cool-shit/">Cool Shit</a>,  <a title="View all posts in Uncategorized" rel="category tag" href="http://ryanbigg.com/category/uncategorized/">Uncategorized</a>. 						You can follow any responses to this entry through the <a href="http://ryanbigg.com/2009/07/no-such-file-to-load-hmac-sha1/feed/">RSS 2.0</a> feed.  													You can <a href="http://ryanbigg.com/2009/07/no-such-file-to-load-hmac-sha1/#respond">leave a response</a>, or <a rel="trackback" href="http://ryanbigg.com/2009/07/no-such-file-to-load-hmac-sha1/trackback/">trackback</a> from your own site. </p>
<h2><a title="Permanent Link: no such file to load — hmac-sha1" rel="bookmark" href="http://ryanbigg.com/2009/07/no-such-file-to-load-hmac-sha1/">no such file to load — hmac-sha1</a></h2>
</div>
</div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/torsd.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/torsd.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/torsd.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/torsd.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/torsd.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/torsd.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/torsd.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/torsd.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/torsd.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/torsd.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/torsd.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/torsd.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/torsd.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/torsd.wordpress.com/26/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=torsd.wordpress.com&amp;blog=11645866&amp;post=26&amp;subd=torsd&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://torsd.wordpress.com/2010/02/15/no-such-file-to-load-%e2%80%94-hmac-sha1/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c77e31af70e4b10c124d37b5a452eaeb?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">torsd</media:title>
		</media:content>
	</item>
		<item>
		<title>Setting up a remote mysql DB</title>
		<link>http://torsd.wordpress.com/2010/02/15/setting-up-a-remote-mysql-db/</link>
		<comments>http://torsd.wordpress.com/2010/02/15/setting-up-a-remote-mysql-db/#comments</comments>
		<pubDate>Mon, 15 Feb 2010 06:20:56 +0000</pubDate>
		<dc:creator>torsd</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://torsd.wordpress.com/?p=23</guid>
		<description><![CDATA[By default, MySQL database server remote access disabled for security reasons. However, some time you need to provide the remote access to database server from home or from web server. Solution1 Step # 1: Login over ssh First, login over ssh to remote MySQL database server Step # 2: Enable networking Once connected you need [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=torsd.wordpress.com&amp;blog=11645866&amp;post=23&amp;subd=torsd&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>By default, MySQL database server remote access disabled for security reasons. However, some time you need to provide the remote access to database server from home or from web server.</p>
<p>Solution1</p>
<p>Step # 1: Login over ssh</p>
<p>First, login over ssh to remote MySQL database server</p>
<p>Step # 2: Enable networking</p>
<p>Once connected you need edit the mysql configuration file<br />
my.cfg using text editor such as vi.</p>
<p>In Debian Linux file is located at /etc/mysql/my.cnf</p>
<p># vi /etc/my.cnf</p>
<p>Step # 3: Once file open, locate line that read as [mysqld]</p>
<p>Make sure line skip-networking is commented (or remove line) and add following line</p>
<p>bind-address=YOUR-SERVER-IP</p>
<p>For example, if your MySQL server IP is 172.20.5.2 then entire block should be look like as follows:</p>
<p>[mysqld]<br />
user = mysql<br />
pid-file = /var/run/mysqld/mysqld.pid<br />
socket = /var/run/mysqld/mysqld.sock<br />
port = 3306<br />
basedir = /usr<br />
datadir = /var/lib/mysql<br />
tmpdir = /tmp<br />
language = /usr/share/mysql/English<br />
bind-address = 172.20.5.2</p>
<p># skip-networking<br />
&#8230;.<br />
..<br />
&#8230;.</p>
<p>Where,</p>
<p>bind-address : IP address to bind to.<br />
skip-networking : Don’t listen for TCP/IP connections at all. All interaction with mysqld must be made via Unix sockets. This option is highly recommended for systems where only local requests are allowed. Since you need to allow remote connection this line should removed from file or put it in comment state.</p>
<p>Step# 4 Save and Close the file.</p>
<p>Restart your mysql service to take change in effect</p>
<p># /etc/init.d/mysql restart</p>
<p>Step # 5 Grant access to remote IP address</p>
<p># mysql -u root –p mysql</p>
<p>Grant access to new database</p>
<p>If you want to add new database called foo for user bar and remote IP 162.54.10.20 then you need to type following commands at mysql&gt; prompt:</p>
<p>mysql&gt; CREATE DATABASE foo;</p>
<p>mysql&gt; GRANT ALL ON foo.* TO bar@&#8217;162.54.10.20&#8242; IDENTIFIED BY &#8216;PASSWORD&#8217;;</p>
<p>Grant access to existing database</p>
<p>Let us assume that you are always making connection from remote IP called 162.54.10.20 for database called webdb for user webadmin then you need to grant access to this IP address. At mysql&gt; prompt type following command for existing database:</p>
<p>mysql&gt; update db set Host=&#8217;162.54.10.20&#8242; where Db=&#8217;webdb&#8217;;</p>
<p>mysql&gt; update user set Host=&#8217;162.54.10.20&#8242; where user=&#8217;webadmin&#8217;;</p>
<p>Step # 5: Logout of MySQL</p>
<p>Type exit command to logout mysql</p>
<p>mysql&gt; exit</p>
<p>Step # 6: Test it</p>
<p>From remote system type command</p>
<p>$ mysql -u webadmin –h 172.20.5.2 –p</p>
<p>You can also use telnet to connect to port 3306 for testing purpose</p>
<p>$ telnet 172.20.5.2 3306</p>
<p>Solution 2</p>
<p>All you need to do is specify remote mysql host with –h option. For example to connect remote mysql server called server.test.com you need to type command as follows</p>
<p>$ mysql –u ruchi –h server.test.com -p</p>
<p>OR if you with to use MySQL server ip address (172.20.1.101)</p>
<p><a href="http://www.debianhelp.co.uk/remotemysql.htm">http://www.debianhelp.co.uk/remotemysql.htm</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/torsd.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/torsd.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/torsd.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/torsd.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/torsd.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/torsd.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/torsd.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/torsd.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/torsd.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/torsd.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/torsd.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/torsd.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/torsd.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/torsd.wordpress.com/23/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=torsd.wordpress.com&amp;blog=11645866&amp;post=23&amp;subd=torsd&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://torsd.wordpress.com/2010/02/15/setting-up-a-remote-mysql-db/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c77e31af70e4b10c124d37b5a452eaeb?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">torsd</media:title>
		</media:content>
	</item>
		<item>
		<title>Restart apache in centOS</title>
		<link>http://torsd.wordpress.com/2010/02/03/restart-apache-in-centos/</link>
		<comments>http://torsd.wordpress.com/2010/02/03/restart-apache-in-centos/#comments</comments>
		<pubDate>Wed, 03 Feb 2010 09:55:00 +0000</pubDate>
		<dc:creator>torsd</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://torsd.wordpress.com/?p=21</guid>
		<description><![CDATA[20 2006f October, 2006 restarting apache httpd in centos Filed under: linux — rudyegenias @ 2:29 pm always developed in winxp for the time being and also being new to linux i am forced to learn to make changes in php.ini and needed to restart apache or httpd to restart: /sbin/service httpd restart to start: /sbin/service [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=torsd.wordpress.com&amp;blog=11645866&amp;post=21&amp;subd=torsd&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<h2>20 2006f October, 2006</h2>
<h3><a rel="bookmark" href="http://rudyegenias.wordpress.com/2006/10/20/restarting-apache-httpd-in-centos/">restarting apache httpd in centos</a></h3>
<div>Filed under:  <a title="View all posts in linux" rel="category tag" href="http://en.wordpress.com/tag/linux/">linux</a> — rudyegenias @ 2:29 pm</div>
<p>always developed in winxp for the time being and also being new to linux i am forced to learn to make changes in php.ini and needed to restart apache or httpd</p>
<p>to restart:</p>
<p>/sbin/service httpd restart</p>
<p>to start:</p>
<p>/sbin/service httpd start</p>
<p>to stop:</p>
<p>/sbin/service httpd stop</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/torsd.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/torsd.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/torsd.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/torsd.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/torsd.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/torsd.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/torsd.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/torsd.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/torsd.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/torsd.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/torsd.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/torsd.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/torsd.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/torsd.wordpress.com/21/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=torsd.wordpress.com&amp;blog=11645866&amp;post=21&amp;subd=torsd&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://torsd.wordpress.com/2010/02/03/restart-apache-in-centos/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c77e31af70e4b10c124d37b5a452eaeb?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">torsd</media:title>
		</media:content>
	</item>
		<item>
		<title>Sudo gem install mysql, mysql-devel problems in CentOs</title>
		<link>http://torsd.wordpress.com/2010/02/03/sudo-gem-install-mysql-mysql-devel-problems-in-centos/</link>
		<comments>http://torsd.wordpress.com/2010/02/03/sudo-gem-install-mysql-mysql-devel-problems-in-centos/#comments</comments>
		<pubDate>Wed, 03 Feb 2010 03:55:09 +0000</pubDate>
		<dc:creator>torsd</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://torsd.wordpress.com/?p=18</guid>
		<description><![CDATA[Installing Mysql gem on CentOS Migrating from Debian to CentOS was certainly not pleasant one. But slowly I am getting used to yum (I still miss my apt). Recently I faced an issue installing mysql gem. Here is short description of problem followed by solution. [root@VMVSOCT02 /]# gem install mysql Need to update 0 gems from [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=torsd.wordpress.com&amp;blog=11645866&amp;post=18&amp;subd=torsd&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<h2><a title="Permanent Link to Installing Mysql gem on CentOS" rel="bookmark" href="http://smangal.wordpress.com/2007/05/17/mysql-gem-on-centos/">Installing Mysql gem on CentOS</a></h2>
<p>Migrating from Debian to CentOS was certainly not pleasant one. But slowly I am getting used to yum (I still miss my apt). Recently I faced an issue installing mysql gem. Here is short description of problem followed by solution.</p>
<p>[root@VMVSOCT02 /]# gem install mysql<br />
Need to update 0 gems from http://gems.rubyforge.org</p>
<p>complete<br />
Select which gem to install for your platform (i386-linux)<br />
1. mysql 2.7.3 (mswin32)<br />
2. mysql 2.7.1 (mswin32)<br />
3. mysql 2.7 (ruby)<br />
4. mysql 2.6 (ruby)<br />
5. Skip this gem<br />
6. Cancel installation<br />
&gt; 3<br />
Building native extensions.  This could take a while…<br />
<span style="color:red;"><br />
ERROR:  While executing gem … (Gem::Installer::ExtensionBuildError)<br />
ERROR: Failed to build gem native extension.<br />
</span><br />
ruby extconf.rb install mysql<br />
checking for mysql_query() in -lmysqlclient… no<br />
checking for main() in -lm… yes<br />
checking for mysql_query() in -lmysqlclient… no<br />
checking for main() in -lz… yes<br />
checking for mysql_query() in -lmysqlclient… no<br />
checking for main() in -lsocket… no<br />
checking for mysql_query() in -lmysqlclient… no<br />
checking for main() in -lnsl… yes<br />
checking for mysql_query() in -lmysqlclient… no<br />
*** extconf.rb failed ***<br />
Could not create Makefile due to some reason, probably lack of<br />
necessary libraries and/or headers.  Check the mkmf.log file for more<br />
details.  You may need configuration options.</p>
<p>Provided configuration options:<br />
–with-opt-dir</p>
<p><span style="font-size:x-small;"><strong>Installation Steps</strong></span></p>
<p><span style="color:blue;"><br />
1. yum uninstall mysql<br />
2. yum install mysql<br />
3. yum install mysql-devel (to install development libraries, For Debian, Knoppix, Buildix user apt-get install libmysqlclient15-dev)<br />
4. gem install mysql<br />
[root@VMVSOCT02 /]# gem install mysql<br />
Need to update 1 gems from http://gems.rubyforge.org<br />
.<br />
complete<br />
Select which gem to install for your platform (i386-linux)<br />
1. mysql 2.7.3 (mswin32)<br />
2. mysql 2.7.1 (mswin32)<br />
3. mysql 2.7 (ruby)<br />
4. mysql 2.6 (ruby)<br />
5. Skip this gem<br />
6. Cancel installation<br />
&gt; 3<br />
Building native extensions.  This could take a while…<br />
Successfully installed mysql-2.7</span></p>
<p><span style="color:blue;">Create database users<br />
octopus/octopus<br />
grant permission on octopus_development, octopus_test</span></p>
<p>source:</p>
<p>http://smangal.wordpress.com/2007/05/17/mysql-gem-on-centos/</p>
<p>I got disconnected while running yum install mysql-devel. When I tried to run the program again, I ran into some problem. I can&#8217;t run yum install mysql-devel.</p>
<p>Another app is currently holding the yum lock; waiting for it to exit&#8230;<br />
The other application is: yum<br />
Memory :  39 M RSS ( 79 MB VSZ)<br />
Started: Tue Feb  2 23:06:31 2010 &#8211; 04:36 ago<br />
State  : Sleeping, pid: 16056<br />
Another app is currently holding the yum lock; waiting for it to exit&#8230;<br />
The other application is: yum<br />
Memory :  39 M RSS ( 79 MB VSZ)<br />
Started: Tue Feb  2 23:06:31 2010 &#8211; 04:38 ago<br />
State  : Sleeping, pid: 16056<br />
Another app is currently holding the yum lock; waiting for it to exit&#8230;<br />
The other application is: yum<br />
Memory :  39 M RSS ( 79 MB VSZ)<br />
Started: Tue Feb  2 23:06:31 2010 &#8211; 04:40 ago<br />
State  : Sleeping, pid: 16056<br />
Another app is currently holding the yum lock; waiting for it to exit&#8230;<br />
The other application is: yum<br />
Memory :  39 M RSS ( 79 MB VSZ)</p>
<p>I did some googling and found the solution:</p>
<p># ps aux | grep yum</p>
<p>note the pid number of the process and run this to kill the process:</p>
<p># kill (insert pid number)</p>
<p>check to see if the process has been killed by rerunning:</p>
<p># ps aux | grep yum</p>
<p>found here: http://www.wallpaperama.com/forums/another-app-is-currently-holding-the-yum-lock-waiting-for-it-to-exit-t5689.html</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/torsd.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/torsd.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/torsd.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/torsd.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/torsd.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/torsd.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/torsd.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/torsd.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/torsd.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/torsd.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/torsd.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/torsd.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/torsd.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/torsd.wordpress.com/18/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=torsd.wordpress.com&amp;blog=11645866&amp;post=18&amp;subd=torsd&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://torsd.wordpress.com/2010/02/03/sudo-gem-install-mysql-mysql-devel-problems-in-centos/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c77e31af70e4b10c124d37b5a452eaeb?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">torsd</media:title>
		</media:content>
	</item>
		<item>
		<title>git submodule error</title>
		<link>http://torsd.wordpress.com/2010/02/03/git-submodule-error/</link>
		<comments>http://torsd.wordpress.com/2010/02/03/git-submodule-error/#comments</comments>
		<pubDate>Wed, 03 Feb 2010 03:07:40 +0000</pubDate>
		<dc:creator>torsd</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://torsd.wordpress.com/?p=15</guid>
		<description><![CDATA[This was the error I received when deploying a Capistrano deployment from github. Keep in mind to even get your submodules deployed you’ll need to add the following var to deploy.rb: set :git_enable_submodules, 1 It turns out that I had git 1.5.2.5 and submodule support did not come until 1.5.3. So I was forced to [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=torsd.wordpress.com&amp;blog=11645866&amp;post=15&amp;subd=torsd&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><span id="more-15"></span></p>
<p>This was the error I received when deploying a Capistrano deployment from github. Keep in mind to even get your submodules deployed you’ll need to add the following var to deploy.rb:</p>
<p><strong>set :git_enable_submodules, 1</strong></p>
<p>It turns out that I had git 1.5.2.5 and submodule support did not come until 1.5.3. So I was forced to upgrade. The process went something like this:</p>
<p><strong>sudo apt-get update</strong></p>
<p><strong>sudo apt-get build-dep git-core</strong></p>
<p><strong>sudo apt-get remove git-core</strong></p>
<p><strong>wget http://www.kernel.org/pub/software/scm/git/git-1.6.2.tar.gz</strong></p>
<p><strong>tar xzf git-1.6.2.tar.gz</strong></p>
<p><strong>cd cd git-1.6.2</strong></p>
<p><strong>./configure</strong></p>
<p><strong>make</strong></p>
<p><strong>sudo make install</strong></p>
<p>Type “git submodule” and you should see the appropriate error, meaning it recognizes the submodule parameter. There’s a chance that git won’t be in your path so just do the following:</p>
<p><strong>export PATH=$PATH:/usr/local/bin</strong></p>
<p>You should be good to go!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/torsd.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/torsd.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/torsd.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/torsd.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/torsd.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/torsd.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/torsd.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/torsd.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/torsd.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/torsd.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/torsd.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/torsd.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/torsd.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/torsd.wordpress.com/15/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=torsd.wordpress.com&amp;blog=11645866&amp;post=15&amp;subd=torsd&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://torsd.wordpress.com/2010/02/03/git-submodule-error/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c77e31af70e4b10c124d37b5a452eaeb?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">torsd</media:title>
		</media:content>
	</item>
	</channel>
</rss>
