Posts made in December, 2009

Free Japanese prefecture icons

»Posted by on Dec 3, 2009 in Blog | 6 comments

Here are some icons I created of some prefectures in Japan.  The prefectures are Tokyo, Aomori, Hyogo, Kyoto, Okinawa and Shimane . They are in png format (256×256) and you are free to reuse them, but a link back to here would be appreciated. To download, just right click and select Save As. If anyone has a request for one of the other 41 prefectures, just leave a comment and I’ll make one when I have time.  I chose these prefectures for various random reasons.  For example, Shimane is the home to the Ruby language which is what we do most of our web development on, and Okinawa is my favourite place in Japan. [UPDATE: Added 3 more prefectures, Iwate, Fukuoka and Nagasaki, as requested in the comments]

read more

[JRuby on Rails on GAE/J] how-to put rubygems into a jar file to get around file limitations

»Posted by on Dec 2, 2009 in Blog | 0 comments

GAE (Google App Engine) has a limit number to the number files you can upload. To get around this limit, we need to compress rubygems into jar files. There may not be easy way to load rubygems in jar files with JRuby. But with JRuby on GAE/J, it’s easy to load. JRuby on Rails on GAE/J, can load rubygems in RAILS_ROOT/vendor/gems, just do require “gem-name”. But rubygems often contain a lot of files and that can eat into the quota pretty quickly. JRuby on GAE/J, can load rubygems from jar files. Therefore it makes sense to put rubygems into jar files, and I am going to show you how step by step. Steps: install rubygems into a specific temporary directory (not into the system dir) use -i option to install rugygems into a temporary...

read more