Backporting JRuby 1.4 to Spring 2February 26, 2010by Matthew Kanwisher
Let’s say your on a project that has never upgraded its version of spring ;P) hopefully cause you’ve found Jruby so great you wouldn’t bother with it again. However now you have to modify a piece of the codebase in spring and to avoid the nastiness you decide to do it in spring, but Spring 2 only supports Jruby 0.99 so your out of luck ;/ It turns out its really simple to backport support.
Step 1. Download a copy of spring 3 Download Spring 3
Step 2. Extract org.springframework.core-sources-3.0.1.RELEASE-A.jar
Step 4. Copy org.SpringFramework.core.util.ReflectionUtils.java to your local project *in proper namespace of course
Step 5. Extract org.springframework.context-sources-3.0.1.RELEASE-A.jar
Step 6. Copy org.SpringFramework.jruby.JRubyScriptFactory.java and JRubyScriptUtils.java to your project *in proper namespace of course
Step 7. Compile and bam now your spring beans support jruby 1.4 (i.e spring beans Jruby in Spring )
Step 8. Profit!
25 comments Latest by Haim Ifrah
Git is the database for a BlogFebruary 20, 2010by Matthew Kanwisher
Recently all my static and dynamic sites are hosted via git, it just makes everything that much easier to deploy and rollback code. However usually with Blogs or CMS’s all my data is stored in mysql which is great until you need to move that data to another server like say your local environment, it involves a lot of data migration scripts.
Problem 1) How do you keep data in sync between environments
Problem 2) How do I let people edit content on the site but then repull the content locally?
Example : I’m running a site with a rails based CMS and there are non programmers updating text, now I want to see the text locally.
So I went about the process of finding git based plugins for a CMS like Radiant, none of them were that well supported. The next thing was finding git based ones that generated static files, problem with those was how do you store comments ? (Other then an outside service like disqus)
I found this awesome ruby based gem that supports blogs and webcontent and stores everything in git. Its called Shinmun Deployment was simple its a rack based app so just threw it into my apache configs with mod_passenger and bam its up. This was just a bit of a teaser blog, I want to go more into the details of how the git store works, and how feasible this would be to use on a full scale CMS. Lastly I would like to compare the performance of using it for simple mostly readonly sites to mysql.
25 comments Latest by Haim Ifrah
Long road of starting this blogFebruary 4, 2010by Matthew Kanwisher
SWEEEET!
Testing out this new blog engine, real post to come soon.
I’m a bit of a procrastinator so its good to get started and write little articles at a time ;) I’m a big hacker news guy check this link to get a feel
http://news.ycombinator.com/item?id=1139185
25 comments Latest by Haim Ifrah



