Wednesday, September 29, 2010

Install DB2 on Mac OS X

I helped to testing ActiveRecord-JDBC with DB2 on my Macmini. But there are two big traps. In this article, I write about the first trap : Install DB2 on Mac OS X. I have researched with IBM developerWorks, Antonio Cangiano's blog, Google and Google.

Choose Installer

I use DB2 Express-C for this test. But, unfortunately, There are no V9.7.x installer for Mac OS X. So I choose the V9.5.2 beta installer.

Monday, September 27, 2010

Qt SDK 4.7.0 was released

1 week ago, Qt SDK 4.7.0 was FINALLY released. In this release, QML is enabled. So we can install Qt, QML and QtCreator straightforward.

When I install the Qt SDK of windows version, I DON'T choose MinGW option because GCC of Ruby DevKit is newer than one of this Qt SDK.

So let's launch sample QML application from QtCreator with Qt 4.7.0.

Saturday, September 18, 2010

Autumn short vacation 2010

I take a autumn vacation, so I suspend posts and comments to this blog for a moment. Resume will be September 27, 2010.

Wednesday, September 15, 2010

confusion of many gem environments

In this article, I installed many Ruby languages on my Macmini. But Confusion of many gem environments occurs. It's the conflict about Ruby1.8's and Ruby 1.9's

$ gem1.9 outdated
/opt/local/lib/ruby1.9/site_ruby/1.9.1/rubygems/source_index.rb:68:in `installed_spec_directories': undefined method `path' for Gem:Module (NoMethodError)
    from /opt/local/lib/ruby1.9/site_ruby/1.9.1/rubygems/source_index.rb:58:in `from_installed_gems'
    from /opt/local/lib/ruby1.9/site_ruby/1.9.1/rubygems.rb:883:in `source_index'
    from /opt/local/lib/ruby1.9/site_ruby/1.9.1/rubygems/gem_path_searcher.rb:81:in `init_gemspecs'
    from /opt/local/lib/ruby1.9/site_ruby/1.9.1/rubygems/gem_path_searcher.rb:13:in `initialize'
    from /opt/local/lib/ruby1.9/site_ruby/1.9.1/rubygems.rb:841:in `new'
    from /opt/local/lib/ruby1.9/site_ruby/1.9.1/rubygems.rb:841:in `block in searcher'
    from :10:in `synchronize'
    from /opt/local/lib/ruby1.9/site_ruby/1.9.1/rubygems.rb:840:in `searcher'
    from /opt/local/lib/ruby1.9/site_ruby/1.9.1/rubygems.rb:479:in `find_files'
    from /opt/local/lib/ruby1.9/site_ruby/1.9.1/rubygems.rb:983:in `load_plugins'
    from /opt/local/lib/ruby1.9/site_ruby/1.9.1/rubygems.rb:1139:in `'
    from :29:in `require'
    from :29:in `require'
    from /usr/bin/gem:8:in `

It's the bug reported in Debian (see the report) and it may occurs in Mac OS X too. Temporary solution for this bug is, edit the shebang.
$ sudo vi `which gem1.9`
#!/opt/local/bin/ruby1.9 --disable-gems
$ gem1.9 outdated
mail (2.2.5 <

That's okay.

Monday, September 13, 2010

IronRuby 1.1 is available, maybe.

IronRuby's latest version is 1.1 (stable version is still 1.0) . This version will be compatible with Ruby 1.9.2.

Really? Show the irb of Ruby 1.9.2.

Next, show the irb of IronRuby 1.1.

Oops, String#encoding is not ready.

Friday, September 10, 2010

Now I'm reading "Metaprogramming Ruby"

The best selling book in RubyKaigi 2010 is the Japanese edition of "Metaprogramming Ruby"

IMO, it's cool cover than original edition, isnt' it?

BTW, now I'm reading this book to Chapter 3, it's very interesting and useful.

Tuesday, September 7, 2010

Start Rails3 on MinGW

(The library name "sqlite3-ruby" had been renamed to "sqlite3".)

One week ago, Ruby on Rails 3.0 (Rails3) has been released. I try to do the first step of Rails3 application on MinGW. Fortunately, SQLite3 and sqlite3-ruby had been installed in previous post phosphorescence: Install sqlite3-ruby on MinGW and MSYS. Let's start!

$ rails new sample
$ cd sample
$ rails g scaffold person first_name:string last_name:string
$ rake db:migrate
$ rails s

update summaries of RubyKaigi 2010

I update summaries that I attend of RubyKaigi 2010.

phosphorescence: The 1st day of RubyKaigi 2010
phosphorescence: The 2nd day of RubyKaigi 2010 (Morning)
phosphorescence: The 2nd day of RubyKaigi 2010 (Afternoon)
phosphorescence: The 3rd day of RubyKaigi 2010 (Morning)
phosphorescence: The 3rd day of RubyKaigi 2010 (Afternoon)

I say again thanks to all staffs, speakers and attendees.

And one more thing you should read is this, - the most influencing article to Yoshimasa Takahashi's "The Last RubyKaigi in next year".

Saturday, September 4, 2010

Ruby's License will change to BSDL + Ruby's dual license

At three days ago, in mail list, ruby core team announce the plan to change license from "GPLv2 + Ruby's dual" to "BSDL + Ruby's dual".

[ruby-core:31971] Change Ruby's License to BSDL + Ruby's dual license
[ruby-dev:42166] Ruby'sライセンスの、BSDLとのデュアルライセンスへの変更

IMO, I think it caused by the 'CVE-2010-0541' problem about license.

Wednesday, September 1, 2010

Install sqlite3-ruby on MinGW and MSYS

(The library name "sqlite3-ruby" had been renamed to "sqlite3".)

For this instruction, we can get c-ext ruby libraries on MinGW and MSYS as We can do on Unix/Linux.

So I try to install both SQLite3 and sqlite3-ruby, of course, on MinGW and MSYS.