<?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"
	>

<channel>
	<title>Gamecreatures' Development Blog</title>
	<atom:link href="http://www.gamecreatures.com/blog/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.gamecreatures.com/blog</link>
	<description>Software Development Adventures</description>
	<pubDate>Thu, 20 Nov 2008 22:42:17 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.3</generator>
	<language>en</language>
			<item>
		<title>Production gotcha: Rails send_file seems to corrupt files</title>
		<link>http://www.gamecreatures.com/blog/2008/11/21/production-gotcha-rails-send_file-seems-to-corrupt-files/</link>
		<comments>http://www.gamecreatures.com/blog/2008/11/21/production-gotcha-rails-send_file-seems-to-corrupt-files/#comments</comments>
		<pubDate>Thu, 20 Nov 2008 22:42:17 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[rails]]></category>

		<category><![CDATA[ruby]]></category>

		<category><![CDATA[rails mongrel apache]]></category>

		<guid isPermaLink="false">http://www.gamecreatures.com/blog/?p=60</guid>
		<description><![CDATA[What&#8217;s wrong with the following Rails code?

class ResourceController &#60; ApplicationController&#160; 
&#160; DEFAULT_OPTIONS = &#123; :disposition =&#62; &#8216;inline&#8217; &#125;
&#160; def send_file1
&#160; &#160; send_file &#8216;flash1.swf&#8217;, DEFAULT_OPTIONS
&#160; end
&#160; def send_file2
&#160; &#160; send_file &#8216;flash2.swf&#8217;, DEFAULT_OPTIONS
&#160; end
end

This code works perfectly in development mode. In production mode retrieving the two different files the second file gets corrupt / wrong&#8230;
After a long [...]]]></description>
			<content:encoded><![CDATA[<p>What&#8217;s wrong with the following Rails code?</p>
<div class="codesnip-container" >
<div class="codesnip"><span class="kw1">class</span> ResourceController &lt; ApplicationController&nbsp; <br />
&nbsp; DEFAULT_OPTIONS = <span class="br0">&#123;</span> <span class="re3">:disposition</span> =&gt; <span class="st0">&#8216;inline&#8217;</span> <span class="br0">&#125;</span></p>
<p>&nbsp; <span class="kw1">def</span> send_file1<br />
&nbsp; &nbsp; send_file <span class="st0">&#8216;flash1.swf&#8217;</span>, DEFAULT_OPTIONS<br />
&nbsp; <span class="kw1">end</span></p>
<p>&nbsp; <span class="kw1">def</span> send_file2<br />
&nbsp; &nbsp; send_file <span class="st0">&#8216;flash2.swf&#8217;</span>, DEFAULT_OPTIONS<br />
&nbsp; <span class="kw1">end</span><br />
<span class="kw1">end</span></div>
</div>
<p>This code works perfectly in development mode. In production mode retrieving the two different files the second file gets corrupt / wrong&#8230;</p>
<p>After a long search I looked in the rails code:</p>
<div class="codesnip-container" >
<div class="codesnip"><span class="kw1">def</span> send_file<span class="br0">&#40;</span>path, options = <span class="br0">&#123;</span><span class="br0">&#125;</span><span class="br0">&#41;</span> <span class="co1">#:doc:</span><br />
&nbsp; &nbsp; <span class="kw3">raise</span> MissingFile, <span class="st0">&#8220;Cannot read file #{path}&#8221;</span> <span class="kw1">unless</span> <span class="kw4">File</span>.<span class="me1">file</span>?<span class="br0">&#40;</span>path<span class="br0">&#41;</span> <span class="kw1">and</span> <span class="kw4">File</span>.<span class="me1">readable</span>?<span class="br0">&#40;</span>path<span class="br0">&#41;</span><br />
&nbsp;<br />
&nbsp; &nbsp; options<span class="br0">&#91;</span><span class="re3">:length</span><span class="br0">&#93;</span>&nbsp; &nbsp;||= <span class="kw4">File</span>.<span class="me1">size</span><span class="br0">&#40;</span>path<span class="br0">&#41;</span><br />
&nbsp; &nbsp; options<span class="br0">&#91;</span><span class="re3">:filename</span><span class="br0">&#93;</span> ||= <span class="kw4">File</span>.<span class="me1">basename</span><span class="br0">&#40;</span>path<span class="br0">&#41;</span> <span class="kw1">unless</span> options<span class="br0">&#91;</span><span class="re3">:url_based_filename</span><span class="br0">&#93;</span> <br />
&nbsp; &nbsp; send_file_headers! options&nbsp; <br />
&nbsp; &nbsp; <span class="co1">#&#8230;. </span><br />
&nbsp; <span class="kw1">end</span></div>
</div>
<p>OOops&#8230; the send_file code modifies my class constant!<br />
And after the first call the length and filename is placed in the class constant&#8230;<br />
This is no problem in development mode because the classes are reloaded every time. In production mode every mongrel server has it&#8217;s own instance&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.gamecreatures.com/blog/2008/11/21/production-gotcha-rails-send_file-seems-to-corrupt-files/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Victory: Installing JBuilder 2006 on VISTA</title>
		<link>http://www.gamecreatures.com/blog/2008/11/06/victory-installing-jbuilder-2006-on-vista/</link>
		<comments>http://www.gamecreatures.com/blog/2008/11/06/victory-installing-jbuilder-2006-on-vista/#comments</comments>
		<pubDate>Wed, 05 Nov 2008 22:28:36 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[misc]]></category>

		<guid isPermaLink="false">http://www.gamecreatures.com/blog/?p=54</guid>
		<description><![CDATA[No I really don&#8217;t like JBuilder that much.  But I really hate the workspace thing in Eclipse.
The problem:
At the company I work for, we have a lot of modules written in JBuilder. The gui designer layouts are not compatible with any other IDE. Even The newest JBuilder, which simply is Eclipse doesn&#8217;t support these [...]]]></description>
			<content:encoded><![CDATA[<p>No I really don&#8217;t like JBuilder that much.  But I really hate the workspace thing in Eclipse.</p>
<p><strong>The problem:</strong><br />
At the company I work for, we have a lot of modules written in JBuilder. The gui designer layouts are not compatible with any other IDE. Even The newest JBuilder, which simply is Eclipse doesn&#8217;t support these gui designs&#8230;<br />
Borland: This is a VERY BAD company policy&#8230;!!!<br />
We will migrate the GUI to netbean.. Ha!</p>
<p>JBuilder 2006 doesn&#8217;t work in Vista anymore<br />
JBuilder 2006 doesn&#8217;t activate anymore</p>
<p><strong>The solution for Vista Install:</strong></p>
<ul>
<li>Before installing disable the fancy vista layout and select classic windows (else you have invisible checkboxes in the setup)</li>
<li>Run setup as Administrator! (Right mouseclick exe, &#8220;Run as Administator&#8221;</li>
<li>Install JBuilder the normal way</li>
<li>Download the latest JDK1.5 and replace the JDK1.5 in the JBuilder director</li>
<li>In the startmenu, rightmouse click on the Jbuilder start icon, choose properties and set the compatibility mode to Windows XP. Disable visual themes. And enable &#8221; Run as admninistrator&#8221;</li>
</ul>
<p><strong>The solution for activating:</strong></p>
<ul>
<li>Make sure you have the registrationmail/file: reg674.txt</li>
<li>Copy this file in your user directory: C:\Users\username (in vista) or c:\Documents and Settings\username (in windows xp)</li>
<li>Set the date of your PC to the year and month you&#8217;ve downloaded the file. My working date is 25 october 2005 (I guess the activation is +/- 30 days valid)</li>
<li>Start JBuilder and activate with the given file </li>
<li>Run JBuilder and exit it again</li>
<li>restore the computer date</li>
<li>et voila.. JBuilder works ! </li>
</ul>
<p>UPDATE 2008-11-07</p>
<p>Working with JBuilder I found it had some redraw problems. Scrolling didn&#8217;t go wel&#8230;<br />
I solved this by setting the following lines in the file bin\jdk.config</p>
<div class="codesnip-container" >#vmparam -Dsun.java2d.ddoffscreen=false<br />
vmparam -Dsun.java2d.noddraw<br />
vmparam -Dsun.java2d.d3d=false</div>
<p>I found the solution for these redraw problems  <ahref='http://web.mit.edu/jbuilder_v2005/distrib/sun4x_59/JBuilder2005/setup/troubleshooting.html#runtime_graphics'>here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.gamecreatures.com/blog/2008/11/06/victory-installing-jbuilder-2006-on-vista/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Crash IE, slow down Firefox, with this e-mail validation routine</title>
		<link>http://www.gamecreatures.com/blog/2008/06/10/crash-ie-slow-down-firefox-with-this-e-mail-validation-routine/</link>
		<comments>http://www.gamecreatures.com/blog/2008/06/10/crash-ie-slow-down-firefox-with-this-e-mail-validation-routine/#comments</comments>
		<pubDate>Tue, 10 Jun 2008 14:50:45 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[javascript]]></category>

		<guid isPermaLink="false">http://www.gamecreatures.com/blog/?p=53</guid>
		<description><![CDATA[Searching the internet I found the following e-mail validation routine:
function isValidEmailAddress( address )
{
 return String(address).match(/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,7})+$/);
}
Feed the following (invalid) address to the routine
123456789012345678901234567890abcdefg
Result:
IE hangs, need a complete browser restart!! Maybe you need to be very very patient!
Firefox detects a slow script
I think this is pretty strange!!
Click the link below to test this &#8216;bug&#8217;:
Please crash my browser
]]></description>
			<content:encoded><![CDATA[<p>Searching the internet I found the following e-mail validation routine:</p>
<div class="codesnip-container" >function isValidEmailAddress( address )<br />
{<br />
 return String(address).match(/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,7})+$/);<br />
}</div>
<p>Feed the following (invalid) address to the routine</p>
<div class="codesnip-container" >123456789012345678901234567890abcdefg</div>
<p>Result:</p>
<p>IE hangs, need a complete browser restart!! Maybe you need to be very very patient!<br />
Firefox detects a slow script</p>
<p>I think this is pretty strange!!</p>
<p>Click the link below to test this &#8216;bug&#8217;:</p>
<p><a href='#' onclick="var address = '123456789012345678901234567890abcdefg'; if( window.confirm( 'Are you sure you would like to crash or Hang your browser??' ) ) { alert( 'Result = '+String(address).match(/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,7})+$/)); }; return false;">Please crash my browser</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.gamecreatures.com/blog/2008/06/10/crash-ie-slow-down-firefox-with-this-e-mail-validation-routine/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Flash Actionscript Smooth Horizontal Text Scrolling</title>
		<link>http://www.gamecreatures.com/blog/2008/05/20/flash-actionscript-smooth-horizontal-text-scrolling/</link>
		<comments>http://www.gamecreatures.com/blog/2008/05/20/flash-actionscript-smooth-horizontal-text-scrolling/#comments</comments>
		<pubDate>Tue, 20 May 2008 07:23:57 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[flash]]></category>

		<guid isPermaLink="false">http://www.gamecreatures.com/blog/?p=52</guid>
		<description><![CDATA[Well sounds simple. But it caused me a severe headache. 
I created a movieclip with a text field, that needed to scroll horizontally from left to right.
The text must be readable because you must type this word before it reaches the end&#8230;
The movieclip graphics moved very smoothly, only the textfield wasn&#8217;t. 
To solve the problem [...]]]></description>
			<content:encoded><![CDATA[<p>Well sounds simple. But it caused me a severe headache. </p>
<p>I created a movieclip with a text field, that needed to scroll horizontally from left to right.<br />
The text must be readable because you must type this word before it reaches the end&#8230;</p>
<p>The movieclip graphics moved very smoothly, only the textfield wasn&#8217;t. </p>
<p>To solve the problem I needed to perform the following operations:</p>
<li>Set the anti-alias method for this textfield to &#8220;Optimize for Animation&#8221;</li>
<p>Well that was not enough, after a lot of trying, I found out I also needed to Embed the font of the textfield, for a completely smooth animation..</p>
<p>Very frustrating&#8230;<br />
And I don&#8217;t like the solution because my swf file is bigger&#8230;  But it will do for now..</p>
]]></content:encoded>
			<wfw:commentRss>http://www.gamecreatures.com/blog/2008/05/20/flash-actionscript-smooth-horizontal-text-scrolling/feed/</wfw:commentRss>
		</item>
		<item>
		<title>PHP&#8217;s Frustrating Flush</title>
		<link>http://www.gamecreatures.com/blog/2008/05/19/phps-frustrating-flush/</link>
		<comments>http://www.gamecreatures.com/blog/2008/05/19/phps-frustrating-flush/#comments</comments>
		<pubDate>Mon, 19 May 2008 10:06:51 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[apache]]></category>

		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://www.gamecreatures.com/blog/?p=51</guid>
		<description><![CDATA[PHP not listening when you try to flush data. Try the following, it helped for me:

@ob_flush&#40;&#41;; // try a normal flush
flush&#40;&#41;;

If PHP isn&#8217;t flushing it could be your webserver that&#8217;s collecting your output for gzipping:

mod_gzip_on no

This worked for me..
]]></description>
			<content:encoded><![CDATA[<p>PHP not listening when you try to flush data. Try the following, it helped for me:</p>
<div class="codesnip-container" >
<div class="codesnip">@<a href="http://www.php.net/ob_flush"><span class="kw3">ob_flush</span></a><span class="br0">&#40;</span><span class="br0">&#41;</span>; <span class="co1">// try a normal flush</span><br />
<a href="http://www.php.net/flush"><span class="kw3">flush</span></a><span class="br0">&#40;</span><span class="br0">&#41;</span>;</div>
</div>
<p>If PHP isn&#8217;t flushing it could be your webserver that&#8217;s collecting your output for gzipping:</p>
<div class="codesnip-container" ><IfModule mod_gzip.c><br />
mod_gzip_on no<br />
</IfModule></div>
<p>This worked for me..</p>
]]></content:encoded>
			<wfw:commentRss>http://www.gamecreatures.com/blog/2008/05/19/phps-frustrating-flush/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Synchronization of calendar, contacts on my (windows) mobile, horde and thunderbird.</title>
		<link>http://www.gamecreatures.com/blog/2008/04/30/synchronization-of-calendar-contacts-on-my-windows-mobile-horde-and-thunderbird/</link>
		<comments>http://www.gamecreatures.com/blog/2008/04/30/synchronization-of-calendar-contacts-on-my-windows-mobile-horde-and-thunderbird/#comments</comments>
		<pubDate>Tue, 29 Apr 2008 22:30:15 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[misc]]></category>

		<category><![CDATA[active]]></category>

		<category><![CDATA[syncml funambol htc windows contacts agenda thunderbird]]></category>

		<guid isPermaLink="false">http://www.gamecreatures.com/blog/?p=50</guid>
		<description><![CDATA[(Sorry for the format, it&#8217;s a straight copy from my DokuWiki)
This is my situation:
  * I&#8217;ve got a FreeBSD server which runs PHP, Apache, Mysql, Courier Imap.
  * I&#8217;ve multiple clients which run Thunderbird as my mail client. I&#8217;m using imap for mail access
  * My thunderbird clients also run lightning for [...]]]></description>
			<content:encoded><![CDATA[<p>(Sorry for the format, it&#8217;s a straight copy from my DokuWiki)</p>
<p>This is my situation:</p>
<p>  * I&#8217;ve got a FreeBSD server which runs PHP, Apache, Mysql, Courier Imap.<br />
  * I&#8217;ve multiple clients which run Thunderbird as my mail client. I&#8217;m using imap for mail access<br />
  * My thunderbird clients also run lightning for agenda functionality<br />
  * I also have a mobile phone HTC Touch with Windows Mobile 6.</p>
<p>I would like to share my contacts, agenda items, notes and tasks with all my clients.<br />
My phone syncs all these items.<br />
Thunderbird only the contacts an agenda..</p>
<p>This document describes the installation of this system. I assume you already<br />
have a working server like described above.  </p>
<h2>Install Horde</h2>
<p>I downloaded the Horde Groupware Webmail Edition. WARNING this **must** be at least<br />
the 1.1 edition. At this moment it&#8217;s still a Release Candidate. (Horde Groupware Webmail Edition 1.1-RC3)</p>
<p>  <a href="http://www.horde.org/download/app/?app=webmail">http://www.horde.org/download/app/?app=webmail</a></p>
<p>Complete Install manual of horde can be find here:</p>
<p>   <a href="http://www.horde.org/webmail/docs/">http://www.horde.org/webmail/docs/</a></p>
<p>Summary of this setup:</p>
<p>  * Extract this file to a web directory (horde-webmail-1.1-rc3.tar.gz)<br />
  * run the setup script:   php scripts/setup.php<br />
  * build the database, enter the database settings etc.<br />
  * enter the name of your IMAP user that gets administrator rights for horde</p>
<p>Things to know:</p>
<p>  * you can login to horde with your IMAP username and password<br />
  * The syncML url for horde is: http://yourserver/horde-setup-location/rpc.php<br />
  * Use your IMAP username and password for this synchronisation</p>
<h2> Thunderbird </h2>
<p>
I assume you already have thunderbird running with lightning. I&#8217;ve got the latest versions:<br />
Thunderbird 2.0.0.9<br />
Lightning plugin 0.8
</p>
<pre>
 * At the Thunderbird extensions site download Funambol Plugin
   * You can find it at the source:
       <a href="http://sourceforge.net/project/showfiles.php?group_id=149326">http://sourceforge.net/project/showfiles.php?group_id=149326</a>
   * Choose Funambol Mozilla PIM plugin
   * I've tested version 0.4.4: Funambol-Pim-Plugin-win32-v0.4.4.xp
 * Change the config for this plugin
   * Thunderbird Menu: Extra => Funambol Plugin
   * Choose Options
     * Enter your server details:
           http://yourserver/horde-setup-location/rpc.php
     * Enter your IMAP username and password settings
     * Goto tab 'Synchronize'
       * Enable contacts, press details,
                and enter 'contacts' (without quotes) in the remote name.
       * Enable calendar, press details,
               and enter 'calendar' (without quotes) in the remote name.
       * tasks are not (yet) available :-(  too bad.
</pre>
<h2>Make your phone support SyncML</h2>
<p>
Download Funambol: <a href="http://www.funambol.com/opensource/downloads.php">http://www.funambol.com/opensource/downloads.php</a><br />
Tested with version: funambol-pocketpc-plugin-6.5.14.cab</p>
<p><pre>
  * Install this cab file on your phone.
  * Start Funambol
  * Choose Menu / Account
    * Again enter the Server and login details
  * Choose Menu / Settings
    * Enable only: contacts, calendar, tasks and notes! Disable the others!!
    * Choose Menu / Advanced
      * Enter the following names for the items:
        * contacts: contacts
        * calendar: calendar
        * tasks: tasks
        * notes: notes
</pre>
<p>
This was all that it took to sync all my devices!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.gamecreatures.com/blog/2008/04/30/synchronization-of-calendar-contacts-on-my-windows-mobile-horde-and-thunderbird/feed/</wfw:commentRss>
		</item>
		<item>
		<title>&#8220;2008-03-30&#8243;.to_date.to_time.tomorrow == &#8220;2008-03-30&#8243;</title>
		<link>http://www.gamecreatures.com/blog/2008/03/31/2008-03-30-to_timetomorrow-timenowto_date/</link>
		<comments>http://www.gamecreatures.com/blog/2008/03/31/2008-03-30-to_timetomorrow-timenowto_date/#comments</comments>
		<pubDate>Mon, 31 Mar 2008 20:05:31 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[rails]]></category>

		<category><![CDATA[ruby]]></category>

		<category><![CDATA[date]]></category>

		<category><![CDATA[time]]></category>

		<guid isPermaLink="false">http://www.gamecreatures.com/blog/2008/03/31/2008-03-30-to_timetomorrow-timenowto_date/</guid>
		<description><![CDATA[I wrote a very nice routine which would iterate over a few days.
Today I found my loop never ending !?! And this is very scary because the routine is a background process that needs to iterate over the last x-days. 
But there&#8217;s a problem when you&#8217;re living in The Netherlands and you have to use [...]]]></description>
			<content:encoded><![CDATA[<p>I wrote a very nice routine which would iterate over a few days.<br />
Today I found my loop never ending !?! And this is very scary because the routine is a background process that needs to iterate over the last x-days. </p>
<p>But there&#8217;s a problem when you&#8217;re living in The Netherlands and you have to use daylight savings.</p>
<p>Try this code: </p>
<div class="codesnip-container" >
<div class="codesnip">&gt;&gt; <span class="st0">&#8220;2008-03-30&#8243;</span>.<span class="me1">to_date</span>.<span class="me1">to_time</span>.<span class="me1">tomorrow</span>.<span class="me1">to_date</span><br />
=&gt; Sun Mar <span class="nu0">30</span></div>
</div>
<p>WTF !!  2008-03-30 => Tomorrow => 30 March 2008 ?!?</p>
<p>I indeed complained, that time was passing so quickly. But I didn&#8217;t mean to keep it stuck at 30 March!<br />
Oh.. I&#8217;ts only my Rails Application&#8230;</p>
<p>How&#8217;s this possible?</p>
<div class="codesnip-container" >>> &#8220;2008-03-30&#8243;.to_date.to_time.tomorrow<br />
=> Sun Mar 30 23:00:00 +0200 2008</div>
<p>At 30-03-2008 the clock has been set back for daylight savings. Well I assume rails simply adds 24 hours with the method tomorrow. And yesterday we had 25 hours.</p>
<p>More info about this bug: <a href="http://dev.rubyonrails.org/ticket/2353">http://dev.rubyonrails.org/ticket/2353</a></p>
<p>My temporary solution is to add some hours to tomorrow.</p>
<div class="codesnip-container" >
<div class="codesnip">&gt;&gt; tomorrow_time = <span class="st0">&#8220;2008-03-30&#8243;</span>.<span class="me1">to_date</span>.<span class="me1">to_time</span>.<span class="me1">tomorrow</span> + <span class="nu0">12</span>*<span class="nu0">60</span>*<span class="nu0">60</span><br />
=&gt; Mon Mar <span class="nu0">31</span> <span class="nu0">11</span>:<span class="nu0">00</span>:<span class="nu0">00</span> +<span class="nu0">0200</span> <span class="nu0">2008</span><br />
&gt;&gt; tomorrow_time.<span class="me1">to_date</span><br />
=&gt; Mon, <span class="nu0">31</span> Mar <span class="nu0">2008</span></div>
</div>
<p>Sometimes I hate Ruby on Rails!</p>
<p><a href="http://twitter.com/tijn/statuses/780038784">why don&#8217;t we collectively protest agianst the oppression of daylight saving time?</a><br />
Well Tijn, I agree!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.gamecreatures.com/blog/2008/03/31/2008-03-30-to_timetomorrow-timenowto_date/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Choosing a direction for Rich Internet Applications</title>
		<link>http://www.gamecreatures.com/blog/2008/02/05/choosing-a-direction-for-rich-internet-applications/</link>
		<comments>http://www.gamecreatures.com/blog/2008/02/05/choosing-a-direction-for-rich-internet-applications/#comments</comments>
		<pubDate>Tue, 05 Feb 2008 13:32:51 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[misc]]></category>

		<guid isPermaLink="false">http://www.gamecreatures.com/blog/2008/02/05/choosing-a-direction-for-rich-internet-applications/</guid>
		<description><![CDATA[Currently we&#8217;re at the point of a big shift/hype of (Web) Application Development. The development of Rich Internet Applications. (RIA). A RIA is an application that runs via the web, probably via a webbrowser though this isn&#8217;t a requirement.
The idea is that RIA makes this application work like a local desktop application. This could mean [...]]]></description>
			<content:encoded><![CDATA[<p>Currently we&#8217;re at the point of a big shift/hype of (Web) Application Development. The development of Rich Internet Applications. (RIA). A RIA is an application that runs via the web, probably via a webbrowser though this isn&#8217;t a requirement.<br />
The idea is that RIA makes this application work like a local desktop application. This could mean the application should be capable of running offline and online. </p>
<p>There are severy solutions for this purpose:</p>
<li>Ajax Based ~ This is wat I&#8217;m used to, but it has it&#8217;s limitations. </li>
<li>Google Gears ~ Browser Plugin Based. Look Nice, browser plugin offline application use</li>
<li>Adobe FLEX/Flash ~ Via the Flash plugin that&#8217;s installed on almost every PC</li>
<li>Adobe Air ~ To run applications from the desktop </li>
<li>Microsoft Silverlight ~ Microsoft attempt to join the club</li>
<li>JavaFX ~ Beta, Looks nice. unfortunally I&#8217;m not a big fan of the large overhead the Java plugin has.</li>
<p>Ajax isn&#8217;t an ideal solution because it never gives me access to the local user&#8217;s PC and doesn&#8217;t work offline.</p>
<p>Now is my Problem, what direction should I choose?! Staying with Ajax for now seems like a safe choice, because it will run probably on the most platforms..</p>
<p>This is something that requires some good Research! </p>
]]></content:encoded>
			<wfw:commentRss>http://www.gamecreatures.com/blog/2008/02/05/choosing-a-direction-for-rich-internet-applications/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Using the h method in a controller / model</title>
		<link>http://www.gamecreatures.com/blog/2008/01/29/using-the-h-method-in-a-controller-model/</link>
		<comments>http://www.gamecreatures.com/blog/2008/01/29/using-the-h-method-in-a-controller-model/#comments</comments>
		<pubDate>Tue, 29 Jan 2008 19:09:45 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[rails]]></category>

		<category><![CDATA[ruby]]></category>

		<guid isPermaLink="false">http://www.gamecreatures.com/blog/2008/01/29/using-the-h-method-in-a-controller-model/</guid>
		<description><![CDATA[The h method you use in a Ruby on Rail View, isn&#8217;t available in a model or in a controller.
That&#8217;s very frustrating. An alternative method to use is:

CGI::escapeHTML&#40; string_to_escape &#41;

]]></description>
			<content:encoded><![CDATA[<p>The h method you use in a Ruby on Rail View, isn&#8217;t available in a model or in a controller.<br />
That&#8217;s very frustrating. An alternative method to use is:</p>
<div class="codesnip-container" >
<div class="codesnip"><span class="kw4">CGI</span>::escapeHTML<span class="br0">&#40;</span> string_to_escape <span class="br0">&#41;</span></div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.gamecreatures.com/blog/2008/01/29/using-the-h-method-in-a-controller-model/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Apache Authentication and Mongrel Cluster</title>
		<link>http://www.gamecreatures.com/blog/2008/01/21/apache-authentication-and-mongrel-cluster/</link>
		<comments>http://www.gamecreatures.com/blog/2008/01/21/apache-authentication-and-mongrel-cluster/#comments</comments>
		<pubDate>Mon, 21 Jan 2008 07:15:24 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[rails]]></category>

		<category><![CDATA[ruby]]></category>

		<category><![CDATA[apache]]></category>

		<category><![CDATA[installation]]></category>

		<category><![CDATA[mongrel]]></category>

		<guid isPermaLink="false">http://www.gamecreatures.com/blog/2008/01/21/apache-authentication-and-mongrel-cluster/</guid>
		<description><![CDATA[Currently I&#8217;m running a mongrel cluster for my rails application. This works much nicer then the FastCGI version.
There was only one problem, I had an .htaccess file to restrict access to the public directory.

AuthName &#34;Somewhere&#34;
AuthType Basic
AuthUserFile /home/nobody/.htpasswd
Require valid-user

The problem was I needed to enter this login data 2 times.
Well after doing some google research I [...]]]></description>
			<content:encoded><![CDATA[<p>Currently I&#8217;m running a mongrel cluster for my rails application. This works much nicer then the FastCGI version.<br />
There was only one problem, I had an .htaccess file to restrict access to the public directory.</p>
<div class="codesnip-container" >
<div class="codesnip">AuthName &quot;Somewhere&quot;<br />
AuthType Basic<br />
AuthUserFile /home/nobody/.htpasswd<br />
Require valid-user</div>
</div>
<p>The problem was I needed to enter this login data 2 times.<br />
Well after doing some google research I found out the problem was the location of the authorizationcode. I think the .htaccess file is used by every Process of the ProxyBalancer&#8230; But I&#8217;m not sure&#8230;</p>
<p>The solution for this problem was to place the authorization code in the proxy balancer:</p>
<div class="codesnip-container" >
<div class="codesnip"><span class="sc2">&lt;Proxy balancer://my_cluster&gt;</span><br />
&nbsp; BalancerMember http://rails_site:5532<br />
&nbsp; BalancerMember http://rails_site:5533<br />
&nbsp; AuthName &quot;Somewhere&quot;<br />
&nbsp; AuthType Basic<br />
&nbsp; AuthUserFile /home/nobody/.htpasswd<br />
&nbsp; Require valid-user<br />
<span class="sc2"><span class="kw2">&lt;</span></a>/Proxy&gt;</span></div>
</div>
<p>That&#8217;s all ;-)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.gamecreatures.com/blog/2008/01/21/apache-authentication-and-mongrel-cluster/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
