Tuesday, October 10, 2006

Legends/Great Programmers answer simple but important questions..

This one is a classic page, should go in a history of software/hardware. Author of this page has done good job in asking simple but interesting (in terms of these great guys and their outlook towards simple things in their day to day life).
I liked the question "If you had three months to learn one relatively new technology, which one would You choose?". Answers to this question can project one vital thing "What is the interesting technology/concept or thing which you would see helping technology future"

Monday, October 09, 2006

Java String replace: java.lang.IndexOutOfBoundsException: No group 2


If you see java.lang.IndexOutOfBoundsException: No group 2 , when you are doing <String>.replaceFirst(<source string>, <target string>) or <String>.replaceAll(<source string>, <target string>).


You possibly have "$" character in your target string.


Add java.util.regex.Matcher.quoteReplacement(<target string>), before you apply replace function.

Bug reported on Sun site by someone.

Thursday, October 05, 2006

OpenAppDotOrg Toolkit hits 100 downloads!!.

Our Ruby/Rails based open source project OpenAppDotOrg finally hits 100 downloads on sourceforge . Groovy!!... See the captured snapshot of that moment on the left. This is just a beginning, we have a long way to go and I will come back to toast 1,000.....of downloads.

Current release 0.2515 includes, things like
  • Common user services (sign up/email support/forgot password etc)
  • User access control
  • Company/User relationship
  • First open source Feed management module

  1. More about the project can be found on our wiki
  2. Download the latest version from sourceforge
  3. Our community on Google groups and openapp forum

Tuesday, October 03, 2006

Rails Association example: has_many relationship

After a long time, I finally get to write this up. Step by step instructions to build Rails:ActiveRecord: has_many relationship.

Once you start with this , you can sense the power of this meta modeling techique which turns your business application/model building into a snap.

I will write up more going deeper into complex techniques of Rails association, meanwhile few interesting sites explain this as follows