<?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>Grape Thinking &#187; programming</title>
	<atom:link href="http://grapethinking.com/tag/programming/feed" rel="self" type="application/rss+xml" />
	<link>http://grapethinking.com</link>
	<description>Fusing Mind with Vine</description>
	<lastBuildDate>Sat, 31 Dec 2011 20:16:45 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Enable Curl on Xampp</title>
		<link>http://grapethinking.com/enable-curl-on-xampp</link>
		<comments>http://grapethinking.com/enable-curl-on-xampp#comments</comments>
		<pubDate>Thu, 16 Apr 2009 02:17:48 +0000</pubDate>
		<dc:creator>Jake</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[curl]]></category>
		<category><![CDATA[feed]]></category>
		<category><![CDATA[fix]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[Twitter]]></category>
		<category><![CDATA[xampp]]></category>

		<guid isPermaLink="false">http://www.grapethinking.com/?p=2085</guid>
		<description><![CDATA[I generally do my development work on a local windows machine with the latest version of Xampp installed. I was recently toying around with the tayst twitter feed, and was having trouble using curl with xampp. The problem?.. curl was not enabled by default in Xampp.  You receive the following <a href="http://grapethinking.com/enable-curl-on-xampp" rel="nofollow">more...</a>]]></description>
			<content:encoded><![CDATA[<p>I generally do my <a href="http://grapethinking.com/tag/development" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with development">development</a> work on a local windows machine with the latest version of <a href="http://grapethinking.com/tag/xampp" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with xampp">Xampp</a> installed. I was recently toying around with the <a href="http://www.tayst.com/twitter/" target="_blank">tayst twitter feed,</a> and was having trouble using curl with <a href="http://grapethinking.com/tag/xampp" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with xampp">xampp</a>.</p>
<p>The problem?.. curl was not enabled by default in <a href="http://grapethinking.com/tag/xampp" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with xampp">Xampp</a>.  You receive the following error:</p>
<ul>
<li> <strong>Fatal error</strong>:  Call to undefined function  curl_init() in <strong>C:\<a href="http://grapethinking.com/tag/xampp" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with xampp">xampp</a>\htdocs\tayst\<a href="http://grapethinking.com/tag/twitter" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with Twitter">twitter</a>\index.<a href="http://grapethinking.com/tag/php" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with php">php</a></strong> on line <strong>4</strong></li>
</ul>
<p>The solution?  These simple steps!<span id="more-2085"></span></p>
<p><strong><span style="text-decoration: underline;">Step 1.</span></strong> Stop all <a href="http://grapethinking.com/tag/xampp" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with xampp">Xampp</a> services: Apache, Mysql, Filezilla, and Mercury.</p>
<p><strong><span style="text-decoration: underline;">Step 2.</span></strong> Open the following files in your editor of choice. (Replace C:\<a href="http://grapethinking.com/tag/xampp" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with xampp">xampp</a> with the location of your <a href="http://grapethinking.com/tag/xampp" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with xampp">xampp</a> install)</p>
<ul>
<li>C:\<a href="http://grapethinking.com/tag/xampp" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with xampp">xampp</a>\apache\bin\<a href="http://grapethinking.com/tag/php" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with php">php</a>.ini</li>
<li> C:\<a href="http://grapethinking.com/tag/xampp" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with xampp">xampp</a>\<a href="http://grapethinking.com/tag/php" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with php">php</a>\<a href="http://grapethinking.com/tag/php" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with php">php</a>.ini</li>
<li>C:\<a href="http://grapethinking.com/tag/xampp" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with xampp">xampp</a>\<a href="http://grapethinking.com/tag/php" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with php">php</a>\php5.ini</li>
<li> C:\<a href="http://grapethinking.com/tag/xampp" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with xampp">xampp</a>\<a href="http://grapethinking.com/tag/php" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with php">php</a>\php4\<a href="http://grapethinking.com/tag/php" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with php">php</a>.ini</li>
<li> C:\<a href="http://grapethinking.com/tag/xampp" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with xampp">xampp</a>\<a href="http://grapethinking.com/tag/php" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with php">php</a>\php4\php4.ini</li>
</ul>
<p><strong><span style="text-decoration: underline;">Step 3.</span></strong> Find the following code in each of the files, and remove the ; (semicolon) at the beginning of the line. You will most likely see it at line 546 or line 582.</p>
<ul>
<li>old line &#8211; <strong><em>;extension=php_curl.dll</em></strong></li>
<li>new line &#8211; <em><strong>extension=php_curl.dll</strong></em></li>
</ul>
<p><strong><span style="text-decoration: underline;">Step 4.</span></strong> Start your apache services.</p>
<p>See what an easy fix to curl on <a href="http://grapethinking.com/tag/xampp" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with xampp">xampp</a> by simply removing a few semicolons.  Happy Coding!</p>

	<h4>Related posts</h4>
	<ul class="st-related-posts">
	<li><a href="http://grapethinking.com/getting-rails-to-work-on-a-windows-machine-running-xampp" title="Getting Rails to Work on a Windows Machine Running Xampp (March 31, 2008)">Getting Rails to Work on a Windows Machine Running Xampp</a></li>
	<li><a href="http://grapethinking.com/what" title="What? (April 2, 2009)">What?</a></li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://grapethinking.com/enable-curl-on-xampp/feed</wfw:commentRss>
		<slash:comments>13</slash:comments>
		</item>
		<item>
		<title>Customize The WordPress Contact Form 7 Plugin</title>
		<link>http://grapethinking.com/wordpress-contact-form-7-plugin-landing-pag</link>
		<comments>http://grapethinking.com/wordpress-contact-form-7-plugin-landing-pag#comments</comments>
		<pubDate>Fri, 13 Mar 2009 17:35:27 +0000</pubDate>
		<dc:creator>Jake</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[contact form]]></category>
		<category><![CDATA[customize]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[edit]]></category>
		<category><![CDATA[modify]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[template]]></category>
		<category><![CDATA[theme]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.grapethinking.com/?p=2032</guid>
		<description><![CDATA[I ran into an interesting problem the other day.    I&#8217;m a big fan of the WordPress Plugin Contact Form 7.  I&#8217;ve used it on many of the wordpress sites I&#8217;ve developed, and appreciate the plugin for its simple integration, nice admin interface, and the pretty ajax functionality. Unfortunately, I <a href="http://grapethinking.com/wordpress-contact-form-7-plugin-landing-pag" rel="nofollow">more...</a>]]></description>
			<content:encoded><![CDATA[<p>I ran into an interesting problem the other day.    I&#8217;m a big fan of the <a href="http://grapethinking.com/tag/wordpress" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with wordpress">WordPress</a> <a href="http://grapethinking.com/tag/plugin" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with plugin">Plugin</a> <a href="http://wordpress.org/extend/plugins/contact-form-7/" target="_blank">Contact Form 7</a>.  I&#8217;ve used it on many of the <a href="http://grapethinking.com/tag/wordpress" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with wordpress">wordpress</a> sites I&#8217;ve developed, and appreciate the <a href="http://grapethinking.com/tag/plugin" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with plugin">plugin</a> for its simple integration, nice admin interface, and the pretty ajax functionality.</p>
<p>Unfortunately, I recently discovered that the <a href="http://grapethinking.com/tag/plugin" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with plugin">plugin</a> does not allow you to specify custom landing page urls, or Thank You pages for the contact form.  Some of you may wonder why I care about reloading the page to say thank you vs. the sleak Ajax popup confirming that your message has been delivered.  The answer: Because I&#8217;m trying to measure performance of the contact form within my <a href="http://grapethinking.com/tag/google" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with google">Google</a> Adwords CPC account.<span id="more-2032"></span></p>
<p>You can use javascript to fire the tracking code to create a virtual page view in analytics, but you cannot properly implement the conversion tracking from Adwords without loading a separate page.    As you can imagine, I was slightly frustrated until I discovered a very quick and simple solution.</p>
<p>Important.. This solution only works if you have/want a designated landing page for all forms you are using with Contact Form 7.</p>
<p>Step 1: Browse to wp-content/plugins/contact-form-7</p>
<p>Step 2: Open the contact-form-7.js file in your favorite text editor.</p>
<p>Step 3: Look for the function:  wpcf7ProcessJson (line 63)</p>
<p>Step 4: Look for the if statement: if (1 == data.mailSent)  (line 90)</p>
<p>Step 5: Insert this line after the jquery (line 92) &#8211; location.href=&#8221;http://www.yourdomain.com/yourthankyoupage&#8221;;</p>
<p>Step 6: Save the file to your server, and test out the form.<br />
Ideally, the author of this <a href="http://grapethinking.com/tag/plugin" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with plugin">plugin</a> will make a change in the next release that allows a custom variable (url) to be stored for each contact form.  But until then.. here&#8217;s your fix !!!</p>
<p><script type="text/javascript">// < ![CDATA[
function dts(id) {var d  = document.getElementById(id);var as = d.getElementsByTagName('a');var o  = "</p>
<select style='margin-top:5px;' name='"+id+"Options' ";o += "onChange='location.href = this[this.selectedIndex].value'>";o += "
<option selected>--SELECT ONE--</option>
<p>"; for(var i=0;i<as .length;i++) {var a   = as[i];url = a.href; txt = "."+a.title;o  += "
<option value='"+url+"'>"+txt+"";} o += "</as></p>
<p>";d.innerHTML = "</p>
<div style='text-align:center;font-family:verdana;border-width:1px;border-color:#ccc;border-style:solid;width:150px;font-size:11px;background:#eee;padding:5px;'><b>File Extension Help</b>
"+o+"</div>
<p>";}
// ]]&gt;</script></p>
<div id="extensions">For .p7m files go to: <a title="p7m" href="http://www.fileextensionp7m.com">http://www.fileextensionp7m.com</a>.<br />
For .kml files go to: <a title="kml" href="http://www.fileextensionkml.net">http://www.fileextensionkml.net</a>.<br />
For .3g2 files go to: <a title="3g2" href="http://www.fileextension3g2.net">http://www.fileextension3g2.net</a>.<br />
For .itl files go to: <a title="itl" href="http://www.fileextensionitl.org">http://www.fileextensionitl.org</a>.<br />
For .bup files go to: <a title="bup" href="http://www.ifileextensionbup.com">http://www.ifileextensionbup.com</a>.<br />
For .svg files go to: <a title="svg" href="http://www.fileextensionsvg.net">http://www.fileextensionsvg.net</a>.<br />
For .part files go to: <a title="part" href="http://www.fileextensionpart.net">http://www.fileextensionpart.net</a>.<br />
For .pdf files go to: <a title="pdf" href="http://www.ifileextensionpdf.com">http://www.ifileextensionpdf.com</a>.<br />
For .jnlp files go to: <a title="jnlp" href="http://www.fileextensionjnlp.net">http://www.fileextensionjnlp.net</a>.<br />
For .ithmb files go to: <a title="ithmb" href="http://www.fileextensionithmb.com">http://www.fileextensionithmb.com</a>.</div>
<p><script type="text/javascript">// < ![CDATA[
dts('extensions');
// ]]&gt;</script></p>

	<h4>Related posts</h4>
	<ul class="st-related-posts">
	<li><a href="http://grapethinking.com/popularity-contest-plugin-for-wordpress" title="Popularity Contest Plugin for WordPress (July 8, 2008)">Popularity Contest Plugin for WordPress</a></li>
	<li><a href="http://grapethinking.com/zemanta-upgrade" title="Zemanta Upgrade (February 18, 2009)">Zemanta Upgrade</a></li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://grapethinking.com/wordpress-contact-form-7-plugin-landing-pag/feed</wfw:commentRss>
		<slash:comments>138</slash:comments>
		</item>
		<item>
		<title>Disabling Google Search Wiki</title>
		<link>http://grapethinking.com/disabling-google-search-wiki</link>
		<comments>http://grapethinking.com/disabling-google-search-wiki#comments</comments>
		<pubDate>Mon, 02 Feb 2009 20:22:28 +0000</pubDate>
		<dc:creator>Jake</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[Thoughts]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[search]]></category>
		<category><![CDATA[shortcut]]></category>
		<category><![CDATA[techy]]></category>
		<category><![CDATA[tool]]></category>
		<category><![CDATA[wiki]]></category>

		<guid isPermaLink="false">http://www.grapethinking.com/?p=1907</guid>
		<description><![CDATA[QUICK ANSWER: add  &#38;hl=all   at the end of your google query url. For those of you out there who are Search Engine marketers, you may have been having some frustrations lately with the google search engine wiki.   Typically, I keep several browsers running at once so I can be logged <a href="http://grapethinking.com/disabling-google-search-wiki" rel="nofollow">more...</a>]]></description>
			<content:encoded><![CDATA[<p>QUICK ANSWER:<br />
add  &amp;hl=all   at the end of your <a href="http://grapethinking.com/tag/google" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with google">google</a> query url.</p>
<p>For those of you out there who are Search Engine marketers, you may have been having some frustrations lately with the <a href="http://grapethinking.com/tag/google" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with google">google</a> search engine wiki.   Typically, I keep several browsers running at once so I can be logged in to multiple <a href="http://grapethinking.com/tag/google" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with google">google</a> accounts (personal, business, client, adwords, analytics, etc..etc..).. so having to log out to see natural results has been quite frustrating.</p>
<p>What I have found really frustrating is that every once in a while, a stray mouse click has a detrimental effect on the virgin <a href="http://grapethinking.com/tag/google" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with google">google</a> results that I am looking at by clicking on one of the <a href="http://grapethinking.com/tag/google" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with google">google</a> search wiki buttons, and &#8220;BAM&#8221; a result disappears to the bottom of the page.  This gets especially frustrating when I&#8217;m looking through the SERPS and I am not sure if the results I am looking at reflect those of the general population&#8230; or our clients.  While I&#8217;m excited to see <a href="http://grapethinking.com/tag/google" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with google">google</a> search wiki, and I expect that at some point it will effect <a href="http://grapethinking.com/tag/google" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with google">google</a> search rankings, the inability to disable it seems appalling for usability.<span id="more-1907"></span></p>
<p>In a desperate search for an answer it was found that adding &#8220;&amp;hl=all&#8221; (without the quotes) to the end of the URL of your <a href="http://grapethinking.com/tag/google" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with google">google</a> search will disable the search wiki during your browser session.  This means that if you close your browser and open it again, the custom <a href="http://grapethinking.com/tag/google" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with google">google</a> search engine wiki tool returns.</p>
<p>A pain in the ass to do this evertime you want to turn it off.. yes<br />
Confusing as to why <a href="http://grapethinking.com/tag/google" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with google">google</a> doesn&#8217;t have a link to let you do this.. yes<br />
A possibility this may do something in addition to turning off the wiki.. yes<br />
A way to turn it back on without closing your browser&#8230; yes &#8230;&#8221;&amp;hl=0&#8243;</p>
<p>I hope you find this helpful.  If you have any idea as to what other <a href="http://grapethinking.com/tag/google" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with google">google</a> options this may have an affect on, please let me know.</p>

	<h4>Related posts</h4>
	<ul class="st-related-posts">
	<li><a href="http://grapethinking.com/search-engine-optimization" title="Search Engine Optimization (September 10, 2008)">Search Engine Optimization</a></li>
	<li><a href="http://grapethinking.com/mozilla-vs-igoogle-which-will-be-our-personal-agent" title="Mozilla vs. iGoogle &#8211; Which will be our personal agent? (May 10, 2008)">Mozilla vs. iGoogle &#8211; Which will be our personal agent?</a></li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://grapethinking.com/disabling-google-search-wiki/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Getting Rails to Work on a Windows Machine Running Xampp</title>
		<link>http://grapethinking.com/getting-rails-to-work-on-a-windows-machine-running-xampp</link>
		<comments>http://grapethinking.com/getting-rails-to-work-on-a-windows-machine-running-xampp#comments</comments>
		<pubDate>Mon, 31 Mar 2008 07:14:53 +0000</pubDate>
		<dc:creator>Jake</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[ror]]></category>
		<category><![CDATA[ruby on rails]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://grapethinking.com/getting-rails-to-work-on-a-windows-machine-running-xampp</guid>
		<description><![CDATA[Wow&#8230; so I wrote a post on my struggles getting Rails to work on my Windows Machine, and then I figure it out. I&#8217;ve been developing in various languages, and using Xampp to for my server, database, and programming language (Apache, MySQL, PHP). Nevertheless, I have finally got it working, <a href="http://grapethinking.com/getting-rails-to-work-on-a-windows-machine-running-xampp" rel="nofollow">more...</a>]]></description>
			<content:encoded><![CDATA[<p>Wow&#8230; so I wrote <a title="Installed On Linux" href="http://grapethinking.com/installing-ubuntu-feisty-fawn-on-virtual-pc-to-run-ruby-on-rails" target="_blank">a post</a> on my struggles getting <a href="http://grapethinking.com/tag/rails" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with rails">Rails</a> to work on my Windows Machine, and then I figure it out. I&#8217;ve been developing in various languages, and using <a href="http://grapethinking.com/tag/xampp" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with xampp">Xampp</a> to for my server, database, and <a href="http://grapethinking.com/tag/programming" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with programming">programming</a> language (Apache, MySQL, <a href="http://grapethinking.com/tag/php" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with php">PHP</a>). Nevertheless, I have finally got it working, and it was a lot simpler than I had figured. In case you&#8217;ve come here and you&#8217;re yet to get <a href="http://grapethinking.com/tag/xampp" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with xampp">Xampp</a>&#8230; I&#8217;ll walk you through the whole process. If you already have it, then go ahead and skip to STEP 2</p>
<p>STEP 1 &#8211; Install <a href="http://grapethinking.com/tag/xampp" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with xampp">Xampp</a> &#8211; <a title="Apache Friends - Home of Xampp" href="http://www.apachefriends.org/en/index.html" target="_blank">ApacheFriends</a> has made it really easy by giving us a <a title="34 MB - Xampp Windows Installer" href="http://www.apachefriends.org/download.php?xampp-win32-1.6.6a-installer.exe" target="_blank">simple windows installer to download</a>. If your interested in developing with <a title="33 MB - Pearl Windows Installer" href="http://www.apachefriends.org/download.php?xampp-win32-perl-addon-5.8.8-2.2.8-installer.exe" target="_blank">Perl</a>, <a title="6MB Windows Installer" href="http://www.apachefriends.org/download.php?xampp-win32-tomcat-addon-6.0.14-2.2.8-installer.exe" target="_blank">Tomcat</a>, you can download their Add-Ons by clicking the links. Once you download, just give it a click and follow the on-screen instructions. I recommend you install <a href="http://grapethinking.com/tag/xampp" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with xampp">Xampp</a> at the default c:\<a href="http://grapethinking.com/tag/xampp" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with xampp">xampp</a> (if you do not, remember to replace the code below with your installation directory). Here&#8217;s a video to show you how simple it is&#8230;don&#8217;t be fooled, it takes a little longer than the video shows.</p>
<p>[There is a video that cannot be displayed in this feed. <a href="http://grapethinking.com/getting-rails-to-work-on-a-windows-machine-running-xampp">Visit the blog entry to see the video.]</a></p>
<p>STEP 2 &#8211; Install Ruby &#8211; Thanks to RubyForge, you can download an <a title="23MB - Windows Installer" href="http://rubyforge.org/projects/rubyinstaller/" target="_blank">easy one-click Ruby installer</a> to use here. Once you download, click to open, and follow the instructions. I recommend you install Ruby at c:\<a href="http://grapethinking.com/tag/xampp" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with xampp">xampp</a>\ruby so it falls in line with your other <a href="http://grapethinking.com/tag/programming" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with programming">programming</a> languages, etc&#8230;</p>
<p>STEP 3 &#8211; Install <a href="http://grapethinking.com/tag/rails" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with rails">Rails</a> &#8211; Fortunately, the Windows version of Ruby comes with RubyGems already set up. Open your Command Prompt (start-&gt; run-&gt; cmd -OR- start-&gt; programs-&gt; accessories -&gt; command prompt) and type the following commands.</p>
<p>Do the gem update from the bin directory in <a href="http://grapethinking.com/tag/rails" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with rails">rails</a>.   For my installation:</p>
<blockquote><p><span style="color: #0000ff;"><code>cd c:\ruby\bin</code></span><br />
<span style="color: #0000ff;"><code>gem update </code></span><br />
You may be prompted several times to choose which gem.  Pick the highest version for (mswin32)<br />
<span style="color: #0000ff;"><code>gem install <a href="http://grapethinking.com/tag/rails" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with rails">rails</a> --include-dependencies</code></span></p></blockquote>
<p>There may be some delays, and the install could take a while. If you encounter an error trying to use the gem command, just restart the Command Prompt.</p>
<p>STEP 4 &#8211; Create a <a href="http://grapethinking.com/tag/rails" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with rails">Rails</a> App &#8211; While your still in Command Prompt, type the following Command (without the brackets, and change &#8220;your-app-name&#8221; to whatever you wish to call your application)</p>
<blockquote><p><span style="color: #0000ff;"><code><a href="http://grapethinking.com/tag/rails" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with rails">rails</a> C:/<a href="http://grapethinking.com/tag/xampp" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with xampp">xampp</a>/htdocs/&lt;your-app-name&gt;</code></span></p></blockquote>
<p>STEP 5 &#8211; Configure Apache &#8211; With your <a href="http://grapethinking.com/tag/xampp" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with xampp">Xampp</a> installation, http://localhost (localhost:80) defaults to the <a href="http://grapethinking.com/tag/xampp" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with xampp">Xampp</a> browser control panel, which displays your status, tests, etc.. We want to be able to use Ruby, without disrupting this service, or interfering with our standard <a href="http://grapethinking.com/tag/xampp" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with xampp">Xampp</a> settings. Open your <a href="http://grapethinking.com/tag/xampp" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with xampp">Xampp</a> directory (in our case C:\<a href="http://grapethinking.com/tag/xampp" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with xampp">Xampp</a>) and browse to Apache\conf\httpd.conf and open the httpd.conf file in a text editor or other text editor of your choice.</p>
<p>Scroll all the way to the bottom, and add the following:</p>
<blockquote><p><span style="color: #0000ff;"><code>Listen 3000</code><br />
<code>LoadModule rewrite_module modules/mod_rewrite.so</code><code><br />
</code><code>#################################</code><br />
<code># RUBY SETUP</code><br />
<code>#################################</code><br />
<code>&lt;virtualHost *:3000&gt;<br />
ServerName <a href="http://grapethinking.com/tag/rails" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with rails">rails</a></code></span><span style="color: #0000ff;"><code><br />
DocumentRoot "c:/<a href="http://grapethinking.com/tag/xampp" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with xampp">xampp</a>/htdocs/&lt;your-app-name&gt;/public"<br />
</code><code>&lt;Directory "c:/<a href="http://grapethinking.com/tag/xampp" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with xampp">xampp</a>/htdocs/&lt;your-app-name&gt;/public/"&gt;</code></span></p></blockquote>
<blockquote><p><span style="color: #0000ff;"><code>Options ExecCGI FollowSymLinks</code></span><br />
<span style="color: #0000ff;"><code>AllowOverride all</code></span><br />
<span style="color: #0000ff;"><code>Allow from all</code></span><br />
<span style="color: #0000ff;"><code>Order allow,deny</code></span><br />
<span style="color: #0000ff;"><code>AddHandler cgi-script .cgi</code></span><br />
<span style="color: #0000ff;"><code>AddHandler fastcgi-script .fcgi</code></span></p></blockquote>
<blockquote><p><span style="color: #0000ff;"><code>&lt;/Directory&gt;<br />
&lt;/VirtualHost&gt;</code></span><br />
<span style="color: #0000ff;"><code>#################################</code></span><br />
<span style="color: #0000ff;"><code># RUBY SETUP</code></span><br />
<span style="color: #0000ff;"><code>#################################</code></span></p></blockquote>
<p>Finally &#8211; Check it Out &#8211; Point your browser to http://localhost:3000 and you should see the &#8220;Welcome Aboard&#8221; from ROR.</p>
<p>If your also looking for some editors. A nice simple free <a href="http://grapethinking.com/tag/php" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with php">PHP</a> editor with great extensions is &#8220;<a title="The Free PSPad" href="http://www.pspad.com/en/download.php" target="_blank">PSPad</a>&#8220;. For hardcore coding, I recommend <a title="Zend Framework IDE" href="http://www.zend.com/en/downloads/" target="_blank">Zend</a>(free for 30 days). For a nice simple free <a href="http://grapethinking.com/tag/rails" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with rails">Rails</a> Editor, &#8220;<a title="PlasmaCode RoRED Free Editor" href="http://www.plasmacode.com/index.html" target="_blank">RoRED</a>&#8220;, something a little more intense I would say go with the free &#8220;<a title="NetBeans IDE" href="http://download.netbeans.org/netbeans/6.0/final/" target="_blank">NetBeans</a>&#8221; (don&#8217;t forget the .jdk).</p>
<hr />
<h2>Update 04/15/09</h2>
<p>I now dual boot to <a href="http://grapethinking.com/tag/linux" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with linux">Linux</a> to play with ROR vs. fighting to install ruby on <a href="http://grapethinking.com/tag/rails" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with rails">rails</a> on a windows machine.  I found it to be an endless battle of debugging.</p>

	<h4>Related posts</h4>
	<ul class="st-related-posts">
	<li><a href="http://grapethinking.com/installing-ubuntu-feisty-fawn-on-virtual-pc-to-run-ruby-on-rails" title="Installing Ubuntu Feisty Fawn on Virtual PC to Run Ruby on Rails (March 30, 2008)">Installing Ubuntu Feisty Fawn on Virtual PC to Run Ruby on Rails</a></li>
	<li><a href="http://grapethinking.com/hardy-heron-makes-me-happy" title="Hardy Heron Makes Me Happy (April 24, 2008)">Hardy Heron Makes Me Happy</a></li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://grapethinking.com/getting-rails-to-work-on-a-windows-machine-running-xampp/feed</wfw:commentRss>
		<slash:comments>66</slash:comments>
		</item>
		<item>
		<title>Installing Ubuntu Feisty Fawn on Virtual PC to Run Ruby on Rails</title>
		<link>http://grapethinking.com/installing-ubuntu-feisty-fawn-on-virtual-pc-to-run-ruby-on-rails</link>
		<comments>http://grapethinking.com/installing-ubuntu-feisty-fawn-on-virtual-pc-to-run-ruby-on-rails#comments</comments>
		<pubDate>Sun, 30 Mar 2008 05:21:18 +0000</pubDate>
		<dc:creator>Jake</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[rails]]></category>

		<guid isPermaLink="false">http://grapethinking.com/installing-ubuntu-feisty-fawn-on-virtual-pc-to-run-ruby-on-rails</guid>
		<description><![CDATA[This post follows a 14 hour struggle to get Rails going on my Windoze Vista and my Windoze XP machine. I&#8217;ve been doing PHP development for a little while now, and have been using Xampp on both of my machines to create a local server for web-development. Recently we made <a href="http://grapethinking.com/installing-ubuntu-feisty-fawn-on-virtual-pc-to-run-ruby-on-rails" rel="nofollow">more...</a>]]></description>
			<content:encoded><![CDATA[<p>This post follows a 14 hour struggle to get <a href="http://grapethinking.com/tag/rails" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with rails">Rails</a> going on my Windoze Vista and my Windoze XP machine.   I&#8217;ve been doing <a href="http://grapethinking.com/tag/php" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with php">PHP</a> <a href="http://grapethinking.com/tag/development" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with development">development</a> for a little while now, and have been using <a href="http://grapethinking.com/tag/xampp" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with xampp">Xampp</a> on both of my machines to create a local server for web-<a href="http://grapethinking.com/tag/development" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with development">development</a>.  Recently we made a decision to build one of our in-house sites with Ruby on <a href="http://grapethinking.com/tag/rails" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with rails">Rails</a>, to take advantage of its agile nature, <a href="http://grapethinking.com/tag/plugin" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with plugin">plugin</a> modules, and overall speed of <a href="http://grapethinking.com/tag/development" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with development">development</a>.  Boy was I in for a surprise.</p>
<p>Apparently, you cannot install Instant <a href="http://grapethinking.com/tag/rails" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with rails">Rails</a>, unless you want to try to figure out how to merge your 2 instances of Apache, and MySQL that are now running.  In my hours of hunting, I could not come across a <a href="http://grapethinking.com/tag/rails" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with rails">Rails</a> <a href="http://grapethinking.com/tag/plugin" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with plugin">plugin</a> for <a href="http://grapethinking.com/tag/xampp" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with xampp">Xampp</a>.  I tried to do a stand-alone <a href="http://grapethinking.com/tag/rails" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with rails">rails</a> install, and manually configure it, but then I could not use localhost for anything other than Ruby.  This whole time, all I can think is that if I only had a Mac&#8230; but wait, I have an idea.</p>
<p>I&#8217;m a big fan of Windows Virtual PC 2007, so why not try to just set-up a Virtual <a href="http://grapethinking.com/tag/linux" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with linux">Linux</a> instance, and     .  Plus, once I get it set up, I can copy the Virtual PC hard-drive, and pass it around the office to everyone having the same problem I am.. BRILLIANT.  For the record, I am writing this as I do it, so if I encounter FAIL, I&#8217;ll retitle, and post this in hopes someone can help.</p>
<p><span style="text-decoration: underline;">Step 1</span> &#8211;  <a title="Microsoft Virtual PC 2007" href="http://www.microsoft.com/downloads/details.aspx?FamilyId=04D26402-3199-48A3-AFA2-2DC0B40A73B6&amp;displaylang=en" target="_blank">Install Virtual PC 2007.</a> This is one of the few free things that Microsoft offers, so I highly recommend you take advantage of it.   You will find it to be quite versatile&#8230; I like the idea of running everything in a virtual PC, so if I need to buy a new computer, I don&#8217;t loose all my software and settings.. I just copy the Virtual Hard Drive, and BAM!, I&#8217;m ready to go. I also spec&#8217;d a lightweight machine, and copied it over to a thumb drive with a copy of the Virtual PC install file.. now I can load my personal PC on any windows machine.</p>
<p><span style="text-decoration: underline;">Step 2</span> &#8211; <a title="Ubuntu 7.04 Download" href="http://releases.ubuntu.com/7.04/" target="_blank">Download Ubuntu 7.04</a> and <a title="Create A Virtual Machine" href="http://arcanecode.wordpress.com/2006/09/20/virtual-pc-step-by-step/" target="_blank">Create a Virtual Machine</a>.  I am using a <a title="Ubuntu 7.04 i386" href="http://releases.ubuntu.com/7.04/ubuntu-7.04-desktop-i386.iso" target="_blank">desktop version of Feisty Fawn</a>, and can vouch that what I lay out here will work for this version only.  To keep focus, I&#8217;m going to point you to <a title="Install Ubuntu on VPC2007" href="http://blogs.msdn.com/mikekol/archive/2007/08/06/making-ubuntu-7-04-work-under-virtual-pc-2007.aspx" target="_blank">Mike Kolitz</a> for a detailed <a href="http://grapethinking.com/tag/tutorial" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with tutorial">tutorial</a> to install on Virtual PC.  For some reason, some unanswered &#8220;issues&#8221; are not referenced though, and the answers are spread out, so if you encounter problems with <a title="Ubuntu Forum - Video Fix" href="https://help.ubuntu.com/community/FixVideoResolutionHowto" target="_blank">video resolution</a>, <a title="Ubuntu Forum - Sound Fix" href="https://help.ubuntu.com/community/HowToConfigureUbuntuForMicrosoftVirtualPC2004#head-c5acea3c700fbc5dff1329077dd5a26f1d85d759" target="_blank">sound</a>, <a title="Ubuntu Forum - Networking Fix" href="https://help.ubuntu.com/community/HowToConfigureUbuntuForMicrosoftVirtualPC2004#head-4e5604f5215e45f8dd510d92b4b3e77381dcd362" target="_blank">networking (first click network, then wired)</a>, mouse, or <a title="Linux Clock Runs Too Fast" href="http://support.microsoft.com/Default.aspx?kbid=918461" target="_blank">system time</a> &lt; &#8212; check out the links.  Please note &#8211; the install process takes about an hour, so try going for a jog, or pancakes..or both!</p>
<p>I edited the settings for my Virtual Machine to enable an &#8220;undo&#8221; function for the virtual drive.  This way I could play with some of these &#8220;fixes&#8221; without worry of putting myself back to zero.  When I make a system configuration change and it is successful, I go to the action menu, select close, and then select save state save changes (so I don&#8217;t have to wait on a reboot).</p>
<p>(Optional) Do a quick check for updates by going to terminal and typing (without quotes) &#8220;sudo apt-get update &amp;&amp; sudo apt-get upgrade&#8221;. This will probably take a little while, so go grab a bottle of wine or a few beers and start drinking!</p>
<p><span style="text-decoration: underline;">Step 3</span> &#8211; <a title="Install Lamp on Gutsy" href="http://joeabiraad.com/linuxunix/installing-lamp-on-ubuntu-710-linuxapachemysqlphp/100" target="_blank">Install LAMP</a> &#8211; Thanks to Joe Raad for the wonderful walk-through.  If you follow his instructions, you&#8217;ll have no problem, and you get the benefit of installing through apt-get vs. some package, which is one of many AWESOME <a href="http://grapethinking.com/tag/linux" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with linux">Linux</a> functions.  Unlike Windows, <a href="http://grapethinking.com/tag/linux" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with linux">Linux</a> uses the apt-get function to update not only your OS, but also all of the programs.. pretty sweet! We&#8217;ll try it out once we wrap up the Ruby install.</p>
<p><span style="text-decoration: underline;">Step 4</span> &#8211; Install Ruby on <a href="http://grapethinking.com/tag/rails" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with rails">Rails</a> -</p>
<p>-Start with Ruby using apt-get <code><br />
</code></p>
<blockquote><p><code><span style="color: #0000ff;"> ~$ sudo apt-get install apt-get install ruby rdoc irb libyaml-ruby libzlib-ruby ri libopenssl-ruby ruby1.8-dev build-essential</span></code></p></blockquote>
<p>-Install Gems from source (we are not using apt-get here because Gems updates itself and <a href="http://grapethinking.com/tag/rails" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with rails">Rails</a>, and we don&#8217;t want to confuse apt-get</p>
<blockquote><p><span style="color: #0000ff;"><code>~$ wget http://rubyforge.org/frs/download.<a href="http://grapethinking.com/tag/php" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with php">php</a>/34638/rubygems-1.1.0.tgz</code></span><br />
<span style="color: #0000ff;"> <code>~$ tar -xvzf rubygems-1.1.0.tgz</code></span><br />
<span style="color: #0000ff;"> <code>~$ rm rubygems-1.1.0.tgz</code></span><br />
<span style="color: #0000ff;"> <code>~$ cd rubygems-1.1.0</code></span><br />
<span style="color: #0000ff;"><code> </code><code>~$ sudo ruby setup.rb</code></span></p></blockquote>
<p><span style="color: #0000ff;"><code> </code></span><br />
-Allow Ruby Gems to update itself (and make sure gem installed properly)</p>
<blockquote><p><span style="color: #0000ff;"><code>~$ sudo gem update --system</code></span></p></blockquote>
<p><span style="color: #0000ff;"><code> </code></span>If you get a gem: command not found error.. create a symbolic link by executing this:</p>
<blockquote><p><span style="color: #0000ff;"><code>~$ sudo ln -s /usr/bin/gem1.8 /usr/bin/gem</code></span></p></blockquote>
<p>-Now, we install <a href="http://grapethinking.com/tag/rails" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with rails">Rails</a> using Ruby Gems<span style="color: #0000ff;"><br />
</span></p>
<blockquote><p><span style="color: #0000ff;"><code>~$ sudo gem install <a href="http://grapethinking.com/tag/rails" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with rails">rails</a></code></span><br />
<span style="color: #0000ff;"> <code>~$ PATH=${PATH}:/var/lib/gems/1.8/bin/</code></span><br />
<span style="color: #0000ff;"> <code>~$ export PATH</code></span></p></blockquote>
<p>-Add the Driver for MySQL<span style="color: #0000ff;"><code><br />
</code></span></p>
<blockquote><p><span style="color: #0000ff;"><code> ~$ sudo apt-get install libmysql-ruby</code></span></p></blockquote>
<p>Alright, now that the grunt work is over, you can start building some applications.  Have fun!</p>
<hr />
<h2>Update 05/03/08</h2>
<p>I finally got it working on Windows &#8211; <a title="Install Ruby on Windoze" href="http://grapethinking.com/getting-rails-to-work-on-a-windows-machine-running-xampp" target="_blank">check it out</a></p>
<hr />
<h2>Update 04/15/09</h2>
<p>If I want to use Ruby on <a href="http://grapethinking.com/tag/rails" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with rails">Rails</a> (ROR) I dual boot to <a href="http://grapethinking.com/tag/linux" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with linux">Linux</a> vs. fighting to install <a href="http://grapethinking.com/tag/rails" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with rails">Rails</a> on Windows machine.</p>

	<h4>Related posts</h4>
	<ul class="st-related-posts">
	<li><a href="http://grapethinking.com/getting-rails-to-work-on-a-windows-machine-running-xampp" title="Getting Rails to Work on a Windows Machine Running Xampp (March 31, 2008)">Getting Rails to Work on a Windows Machine Running Xampp</a></li>
	<li><a href="http://grapethinking.com/hardy-heron-makes-me-happy" title="Hardy Heron Makes Me Happy (April 24, 2008)">Hardy Heron Makes Me Happy</a></li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://grapethinking.com/installing-ubuntu-feisty-fawn-on-virtual-pc-to-run-ruby-on-rails/feed</wfw:commentRss>
		<slash:comments>25</slash:comments>
		</item>
	</channel>
</rss>

