<?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>Philippine Ruby Users Group</title>
	<atom:link href="http://pinoyrb.org/feed" rel="self" type="application/rss+xml" />
	<link>http://pinoyrb.org</link>
	<description></description>
	<lastBuildDate>Thu, 26 Apr 2012 08:59:00 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.3</generator>
		<item>
		<title>April 2012 Meetup Videos</title>
		<link>http://pinoyrb.org/ruby/april-2012-meetup-videos</link>
		<comments>http://pinoyrb.org/ruby/april-2012-meetup-videos#comments</comments>
		<pubDate>Thu, 26 Apr 2012 08:47:21 +0000</pubDate>
		<dc:creator>Bryan Bibat</dc:creator>
				<category><![CDATA[rails]]></category>
		<category><![CDATA[ruby]]></category>

		<guid isPermaLink="false">http://pinoyrb.org/?p=556</guid>
		<description><![CDATA[Friendster hosted this month&#8217;s meetup. Turnout wasn&#8217;t as good as last month&#8217;s, but that only meant more pizza and booze for us!]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.friendster.com/">Friendster</a> hosted this month&#8217;s meetup. </p>
<p>Turnout wasn&#8217;t as good as last month&#8217;s, but that only meant </p>
<p><img src="https://s3-ap-southeast-1.amazonaws.com/bryanbibat/images/pizza.jpg" alt="booze and Papa John's pizza" /></p>
<p>more pizza and booze for us!</p>
<p><iframe width="560" height="315" src="http://www.youtube-nocookie.com/embed/videoseries?list=PL51FBC9EE8DB937B5&amp;hl=en_US" frameborder="0" allowfullscreen></iframe></p>
]]></content:encoded>
			<wfw:commentRss>http://pinoyrb.org/ruby/april-2012-meetup-videos/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Quick Look at Notepad++ as a Windows Ruby/Rails Editor</title>
		<link>http://pinoyrb.org/ruby/quick-look-at-notepad-as-a-windows-rubyrails-editor</link>
		<comments>http://pinoyrb.org/ruby/quick-look-at-notepad-as-a-windows-rubyrails-editor#comments</comments>
		<pubDate>Fri, 30 Mar 2012 11:58:29 +0000</pubDate>
		<dc:creator>Bryan Bibat</dc:creator>
				<category><![CDATA[ruby]]></category>

		<guid isPermaLink="false">http://blog.bryanbibat.net/?p=1569</guid>
		<description><![CDATA[Last year, I looked at the better Ruby/Rails editors in Windows. With Notepad++ version 6 released recently, I decided to check whether it&#8217;s good enough to be an alternative to those two. Screenshot again with my depressing lotto app: Overall, it&#8217;s ok, especially with the Explorer plugin. However, there are still a bunch of stuff [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://blog.bryanbibat.net/2011/02/14/free-windows-rubyrails-editors-redcar-and-sublime-text-2/">Last year</a>, I looked at the better Ruby/Rails editors in Windows. <a href="http://notepad-plus-plus.org/news/notepad-6.0-release.html">With Notepad++ version 6 released recently</a>, I decided to check whether it&#8217;s good enough to be an alternative to those two.</p>
<p>Screenshot again with my depressing lotto app:</p>
<p><a href="http://images.bryanbibat.net/notepadpp-ruby.png"><img src="http://images.bryanbibat.net/notepadpp-ruby.jpg" alt="notepad++" class="aligncenter" /></a></p>
<p>Overall, it&#8217;s ok, especially with the Explorer plugin. However, there are still a bunch of stuff I&#8217;d nitpick about:</p>
<ul>
<li>Split screen is limited to 2 screens. Which is weird limitation considering both vim and emacs can do an infinite number of them.</li>
<li>EOL symbols are ugly and can&#8217;t be modified.</li>
<li>No Haml support yet.</li>
</ul>

<p class="syndicated-attribution">This post by <a href="http://pinoyrb.org/author/bry" title="Read other posts by Bryan Bibat">Bryan Bibat</a> is from <a href="http://blog.bryanbibat.net/2012/03/30/quick-look-at-notepad-as-a-windows-rubyrails-editor/">existence, refactored</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://pinoyrb.org/ruby/quick-look-at-notepad-as-a-windows-rubyrails-editor/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>March 2012 Meetup Videos</title>
		<link>http://pinoyrb.org/ruby/march-2012-meetup-videos</link>
		<comments>http://pinoyrb.org/ruby/march-2012-meetup-videos#comments</comments>
		<pubDate>Fri, 16 Mar 2012 01:35:49 +0000</pubDate>
		<dc:creator>Bryan Bibat</dc:creator>
				<category><![CDATA[rails]]></category>
		<category><![CDATA[ruby]]></category>

		<guid isPermaLink="false">http://pinoyrb.org/?p=544</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<p><iframe width="560" height="315" src="http://www.youtube-nocookie.com/embed/videoseries?list=PLA2B78ACED31AF4A7&amp;hl=en_US" frameborder="0" allowfullscreen></iframe></p>
]]></content:encoded>
			<wfw:commentRss>http://pinoyrb.org/ruby/march-2012-meetup-videos/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Architecture the Lost Years by Robert Martin</title>
		<link>http://pinoyrb.org/ruby/architecture-the-lost-years-by-robert-martin</link>
		<comments>http://pinoyrb.org/ruby/architecture-the-lost-years-by-robert-martin#comments</comments>
		<pubDate>Tue, 06 Mar 2012 05:14:15 +0000</pubDate>
		<dc:creator>Greg Moreno</dc:creator>
				<category><![CDATA[rails]]></category>
		<category><![CDATA[ruby]]></category>

		<guid isPermaLink="false">http://gregmoreno.wordpress.com/?p=538</guid>
		<description><![CDATA[
         ]]></description>
			<content:encoded><![CDATA[<p><span style="text-align:center; display: block;"><a href="http://gregmoreno.wordpress.com/2012/03/06/architecture-the-lost-years-by-robert-martin/"><img src="http://img.youtube.com/vi/WpkDN78P884/2.jpg" alt="" /></a></span></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/gregmoreno.wordpress.com/538/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/gregmoreno.wordpress.com/538/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/gregmoreno.wordpress.com/538/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/gregmoreno.wordpress.com/538/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/gregmoreno.wordpress.com/538/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/gregmoreno.wordpress.com/538/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/gregmoreno.wordpress.com/538/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/gregmoreno.wordpress.com/538/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/gregmoreno.wordpress.com/538/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/gregmoreno.wordpress.com/538/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/gregmoreno.wordpress.com/538/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/gregmoreno.wordpress.com/538/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/gregmoreno.wordpress.com/538/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/gregmoreno.wordpress.com/538/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gregmoreno.wordpress.com&#038;blog=5062655&%23038;post=538&%23038;subd=gregmoreno&%23038;ref=&%23038;feed=1" width="1" height="1" />
<p class="syndicated-attribution">This post by <a href="http://pinoyrb.org/author/greg" title="Read other posts by Greg Moreno">Greg Moreno</a> is from <a href="http://gregmoreno.wordpress.com/2012/03/06/architecture-the-lost-years-by-robert-martin/">Greg Moreno</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://pinoyrb.org/ruby/architecture-the-lost-years-by-robert-martin/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
<enclosure url="http://0.gravatar.com/avatar/ed357f6cb63c16d83b35fc29e5502e44?s=96&amp;amp;d=http://0.gravatar.com/avatar/ad516503a11cd5ca435acc9bb6523536?s=96" length="" type="" />
		</item>
		<item>
		<title>More Ruby tips and tricks</title>
		<link>http://pinoyrb.org/ruby/more-ruby-tips-and-tricks</link>
		<comments>http://pinoyrb.org/ruby/more-ruby-tips-and-tricks#comments</comments>
		<pubDate>Sat, 03 Mar 2012 01:50:39 +0000</pubDate>
		<dc:creator>Greg Moreno</dc:creator>
				<category><![CDATA[ruby]]></category>

		<guid isPermaLink="false">http://gregmoreno.wordpress.com/?p=527</guid>
		<description><![CDATA[String to number conversion gotcha Case insensitive regular expression Hash is ordered in 1.9 Filter a list using several conditions Randomly pick an element from an array List methods unique to a class Globbing key-value pairs<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gregmoreno.wordpress.com&#38;blog=5062655&#38;post=527&#38;subd=gregmoreno&#38;ref=&#38;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><strong>String to number conversion gotcha</strong></p>
<p><pre class="brush: ruby;">
&gt;&gt; Float('3.14159')
=&gt; 3.14159 
&gt;&gt; '3.14159'.to_f
=&gt; 3.14159 

# However, Float() method will return an exception if given
# a bad input while to_f() will ignore everything from the 
# offending character.

&gt;&gt; Float('3.x14159')
ArgumentError: invalid value for Float(): &quot;3.x14159&quot;
	from (irb):4:in 'Float'
	from (irb):4

&gt;&gt; '3.x14159'.to_f
=&gt; 3.0


# Similar case with to_i() and Integer().

&gt;&gt; Integer('19x69')
ArgumentError: invalid value for Integer(): &quot;19x69&quot;
	from (irb):15:in 'Integer'
	from (irb):15
	from /Users/greg/.rvm/rubies/ruby-1.9.2-p0/bin/irb:17:in '&lt;main&gt;'

&gt;&gt; '19x69'.to_i
=&gt; 19 
</pre></p>
<p><strong>Case insensitive regular expression</strong></p>
<p><pre class="brush: ruby;">
# Regex is case sensitive by default. 
# Adding 'i' for insensitive match
puts 'matches' if  /AM/i =~ 'am'
</pre></p>
<p><strong>Hash is ordered in 1.9</strong></p>
<p><pre class="brush: ruby;">
# new syntax in 1.9
h = {first: 'a', second: 'b', third: 'c'}

# hashes in 1.9 are ordered
h.each do |e|
  pp e
end
</pre></p>
<p><strong>Filter a list using several conditions</strong></p>
<p><pre class="brush: ruby;">
conditions = [
    proc { |i| i &gt; 5 },
    proc { |i| (i % 2).zero? },
    proc { |i| (i % 3).zero? }
  ]

matches = (1..100).select do |i|
  conditions.all? { |c| c[i] }
end
</pre></p>
<p><strong>Randomly pick an element from an array</strong></p>
<p><pre class="brush: ruby;">
&gt;&gt; [1,2,3,4,5].sample
=&gt; 2 
&gt;&gt; [1,2,3,4,5].sample
=&gt; 1 

# pick 2 random elements

&gt;&gt; [1,2,3,4,5].sample(2)
=&gt; [1, 5]
</pre></p>
<p><strong>List methods unique to a class</strong></p>
<p><pre class="brush: ruby;">
# List all instance methods that starts with 're' 
# including those inherited by String.

&gt;&gt; String.instance_methods.grep /^re/
=&gt; [:replace, :reverse, :reverse!, :respond_to?, :respond_to_missing?] 

# List methods unique to String, i.e. not include 
# those defined by its ancestors.

&gt;&gt; String.instance_methods(false).grep /^re/
=&gt; [:replace, :reverse, :reverse!]
</pre></p>
<p><strong>Globbing key-value pairs</strong></p>
<p><pre class="brush: ruby;">
&gt;&gt; h = Hash['a', 1, 'b', 2]
=&gt; {&quot;a&quot;=&gt;1, &quot;b&quot;=&gt;2}

&gt;&gt; h = Hash[ [ ['a', 1], ['b', 2] ] ] 
=&gt; {&quot;a&quot;=&gt;1, &quot;b&quot;=&gt;2}

&gt;&gt; h = Hash[ 'a' =&gt; 1, 'b' =&gt; 2 ]
=&gt; {&quot;a&quot;=&gt;1, &quot;b&quot;=&gt;2}

# The first form is very useful for globbing key-value pairs in Rails’ routes. For example, if you have the following:

# route definition in Rails 3
match 'items/*specs' =&gt; 'items#specs'

# sample url
http://localhost:3000/items/year/1969/month/7/day/21

# params[:specs] will be set

&gt;&gt; params[:specs]
=&gt; &quot;year/1969/month/7/day/21&quot;

&gt;&gt; h = Hash[*params[:specs].split('/')]
=&gt; {&quot;year&quot;=&gt;&quot;1969&quot;, &quot;month&quot;=&gt;&quot;7&quot;, &quot;day&quot;=&gt;&quot;21&quot;}
</pre></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/gregmoreno.wordpress.com/527/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/gregmoreno.wordpress.com/527/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/gregmoreno.wordpress.com/527/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/gregmoreno.wordpress.com/527/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/gregmoreno.wordpress.com/527/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/gregmoreno.wordpress.com/527/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/gregmoreno.wordpress.com/527/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/gregmoreno.wordpress.com/527/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/gregmoreno.wordpress.com/527/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/gregmoreno.wordpress.com/527/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/gregmoreno.wordpress.com/527/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/gregmoreno.wordpress.com/527/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/gregmoreno.wordpress.com/527/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/gregmoreno.wordpress.com/527/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gregmoreno.wordpress.com&#038;blog=5062655&%23038;post=527&%23038;subd=gregmoreno&%23038;ref=&%23038;feed=1" width="1" height="1" />
<p class="syndicated-attribution">This post by <a href="http://pinoyrb.org/author/greg" title="Read other posts by Greg Moreno">Greg Moreno</a> is from <a href="http://gregmoreno.wordpress.com/2012/03/03/more-ruby-tips-and-tricks/">Greg Moreno</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://pinoyrb.org/ruby/more-ruby-tips-and-tricks/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
<enclosure url="http://0.gravatar.com/avatar/ed357f6cb63c16d83b35fc29e5502e44?s=96&amp;amp;d=http://0.gravatar.com/avatar/ad516503a11cd5ca435acc9bb6523536?s=96" length="" type="" />
		</item>
		<item>
		<title>Convert FanFiction.net Stories into PDF</title>
		<link>http://pinoyrb.org/ruby/convert-fanfiction-net-stories-into-pdf</link>
		<comments>http://pinoyrb.org/ruby/convert-fanfiction-net-stories-into-pdf#comments</comments>
		<pubDate>Sun, 19 Feb 2012 05:39:02 +0000</pubDate>
		<dc:creator>Bryan Bibat</dc:creator>
				<category><![CDATA[ruby]]></category>

		<guid isPermaLink="false">http://blog.bryanbibat.net/?p=1531</guid>
		<description><![CDATA[Had a coding itch last week related to web scraping and LaTeX PDF conversion. One thing led to another and the end result was my first ever Ruby Gem: ffnpdf, a tool that converts FanFiction.net stories into PDF files. (Great for putting your favorite Harry Potter slash fics on your mobile phone or tablet for [...]]]></description>
			<content:encoded><![CDATA[<p>Had a coding itch last week related to web scraping and LaTeX PDF conversion. One thing led to another and the end result was my first ever <a href="http://en.wikipedia.org/wiki/RubyGems">Ruby Gem</a>: </p>
<p><a href="https://rubygems.org/gems/ffnpdf"><code>ffnpdf</code></a>, a tool that converts <a href="http://fanfiction.net">FanFiction.net</a> stories into PDF files. </p>
<p>(Great for putting your favorite Harry Potter slash fics on your mobile phone or tablet for portable use! LOL)</p>
<p>The code and documentation are found at <a href="https://github.com/bryanbibat/ffnpdf">the Github page</a>. Theoretically, this gem can work anywhere Ruby, pandoc, and XeTeX can be installed (e.g. Windows, OS X, *nix) but I&#8217;ve only been able to make the whole thing work in Ubuntu/Mint.</p>
<p>Demo and how-tos are posted in <a href="http://www.youtube.com/playlist?list=PLA7C6F157E1651A69">this playlist</a>:</p>
<p><iframe width="560" height="315" src="http://www.youtube.com/embed/videoseries?list=PLA7C6F157E1651A69&amp;hl=en_US" frameborder="0" allowfullscreen></iframe></p>
<p>I haven&#8217;t gotten around to make a license for this, but I assume that anyone into fanfiction knows that publishing and selling fanfics without consent from the rights owner is a <em>big no-no</em>. Thus, I don&#8217;t need remind them that this tool is just for personal use and not for commercial purposes.</p>

<p class="syndicated-attribution">This post by <a href="http://pinoyrb.org/author/bry" title="Read other posts by Bryan Bibat">Bryan Bibat</a> is from <a href="http://blog.bryanbibat.net/2012/02/19/convert-fanfiction-net-stories-into-pdf/">existence, refactored</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://pinoyrb.org/ruby/convert-fanfiction-net-stories-into-pdf/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>February 2012 Meetup Video</title>
		<link>http://pinoyrb.org/ruby/february-2012-meetup-video</link>
		<comments>http://pinoyrb.org/ruby/february-2012-meetup-video#comments</comments>
		<pubDate>Sat, 18 Feb 2012 07:51:01 +0000</pubDate>
		<dc:creator>Bryan Bibat</dc:creator>
				<category><![CDATA[rails]]></category>
		<category><![CDATA[ruby]]></category>

		<guid isPermaLink="false">http://pinoyrb.org/?p=518</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<p><iframe width="560" height="315" src="http://www.youtube.com/embed/6ec8OopBI_k" frameborder="0" allowfullscreen></iframe></p>
]]></content:encoded>
			<wfw:commentRss>http://pinoyrb.org/ruby/february-2012-meetup-video/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Project Я: A Ruby/HTML5 Visual Novel</title>
		<link>http://pinoyrb.org/ruby/project-%d1%8f-a-rubyhtml5-visual-novel</link>
		<comments>http://pinoyrb.org/ruby/project-%d1%8f-a-rubyhtml5-visual-novel#comments</comments>
		<pubDate>Sat, 18 Feb 2012 07:24:11 +0000</pubDate>
		<dc:creator>Bryan Bibat</dc:creator>
				<category><![CDATA[javascript]]></category>

		<guid isPermaLink="false">http://blog.bryanbibat.net/?p=1523</guid>
		<description><![CDATA[As promised, here&#8217;s the game I made for the Global Game Jam. Seeing that I couldn&#8217;t think of a quick web-based game matching the theme &#8220;Ouroboros&#8221;, I just went ahead with a joke I made sometime after the Ruby Rumble: Sa susunod na Rumble, gagawa ako ng hentai game sa Ruby! (For the next Rumble, [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://gamejam.bryanbibat.net"><img src="http://www.bryanbibat.net/images/project_r.jpg" class="aligncenter" alt="first scene" /></a></p>
<p>As promised, here&#8217;s the game I made for the <a href="http://globalgamejam.org/">Global Game Jam</a>.</p>
<p>Seeing that I couldn&#8217;t think of a quick web-based game matching the theme &#8220;Ouroboros&#8221;, I just went ahead with a joke I made sometime after the <a href="http://blog.bryanbibat.net/2011/06/04/basic-lessons-from-ruby-rumble-practice/">Ruby Rumble</a>:</p>
<blockquote><p><em>Sa susunod na Rumble, gagawa ako ng <a href="http://en.wikipedia.org/wiki/Eroge">hentai game</a> sa Ruby!</em><br />
(For the next Rumble, I&#8217;ll make a hentai game in Ruby!)</p></blockquote>
<p>So yeah, that&#8217;s how I ended up with a <a href="http://en.wikipedia.org/wiki/Visual_novel">Visual Novel</a>. Unfortunately for the people expecting sexually explicit scenes (which was about a third of the people who saw the game), the &#8220;game&#8221; I made was more <a href="http://en.wikipedia.org/wiki/Atlus">ATLUS</a>/<a href="http://en.wikipedia.org/wiki/Ace_Attorney">Capcom</a> than <a href="http://en.wikipedia.org/wiki/Key_(company)">Key</a>/<a href="http://en.wikipedia.org/wiki/Type-Moon">Type-Moon</a>. </p>
<p>Anyway, it&#8217;s more of a tech demo than a game, with me trying to implement a Cloud-based multi-platform visual novel with psychological themes and non-standard tactical RPG gameplay. Or in non-buzzword speak, an HTML5 adventure game playable over the internet.</p>
<p><a href="http://gamejam.bryanbibat.net">Play it here.</a> </p>
<p>Please use fake email addresses so you could view the changes when you change the answers to the initial questions.</p>
<p>&#8211;</p>
<p>Some boring technical details:</p>
<ul>
<li>Back end is a basic <a href="http://rubyonrails.org/">Rails 3.2</a> + MySQL stack</li>
<li>Used <a href="http://code.google.com/p/vn-canvas/"><code>vn-canvas</code></a> as the HTML 5 visual novel engine</li>
<li>Stock VN backgrounds from <a href="http://mao.sub.jp/">mao space</a></li>
</ul>
<p>I didn&#8217;t release the code because of how <strong>ridiculously horrible</strong> it is. I mean, using <code>GET</code> to update state, WTF?!? </p>

<p class="syndicated-attribution">This post by <a href="http://pinoyrb.org/author/bry" title="Read other posts by Bryan Bibat">Bryan Bibat</a> is from <a href="http://blog.bryanbibat.net/2012/02/18/project-%D1%8F-a-rubyhtml5-visual-novel/">existence, refactored</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://pinoyrb.org/ruby/project-%d1%8f-a-rubyhtml5-visual-novel/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>24 Ruby tips and tricks</title>
		<link>http://pinoyrb.org/ruby/24-ruby-tips-and-tricks</link>
		<comments>http://pinoyrb.org/ruby/24-ruby-tips-and-tricks#comments</comments>
		<pubDate>Thu, 09 Feb 2012 01:35:44 +0000</pubDate>
		<dc:creator>Greg Moreno</dc:creator>
				<category><![CDATA[ruby]]></category>

		<guid isPermaLink="false">http://gregmoreno.wordpress.com/?p=480</guid>
		<description><![CDATA[Peter Cooper will share more tips in his book to be released later this year. Stay tune and don&#8217;t forget to leave your email address to get updates at http://rubyreloaded.com/trickshots/ Here are some of the tips in the video. Generate &#8230; <a href="http://gregmoreno.wordpress.com/2012/02/09/24-ruby-language-tips-and-tricks/">Continue reading <span>&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gregmoreno.wordpress.com&#38;blog=5062655&#38;post=480&#38;subd=gregmoreno&#38;ref=&#38;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><span style="text-align:center; display: block;"><a href="http://gregmoreno.wordpress.com/2012/02/09/24-ruby-language-tips-and-tricks/"><img src="http://img.youtube.com/vi/gIEMKOI_Y-4/2.jpg" alt="" /></a></span></p>
<p>Peter Cooper will share more tips in his book to be released later this year. Stay tune and don&#8217;t forget to leave your email address to get updates at <a href="http://rubyreloaded.com/trickshots/">http://rubyreloaded.com/trickshots/</a></p>
<p>Here are some of the tips in the video.</p>
<p><strong>Generate random numbers within a given range</strong></p>
<p><pre class="brush: ruby;">
irb(main):019:0&gt; rand(10..20)
=&gt; 12
irb(main):020:0&gt; rand(10...20) # works with exclusive range
=&gt; 16
</pre></p>
<p><strong>Dump your object using awesome_print</strong><br />
<pre class="brush: ruby;">
# Install the gem first
gem install awesome_print

irb(main):001:0&gt; require 'ap'
=&gt; true
irb(main):002:0&gt; ap :a =&gt; 1, :b =&gt; 'greg', :c =&gt; [1,2,3]
{
    :a =&gt; 1,
    :b =&gt; &quot;greg&quot;,
    :c =&gt; [
        [0] 1,
        [1] 2,
        [2] 3
    ]
}
=&gt; {:a=&gt;1, :b=&gt;&quot;greg&quot;, :c=&gt;[1, 2, 3]}

</pre></p>
<p><strong>Concatenating strings</strong></p>
<p><pre class="brush: ruby;">
irb(main):005:0&gt; &quot;abc&quot; + &quot;def&quot;
=&gt; &quot;abcdef&quot;
irb(main):006:0&gt; &quot;abc&quot;.concat(&quot;def&quot;)
=&gt; &quot;abcdef&quot;
irb(main):007:0&gt; x = &quot;abc&quot; &quot;def&quot;
=&gt; &quot;abcdef&quot;
</pre></p>
<p><strong>Include modules in a single line</strong></p>
<p><pre class="brush: ruby;">
class MyClass
  include Module1, Module2, Module3
  # However, the modules are included in reverse order. Confusing eh!
end
</pre></p>
<p><strong>Instance variable interpolation</strong></p>
<p><pre class="brush: ruby;">
irb(main):008:0&gt; @name = &quot;greg&quot;
=&gt; &quot;greg&quot;
irb(main):009:0&gt; &quot;my name is #{@name}&quot;
=&gt; &quot;my name is greg&quot;
irb(main):010:0&gt; &quot;my name is #@name&quot;
=&gt; &quot;my name is greg&quot;
</pre></p>
<p>I still prefer the use curly braces.</p>
<p><strong>Syntax checking</strong><br />
<pre class="brush: ruby;">
➜  ruby -c facu.rb 
facu.rb:12: syntax error, unexpected keyword_end, expecting $end
</pre></p>
<p><strong>Zipping arrays</strong><br />
<pre class="brush: ruby;">
irb(main):027:0&gt; names = %w(fred jess john)
=&gt; [&quot;fred&quot;, &quot;jess&quot;, &quot;john&quot;]
irb(main):028:0&gt; ages = [38, 47,91]
=&gt; [38, 47, 91]
irb(main):029:0&gt; locations = %w(spain france usa)
=&gt; [&quot;spain&quot;, &quot;france&quot;, &quot;usa&quot;]
irb(main):030:0&gt; names.zip(ages)
=&gt; [[&quot;fred&quot;, 38], [&quot;jess&quot;, 47], [&quot;john&quot;, 91]]
irb(main):031:0&gt; names.zip(ages, locations)
=&gt; [[&quot;fred&quot;, 38, &quot;spain&quot;], [&quot;jess&quot;, 47, &quot;france&quot;], [&quot;john&quot;, 91, &quot;usa&quot;]]
</pre></p>
<p><strong>Range into arrays</strong></p>
<p><pre class="brush: ruby;">
irb(main):034:0&gt; (10..20).to_a  # what I used to do
=&gt; [10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20]
irb(main):035:0&gt; [*10..20]
=&gt; [10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20]
</pre></p>
<p><strong>Using parameter as default value</strong><br />
<pre class="brush: ruby;">
irb(main):047:0&gt; def method(a, b=a); &quot;#{a} #{b}&quot;; end
=&gt; nil
irb(main):048:0&gt; method 1
=&gt; &quot;1 1&quot;
irb(main):049:0&gt; method 1, 2
=&gt; &quot;1 2&quot;
</pre></p>
<p><strong>Put regex match in a variable</strong><br />
<pre class="brush: ruby;">
irb(main):058:0&gt; s = &quot;Greg Moreno&quot;
=&gt; &quot;Greg Moreno&quot;
irb(main):059:0&gt; /(?&lt;first&gt;\w+) (?&lt;second&gt;\w+)/ =~ s
=&gt; 0
irb(main):060:0&gt; first
=&gt; &quot;Greg&quot;
irb(main):061:0&gt; second
=&gt; &quot;Moreno&quot;
</pre></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/gregmoreno.wordpress.com/480/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/gregmoreno.wordpress.com/480/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/gregmoreno.wordpress.com/480/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/gregmoreno.wordpress.com/480/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/gregmoreno.wordpress.com/480/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/gregmoreno.wordpress.com/480/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/gregmoreno.wordpress.com/480/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/gregmoreno.wordpress.com/480/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/gregmoreno.wordpress.com/480/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/gregmoreno.wordpress.com/480/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/gregmoreno.wordpress.com/480/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/gregmoreno.wordpress.com/480/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/gregmoreno.wordpress.com/480/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/gregmoreno.wordpress.com/480/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gregmoreno.wordpress.com&#038;blog=5062655&%23038;post=480&%23038;subd=gregmoreno&%23038;ref=&%23038;feed=1" width="1" height="1" />
<p class="syndicated-attribution">This post by <a href="http://pinoyrb.org/author/greg" title="Read other posts by Greg Moreno">Greg Moreno</a> is from <a href="http://gregmoreno.wordpress.com/2012/02/09/24-ruby-language-tips-and-tricks/">Greg Moreno</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://pinoyrb.org/ruby/24-ruby-tips-and-tricks/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
<enclosure url="http://0.gravatar.com/avatar/ed357f6cb63c16d83b35fc29e5502e44?s=96&amp;amp;d=http://0.gravatar.com/avatar/ad516503a11cd5ca435acc9bb6523536?s=96" length="" type="" />
		</item>
		<item>
		<title>RailsFTW, now twice as fast!</title>
		<link>http://pinoyrb.org/ruby/railsftw-now-twice-as-fast</link>
		<comments>http://pinoyrb.org/ruby/railsftw-now-twice-as-fast#comments</comments>
		<pubDate>Sun, 05 Feb 2012 16:22:11 +0000</pubDate>
		<dc:creator>Bryan Bibat</dc:creator>
				<category><![CDATA[ruby]]></category>

		<guid isPermaLink="false">http://blog.bryanbibat.net/?p=1520</guid>
		<description><![CDATA[My Game Jam post is waaay overdue but some stuff happened this week (impromptu upgrade, server migration) so I&#8217;ll only get around to post about it probably later today. Anyway, this post is just about the new version up over at RailsFTW. This experimental build is based on TCS&#8217;s patched Ruby build which boasted a [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://railsftw.bryanbibat.net"><img alt="Rails FTW" class="aligncenter" src="http://www.bryanbibat.net/images/railsftw.png" /></a></p>
<p>My Game Jam post is waaay overdue but some stuff happened this week (impromptu upgrade, server migration) so I&#8217;ll only get around to post about it probably later today.</p>
<p>Anyway, this post is just about the new version up over at <a href="http://railsftw.bryanbibat.net">RailsFTW</a>. This experimental build is based on <a href="http://groups.google.com/group/thecodeshop/browse_thread/thread/29b6ef2062096902">TCS&#8217;s patched Ruby build</a> which boasted a ~200% increase in performance.</p>
<p>See it for yourself:</p>
<p><iframe width="480" height="360" src="http://www.youtube.com/embed/1pAn7xyLwW4" frameborder="0" allowfullscreen></iframe></p>

<p class="syndicated-attribution">This post by <a href="http://pinoyrb.org/author/bry" title="Read other posts by Bryan Bibat">Bryan Bibat</a> is from <a href="http://blog.bryanbibat.net/2012/02/06/railsftw-now-twice-as-fast/">existence, refactored</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://pinoyrb.org/ruby/railsftw-now-twice-as-fast/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

