RSS  |  Archive    


I am already not a fan of annotations and now this!?!? Fortunately (and also unfortunate) enterprise (man I hate that word) companies are slow to take up new things. The client I work for at the moment is still on Java 1.4…..

11:05 pm, by shenie,




umm… LinkedIn is looking for Rails developer~~~~

LinkedIn is keeping both its Rails & Java development as Matt suggested.

10:34 pm, by shenie,




I am not saying I am going to convert to develop Flex application.

But it might be worth keeping an eye on the technology. It might just be an interesting platform to play with. It is certainly getting attention from the JavaFX guys.

tagged: javafx,flex,
10:31 pm, by shenie,




If you liked Steve’s post then read Cedric’s comeback

tagged: java,ruby,language,
9:47 pm, by shenie,




You need:

  • jruby
  • rails (or just active record) gem
  • activerecord-jdbc-adapter

If you are using the base jdbc adapter then you need to put jdbc jar in jruby’s classpath. I just copied the jar into $JRUBY_HOME/lib

Then

  1. establish AR connection

  2. use schema dumper

e.g.

require 'rubygems'
require 'active_record'

ActiveRecord::Base.establish_connection(
  :adapter  => "jdbc",
  :driver => 'com.ibm.as400.access.AS400JDBCDriver',
  :url => 'jdbc:as400://hostname',
  :username => "blah",
  :password => "secret"
)
ActiveRecord::SchemaDumper.dump

8:01 am, by shenie,




Checkout Nick’s JavaOne presso and play with Warbler. I just did and it is very cool. It will create a lot of combination of possibilities on something I plan to present to the company I work for.

2:25 pm, by shenie,




My baby daughter now recognizes McDonald’s logo, every time she sees the logo she yells out ‘chips’ :)

yes, we should take her there less often.

tagged: family,
11:42 pm, by shenie,




I was reading Tim’s post which reminded me that I had implemented similar things with Romey. Basically because I was running Romey on a Mac Mini at home and didn’t want to make it accessible over the internet I created another way to create transactions in Romey. It was done with a POP account at my ISP, ruby script running by cron on the Mac Mini. I stopped running the cron job since I changed ISD but having read Tim’s post I am thinking about reactivating the service again and extending it to involve Twitter as well. I already have written ruby scripts that post updates to Twitter (this and this) before. I think it’ll be cool if Romey could post to twitter when certain condition is triggered, e.g. going over budget.

After that I just need to have a mobile phone plan with internet then I can create Romey transactions anyway by sending an email and receive notifications from Romey via Twitter.

tagged: twitter,romey,ruby,
11:38 pm, by shenie,




I am interested in wiki. So when I saw the new Merb wiki I naturally wanted to check it out. One problem, it’s on github and I don’t have git yet….

So I finally got off my lazy butt and installed git. The process was painless. Now I am all gitified to version 1.5.5. Yeeeha gitty up~~

tagged: wiki,merb,git,
6:07 am, by shenie,




I recently installed rb-appscript gem, which is way cool and I wanted to have a look at its implementation. So I used my ‘pushdgem’ shortcut which basically does a gem which and extract the path of the gem. But to my surprise it said ‘Can’t find rb-appscript’

I knew for a fact that the gem was installed, because TextMate’s RubyAMP (how this all started) depends on rb-appscript. But I double checked anyway running gem list rb-appscript which did contain the expected result.

hum.. I was puzzled, doesn’t matter I knew gems are installed (you can get it too via Gem.path) so I got to the rb-appscript gem in the end.

During playing with rb-appscript, a new version of rubygems was released (version 1.1.1). After I installed the update I started wondering why gem list and gem which behaved differently on the same gem.

Again my curiosity got me to have a look inside rubygems. With previously experience working with rubygems, it didn’t take long to find my way around the place. It turns out gem which command is really searching for the file that you want to require in the $LOAD_PATH. e.g. when you say require ‘hpricot’ gem which hpricot let you know exactly which file was loaded. Whereas gem list is based on the specs.

The difference means you could have a file called foobar.rb nothing to do with any gems in one of the directory in $LOAD_PATH such as /Library/Ruby/Site and run gem which foobar and it will return /Library/Ruby/Site/foobar.rb. It’s counterintuitive but I guess it is more important to know which file your program will load instead of finding out which directory the gem is installed.

5:47 am, by shenie,




A while ago, I was unable to login to RubyForge due to proxy issues. Thanks to Tom, he fixed it so I could start publishing romey releases again :)

tagged: rubyforge,
10:57 pm, by shenie,




I’ve had a chance of thrashing one at Eastern Creek. Let me just say when I floored it on the main straight…. WOA~~~~ the acceleration sent me firmly to the seat.

Very very nice car indeed.

tagged: car,
8:28 pm, by shenie,




I’ve discovered something interesting… on average each grocery item we get costs about $4.

tagged: money,
8:00 pm, by shenie,




I actually looked to get started git a while ago. Even got myself a github repos but I couldn’t be bothered to install git back then.

Fast forward to now, it is still not as easy as I would like but I can deal with it.

The main reason I want to get git is to make it easier to stay on edge rails.

I haven’t felt that I really need distributed SCM. With no experiences with using DSCM I am not ruling it out. Just need to find time to get to try it out.

tagged: git,scm,
9:26 pm, by shenie,




  • git
  • a functional language, probably Haskell. Pity uni taught Miranda for my year and switched to Haskell the next year

12:37 am, by shenie,