Rails on YARV
Posted by: Shugo Maeda Tue, 21 Feb 2006 06:23:00 GMT
Learning English from pluralization of Rails
Posted by: Shugo Maeda Tue, 15 Nov 2005 14:50:00 GMT
I learned that the plural form of "status" is "status" on Rails 0.13. But when I upgraded to Rails 0.14, it turns out that the plural form of "status" is "statuses". Then I put these ugly lines to config/environment.rb:(
Inflector.inflections do |inflect|
inflect.plural /status$/i, 'status'
inflect.singular /status$/i, 'status'
end
Please take care if you're not a native English speaker. Hereafter, I'll lookup a dictionary before name tables....
A history of continuation
Posted by: Shugo Maeda Mon, 17 Oct 2005 05:53:00 GMT
I attended Jim Weirich and Chad Fowler's tutorial on RubyConf today. It was about continuation and quite a interesting one. I learned many about The Legend of Zelda:) Thanks, Jim and Chad.
Someone asked a question, "Is it similar to goto?" Then I remember
why continuation was added to Ruby.
In 1998, someone requested goto to Matz. Matz said that he doesn't
want to add goto to Ruby because it's difficult to implement and there is
no benefit to do it. So I asked him, "How about continuation?" He said,
"Continuation may be acceptable."
Then, I implemented it using thread implementation. The first implementaion was just a 94 lines patch. Certainly it was an incomplete implementaion, but it was very easy to implement thanks to thread. That patch was merged to Ruby finally.
Continuation may be harmful especially for languages that allow many side effects such as Ruby. Maybe it should be removed from Ruby 2.0. I have not used continuation in real applications, so I can do without it.
But it's a very interesting feature, and I want see it in Ruby 2.0. How about others?
Japanese translation of Rails book
Posted by: Shugo Maeda Thu, 13 Oct 2005 03:27:00 GMT
The japanese translation of Agile Web Development with Rails will be published from Ohmsha at the latest in February 2006. This is not an official announcement, so please do not contact bookstores yet.
I'm reviewing it, and it's a very interesting job. Thanks, Dave Thomas and David Heinemeier Hansson!
Looking for a Rails developer in Tokyo
Posted by: Shugo Maeda Fri, 16 Sep 2005 16:36:00 GMT
JRCgroup is looking for a Rails developer in Tokyo.
Qualifications are:
- Engineering or programming background.
- Ruby knowledge.
- Finance/Real estate background would be appreciated but not required.
- Intermediate level Japanese (if native English speaker)
- Intermediate level English (if native Japanese speaker)
For more information, please contact shugo@ruby-lang.org.
Why jcode.rb?
Posted by: Shugo Maeda Fri, 16 Sep 2005 14:59:00 GMT
I'm wondering why so many people use jcode.rb on Rails. jcode.rb may break other libraries because it redefines some methods of String. So I recommend you not to use jcode.rb if it is not really necessary.
In many cases, you can use Regexp instead. For example,
require "jcode"
$KCODE = "u"
s.each_char do |ch|
puts ch
end
This code can be rewritten like this:
s.scan(/./mu) do |ch|
puts ch
end
I admit that the latter is less readable than the former. M17N features or selector namespace will fix this problem completely in the near future, I hope.
First article in Japan
Posted by: Shugo Maeda Tue, 06 Sep 2005 23:18:00 GMT
TAKAHASHI Masayoshi and YOSHIDA Kazuhiro (aka moriq) wrote an article on WEB+DB PRESS Vol.28. As far as I know, this is a first article about Rails in Japan.
Hyper Estraier support for ximapd
Posted by: Shugo Maeda Tue, 06 Sep 2005 14:42:00 GMT
Hyper Estraier is supported in the SVN head of trunk. Hyper Estraier is another N-gram based search engine.
Please add the following entry to ~/.ximapd to use it.
backend: HyperEstraier
ximapd 0.0.4
Posted by: Shugo Maeda Mon, 22 Aug 2005 13:53:00 GMT
ximapd 0.0.4 is released.
This release is mainly a bug fix release.
ximapd 0.0.3
Posted by: Shugo Maeda Tue, 09 Aug 2005 08:20:00 GMT
ximapd 0.0.3 is released.
ximapd is a search based IMAP daemon.
ximapd supports the SEARCH command of IMAP.
Furthermore, if you create a subfolder of the special folder queries,
its name is interpreted as a search query, then you can get the search
result in it. You don't have to write a complex .procmailrc anymore.
Just search instead.