<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Ruby on Squid's Blog</title><link>https://gigasquidsoftware.com/categories/ruby/</link><description>Recent content in Ruby on Squid's Blog</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Mon, 08 Aug 2011 02:30:21 +0000</lastBuildDate><atom:link href="https://gigasquidsoftware.com/categories/ruby/atom.xml" rel="self" type="application/rss+xml"/><item><title>Semantic Web and JRuby</title><link>https://gigasquidsoftware.com/blog/2011/08/08/semantic-web-and-jruby/</link><pubDate>Mon, 08 Aug 2011 02:30:21 +0000</pubDate><guid>https://gigasquidsoftware.com/blog/2011/08/08/semantic-web-and-jruby/</guid><description>&lt;p&gt;I got the chance to share my enthusiasm for two of my favorite technologies at JRubyConf by giving a presentation on Semantic Web and JRuby. It was an excellent experience. I was able to connect with other people that shared my interest in the Semantic Web and some that have even worked with the technologies professionally. Most exciting, I had the opportunity to share my knowledge and hopefully inspire others to look farther into using JRuby with the Jena Semantic Web Framework.&lt;/p&gt;</description></item><item><title>Yellow Belt Katas for Ruby and Clojure</title><link>https://gigasquidsoftware.com/blog/2011/04/16/yellow-belt-katas-for-ruby-and-clojure/</link><pubDate>Sat, 16 Apr 2011 03:11:29 +0000</pubDate><guid>https://gigasquidsoftware.com/blog/2011/04/16/yellow-belt-katas-for-ruby-and-clojure/</guid><description>&lt;p&gt;I have put a couple projects out on GitHub to help people get started with Clojure and Ruby.
The Katas are taken more or less from the Coding Kata site &lt;a href="http://codingkata.org/katas/"&gt;http://codingkata.org/katas/&lt;/a&gt;. The projects both include the basic project setup for you to get started with TDD beginner katas.&lt;/p&gt;
&lt;p&gt;The Ruby project has tests in the form of rspec-given, which is quite fun. The Clojure project has tests in the form of Midje, which has a lovely syntax.&lt;/p&gt;</description></item><item><title>On Thinking in Ruby and Clojure</title><link>https://gigasquidsoftware.com/blog/2011/04/08/on-thinking-in-ruby-and-clojure/</link><pubDate>Fri, 08 Apr 2011 02:02:09 +0000</pubDate><guid>https://gigasquidsoftware.com/blog/2011/04/08/on-thinking-in-ruby-and-clojure/</guid><description>&lt;p&gt;Recently, I decided to work on a set of code Katas. I couldn&amp;rsquo;t decide whether to do them in Ruby or Clojure, so I decided to do them in both. I did the Kata in Ruby first and then immediately followed up with the same one in Clojure. It was an interesting exercise, not only for the learning of the languages, but to highlight how I thought about the problems differently depending on the language.&lt;/p&gt;</description></item><item><title>Zen and Zombies - Adventures in Ruby</title><link>https://gigasquidsoftware.com/blog/2010/11/20/zen-and-zombies-adventures-in-ruby/</link><pubDate>Sat, 20 Nov 2010 04:06:07 +0000</pubDate><guid>https://gigasquidsoftware.com/blog/2010/11/20/zen-and-zombies-adventures-in-ruby/</guid><description>&lt;p&gt;What do Zen and Zombies have in common? You probably got the beginning with the letter “Z”, but did you also guess Ruby? This blog post is to share two awesome and fun filled ways to learn Ruby and Ruby and Rails.&lt;/p&gt;
&lt;p&gt;First, let&amp;rsquo;s start with the Zen. &lt;a href="http://edgecase.com/"&gt;Edgecase &lt;/a&gt;created a great way of learning Ruby. It is through &lt;a href="http://rubykoans.com/"&gt;Ruby Koans &lt;/a&gt;. Koans are a way of teaching Zen through questions. The master asks the student a question. The student then meditates on it until they come to the answer , eventually leading to enlightenment. The Ruby Koans are cleverly designed to teach bite size tidbits of the Ruby language through the completion of unfinished test cases. Each test case is a Koan. Every time you fix the test case by filling in the blanks, you are gaining a deeper understanding of the language. The main path_to_enlightment.rb file leads you through test cases that explore many areas of the languages such as Strings, Classes, Methods, and Exceptions. Enlightenment has never been so much fun.&lt;/p&gt;</description></item><item><title>Openssl fix for Rails 3.0 on Ubuntu</title><link>https://gigasquidsoftware.com/blog/2010/09/12/openssl-fix-for-rails-3.0-on-ubuntu/</link><pubDate>Sun, 12 Sep 2010 14:11:14 +0000</pubDate><guid>https://gigasquidsoftware.com/blog/2010/09/12/openssl-fix-for-rails-3.0-on-ubuntu/</guid><description>&lt;p&gt;If you are trying to run ruby rvm and rails 3.0 on Ubuntu you might run into this problem when you start up you server.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;LoadError: no such file to load
-- openssl
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;After much googling and researching – just installing the openssl library on your system won&amp;rsquo;t fix the problem. You need to recompile and install your rvm ruby version with the openssl. I found this fixed it for me.&lt;/p&gt;</description></item><item><title>Fox In Socks Blocks</title><link>https://gigasquidsoftware.com/blog/2010/08/20/fox-in-socks-blocks/</link><pubDate>Fri, 20 Aug 2010 02:43:34 +0000</pubDate><guid>https://gigasquidsoftware.com/blog/2010/08/20/fox-in-socks-blocks/</guid><description>&lt;p&gt;In honor of the Ruby &lt;a href="http://www.globalnerdy.com/2010/08/19/whyday-today-august-19th/"&gt;Why Day&lt;/a&gt;, I was inspired to dabble in Ruby Blocks after being reading &amp;ldquo;Fox In Socks&amp;rdquo; multiple times to my children before bed. For all of you parents out there that have read the book many, many times while your children are giggling at your pronunciation difficulties, I am sure this bit will be familiar:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;def fox_in_socks_blocks
chicks_bricks = [&amp;quot;Chicks&amp;quot;,&amp;quot;bricks&amp;quot;,&amp;quot;blocks&amp;quot;,&amp;quot;clocks&amp;quot;]
yield chicks_bricks[0..1]
yield [chicks_bricks[0],chicks_bricks[2]]
yield chicks_bricks
end
fox_in_socks_blocks do |sillywords|
puts &amp;quot;#{sillywords[0]} with #{sillywords[1]} come.&amp;quot; if sillywords.size &amp;lt; 3
puts &amp;quot;#{sillywords[0]} with #{sillywords[1]} and #{sillywords[2]} and #{sillywords[3]} come.&amp;quot; if sillywords.size &amp;gt;= 3
end
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;That&amp;rsquo;s right - the output is:
&lt;code&gt;Chicks with bricks come. Chicks with blocks come. Chicks with bricks and blocks and clocks come.&lt;/code&gt;&lt;/p&gt;</description></item></channel></rss>