<?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>Too Geek To Be True&#187; Development</title>
	<atom:link href="http://www.toogeektobetrue.com/category/development/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.toogeektobetrue.com</link>
	<description>Everything About Geeky Stuff</description>
	<lastBuildDate>Sat, 04 Feb 2012 03:01:41 +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>Annoying Rails Error When Running Webrick Server: &#8220;Only one usage of each socket address&#8221;</title>
		<link>http://www.toogeektobetrue.com/development/annoying-rails-error-when-running-webrick-server-only-one-usage-of-each-socket-address/</link>
		<comments>http://www.toogeektobetrue.com/development/annoying-rails-error-when-running-webrick-server-only-one-usage-of-each-socket-address/#comments</comments>
		<pubDate>Wed, 11 Feb 2009 16:20:55 +0000</pubDate>
		<dc:creator>Chris Prakoso</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Ruby on Rails]]></category>

		<guid isPermaLink="false">http://www.toogeektobetrue.com/?p=147</guid>
		<description><![CDATA[So, I was trying to run Webrick server for my Rails project on my work PC, and I got this error: =&#62; Booting Mongrel (use &#8216;script/server webrick&#8217; to force WEBrick) =&#62; Rails 2.1.1 application starting on http://0.0.0.0:3000 =&#62; Call with -d to detach =&#62; Ctrl-C to shutdown server ** Starting Mongrel listening at 0.0.0.0:3000 Exiting [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.toogeektobetrue.com%2Fdevelopment%2Fannoying-rails-error-when-running-webrick-server-only-one-usage-of-each-socket-address%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.toogeektobetrue.com%2Fdevelopment%2Fannoying-rails-error-when-running-webrick-server-only-one-usage-of-each-socket-address%2F&amp;style=normal&amp;service=bit.ly&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>So, I was trying to run Webrick server for my Rails project on my work PC, and I got this error:</p>
<blockquote><p>=&gt; Booting Mongrel (use &#8216;script/server webrick&#8217; to force WEBrick)<br />
=&gt; Rails 2.1.1 application starting on http://0.0.0.0:3000<br />
=&gt; Call with -d to detach<br />
=&gt; Ctrl-C to shutdown server<br />
** Starting Mongrel listening at 0.0.0.0:3000<br />
Exiting<br />
c:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.2-x86-mswin32/lib/mongrel/tcphack.rb:<br />
12:in `initialize_without_backlog&#8217;: Only one usage of each socket address (protocol/network address/port) is normally permitted. &#8211; bind(2) (Errno::EADDRINUSE)<br />
from c:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.2-x86-mswin32/lib/mongrel/tcphack.rb:12:in initialize&#8217;<br />
from c:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.2-x86-mswin32/lib/mongrel.rb:93:in `new&#8217; from c:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.2-x86-mswin32/lib/mongrel.rb:93:in `initialize&#8217;<br />
from c:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.2-x86-mswin32/lib/mongrel/configurator.rb:139:in new&#8217;<br />
from c:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.2-x86-mswin32/lib/mongrel/configurator.rb:139:in `listener&#8217;<br />
from c:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.2-x86-mswin32/bin/mongrel_rails:99:in `cloaker_&#8217;<br />
from c:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.2-x86-mswin32/lib/mongrel/configurator.rb:50:in `call&#8217;<br />
from c:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.2-x86-mswin32/lib/mongrel/configurator.rb:50:in `initialize&#8217;<br />
&#8230; 14 levels&#8230;<br />
from C:/Dev/Rails/ringleys/vendor/rails/railties/lib/commands/server.rb:<br />
39<br />
from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require&#8217;<br />
from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require&#8217;<br />
from script/server:3</p></blockquote>
<p>I&#8217;ve never seen this error before, and looking at the error message and the stack trace, it just didn&#8217;t make any sense.  Moreover, if I run this same project on my Mac, it works fine. No what ? Off to Goggle then &#8230;<br />
Which sent me the <a title="RoR Wiki Entry" href="http://wiki.rubyonrails.org/rails/pages/MysteryProcessHoldsOntoWebrickPort" target="_blank">this article on the RoR Wiki</a>.</p>
<p>Reading from that article, and I quote:</p>
<blockquote><p>Today I realized the culprit is Microsoft Firewall Client (an <span class="caps">ISA</span> firewall client which is installed on Windows machines on certain corporate networks). Try disabling the firewall client, via right-clicking the taskbar icon, then restarting Webrick. Disabling the firewall client seems to release the port, allowing Webrick to start normally.</p></blockquote>
<p>had made me realise about something that had been the bane of me with this work PC, it&#8217;s the frecking Juniper&#8217;s Netscreen Remote !  It&#8217;s this piece of VPN Tunneling software that allows me to connect to our company network when I&#8217;m working from home.  Well, I didn&#8217;t think that I could disable this, cause I needed it.  So I did the second best solution.</p>
<p>I ran the Webrick server on other port other than 3000 !</p>
<p>Something in the line of :</p>
<blockquote><p>ruby script/server -p 3001</p></blockquote>
<p>et voila! It worked.</p>
<p>Hope this helps !</p>
]]></content:encoded>
			<wfw:commentRss>http://www.toogeektobetrue.com/development/annoying-rails-error-when-running-webrick-server-only-one-usage-of-each-socket-address/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Is there a better way to refresh dbml when database schema changes ?</title>
		<link>http://www.toogeektobetrue.com/featured/is-there-a-better-way-to-refresh-dbml-when-database-schema-changes/</link>
		<comments>http://www.toogeektobetrue.com/featured/is-there-a-better-way-to-refresh-dbml-when-database-schema-changes/#comments</comments>
		<pubDate>Tue, 20 Jan 2009 14:46:43 +0000</pubDate>
		<dc:creator>Chris Prakoso</dc:creator>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[Featured]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Visual Studio]]></category>

		<guid isPermaLink="false">http://www.toogeektobetrue.com/?p=112</guid>
		<description><![CDATA[I&#8217;ve been doing a lot of LINQ works at the moment, and naturally database schema changes quite regularly.  Table fields added, deleted or changed, etc. So far the only way I know to refresh my dbml file is by deleting the table from the designer and drag a new one back from the server explorer.  [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.toogeektobetrue.com%2Ffeatured%2Fis-there-a-better-way-to-refresh-dbml-when-database-schema-changes%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.toogeektobetrue.com%2Ffeatured%2Fis-there-a-better-way-to-refresh-dbml-when-database-schema-changes%2F&amp;style=normal&amp;service=bit.ly&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>I&#8217;ve been doing a lot of LINQ works at the moment, and naturally database schema changes quite regularly.  Table fields added, deleted or changed, etc. So far the only way I know to refresh my dbml file is by deleting the table from the designer and drag a new one back from the server explorer.  Obviously after a few of this excercise, I got really annoyed, and started thinking to myself &#8220;I can&#8217;t believe that Microsoft didn&#8217;t think about how to make this operation easier&#8221;.  But looking around for this &#8216;Refresh&#8217; button on Visual Studio was proven to be a waste of time, it just simply doesn&#8217;t exist !</p>
<p>Still with curiosity and determination to find a better way, I scoured the Internet to look for a definitive answer, just in case I missed something.</p>
<p>To short answer to the above question is a resounding <strong>NO</strong>. <strong>Cor Blimey !</strong></p>
<p>There is an alternative though, but only if you want to pay for it :)  On some of the forums where this question was asked, there always this guy who keep promoting his <a href="http://www.huagati.com/dbmltools/" target="_blank">add-in</a> for Visual Studio 2008 which apparently does exactly what we need.</p>
<p>I still can&#8217;t believe that Microsoft would missed such an important thing.  Oh .. well &#8230; it is Microsoft after all.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.toogeektobetrue.com/featured/is-there-a-better-way-to-refresh-dbml-when-database-schema-changes/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

