<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
  <title>yas's blog</title>
  <link rel="alternate" type="text/html" href="http://www.thinkruby.org/blog/yas"/>
  <link rel="self" type="application/atom+xml" href="http://www.thinkruby.org/blog/8/atom/feed"/>
  <id>http://www.thinkruby.org/blog/8/atom/feed</id>
  <updated>2007-03-25T04:47:51-06:00</updated>
  <entry>
    <title>Comet application with Rails</title>
    <link rel="alternate" type="text/html" href="http://www.thinkruby.org/2007/10/49" />
    <id>http://www.thinkruby.org/2007/10/49</id>
    <published>2007-10-31T02:20:36-06:00</published>
    <updated>2007-10-31T02:20:36-06:00</updated>
    <author>
      <name>yas</name>
    </author>
    <category term="rails commet ajax web2.0" />
    <summary type="html"><![CDATA[<p>Who knows the fanatastic technology called commet?<br />
Commet is the final weapon to our website much more interactive!!<br />
Of course, you know Lingr!! Very Amazing web service.<br />
Don't you want to develop the web site like Lingr with commet technology??<br />
Here is your fire starter :)<br />
At very first, we should install one plugin which is called "Shooting star!!"<br />
This plugin makes your rails application fly up to the star and your request to the web server directly reflects to the reader of your web application.<br />
OK, that's enough to enlight.<br />
Start the very small tutorial. This tutorial makes your appilcation commet :)</p>
<p><pre class="geshifilter"><ol><li style=""><div style="font-weight: normal;"><span style="color:#008000; font-style:italic;">#1: First of all, create your own project</span></div></li><li style=""><div style="font-weight: normal;">$ rails real_chat</div></li><li style=""><div style="font-weight: normal;"><span style="color:#008000; font-style:italic;">#2: Second, install the shooting star plugin with gem command</span></div></li><li style=""><div style="font-weight: normal;">$ gem install shooting_star</div></li><li style=""><div style="font-weight: normal;"><span style="color:#008000; font-style:italic;">#3: change the direction</span></div></li><li style=""><div style="font-weight: normal;">$ cd real_chat</div></li><li style=""><div style="font-weight: normal;"><span style="color:#008000; font-style:italic;">#4: initialize the shooting star, this command reacts nothing but don't worry :)</span></div></li><li style=""><div style="font-weight: normal;">$ shooting_star init</div></li><li style=""><div style="font-weight: normal;"><span style="color:#008000; font-style:italic;">#5: generate the bottom technology of commet with the generator given by shooting star</span></div></li><li style=""><div style="font-weight: normal;">$ ruby script/generate meteor</div></li><li style=""><div style="font-weight: normal;"><span style="color:#008000; font-style:italic;">#6: Also you can get the chat scaffold type the following command</span></div></li><li style=""><div style="font-weight: normal;">$ ruby script/generate chat</div></li><li style=""><div style="font-weight: normal;"><span style="color:#008000; font-style:italic;">#7: Launch your web server!!</span></div></li><li style=""><div style="font-weight: normal;">$ ruby script/server</div></li><li style=""><div style="font-weight: normal;"><span style="color:#008000; font-style:italic;">#8: Shooting star also needs to be launched</span></div></li><li style=""><div style="font-weight: normal;">$ shooting_star start</div></li></ol></pre></p>
<p>OK that's all, now time to call your buddy and try the application<br />
<a href="http://localhost:3000/chat" title="http://localhost:3000/chat">http://localhost:3000/chat</a> is your brand new comet application.<br />
there is no Ruby code... Agile!! Be agile!! Hahaha!!<br />
Time talk today's dinner dynamically with this application :)</p>
<p>I hope you enjoy the tutorial!!<br />
Thanks a lot :)</p>
    ]]></summary>
    <content type="html"><![CDATA[<p>Who knows the fanatastic technology called commet?<br />
Commet is the final weapon to our website much more interactive!!<br />
Of course, you know Lingr!! Very Amazing web service.<br />
Don't you want to develop the web site like Lingr with commet technology??<br />
Here is your fire starter :)<br />
At very first, we should install one plugin which is called "Shooting star!!"<br />
This plugin makes your rails application fly up to the star and your request to the web server directly reflects to the reader of your web application.<br />
OK, that's enough to enlight.<br />
Start the very small tutorial. This tutorial makes your appilcation commet :)</p>
<p><pre class="geshifilter"><ol><li style=""><div style="font-weight: normal;"><span style="color:#008000; font-style:italic;">#1: First of all, create your own project</span></div></li><li style=""><div style="font-weight: normal;">$ rails real_chat</div></li><li style=""><div style="font-weight: normal;"><span style="color:#008000; font-style:italic;">#2: Second, install the shooting star plugin with gem command</span></div></li><li style=""><div style="font-weight: normal;">$ gem install shooting_star</div></li><li style=""><div style="font-weight: normal;"><span style="color:#008000; font-style:italic;">#3: change the direction</span></div></li><li style=""><div style="font-weight: normal;">$ cd real_chat</div></li><li style=""><div style="font-weight: normal;"><span style="color:#008000; font-style:italic;">#4: initialize the shooting star, this command reacts nothing but don't worry :)</span></div></li><li style=""><div style="font-weight: normal;">$ shooting_star init</div></li><li style=""><div style="font-weight: normal;"><span style="color:#008000; font-style:italic;">#5: generate the bottom technology of commet with the generator given by shooting star</span></div></li><li style=""><div style="font-weight: normal;">$ ruby script/generate meteor</div></li><li style=""><div style="font-weight: normal;"><span style="color:#008000; font-style:italic;">#6: Also you can get the chat scaffold type the following command</span></div></li><li style=""><div style="font-weight: normal;">$ ruby script/generate chat</div></li><li style=""><div style="font-weight: normal;"><span style="color:#008000; font-style:italic;">#7: Launch your web server!!</span></div></li><li style=""><div style="font-weight: normal;">$ ruby script/server</div></li><li style=""><div style="font-weight: normal;"><span style="color:#008000; font-style:italic;">#8: Shooting star also needs to be launched</span></div></li><li style=""><div style="font-weight: normal;">$ shooting_star start</div></li></ol></pre></p>
<p>OK that's all, now time to call your buddy and try the application<br />
<a href="http://localhost:3000/chat" title="http://localhost:3000/chat">http://localhost:3000/chat</a> is your brand new comet application.<br />
there is no Ruby code... Agile!! Be agile!! Hahaha!!<br />
Time talk today's dinner dynamically with this application :)</p>
<p>I hope you enjoy the tutorial!!<br />
Thanks a lot :)</p>
    ]]></content>
  </entry>
  <entry>
    <title>Handling second demensional array</title>
    <link rel="alternate" type="text/html" href="http://www.thinkruby.org/2007/10/47" />
    <id>http://www.thinkruby.org/2007/10/47</id>
    <published>2007-10-18T03:28:30-06:00</published>
    <updated>2007-10-18T03:28:30-06:00</updated>
    <author>
      <name>yas</name>
    </author>
    <category term="ruby tips" />
    <summary type="html"><![CDATA[<p>Hi all devils!!<br />
How are you.<br />
Yas is reactivated finally :)</p>
<p>Today I tried some tricky situation.</p>
<p>I needed to compact second dimensional array, which includes some id's and other elements.</p>
<p>Using id and detect the target elements and remove them.<br />
Oh my English is getting worse day by day...<br />
But I believe code talks everything instead of me :)<br />
Ok today's small piece of Ruby code is following</p>
<p><pre class="geshifilter"><ol><li style=""><div style="font-weight: normal;"><span style="color:#008000; font-style:italic;">#Compact the second demencional array</span></div></li><li style=""><div style="font-weight: normal;">arr = <span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#006666;">0</span>,<span style="color:#996600;">&quot;miyake&quot;</span>,<span style="color:#996600;">&quot;password&quot;</span><span style="color:#006600; font-weight:bold;">&#93;</span>,<span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#006666;">1</span>,<span style="color:#996600;">&quot;miyake&quot;</span>,<span style="color:#996600;">&quot;hoge&quot;</span><span style="color:#006600; font-weight:bold;">&#93;</span>,<span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#006666;">2</span>,<span style="color:#996600;">&quot;hoge&quot;</span>,<span style="color:#996600;">&quot;hoge&quot;</span><span style="color:#006600; font-weight:bold;">&#93;</span><span style="color:#006600; font-weight:bold;">&#93;</span></div></li><li style=""><div style="font-weight: normal;">@target = <span style="color:#006666;">0</span></div></li><li style=""><div style="font-weight: normal;">arr.<span style="color:#9900CC;">each</span> <span style="color:#006600; font-weight:bold;">&#123;</span>|a|</div></li><li style=""><div style="font-weight: normal;">  <span style="color:#9966CC; font-weight:bold;">if</span> a<span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#006666;">0</span><span style="color:#006600; font-weight:bold;">&#93;</span> == @target</div></li><li style=""><div style="font-weight: normal;">    arr<span style="color:#006600; font-weight:bold;">&#91;</span>@target<span style="color:#006600; font-weight:bold;">&#93;</span> = <span style="color:#0000FF; font-weight:bold;">nil</span></div></li><li style=""><div style="font-weight: normal;">  <span style="color:#9966CC; font-weight:bold;">end</span></div></li><li style=""><div style="font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#125;</span></div></li><li style=""><div style="font-weight: normal;"><span style="color:#CC0066; font-weight:bold;">p</span> arr.<span style="color:#9900CC;">compact</span></div></li></ol></pre></p>
<p>Enjoy if you have some comment or any more great idea!!<br />
Please share with us! Thanks from Japan!</p>
    ]]></summary>
    <content type="html"><![CDATA[<p>Hi all devils!!<br />
How are you.<br />
Yas is reactivated finally :)</p>
<p>Today I tried some tricky situation.</p>
<p>I needed to compact second dimensional array, which includes some id's and other elements.</p>
<p>Using id and detect the target elements and remove them.<br />
Oh my English is getting worse day by day...<br />
But I believe code talks everything instead of me :)<br />
Ok today's small piece of Ruby code is following</p>
<p><pre class="geshifilter"><ol><li style=""><div style="font-weight: normal;"><span style="color:#008000; font-style:italic;">#Compact the second demencional array</span></div></li><li style=""><div style="font-weight: normal;">arr = <span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#006666;">0</span>,<span style="color:#996600;">&quot;miyake&quot;</span>,<span style="color:#996600;">&quot;password&quot;</span><span style="color:#006600; font-weight:bold;">&#93;</span>,<span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#006666;">1</span>,<span style="color:#996600;">&quot;miyake&quot;</span>,<span style="color:#996600;">&quot;hoge&quot;</span><span style="color:#006600; font-weight:bold;">&#93;</span>,<span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#006666;">2</span>,<span style="color:#996600;">&quot;hoge&quot;</span>,<span style="color:#996600;">&quot;hoge&quot;</span><span style="color:#006600; font-weight:bold;">&#93;</span><span style="color:#006600; font-weight:bold;">&#93;</span></div></li><li style=""><div style="font-weight: normal;">@target = <span style="color:#006666;">0</span></div></li><li style=""><div style="font-weight: normal;">arr.<span style="color:#9900CC;">each</span> <span style="color:#006600; font-weight:bold;">&#123;</span>|a|</div></li><li style=""><div style="font-weight: normal;">  <span style="color:#9966CC; font-weight:bold;">if</span> a<span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#006666;">0</span><span style="color:#006600; font-weight:bold;">&#93;</span> == @target</div></li><li style=""><div style="font-weight: normal;">    arr<span style="color:#006600; font-weight:bold;">&#91;</span>@target<span style="color:#006600; font-weight:bold;">&#93;</span> = <span style="color:#0000FF; font-weight:bold;">nil</span></div></li><li style=""><div style="font-weight: normal;">  <span style="color:#9966CC; font-weight:bold;">end</span></div></li><li style=""><div style="font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#125;</span></div></li><li style=""><div style="font-weight: normal;"><span style="color:#CC0066; font-weight:bold;">p</span> arr.<span style="color:#9900CC;">compact</span></div></li></ol></pre></p>
<p>Enjoy if you have some comment or any more great idea!!<br />
Please share with us! Thanks from Japan!</p>
    ]]></content>
  </entry>
  <entry>
    <title>Ruby on Rails Videos!!</title>
    <link rel="alternate" type="text/html" href="http://www.thinkruby.org/2007/04/26" />
    <id>http://www.thinkruby.org/2007/04/26</id>
    <published>2007-04-20T01:30:28-06:00</published>
    <updated>2007-04-20T01:30:28-06:00</updated>
    <author>
      <name>yas</name>
    </author>
    <category term="Ruby on Rails podcasting" />
    <summary type="html"><![CDATA[<p>Who enjoys the podcasting on your PC ??</p>
<p>I found the great podcasting all the stuff are releated by Ruby on Rails.</p>
<p>You can get the some good idea from here.</p>
<p>Rails is still progressing with the video!!</p>
<p>Of cource, this web site is free and you can download the heaps of Rails tips.</p>
<p>Try and watch the Rails cast!!</p>
<p>[Rails cast]</p>
<p><a href="http://www.railscasts.com/" title="http://www.railscasts.com/">http://www.railscasts.com/</a></p>
<p>Enjoy your developing!! thanks!!</p>
    ]]></summary>
    <content type="html"><![CDATA[<p>Who enjoys the podcasting on your PC ??</p>
<p>I found the great podcasting all the stuff are releated by Ruby on Rails.</p>
<p>You can get the some good idea from here.</p>
<p>Rails is still progressing with the video!!</p>
<p>Of cource, this web site is free and you can download the heaps of Rails tips.</p>
<p>Try and watch the Rails cast!!</p>
<p>[Rails cast]</p>
<p><a href="http://www.railscasts.com/" title="http://www.railscasts.com/">http://www.railscasts.com/</a></p>
<p>Enjoy your developing!! thanks!!</p>
    ]]></content>
  </entry>
  <entry>
    <title>Ajax with Rails: Volume 0: Start with Ajax Scaffold Generator</title>
    <link rel="alternate" type="text/html" href="http://www.thinkruby.org/2007/03/16" />
    <id>http://www.thinkruby.org/2007/03/16</id>
    <published>2007-03-29T11:16:16-06:00</published>
    <updated>2007-03-30T09:29:10-06:00</updated>
    <author>
      <name>yas</name>
    </author>
    <category term="Ajax" />
    <category term="ajax_scaffold_generator" />
    <category term="Ruby on Rails" />
    <category term="scaffolding" />
    <summary type="html"><![CDATA[<p>Hi all!!<br />
Ok getting start the tutorial with wonderful plugin which is called Ajax Scaffold Generator. </p>
<p>Basically, Rails Scaffolding never generates the Ajax based interface. However, this plugin gives you the comfortable user interface. This time, try to create the very very simple user management system. Please, follow the simple instruction below to create the application!!<br />
<code class="geshifilter"><br />
&lt;span style=&quot;color: #993333; font-weight: bold;&quot;&gt;CREATE&lt;/span&gt; &lt;span style=&quot;color: #993333; font-weight: bold;&quot;&gt;DATABASE&lt;/span&gt; &lt;span style=&quot;color: #993333; font-weight: bold;&quot;&gt;AND&lt;/span&gt; &lt;span style=&quot;color: #993333; font-weight: bold;&quot;&gt;TABLES&lt;/span&gt;<br />
&lt;span style=&quot;color: #993333; font-weight: bold;&quot;&gt;DATABASE&lt;/span&gt;: rails_demo1<br />
&lt;span style=&quot;color: #993333; font-weight: bold;&quot;&gt;TABLE&lt;/span&gt;   : users*<br />
 </code></p>
<p>*"users" table should contain the username and password field and put more features if you want!! </p>
<p>5 Steps to be happy!!</p>
<pre class="geshifilter"><ol><li style=""><div style="font-weight: normal;"><span style="color: #808080; font-style: italic;">#Creating project skelton</div></li><li style=""><div style="font-weight: normal;"></span>$ rails devils_demo1 </div></li><li style=""><div style="font-weight: normal;"><span style="color: #808080; font-style: italic;">#Creating Model</div></li><li style=""><div style="font-weight: normal;"></span>$ ruby script/generate model User </div></li><li style=""><div style="font-weight: normal;"><span style="color: #808080; font-style: italic;">#Installing Ajax Scaffold Generator</div></li><li style=""><div style="font-weight: normal;"></span>$ gem install ajax_scaffold_generator</div></li><li style=""><div style="font-weight: normal;"><span style="color: #808080; font-style: italic;">#Creating Ajax Scaffolding</div></li><li style=""><div style="font-weight: normal;"></span>$ ruby script/generate ajax_scaffold admin User</div></li><li style=""><div style="font-weight: normal;"><span style="color: #808080; font-style: italic;">#launch Web server and Confirm!!</div></li><li style=""><div style="font-weight: normal;"></span>$ ruby script/server </div></li></ol></pre><p>
check and play with your application with following URL<br />
  <a href="http://localhost:3000/admin/" title="http://localhost:3000/admin/">http://localhost:3000/admin/</a><br />
Oh... this time there is no Ruby code(T3T)!! However fair enough!!<br />
Ok, next time we can start the real Ajax tutorial with Rails!!<br />
See you next week!! Bye-bye!!</p>
    ]]></summary>
    <content type="html"><![CDATA[<p>Hi all!!<br />
Ok getting start the tutorial with wonderful plugin which is called Ajax Scaffold Generator. </p>
<p>Basically, Rails Scaffolding never generates the Ajax based interface. However, this plugin gives you the comfortable user interface. This time, try to create the very very simple user management system. Please, follow the simple instruction below to create the application!!<br />
<code class="geshifilter sql"><br />
<span style="color: #993333; font-weight: bold;">CREATE</span> <span style="color: #993333; font-weight: bold;">DATABASE</span> <span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #993333; font-weight: bold;">TABLES</span></p>
<p><span style="color: #993333; font-weight: bold;">DATABASE</span>: rails_demo1<br />
<span style="color: #993333; font-weight: bold;">TABLE</span>&nbsp; &nbsp;: users*<br />
&nbsp;</code></p>
<p>*"users" table should contain the username and password field and put more features if you want!! </p>
<p>5 Steps to be happy!!</p>
<pre class="geshifilter"><ol><li style=""><div style="font-weight: normal;"><span style="color: #808080; font-style: italic;">#Creating project skelton</div></li><li style=""><div style="font-weight: normal;"></span>$ rails devils_demo1 </div></li><li style=""><div style="font-weight: normal;"><span style="color: #808080; font-style: italic;">#Creating Model</div></li><li style=""><div style="font-weight: normal;"></span>$ ruby script/generate model User </div></li><li style=""><div style="font-weight: normal;"><span style="color: #808080; font-style: italic;">#Installing Ajax Scaffold Generator</div></li><li style=""><div style="font-weight: normal;"></span>$ gem install ajax_scaffold_generator</div></li><li style=""><div style="font-weight: normal;"><span style="color: #808080; font-style: italic;">#Creating Ajax Scaffolding</div></li><li style=""><div style="font-weight: normal;"></span>$ ruby script/generate ajax_scaffold admin User</div></li><li style=""><div style="font-weight: normal;"><span style="color: #808080; font-style: italic;">#launch Web server and Confirm!!</div></li><li style=""><div style="font-weight: normal;"></span>$ ruby script/server </div></li></ol></pre><p>
check and play with your application with following URL<br />
  <a href="http://localhost:3000/admin/" title="http://localhost:3000/admin/">http://localhost:3000/admin/</a><br />
Oh... this time there is no Ruby code(T3T)!! However fair enough!!<br />
Ok, next time we can start the real Ajax tutorial with Rails!!<br />
See you next week!! Bye-bye!!</p>
    ]]></content>
  </entry>
  <entry>
    <title>Greeting from Japan</title>
    <link rel="alternate" type="text/html" href="http://www.thinkruby.org/2007/03/10" />
    <id>http://www.thinkruby.org/2007/03/10</id>
    <published>2007-03-25T04:47:51-06:00</published>
    <updated>2007-03-25T04:47:51-06:00</updated>
    <author>
      <name>yas</name>
    </author>
    <category term="ruby" />
    <category term="yas" />
    <summary type="html"><![CDATA[<p>Hi guys yas is here.</p>
<p>starts small Ajax tutorial in the middle of this week.</p>
<p>Please look forward that :D</p>
    ]]></summary>
    <content type="html"><![CDATA[<p>Hi guys yas is here.</p>
<p>starts small Ajax tutorial in the middle of this week.</p>
<p>Please look forward that :D</p>
    ]]></content>
  </entry>
</feed>
