<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Random Ramblings</title>
	<atom:link href="http://www.codedivision.com/modules/wordpress/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.codedivision.com/modules/wordpress</link>
	<description></description>
	<lastBuildDate>Fri, 09 Jan 2009 13:23:36 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>The joys of hosted deployment</title>
		<link>http://www.codedivision.com/modules/wordpress/2009/01/09/the-joys-of-hosted-deployment/</link>
		<comments>http://www.codedivision.com/modules/wordpress/2009/01/09/the-joys-of-hosted-deployment/#comments</comments>
		<pubDate>Fri, 09 Jan 2009 13:23:36 +0000</pubDate>
		<dc:creator>Tiran Kenja</dc:creator>
				<category><![CDATA[Lord of the Rings Online]]></category>
		<category><![CDATA[dreamhost]]></category>
		<category><![CDATA[rails]]></category>

		<guid isPermaLink="false">http://www.codedivision.com/modules/wordpress/?p=41</guid>
		<description><![CDATA[Since I don&#8217;t have my own server somewhere, I have been running stuff on Dreamhost for a while now. Most notably my LotRO site is hosted there. In fact one of the major reasons to implement it in Rails was that Dreamhost supports that and PHP, and I had gotten really tired of making stuff [...]]]></description>
			<content:encoded><![CDATA[<p>Since I don&#8217;t have my own server somewhere, I have been running stuff on Dreamhost for a while now. Most notably my <a href="http://lotro.houseofkenja.com/">LotRO site</a> is hosted there. In fact one of the major reasons to implement it in Rails was that Dreamhost supports that and PHP, and I had gotten really tired of making stuff in PHP.</p>
<p>But using a host like Dreamhost has some other nice little bonuses. Like for instance today I discovered that they had upgraded Rails and removed the old version I was using. Now that shouldn&#8217;t have come as a surprise, as they posted they would a while ago. But having been working on a couple of new features, whenever I could be bothered to look at it. I was putting off just deplying a compatibility fix. Of course I had never gotten the features done and now the upgrade finally hit, resulting in my site no longer working.</p>
<p>So as a result had to do an emergency release. Lucky I had already gotten most of the site working on Rails 2.1.1 so it wasn&#8217;t a big deal. But they also released Rails 2.2.2 so now I have to get that working before they remove 2.1.1 as well&#8230;. *sigh*</p>
]]></content:encoded>
			<wfw:commentRss>http://www.codedivision.com/modules/wordpress/2009/01/09/the-joys-of-hosted-deployment/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Why would Sun make a JEE server that invents an alternative to JEE</title>
		<link>http://www.codedivision.com/modules/wordpress/2008/11/12/why-would-sun-make-a-jee-server-that-invents-an-alternative-to-jee/</link>
		<comments>http://www.codedivision.com/modules/wordpress/2008/11/12/why-would-sun-make-a-jee-server-that-invents-an-alternative-to-jee/#comments</comments>
		<pubDate>Wed, 12 Nov 2008 03:26:35 +0000</pubDate>
		<dc:creator>Tiran Kenja</dc:creator>
				<category><![CDATA[Java]]></category>

		<guid isPermaLink="false">http://www.codedivision.com/modules/wordpress/2008/11/12/why-would-sun-make-a-jee-server-that-invents-an-alternative-to-jee/</guid>
		<description><![CDATA[Subscribing to a host of Eclipse-related blogs on my Google Reader account I come across a number of interesting post. And I just read one by Neil Bartlett about the recent Glassfish V3 Prelude release by Sun.
There is not a lot to say about the post as he is mostly correct that the inclusion of [...]]]></description>
			<content:encoded><![CDATA[<p>Subscribing to a host of Eclipse-related blogs on my Google Reader account I come across a number of interesting post. And I just read one by Neil Bartlett about the recent <a href="http://neilbartlett.name/blog/2008/11/11/glassfish-v3-prelude/">Glassfish V3 Prelude</a> release by Sun.</p>
<p>There is not a lot to say about the post as he is mostly correct that the inclusion of OSGi mostly a plumbing thing in the JEE App Servers of the day. But at least it seems to be a much better technology that basing everything on JMX, since it was never really meant to be used to handling loading of all kinds of things in a complex server.</p>
<p>The reason I am responding to the post at all is that I find it somewhat strange that anyone would even consider the idea that Sun would invent a competing development- and deployment-model to JEE, even if perhaps not surprising from a person is very focused on OSGi. The whole idea about Glassfish (and Jboss and WebSphere) is that they implement the JEE spec as set by a JSR.</p>
<p>And as far as I know there is no standard even defined for deploying enterprisy applications in OSGi. So if we are going to make a new way to deploy stuff in OSGi, perhaps someone should come up with a model that can actually replace JEE instead of just saying it is &#8220;broken&#8221; and then have everyone rolling their own way of doing things. If we are all doing things in different ways we don&#8217;t need an App Server to begin with, we will just load the modules in OSGi we need and figure out how to put them together ourselves, without putting it all in Glassfish&#8230;. or Jboss or WebSphere.</p>
<p>What I find odd about the usage of OSGi in Glassfish is that Sun is still working on a component model of their own, to be included in a future Java release while OSGi isn&#8217;t. But it seems that the developers inside of Sun isn&#8217;t going to eat that dog food and are just going with what everyone else are using in the first place.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.codedivision.com/modules/wordpress/2008/11/12/why-would-sun-make-a-jee-server-that-invents-an-alternative-to-jee/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Updated available neighborhoods</title>
		<link>http://www.codedivision.com/modules/wordpress/2008/06/26/updated-available-neighborhoods/</link>
		<comments>http://www.codedivision.com/modules/wordpress/2008/06/26/updated-available-neighborhoods/#comments</comments>
		<pubDate>Wed, 25 Jun 2008 23:03:11 +0000</pubDate>
		<dc:creator>Tiran Kenja</dc:creator>
				<category><![CDATA[Lord of the Rings Online]]></category>

		<guid isPermaLink="false">http://www.codedivision.com/modules/wordpress/2008/06/26/updated-available-neighborhoods/</guid>
		<description><![CDATA[I just noticed that a new kinship just wrote their kinship hall in the text, and that the neighborhood wasn&#8217;t listed. So I took a round and found a bunch that had been added since I initially did the list. So the following has been added:
Bree-land HomesteadsBainburgBedbourneBlackwellBronburgBurrstowFlinthurstFlittonGrimstableHamlinHirfoldKnockhouseMelcotWestcomb
Falathlorn HomesteadsAmon ThancCelethmarDol LuithEcthelhadImlad LindThorellant
Shire HomesteadsBerrybridgeCropfurrowsMousehill
And I also fixed [...]]]></description>
			<content:encoded><![CDATA[<p>I just noticed that a new kinship just wrote their kinship hall in the text, and that the neighborhood wasn&#8217;t listed. So I took a round and found a bunch that had been added since I initially did the list. So the following has been added:</p>
<p><strong>Bree-land Homesteads</strong><br />Bainburg<br />Bedbourne<br />Blackwell<br />Bronburg<br />Burrstow<br />Flinthurst<br />Flitton<br />Grimstable<br />Hamlin<br />Hirfold<br />Knockhouse<br />Melcot<br />Westcomb</p>
<p><strong>Falathlorn Homesteads</strong><br />Amon Thanc<br />Celethmar<br />Dol Luith<br />Ecthelhad<br />Imlad Lind<br />Thorellant</p>
<p><strong>Shire Homesteads</strong><br />Berrybridge<br />Cropfurrows<br />Mousehill</p>
<p>And I also fixed Maremead as it should be Haremead<br /><strong>Thorin&#8217;s Halls Homesteads</strong><br />Aisgarth<br />DÃ³lgrof<br />GeirskÃ¡li<br />Kvisgren<br />Lindgarth<br />Mestrof</p>
]]></content:encoded>
			<wfw:commentRss>http://www.codedivision.com/modules/wordpress/2008/06/26/updated-available-neighborhoods/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Housing Directory map &#8211; fixed</title>
		<link>http://www.codedivision.com/modules/wordpress/2008/05/22/housing-directory-map-fixed/</link>
		<comments>http://www.codedivision.com/modules/wordpress/2008/05/22/housing-directory-map-fixed/#comments</comments>
		<pubDate>Thu, 22 May 2008 08:16:11 +0000</pubDate>
		<dc:creator>Tiran Kenja</dc:creator>
				<category><![CDATA[Lord of the Rings Online]]></category>

		<guid isPermaLink="false">http://www.codedivision.com/modules/wordpress/2008/05/22/housing-directory-map-fixed/</guid>
		<description><![CDATA[Turns out that Turbine simply changed the JavaScript they used to convert coordinates and figure out what tiles to show when. Lucky I just copied that file without modification. So I just had to replace it and it worked again.
Now settle down Turbine! It&#8217;s very annoying when you change something without us, who leeches of [...]]]></description>
			<content:encoded><![CDATA[<p>Turns out that Turbine simply changed the JavaScript they used to convert coordinates and figure out what tiles to show when. Lucky I just copied that file without modification. So I just had to replace it and it worked again.</p>
<p>Now settle down Turbine! It&#8217;s very annoying when you change something without us, who leeches of your functionality, isn&#8217;t informed of it. <img src='http://www.codedivision.com/modules/wordpress/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> <br />   <!-- technorati tags begin -->
<p style="font-size:10px;text-align:right;">Tags: <a href="http://technorati.com/tag/LotRO" rel="tag">LotRO</a>, <a href="http://technorati.com/tag/Laurelin" rel="tag">Laurelin</a>, <a href="http://technorati.com/tag/%20Google%20Maps" rel="tag"> Google Maps</a>, <a href="http://technorati.com/tag/%20Turbine" rel="tag"> Turbine</a></p>
<p><!-- technorati tags end --></p>
]]></content:encoded>
			<wfw:commentRss>http://www.codedivision.com/modules/wordpress/2008/05/22/housing-directory-map-fixed/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Housing Directory map is messed up</title>
		<link>http://www.codedivision.com/modules/wordpress/2008/05/19/housing-directory-map-is-messed-up-2/</link>
		<comments>http://www.codedivision.com/modules/wordpress/2008/05/19/housing-directory-map-is-messed-up-2/#comments</comments>
		<pubDate>Mon, 19 May 2008 11:52:56 +0000</pubDate>
		<dc:creator>Tiran Kenja</dc:creator>
				<category><![CDATA[Lord of the Rings Online]]></category>

		<guid isPermaLink="false">http://www.codedivision.com/modules/wordpress/2008/05/19/housing-directory-map-is-messed-up-2/</guid>
		<description><![CDATA[Just a small note to state that I noticed that the Hosing Directory map seems to have gone haywire. Looks like Turbine moved their map co-ordinates a bit. I&#8217;ll look into bringing my house locations into sync with it soon(tm).   
Tags: LotRO

]]></description>
			<content:encoded><![CDATA[<p>Just a small note to state that I noticed that the <a href="http://lotro.houseofkenja.com/housing_directory">Hosing Directory map</a> seems to have gone haywire. Looks like Turbine moved their map co-ordinates a bit. I&#8217;ll look into bringing my house locations into sync with it soon(tm).<br />   <!-- technorati tags begin -->
<p style="font-size:10px;text-align:right;">Tags: <a href="http://technorati.com/tag/LotRO" rel="tag">LotRO</a></p>
<p><!-- technorati tags end --></p>
]]></content:encoded>
			<wfw:commentRss>http://www.codedivision.com/modules/wordpress/2008/05/19/housing-directory-map-is-messed-up-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Keeping up with the train &#8211; Lots of work for little features</title>
		<link>http://www.codedivision.com/modules/wordpress/2008/01/22/keeping-up-with-the-train-lots-of-work-for-little-features/</link>
		<comments>http://www.codedivision.com/modules/wordpress/2008/01/22/keeping-up-with-the-train-lots-of-work-for-little-features/#comments</comments>
		<pubDate>Mon, 21 Jan 2008 23:20:36 +0000</pubDate>
		<dc:creator>Tiran Kenja</dc:creator>
				<category><![CDATA[Lord of the Rings Online]]></category>
		<category><![CDATA[Ruby on Rails]]></category>

		<guid isPermaLink="false">http://www.codedivision.com/modules/wordpress/2008/01/22/keeping-up-with-the-train-lots-of-work-for-little-features/</guid>
		<description><![CDATA[Ruby on Rails 2 has been out for a good month or two by now. And my hosting provider, Dreamhost, added the gems to support 2.0.2 just after New Years Eve, So obviously I had to upgrade the Laurelin Community Site.
I had been on it already before christmas. But motivation was lacking and it turned [...]]]></description>
			<content:encoded><![CDATA[<p>Ruby on Rails 2 has been out for a good month or two by now. And my hosting provider, Dreamhost, added the gems to support 2.0.2 just after New Years Eve, So obviously I had to upgrade the Laurelin Community Site.</p>
<p>I had been on it already before christmas. But motivation was lacking and it turned out it required some modifications to get going. Specifically the wise guys of Rails Core decided nobody was using pagination so it had to go. Or possibly they decided they where unable to improve it and hoped the community would fill the gap with something better? So the old pagination stuff was kicked out of Rails 2 and replaced with an optional (and likely very unsupported) plugin while telling everyone to use something else.</p>
<p>So I turned to will_pagination as it seemed like it was the most recommended one of the young Rails 2 scene. It appears to work well but I had to redo my pagination control. So far I have just hacked something ugly together&#8230; seems to work with the ugly site anyway.</p>
<p>The biggest hurdle then was that my auth_generator-based user-login system seems to have been unsupported for ages. And it had several issues with Rails 2. And that my use of pagination with the  acts_as_taggable_on_steroids plugin had to be changed. Both was fairly simply. The latter would have been tricky if I hadn&#8217;t found a <a href="http://blog.wolfman.com/articles/2007/07/30/paginating-acts_as_taggable-with-will_paginate">trick in a comment on on a blog</a>. The actual proposed fix in the main blog entry being way too much work for me to bother with <img src='http://www.codedivision.com/modules/wordpress/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>On the up-side it seems that Rails 2 run a bit faster than Rails 1 did. Maybe it&#8217;s just placebo tho. I guess I&#8217;ll have to see about that.</p>
<p>Then I fixed a slight bug on the site (if someone used &#8216; in a name that was to show up in the Housing Directory. It would no longer show markers on the map when page loaded). And added Kinship profile links that use the kinship name instead of their id. And off to release it went. So it is now live on Rails 2.</p>
<p>Post release I did get one major annoyance. Mainly that if I use the same cookie name as the Rails 1 site I&#8217;d have people throwing exceptions when they first returned to the site. Changing the cookie name should have fixed that. I hope <img src='http://www.codedivision.com/modules/wordpress/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.codedivision.com/modules/wordpress/2008/01/22/keeping-up-with-the-train-lots-of-work-for-little-features/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Now with maps and houses</title>
		<link>http://www.codedivision.com/modules/wordpress/2007/12/06/now-with-maps-and-houses/</link>
		<comments>http://www.codedivision.com/modules/wordpress/2007/12/06/now-with-maps-and-houses/#comments</comments>
		<pubDate>Thu, 06 Dec 2007 13:42:43 +0000</pubDate>
		<dc:creator>Tiran Kenja</dc:creator>
				<category><![CDATA[Lord of the Rings Online]]></category>

		<guid isPermaLink="false">http://www.codedivision.com/modules/wordpress/2007/12/06/now-with-maps-and-houses/</guid>
		<description><![CDATA[Well it&#8217;s been a while since I wrote anything here. My last post was about the initial release of the Unofficial Laurelin Community site. And look at how far it has come now.
Okay, so it is still ugly. But functionality-wise it has moved a far distance from back in July when it was just a [...]]]></description>
			<content:encoded><![CDATA[<p>Well it&#8217;s been a while since I wrote anything here. My last post was about the initial release of the <a href="http://lotro.houseofkenja.com/">Unofficial Laurelin Community site</a>. And look at how far it has come now.</p>
<p>Okay, so it is still ugly. But functionality-wise it has moved a far distance from back in July when it was just a kinship listing. In between I have added, first, an Events Calendar and now also a Housing Directory.</p>
<p>The events calendar seems to have gone by pretty much unnoticed however. I personally add events I find to it. But nobody else seem to do and I doubt anyone really checks it very often either. A shame really, as it allows people to subscribe to upcoming events either via RSS or iCalendar format. It would make keeping up with the social life on Laurelin easier for most I&#8217;d wager.</p>
<p>Also I am a bit proud of the &#8216;<a href="http://lotro.houseofkenja.com/events/nextevents">Upcoming Events</a>&#8216; page that show a list of events and a live countdown until event start. Making timezone calculation a thing of the past&#8230; if people actually looked at it <img src='http://www.codedivision.com/modules/wordpress/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> . Also it is really missing the official events held. But the official events staff only post vague clues before the events. No time or place information is given.</p>
<p>Last night I then released the latest sprout of functionality, the <a href="http://lotro.houseofkenja.com/housing_directory">Housing Directory</a>. Basically anyone can now register what house they live in on the server. The idea is to make it easy to see who you live next to. Or to find where to go to visit someone, but actual searching didn&#8217;t make it in the initial release.</p>
<p>The actual map used is a bit of a throw back to some of my previous projects. It turned out Turbine (the people making the game) already had a Google Maps-based map on their official WIKI: <a href="http://lorebook.lotro.com">LoreBook</a>. So having worked with the API previously I simply use their map tiles and integrated it into my own site (while mentioning where I got it &#8211; of course). Then it was just a matter of mapping all the 120 housing locations and writing the backend and frontend code for it to show them.</p>
<p>It was all rushed a bit tho. And it shows. I only tested it in IE on Windows after deployment and then discovered that my dynamically updated drop down selectors seems to be broken there&#8230; DAMN! And default security settings block the <a href="http://hab.la">externally-hosted chat window</a>&#8230; Double-DAMN!</p>
<p>I guess I still have some work to do tonight then&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.codedivision.com/modules/wordpress/2007/12/06/now-with-maps-and-houses/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>The rise of a new site</title>
		<link>http://www.codedivision.com/modules/wordpress/2007/07/02/the-rise-of-a-new-site/</link>
		<comments>http://www.codedivision.com/modules/wordpress/2007/07/02/the-rise-of-a-new-site/#comments</comments>
		<pubDate>Mon, 02 Jul 2007 14:57:10 +0000</pubDate>
		<dc:creator>Tiran Kenja</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Lord of the Rings Online]]></category>
		<category><![CDATA[Ruby on Rails]]></category>

		<guid isPermaLink="false">http://www.codedivision.com/modules/wordpress/2007/07/02/the-rise-of-a-new-site/</guid>
		<description><![CDATA[Since my time in Vanguard was very short I never really got around to play much with Ruby on Rails. I suppose I could continue to work on that project just for the hell of it. But I know myself well enough to know that for spare time projects I work better if I have [...]]]></description>
			<content:encoded><![CDATA[<p>Since my time in Vanguard was very short I never really got around to play much with Ruby on Rails. I suppose I could continue to work on that project just for the hell of it. But I know myself well enough to know that for spare time projects I work better if I have a personal use for the project. So here comes a new one.</p>
<p>I replaced Vanguard with Lord of the Rings Online and it turns out the community tools are not all that developed. In fact there is a forum for each server and that&#8217;s pretty much it. So it&#8217;s up to the inhabitants of the servers to figure out how to organize their community and how they want to communicate with each other.</p>
<p>So far we have had forum stickies of kinships and events that one person took the responsibility of updating. This has rarely worked well because we all just want to play the game really. Spending a lot of time on manually updating lists becomes boring after a while. And even the most dedicated people still have other things to do in their spare time anyway.</p>
<p>So I figured it was a good project to work on in Rails. And now it is sort of live here: lotro.houseofkenja.com.</p>
<p>I made some improvements from my previous flirt with Rails. I now have both a development and a production database. And I use the database migration tools in Rails to make update my production database with the latest developments. The latter still takes some effort to get right tho. Since it is much easier to build databases directly in the development database than writing migration files. So I have to hash out the migration files after developing the code&#8230; Not too smart as they then don&#8217;t get tested much before I release the code to production. But maybe I just haven&#8217;t found tools yet to make this easer.</p>
<p>One issue with Rails that came up today is really mind-boggling tho. Having coded Java for years I am so used to not having to work much with character encodings. Everything Java does is in Unicode so you just need to handle the places where things come in and out of it. And mostly it is easy to take care of.</p>
<p>Turns out Rails is not quite ready for the Global Village idea. On an app where everything runs in UTF-8 I still had to apply some hacks to actually get the text displayed correctly. Turns out Rails (or Ruby?) has no support for encodings so it messed up UTF-8 names coming out of my database even tho the web pages are also encoded in UTF-8. Annoying but it seems the hacks work. So one can live with it.</p>
<p>Apart from that I have no real new things to say about Rails. I am getting a feeling that even tho the framework gets a lot of hype it seems there is not that much community around it. Specifically I am finding a lot of stale &#8216;documentation&#8217; on their WIKI and I find it hard to Google myself to straight answers. And a lot of the community solutions to common issues seems half-baked and either dead or crawling very slowly. I suppose I have been pampered in the Java world where a lot of companies are sponsoring projects and people have had a lot longer to come up with good solutions.</p>
<p>Well. More from the battle-front as this project develops.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.codedivision.com/modules/wordpress/2007/07/02/the-rise-of-a-new-site/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>House of Kenja &#8211; Vanguard:SoH Site</title>
		<link>http://www.codedivision.com/modules/wordpress/2007/03/13/house-of-kenja-vanguardsoh-site/</link>
		<comments>http://www.codedivision.com/modules/wordpress/2007/03/13/house-of-kenja-vanguardsoh-site/#comments</comments>
		<pubDate>Tue, 13 Mar 2007 11:21:43 +0000</pubDate>
		<dc:creator>Tiran Kenja</dc:creator>
				<category><![CDATA[Ruby on Rails]]></category>
		<category><![CDATA[Vanguard: SoH]]></category>

		<guid isPermaLink="false">http://www.codedivision.com/modules/wordpress/2007/03/13/house-of-kenja-vanguardsoh-site/</guid>
		<description><![CDATA[Over the last month or so I have been busy in a new game. And as usual I have found it to be a good excuse to try out some new things. Specifically I felt I needed a place to store some information and I couldn&#8217;t find a good desktop tool for it. So instead [...]]]></description>
			<content:encoded><![CDATA[<p>Over the last month or so I have been busy in a new game. And as usual I have found it to be a good excuse to try out some new things. Specifically I felt I needed a place to store some information and I couldn&#8217;t find a good desktop tool for it. So instead I decided to make a site for it.</p>
<p>Of course to be useful for quick data entry I needed to add a bunch of AJAXy stuff. Having already had experience with the Dojo toolkit it would have been the easy way to go. But then I needed some backend to power it too. PHP would have been an obvious choice since it is so easy to host. But data persistence is so annoying to setup. Instead I found out that Dreamhost (where I have an account) also supports Ruby on Rails.</p>
<p>Having made my salary on Java development these last years I have, of course, heard a lot of hype about the framework. So i figured it would be a good time as any to give it a spin and see what makes it so great.</p>
<p>Getting off the ground is super easy it seems. Rails is based on conventions and code generators. So getting a quick CRUD site together is as easy as running a script, configure data access and generate some boilerplate code for the tables you want to access. And you are off.</p>
<p>But that is where the chain breaks a little. One of the comments I have seen about Rails is that compared to Java persistence frameworks like Hibernate (that I learned entirely from the manual on their website) documentation is much better for Rails. And you wouldn&#8217;t need to buy books. Strange tho since the most prominent links on their documentation page is two books and their &#8216;manual&#8217; is a couple of descriptions of add ons to the framework and not the framework basics itself. So basically you are left with a conventions-based framework that only has documentation the the actual API. Yay!</p>
<p>But Google (or any search engine really) is your friend here. Good queries and  some patience sifting though mailing lists and blogs will eventually answer most questions.</p>
<p>The actual framework is nice enough once you get to know it. I don&#8217;t really like the syntax of Ruby very much. After years of C-based languages I miss the easily read block markers that curly braces make. Having an &#8216;end&#8217; keyword blends into the code too easily even in well-formatted text IMO.</p>
<p>As for the actual site it will flow with my motivation to play the game. And Vanguard is somewhat down that scale right now. I got a basic site up with room for most of the diplomacy essentials. Cards and NPC decks. I also added the option for registered users to build their own deck but it does not do much other than just your cards.</p>
<p>I&#8217;ve gotten a lot of work to add quests to the site also. Mostly with the main focus still being on diplomacy. I&#8217;ll likely finish it up sometime soon if I get a spare moment. Apart from that my work on the site is a little dubious. But then as long as I am the only real user it does not matter too much I suppose.</p>
<p>It&#8217;s been placed on my &#8216;House of Kenja&#8217; domain like the Dark and Light map since it is where I do my &#8216;gaming stuff&#8217;.<br />The site can be found here: <a target="_blank" href="http://vanguard.houseofkenja.com">House of Kenja &#8211; Vanguard site.</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.codedivision.com/modules/wordpress/2007/03/13/house-of-kenja-vanguardsoh-site/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>v0.11 &#8211; Transport Lines</title>
		<link>http://www.codedivision.com/modules/wordpress/2006/06/25/v011-transport-lines/</link>
		<comments>http://www.codedivision.com/modules/wordpress/2006/06/25/v011-transport-lines/#comments</comments>
		<pubDate>Sun, 25 Jun 2006 10:15:06 +0000</pubDate>
		<dc:creator>Tiran Kenja</dc:creator>
				<category><![CDATA[DnL Map]]></category>

		<guid isPermaLink="false">http://www.codedivision.com/modules/wordpress/2006/06/25/v011-transport-lines/</guid>
		<description><![CDATA[This week witnessed the release of one of the features I have wanted to implement for a while now (and I think promised a couple of times on IRC at least). Namely the fabled Transport Lines.
As mentioned in my previous blog entry getting the lines on the map wasn&#8217;t really all that much of a [...]]]></description>
			<content:encoded><![CDATA[<p>This week witnessed the release of one of the features I have wanted to implement for a while now (and I think promised a couple of times on IRC at least). Namely the fabled Transport Lines.</p>
<p>As mentioned in my previous blog entry getting the lines on the map wasn&#8217;t really all that much of a challenge. What turned out to be the biggest piece of work was getting the editing tools working. And perhaps more importantly: getting them implemented in a way that didn&#8217;t break the ones I already have in place for normal markers.</p>
<p>Getting all this done required me to &#8211; once again &#8211; re-factor large parts of my code. Usually something that isn&#8217;t a big issue when you normally write code in decent IDEs. But the loose nature of JavaScript makes it hard to write good re-factoring tools I suppose. At least the ones I&#8217;ve found don&#8217;t do any magic in that field.</p>
<p>This latest re-factor did result in my first real piece of polymorphic JavaScript code tho. Specifically I needed the normal markers and the transport lines to work as much the same as possible. And also the editors for them needed to work the same so I didn&#8217;t have to add a lot of redundant code. It&#8217;s not really all that pretty at this point. But at least it&#8217;s reasonable easy to move on from the point I am at now.</p>
<p>With transport lines in the need for map editors have increased a bit. So I will continue to add some more of those as I find trustworthy people who are willing to take on the job. Recently one member of Mystical Alliance was added to the staff. And hopefully one more from the same guild is interested in contributing. Still haven&#8217;t found any Dark players who I feel I can trust enough for this (and also have the time/interest to do it). So the search goes on in that direction too.</p>
<p>Moving on from here I have several ideas what I would like to do. But I suspect my progress from here on will slow down a bit due to my somewhat limited motivation to actually play Dark &#38; Light. Most of my current guild seems to have decided not to play. And most of the reasons I initially wanted to play this game seems to have died when NPCube had to rush out the game to make some money.</p>
<p>If I do go on with this project my next goal will be more focus on allowing people managing their own map with marker sets of their own types and icons. Parts of the code has already been prepared for this. But more changes needs to be made. And also I need to implement some pages where people can sign up and manage their profiles and map. So even if I manage a high level of motivation it is going to be a while before I have that ready.</p>
<p><!-- technorati tags start -->
<p style="text-align:right;font-size:10px;">Technorati Tags: <a href="http://www.technorati.com/tag/javascript" rel="tag">javascript</a></p>
<p><!-- technorati tags end --></p>
]]></content:encoded>
			<wfw:commentRss>http://www.codedivision.com/modules/wordpress/2006/06/25/v011-transport-lines/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
