<?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>Codedrop™ Weblog &#187; Ruby</title>
	<atom:link href="http://www.codedrop.ca/blog/archives/category/programming/ruby/feed" rel="self" type="application/rss+xml" />
	<link>http://www.codedrop.ca/blog</link>
	<description>Drop'n some code and other tech tidbits...</description>
	<lastBuildDate>Sun, 01 Jan 2012 07:48:00 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.4</generator>
		<item>
		<title>jQuery Tooltips</title>
		<link>http://www.codedrop.ca/blog/archives/76</link>
		<comments>http://www.codedrop.ca/blog/archives/76#comments</comments>
		<pubDate>Wed, 11 Mar 2009 14:30:29 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Ruby]]></category>
		<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://www.codedrop.ca/blog/archives/76</guid>
		<description><![CDATA[If your looking for a solid plugin library for doing tooltips jQuery style, check out cluetip.&#160; This library is based on the original jTip library created by Codey Lindley.&#160; Cluetip offers a solid set of customizable options and the dynamic positioning logic that is available through some of the reference libraries solves many of the [...]]]></description>
			<content:encoded><![CDATA[<p>If your looking for a solid plugin library for doing tooltips jQuery style, check out <a target="_blank" href="http://plugins.learningjquery.com/cluetip">cluetip</a>.&nbsp; This library is based on the original jTip library created by Codey Lindley.&nbsp; Cluetip offers a solid set of customizable options and the dynamic positioning logic that is available through some of the reference libraries solves many of the problems I previously encountered with jTip, such as inaccurate positioning if you&#8217;ve scrolled a div containing a remote loaded tip resource.</p>
<div class="zemanta-pixie"><img class="zemanta-pixie-img" src="http://img.zemanta.com/pixy.gif?x-id=943f7c43-bba9-4476-ae99-d9d074542b4b" /></div>
<div class="tweetthis" style="text-align:left;"><p> <a class="tt" href="http://twitter.com/home/?status=jQuery+Tooltips+http%3A%2F%2Ftinyurl.com%2F3mwwjlr" title="Post to Twitter"><img class="nothumb" src="http://www.codedrop.ca/blog/wp-content/plugins/tweet-this/icons/en/twitter/tt-twitter.png" alt="Post to Twitter" /></a> <a class="tt" href="http://twitter.com/home/?status=jQuery+Tooltips+http%3A%2F%2Ftinyurl.com%2F3mwwjlr" title="Post to Twitter">Tweet This Post</a></p></div>]]></content:encoded>
			<wfw:commentRss>http://www.codedrop.ca/blog/archives/76/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to install a specific software version using Mac Ports</title>
		<link>http://www.codedrop.ca/blog/archives/56</link>
		<comments>http://www.codedrop.ca/blog/archives/56#comments</comments>
		<pubDate>Tue, 09 Dec 2008 03:22:17 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Mac OSX]]></category>
		<category><![CDATA[Ruby]]></category>

		<guid isPermaLink="false">http://www.codedrop.ca/blog/?p=56</guid>
		<description><![CDATA[MacPorts is the preferred way of installing, managing, and upgrading ports of some the software I have on my Mac.&#160; Unfortunately mac ports does not let you specify a version.&#160; To mediate this you can create a local repository that is checked out to a specific version and install from there. This example is how [...]]]></description>
			<content:encoded><![CDATA[<p>MacPorts is the preferred way of installing, managing, and upgrading ports of some the software I have on my Mac.&nbsp; Unfortunately mac ports does not let you specify a version.&nbsp; To mediate this you can create a local repository that is checked out to a specific version and install from there.</p>
<p>This example is how to install ruby version 1.8.5-p12. </p>
<p><b>1) Find out the svn revision number of the Portfile by looking in:</b></p>
<p>http://trac.macosforge.org/projects/macports/log/trunk/dports/lang/ruby/Portfile</p>
<p>In my case it is 21127.</p>
<p><b>2) Set up a local port repository. In the file /opt/local/etc/macports/sources.conf, add this line before the rsync line:</b>
<p>file:///Users/Shared/dports and create that directory.</p>
<p><b>3) Install the port into your local repository.</b>
<p><typo:code>cd /Users/Shared/dports &amp;&amp; svn co –revision 21127<br />http://svn.macports.org/repository/macports/trunk/dports/lang/ruby/<br />lang/ruby/</typo:code></p>
<p><b>4) Run portindex so that ports now finds your new (old) version of ruby.</b>
<p><typo:code>portindex /Users/Shared/dports</typo:code></p>
<p><b>5) Now you should be able to see ruby @1.8.5-p12 in addition to @1.8.6 by running:</b></p>
<p><typo:code>port list</typo:code></p>
<p><b>6) Install Ruby</b>
<p><typo:code>sudo port install ruby @1.8.5-p12</typo:code></p>
<p>You should be up and running now, so to check, run:
<p><typo:code>ruby -v</typo:code></p>
<p>You will see something like this:
<p><typo:code>ruby 1.8.5 (2006-12-25 patchlevel 12) [i686-darwin8.10.1]</typo:code></p>
<div class="tweetthis" style="text-align:left;"><p> <a class="tt" href="http://twitter.com/home/?status=How+to+install+a+specific+software+version+using+Mac+Ports+http%3A%2F%2Ftinyurl.com%2F4ck65jq" title="Post to Twitter"><img class="nothumb" src="http://www.codedrop.ca/blog/wp-content/plugins/tweet-this/icons/en/twitter/tt-twitter.png" alt="Post to Twitter" /></a> <a class="tt" href="http://twitter.com/home/?status=How+to+install+a+specific+software+version+using+Mac+Ports+http%3A%2F%2Ftinyurl.com%2F4ck65jq" title="Post to Twitter">Tweet This Post</a></p></div>]]></content:encoded>
			<wfw:commentRss>http://www.codedrop.ca/blog/archives/56/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Wine Debugging</title>
		<link>http://www.codedrop.ca/blog/archives/16</link>
		<comments>http://www.codedrop.ca/blog/archives/16#comments</comments>
		<pubDate>Tue, 07 Nov 2006 18:18:22 +0000</pubDate>
		<dc:creator>groll</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Ruby]]></category>

		<guid isPermaLink="false">http://www.codedrop.ca/blog/?p=16</guid>
		<description><![CDATA[You can control the debug output that wine generates by manipulating the WINEDEUG environment variable. A detailed description of available options can be found here Recently I encountered a scenario where running ruby watir tests through wine continually produced the following output: err:rebar:REBAR_MoveChildWindows BeginDeferWindowPos returned NULL err:rebar:REBAR_MoveChildWindows DeferWindowPos returned NULL err:rebar:REBAR_MoveChildWindows DeferWindowPos returned NULL err:rebar:REBAR_MoveChildWindows [...]]]></description>
			<content:encoded><![CDATA[<p>You can control the debug output that wine generates by manipulating the WINEDEUG environment variable.  A detailed description of available options can be found <a href="http://www.winehq.com/site/docs/wineusr-guide/x509">here</a></p>
<p>Recently I encountered a scenario where running ruby watir tests through wine continually produced the following output:</p>
<pre>err:rebar:REBAR_MoveChildWindows BeginDeferWindowPos returned NULL</pre>
<pre>err:rebar:REBAR_MoveChildWindows DeferWindowPos returned NULL</pre>
<pre>err:rebar:REBAR_MoveChildWindows DeferWindowPos returned NULL</pre>
<pre>err:rebar:REBAR_MoveChildWindows DeferWindowPos returned NULL</pre>
<pre>err:rebar:REBAR_MoveChildWindows DeferWindowPos returned NULL...etc...</pre>
<p>Supressing these messages would mean defining the following env variable:</p>
<pre>WINEDEBUG=-rebar</pre>
<p>Another example that suppresses more common errors would be:</p>
<pre>WINEDEBUG=fixme-all,-rebar,-local,-shell</pre>
<p>Incidently, for this scneario, the variable needs to be set only in the local shell. However if you want to avoid having to re-enter this you might want to update ~/.bash_profile.</p>
<div class="tweetthis" style="text-align:left;"><p> <a class="tt" href="http://twitter.com/home/?status=Wine+Debugging+http%3A%2F%2Ftinyurl.com%2F4yjd54e" title="Post to Twitter"><img class="nothumb" src="http://www.codedrop.ca/blog/wp-content/plugins/tweet-this/icons/en/twitter/tt-twitter.png" alt="Post to Twitter" /></a> <a class="tt" href="http://twitter.com/home/?status=Wine+Debugging+http%3A%2F%2Ftinyurl.com%2F4yjd54e" title="Post to Twitter">Tweet This Post</a></p></div>]]></content:encoded>
			<wfw:commentRss>http://www.codedrop.ca/blog/archives/16/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

