<?xml version="1.0"?>
<rss version="2.0">
<channel>
  <title>Spikes Of Nothingness - ruby tag</title>
  <link>http://weblog.flop.ca/tags/ruby/</link>
  <description>Florin T.PATRASCU&#039;s blog</description>
  <language>en</language>
  <copyright>Florin T.PATRASCU</copyright>
  <lastBuildDate>Sat, 12 May 2012 02:12:08 GMT</lastBuildDate>
  <generator>Pebble (http://pebble.sourceforge.net)</generator>
  <docs>http://backend.userland.com/rss</docs>
  
  
  <item>
    <title>YASCal - beta release</title>
    <link>http://weblog.flop.ca/2012/05/11/1336788728929.html</link>
    
      
        <description>
          				&lt;p&gt;
Jerry Seinfeld invented a unique system he used to motivate himself to write. He put a big wall calendar on a prominent place. For each day he did his task of writing, he put a big red X over that day. Read more about this at: &lt;a href=&#034;http://lifehacker.com/281626/jerry-seinfelds-productivity-secret&#034;&gt;lifehacker&lt;/a&gt;
&lt;br/&gt;&lt;br/&gt;
Then, as he explained:
&lt;blockquote&gt;
after a few days you’ll have a chain. Just keep at it and the chain will grow longer every day. You’ll like seeing that chain, especially when you get a few weeks under your belt. Your only job next is to not break the chain.
&lt;/blockquote&gt;

&lt;/p&gt;

&lt;p&gt;
You can use &lt;a href=&#034;http://yascal.simplegames.ca&#034;&gt;YASCal&lt;/a&gt; to manage different ‘Seinfeld Calendars’ for your personal goals, whether these are to get you back in shape, learning something new, finishing things or simply forming good habits. Good luck!
&lt;/p&gt;

&lt;h2&gt;
&lt;a href=&#034;http://yascal.simplegames.ca&#034;&gt;Yet Another Seinfeld Calendar&lt;/a&gt;
&lt;/h2&gt;
        </description>
      
      
    
    
    
    <category>Ruby</category>
    
    <category>varia</category>
    
    <category>projects</category>
    
    <comments>http://weblog.flop.ca/2012/05/11/1336788728929.html#comments</comments>
    <guid isPermaLink="true">http://weblog.flop.ca/2012/05/11/1336788728929.html</guid>
    <pubDate>Sat, 12 May 2012 02:12:08 GMT</pubDate>
  </item>
  
  <item>
    <title>Sinatra-HART</title>
    <link>http://weblog.flop.ca/2012/05/05/1336251818868.html</link>
    
      
        <description>
          				&lt;p&gt;

Just published a boilerplate that can help you get up to speed with creating a Sinatra web application.

&lt;h3&gt;Sinatra-HART&lt;/h3&gt;

A Sinatra Haml, Activerecord, RSPEC and Twitter bootstrap boilerplate, with SimpleCov flavour :)

&lt;/p&gt;

&lt;p&gt;
You can find all the details &lt;a href=&#034;https://github.com/florinpatrascu/Sinatra-HART&#034;&gt;here&lt;/a&gt;, at github
&lt;/p&gt;


Have fun!
        </description>
      
      
    
    
    
    <category>Ruby</category>
    
    <comments>http://weblog.flop.ca/2012/05/05/1336251818868.html#comments</comments>
    <guid isPermaLink="true">http://weblog.flop.ca/2012/05/05/1336251818868.html</guid>
    <pubDate>Sat, 05 May 2012 21:03:38 GMT</pubDate>
  </item>
  
  <item>
    <title>extra 5 minutes of fun; JRuby and Velocity</title>
    <link>http://weblog.flop.ca/2009/11/06/1257527741363.html</link>
    
      
        <description>
          &lt;p&gt; As promised, this time I am showing you a very simple way to play with Velocity templating language in JRuby. &lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;blockquote&gt; &lt;strong&gt;jvel.rb&lt;/strong&gt;
&lt;pre&gt;&lt;font color=&#034;#444444&#034;&gt;# A simple JRuby Velocity integration demo &lt;br /&gt;# Notes: &lt;br /&gt;# - save this script as &#039;jvel.rb&#039;.&lt;br /&gt;# - in the folder from where you&#039;re executing this simple script, you&#039;ll&lt;br /&gt;#  have a subfolder: &#039;lib&#039;, containing the Velocity library:&lt;br /&gt;#   lib/velocity-1.6.2-dep.jar&lt;br /&gt;# This jar is intended to be used when you do standalone development&lt;br /&gt;# with Velocity. And assuming that you have jruby in the path, you can &lt;br /&gt;# run the script:&lt;br /&gt;#&lt;br /&gt;#   $ jruby jvel.rb World&lt;br /&gt;#&lt;br /&gt;# You&#039;ll see: Hello World!&lt;br /&gt;# ----------- &lt;br /&gt;&lt;br /&gt;&lt;/font&gt;&lt;font color=&#034;#a52a2a&#034;&gt;&lt;strong&gt;require&lt;/strong&gt;&lt;/font&gt; &lt;font color=&#034;#008000&#034;&gt;&#039;java&#039;&lt;/font&gt;   &lt;br /&gt;&lt;br /&gt;Dir&lt;font color=&#034;#4444ff&#034;&gt;&lt;strong&gt;[&lt;/strong&gt;&lt;/font&gt;&lt;font color=&#034;#008000&#034;&gt;&amp;quot;lib/*.jar&amp;quot;&lt;/font&gt;&lt;font color=&#034;#4444ff&#034;&gt;&lt;strong&gt;]&lt;/strong&gt;&lt;/font&gt;.each &lt;font color=&#034;#4444ff&#034;&gt;&lt;strong&gt;{&lt;/strong&gt;&lt;/font&gt; |jar| &lt;font color=&#034;#a52a2a&#034;&gt;&lt;strong&gt;require&lt;/strong&gt;&lt;/font&gt; jar &lt;font color=&#034;#4444ff&#034;&gt;&lt;strong&gt;}&lt;br /&gt;&lt;/strong&gt;&lt;/font&gt;&amp;nbsp;&lt;br /&gt;&lt;strong&gt;class&lt;font color=&#034;#2040a0&#034;&gt;&lt;strong&gt; JRubyVelocity&lt;/strong&gt;&lt;/font&gt;&lt;/strong&gt;   &lt;br /&gt;    include_class &lt;font color=&#034;#008000&#034;&gt;&#039;java.io.StringWriter&#039;&lt;/font&gt;   &lt;br /&gt;    include_class &lt;font color=&#034;#008000&#034;&gt;&#039;org.apache.velocity.app.Velocity&#039;&lt;/font&gt;   &lt;br /&gt;    include_class &lt;font color=&#034;#008000&#034;&gt;&#039;org.apache.velocity.VelocityContext&#039;&lt;/font&gt;    &lt;strong&gt;&lt;br /&gt;&lt;br /&gt;  def&lt;font color=&#034;#ff0000&#034;&gt; render&lt;/font&gt;&lt;/strong&gt; &lt;font color=&#034;#4444ff&#034;&gt;&lt;strong&gt;(&lt;/strong&gt;&lt;/font&gt; arg&lt;font color=&#034;#4444ff&#034;&gt;&lt;strong&gt;)&lt;/strong&gt;&lt;/font&gt; &lt;br /&gt;    Velocity.init&lt;br /&gt;    writer &lt;font color=&#034;#4444ff&#034;&gt;=&lt;/font&gt; StringWriter.new  &lt;br /&gt;    ctx &lt;font color=&#034;#4444ff&#034;&gt;=&lt;/font&gt; VelocityContext.new&lt;font color=&#034;#4444ff&#034;&gt;&lt;strong&gt;(&lt;/strong&gt;&lt;/font&gt; &lt;font color=&#034;#4444ff&#034;&gt;&lt;strong&gt;{&lt;/strong&gt;&lt;/font&gt;&lt;font color=&#034;#008000&#034;&gt;&#039;name&#039;&lt;/font&gt; &lt;font color=&#034;#4444ff&#034;&gt;=&amp;gt;&lt;/font&gt; arg&lt;font color=&#034;#4444ff&#034;&gt;&lt;strong&gt;}&lt;/strong&gt;&lt;/font&gt;&lt;font color=&#034;#4444ff&#034;&gt;&lt;strong&gt;)&lt;/strong&gt;&lt;/font&gt;                      &lt;br /&gt;    Velocity.evaluate&lt;font color=&#034;#4444ff&#034;&gt;&lt;strong&gt;(&lt;/strong&gt;&lt;/font&gt; ctx&lt;font color=&#034;#4444ff&#034;&gt;,&lt;/font&gt; writer&lt;font color=&#034;#4444ff&#034;&gt;,&lt;/font&gt; &lt;font color=&#034;#008000&#034;&gt;&amp;quot;log&amp;quot;&lt;/font&gt;&lt;font color=&#034;#4444ff&#034;&gt;,&lt;/font&gt; &lt;font color=&#034;#008000&#034;&gt;&amp;quot;Hello ${name}!&amp;quot;&lt;/font&gt;&lt;font color=&#034;#4444ff&#034;&gt;&lt;strong&gt;)&lt;/strong&gt;&lt;/font&gt; &lt;br /&gt;    &lt;strong&gt;return&lt;/strong&gt; writer.getBuffer&lt;br /&gt;  &lt;strong&gt;end&lt;br /&gt;&lt;/strong&gt;&lt;strong&gt;end&lt;/strong&gt;  &lt;br /&gt;&lt;br /&gt;&lt;font color=&#034;#a52a2a&#034;&gt;&lt;strong&gt;puts&lt;/strong&gt;&lt;/font&gt; JRubyVelocity.new&lt;font color=&#034;#4444ff&#034;&gt;&lt;strong&gt;(&lt;/strong&gt;&lt;/font&gt;&lt;font color=&#034;#4444ff&#034;&gt;&lt;strong&gt;)&lt;/strong&gt;&lt;/font&gt;.render&lt;font color=&#034;#4444ff&#034;&gt;&lt;strong&gt;(&lt;/strong&gt;&lt;/font&gt; &lt;font color=&#034;#2040a0&#034;&gt;&lt;strong&gt;ARGV&lt;/strong&gt;&lt;/font&gt;.pop&lt;font color=&#034;#4444ff&#034;&gt;&lt;strong&gt;)&lt;/strong&gt;&lt;/font&gt;  &lt;/pre&gt;
&lt;/blockquote&gt;   &lt;br /&gt;
Good luck!
        </description>
      
      
    
    
    
    <category>Ruby</category>
    
    <category>Java</category>
    
    <comments>http://weblog.flop.ca/2009/11/06/1257527741363.html#comments</comments>
    <guid isPermaLink="true">http://weblog.flop.ca/2009/11/06/1257527741363.html</guid>
    <pubDate>Fri, 06 Nov 2009 17:15:41 GMT</pubDate>
  </item>
  
  </channel>
</rss>

