<?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>AprilChild &#187; Ruby</title>
	<atom:link href="http://www.april-child.com/blog/category/ruby/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.april-child.com/blog</link>
	<description>Insignificant Tagline</description>
	<lastBuildDate>Tue, 13 Apr 2010 18:42:42 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Opening *.isonrails.com &#8211; Rails Playground</title>
		<link>http://www.april-child.com/blog/2008/04/17/opening-isonrailscom-rails-playground/</link>
		<comments>http://www.april-child.com/blog/2008/04/17/opening-isonrailscom-rails-playground/#comments</comments>
		<pubDate>Wed, 16 Apr 2008 22:00:04 +0000</pubDate>
		<dc:creator>p</dc:creator>
				<category><![CDATA[Amy]]></category>
		<category><![CDATA[Rails]]></category>
		<category><![CDATA[Ruby]]></category>

		<guid isPermaLink="false">http://www.april-child.com/blog/2008/04/17/opening-isonrailscom-rails-playground/</guid>
		<description><![CDATA[It&#8217;s time to stop the stupid invitations (did hate them, hating them still and will always do.. if I ever see any other site with this, I won&#8217;t return back).

The Rails Playground is widely open now, let&#8217;s see when it lands ;-)
The most unique thing to say about it, is the ability to host unlimited [...]]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s time to stop the stupid invitations (did hate them, hating them still and will always do.. if I ever see any other site with this, I won&#8217;t return back).
</p>
<p>The Rails Playground is widely open now, let&#8217;s see when it lands ;-)</p>
<p>The most unique thing to say about it, is the ability to host unlimited number of Rails applications on ONE (yes, ONE as 1) Mongrel instance. Without this trick, there would never be a way for the Playground to even exist.
</p>
<p>Oh, and yes, it has the best online source code editor for Ruby/Rails available, but that&#8217;s just a secondary effect :).
</p>
<p>
<a href="http://www.isonrails.com">Give it a try!</a> And be nice and leave some feedback (any kind of it is more than welcome, negative thoughts help as well).
</p>
<p>Enjoy! :-)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.april-child.com/blog/2008/04/17/opening-isonrailscom-rails-playground/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>*.isonrails.com &#8211; Rails Playground</title>
		<link>http://www.april-child.com/blog/2008/04/02/isonrailscom-invitation-phase-launched/</link>
		<comments>http://www.april-child.com/blog/2008/04/02/isonrailscom-invitation-phase-launched/#comments</comments>
		<pubDate>Wed, 02 Apr 2008 00:05:10 +0000</pubDate>
		<dc:creator>p</dc:creator>
				<category><![CDATA[Amy]]></category>
		<category><![CDATA[Rails]]></category>
		<category><![CDATA[Ruby]]></category>

		<guid isPermaLink="false">http://www.april-child.com/blog/2008/04/02/isonrailscom-invitation-phase-launched/</guid>
		<description><![CDATA[<a href="http://www.isonrails.com"><img src="http://www.isonrails.com/images/screenshots/batch_1/sframe_editor_2.png" width="200" style="float:left;margin-right:10px" title="*.isonrails.com Rails Playground" alt="Click to enter"/></a>
<p>
*.isonrails.com is the <a href="http://www.isonrails.com">Rails Playground</a> project I have been solely working on since .. well, if you know <a href="/amy">Amy Editor</a> - it was meant to be just a small part of it and main reason it all started.
</p>
<p>
I'm happy to announce, that after presenting the Playground on <a href="http://www.euruko2008.org">EURUKO 2008 Conference</a>, it is <a href="http://www.isonrails.com">now available</a> for joining in. 
</p>
<p>
The project is aimed to starting Rails developers or anyone wishing to just give Rails a try in few seconds without configuring and installing anything on her computer. All you need is a decent browser (Safari, Firefox, even Opera or Internet Explorer will do). No Ruby, no Rails, no gems, no setup.
</p>
]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.isonrails.com"><img src="http://www.isonrails.com/images/screenshots/batch_1/sframe_editor_2.png" width="200" style="float:left;margin-right:10px" title="*.isonrails.com Rails Playground" alt="Click to enter"/></a></p>
<p>
*.isonrails.com is the <a href="http://www.isonrails.com">Rails Playground</a> project I have been solely working on since .. well, if you know <a href="/amy">Amy Editor</a> &#8211; it was meant to be just a small part of it and main reason it all started.
</p>
<p>
I&#8217;m happy to announce, that after presenting the Playground on <a href="http://www.euruko2008.org">EURUKO 2008 Conference</a>, it is <a href="http://www.isonrails.com">now available</a> for joining in.
</p>
<p>
The project is aimed to starting Rails developers or anyone wishing to just give Rails a try in few seconds without configuring and installing anything on her computer. All you need is a decent browser (Safari, Firefox, even Opera or Internet Explorer will do). No Ruby, no Rails, no gems, no setup.
</p>
<p>
Do not hesitate and <a href="http://www.isonrails.com">give it a try</a>! :)
</p>
<p>
P.S. &#8211; the project is currently in invitation phase meaning you simply request for invitation, we confirm it and you&#8217;ll be able to hop in. This is meant to be just a temporary, it will later be open to registrations without invitations to anyone.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.april-child.com/blog/2008/04/02/isonrailscom-invitation-phase-launched/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Running Ruby in PostgreSQL on Mac OS X</title>
		<link>http://www.april-child.com/blog/2007/05/10/running-ruby-in-postgresql-on-mac-os-x/</link>
		<comments>http://www.april-child.com/blog/2007/05/10/running-ruby-in-postgresql-on-mac-os-x/#comments</comments>
		<pubDate>Thu, 10 May 2007 08:05:22 +0000</pubDate>
		<dc:creator>p</dc:creator>
				<category><![CDATA[PostgreSQL]]></category>
		<category><![CDATA[Ruby]]></category>

		<guid isPermaLink="false">http://www.april-child.com/blog/2007/05/10/running-ruby-in-postgresql-on-mac-os-x/</guid>
		<description><![CDATA[No doubt, PostgreSQL is the best open-source database system. You may argue about that, but there&#8217;s nothing else for you to do than accept it :-). Ruby, on the other hand, is love at the first sight language, so it&#8217;s seems natural to combine those two and become comfortable happy, uhmm ;-). I&#8217;ll show you [...]]]></description>
			<content:encoded><![CDATA[<p>No doubt, PostgreSQL is the best open-source database system. You may argue about that, but there&#8217;s nothing else for you to do than accept it :-). Ruby, on the other hand, is love at the first sight language, so it&#8217;s seems natural to combine those two and become comfortable happy, uhmm ;-). I&#8217;ll show you how to make this combination happen on OS X, compilation on other platforms is described somewhere else.</p>
<p><em>Compiled on: iMac 2.16 GHz, Intel Core 2 Duo, Mac OS X 10.4.9, Ruby 1.8.5 (2006-12-25 patchlevel 12) [i686-darwin8.8.1], PostgreSQL 8.1.8</em></p>
<p>Prerequisities: PostgreSQL installed from source (compiled &#8211; not difficult, and compiles smoothly), Ruby installed</p>
<ul>
<li>1. get the <a href="http://raa.ruby-lang.org/list.rhtml?name=pl-ruby">PL/Ruby package</a> by Guy Decoux. </li>
<li>2. ungzip the archive (double click will do, command-line fans &#8211; do whatever you like:-)</li>
<li>3. in Terminal enter the plruby-0.5.0 directory</li>
<li>4. type <tt>ruby extconf.rb --with-safe-level=0</tt></li>
<li>5. type <tt>make</tt></li>
<li>6. type <tt>sudo make install</tt></li>
<li>7. now PL/Ruby is installed, we need to create some PostgreSQL hook before starting to write our stored procedures/functions in Ruby.</li>
<li>8. enter the template1 database, which is used as template for newly created databases. type <tt>psql template1</tt></li>
<li>9. type <tt>create function plruby_call_handler() returns language_handler as '/usr/local/lib/ruby/site_ruby/1.8/i686-darwin8.8.1/plruby.bundle' language 'C';</tt></li>
<li>10. create language inside the database <tt>create language 'plruby' handler plruby_call_handler lancompiler 'PL/Ruby';  </tt></li>
<li>11. quit the console <tt>\q</tt>, you are set.
</ul>
<p>Now you might want to create new database that will include PL/Ruby language. If you want to add Ruby support to existing database, simply repeat steps 9 to 11 for your database.</p>
<p>Let&#8217;s see some action, we will write one simple stupid function used as multiplier, written in Ruby. *<strong>Sorry folks, I don&#8217;t know how to disable typographic apostrophes in Wordpres, you have to replace ` to &#8216; in the commands.</strong>*</p>
<p><code class="code"><br />
<strong>psql template1</strong><br />
Welcome to psql 8.1.8, the PostgreSQL interactive terminal.</p>
<p>Type:  \copyright for distribution terms<br />
       \h for help with SQL commands<br />
       \? for help with psql commands<br />
       \g or terminate with semicolon to execute query<br />
       \q to quit</p>
<p>template1=# <strong>create database rubytest;</strong><br />
CREATE DATABASE<br />
template1=# <strong>\c rubytest</strong><br />
You are now connected to database "rubytest".<br />
rubytest=# <strong>create or replace function ruby_multiply(integer) returns integer as 'return 2*args[0].to_i' language 'plruby';</strong><br />
CREATE FUNCTION<br />
rubytest=# <strong>select ruby_multiply(2);</strong><br />
 ruby_multiply<br />
----------<br />
      4<br />
(1 row)<br />
</code></p>
<p>More to be found at: <a href="http://www.robbyonrails.com/articles/2005/08/22/installing-untrusted-pl-ruby-for-postgresql">Installing untrusted PL/Ruby for PostgreSQL</a> and  <a href="http://www.robbyonrails.com/articles/2005/08/22/pl-ruby-loves-rubygems-and-drb">PL/Ruby loves RubyGems and DRb</a> by Robby Russel, and official <a href="http://moulon.inra.fr/ruby/plruby.html">PL/Ruby</a> project homepage.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.april-child.com/blog/2007/05/10/running-ruby-in-postgresql-on-mac-os-x/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
