<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"> 
  <channel>
    <title>Hyperworks Blog | Matthew Kanwisher</title>
    <link>http://blog.hyperworks.nu</link>
    <description>Hyperworks Blog on a range of bleeding edge programming topics like Opengl, Iphone and Rails</description>
    <language>en</language>
    <copyright>Matthew Kanwisher</copyright>
    <pubDate>Wed, 18 Jul 2012 00:06:46 +0000</pubDate>
    
      <item>
	<title>Backporting JRuby 1.4 to Spring 2</title>
	<category></category>
	<description><p>Let&#8217;s say your on a project that has never upgraded its version of spring ;P) hopefully cause you&#8217;ve found Jruby so great you wouldn&#8217;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.
<br/>
<br/>
Step 1. Download a copy of spring 3 <a href="http://www.springsource.com/download/community"> Download Spring 3 </a>
<br/>
<br/>
Step 2. Extract org.springframework.core-sources-3.0.1.RELEASE-A.jar
<br/>
<br/>
Step 4. Copy org.SpringFramework.core.util.ReflectionUtils.java to your local project  *in proper namespace of course 
<br/>
<br/>
Step 5. Extract org.springframework.context-sources-3.0.1.RELEASE-A.jar
<br/>
<br/>
Step 6. Copy org.SpringFramework.jruby.JRubyScriptFactory.java and JRubyScriptUtils.java  to your project  *in proper namespace of course 
<br/>
<br/>
Step 7. Compile and bam now your spring beans support jruby 1.4  (i.e spring beans <a href="http://static.springsource.org/spring/docs/2.0.x/reference/dynamic-language.html"> Jruby in Spring </a>)
<br/>
<br/>
Step 8. Profit!
<br/>
<br/>
<br/>
<br/></p></description>
	<author><![CDATA[
    Matthew Kanwisher ]]></author>
	<link>http://blog.hyperworks.nu/2010/2/backporting-jruby-14-to-spring-2</link>
	<pubDate>Fri, 26 Feb 2010 00:00:00 +0000</pubDate>
    <guid isPermaLink="true">http://blog.hyperworks.nu/2010/2/backporting-jruby-14-to-spring-2</guid>
      </item>
    
      <item>
	<title>Git is the database for a Blog</title>
	<category></category>
	<description><p>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&#8217;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. 
<br />
<br />
Problem 1) How do you keep data in sync between environments 
<br /><br />
Problem 2) How do I let people edit content on the site but then repull the content locally?
<br /> Example  : I&#8217;m running a site with a rails based CMS and there are non programmers updating text, now I want to see the text locally.
<br /><br /><br/>
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)
<br /><br />
I found this awesome ruby based gem that supports blogs and webcontent and stores everything in git. Its called <a href="http://www.matthias-georgi.de/2008/9/shinmun-a-small-and-beautiful-blog-engine">Shinmun</a> 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.
<br /><br /><br /></p></description>
	<author><![CDATA[
    Matthew Kanwisher ]]></author>
	<link>http://blog.hyperworks.nu/2010/2/git-is-the-database-for-a-blog</link>
	<pubDate>Sat, 20 Feb 2010 00:00:00 +0000</pubDate>
    <guid isPermaLink="true">http://blog.hyperworks.nu/2010/2/git-is-the-database-for-a-blog</guid>
      </item>
    
      <item>
	<title>Long road of starting this blog</title>
	<category></category>
	<description><p>SWEEEET!
<br />
Testing out this new blog engine, real post to come soon.
<br />
I&#8217;m a bit of a procrastinator so its good to get started and write little articles at a time ;) I&#8217;m a big hacker news guy check this link to get a feel
<a href="http://news.ycombinator.com/item?id=1139185">http://news.ycombinator.com/item?id=1139185</a>
<br /></p></description>
	<author><![CDATA[
    Matthew Kanwisher ]]></author>
	<link>http://blog.hyperworks.nu/2010/2/long-road-of-starting-this-blog</link>
	<pubDate>Thu, 04 Feb 2010 00:00:00 +0000</pubDate>
    <guid isPermaLink="true">http://blog.hyperworks.nu/2010/2/long-road-of-starting-this-blog</guid>
      </item>
    
  </channel>
</rss>
