<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>Mark Gandolfo - Articles</title>
    <description>Articles regarding to the markgandolfo</description>
    <link>http://markgandolfo.com.au/articles.rss</link>
    <item>
      <title>how to set session domain in rails 2.3</title>
      <description>&lt;p&gt;The guys from rails changed the way to set the base domain for session storage, from rails 2.2 to 2.3. .&lt;br /&gt;
&lt;br /&gt;
so heres how to do it now (much nicer imho)&lt;br /&gt;
&lt;br /&gt;
In any of your environment files simply add&lt;br /&gt;
&lt;br /&gt;
&lt;code&gt;config.action_controller.session = { :domain =&gt; ".domain.com" }&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;
This will allow session sharing between subdomains. simply as pie!&lt;br /&gt;&lt;/p&gt;</description>
      <pubDate>Sun, 05 Jul 2009 10:56:25 +1000</pubDate>
      <link>http://markgandolfo.com.au/articles/41</link>
    </item>
    <item>
      <title>ie6Warning Message jquery plugin</title>
      <description>&lt;p&gt;This little plugin when bound to a div, will show() the div when the user has an ie6 browser or below. If a user clicks on the div, the message will fade away, set a cookie and not be shown again for 20 days.&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="http://github.com/markgandolfo/jquery.ie6Warning/tree/master"&gt;find it here&lt;/a&gt;&lt;/p&gt;</description>
      <pubDate>Tue, 09 Jun 2009 16:19:59 +1000</pubDate>
      <link>http://markgandolfo.com.au/articles/40</link>
    </item>
    <item>
      <title>jquery.tabbify</title>
      <description>&lt;p&gt;I've just pushed a copy of my tabbify plugin for jquery up to github. It simply makes it easy to create tabs, and it saves state on click. &lt;br /&gt;&lt;br /&gt;&lt;/p&gt;

&lt;p&gt;Its very small, and useable. check out the readme for more details.&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="http://github.com/markgandolfo/jquery.tabbify/tree/master"&gt;http://github.com/markgandolfo/jquery.tabbify/tree/master&lt;/a&gt;&lt;/p&gt;</description>
      <pubDate>Sun, 07 Jun 2009 18:10:00 +1000</pubDate>
      <link>http://markgandolfo.com.au/articles/39</link>
    </item>
    <item>
      <title>Stringify Time</title>
      <description>&lt;h4&gt;Stringify Time&lt;br /&gt;&lt;/h4&gt;

&lt;p&gt;&lt;br /&gt;
Stringify Time is a plugin for ruby on rails that will convert time into human readable text from minutes, and to minutes from human readable time. &lt;br /&gt;
&lt;br /&gt;
&lt;code&gt;&gt;&gt; "1d 3h 4m".minutes&lt;br /&gt;
=&gt; 1624&lt;br /&gt;&lt;/code&gt;
&lt;br /&gt;
You can use any of combination of time blocks&lt;br /&gt;
&lt;code&gt; 
"3h".minutes =&gt; 180&lt;br /&gt;
"1h 2h".minutes =&gt; 180&lt;br /&gt;
"240m".minutes =&gt; 240&lt;br /&gt;
&lt;/code&gt;
&lt;br /&gt;
It also can go back from minutes to user readable time with the &lt;b&gt;humanize&lt;/b&gt; Integer method&lt;br /&gt;
&lt;br /&gt;
&lt;code&gt; 
180.humanize =&gt; "3h"&lt;br /&gt;
1624.humanize =&gt; "1d 3h 4m"&lt;br /&gt;
&lt;/code&gt;
&lt;br /&gt;&lt;/p&gt;

&lt;p&gt;You can get the plugin &lt;a href="http://github.com/markgandolfo/stringify_time/tree/master"&gt;markgandolfo's git hub&lt;/a&gt;&lt;/p&gt;</description>
      <pubDate>Thu, 04 Jun 2009 13:36:02 +1000</pubDate>
      <link>http://markgandolfo.com.au/articles/38</link>
    </item>
    <item>
      <title>Find List</title>
      <description>&lt;h4&gt;Find List&lt;br /&gt;&lt;/h4&gt;

&lt;p&gt;&lt;br /&gt;
find list is an active record extension that lets you return an array to be used in a select. &lt;br /&gt;
i.e.&lt;br /&gt;
&lt;code&gt;
    @users = User.list&lt;br /&gt;
    f.select 'User', @users
&lt;/code&gt;
&lt;br /&gt;
You can even use all of the find features. &lt;br /&gt;
&lt;code&gt;
    @users = User.list(:conditions =&gt; { :active =&gt; 1 })
&lt;/code&gt;&lt;/p&gt;</description>
      <pubDate>Thu, 04 Jun 2009 13:15:44 +1000</pubDate>
      <link>http://markgandolfo.com.au/articles/37</link>
    </item>
  </channel>
</rss>
