<?xml version="1.0" encoding="UTF-8"?><!-- generator="WordPress/2.6.3" -->
<rss version="0.92">
<channel>
	<title>Gamecreatures' Development Blog</title>
	<link>http://www.gamecreatures.com/blog</link>
	<description>Software Development Adventures</description>
	<lastBuildDate>Thu, 20 Nov 2008 22:42:17 +0000</lastBuildDate>
	<docs>http://backend.userland.com/rss092</docs>
	<language>en</language>
	
	<item>
		<title>Production gotcha: Rails send_file seems to corrupt files</title>
		<description>What's wrong with the following Rails code?


class ResourceController < ApplicationController  
  DEFAULT_OPTIONS = { :disposition => 'inline' }

  def send_file1
    send_file 'flash1.swf', DEFAULT_OPTIONS
  end

  def send_file2
    send_file 'flash2.swf', DEFAULT_OPTIONS
  end
end


This code works perfectly in development mode. In production ...</description>
		<link>http://www.gamecreatures.com/blog/2008/11/21/production-gotcha-rails-send_file-seems-to-corrupt-files/</link>
			</item>
	<item>
		<title>Victory: Installing JBuilder 2006 on VISTA</title>
		<description>No I really don'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 ...</description>
		<link>http://www.gamecreatures.com/blog/2008/11/06/victory-installing-jbuilder-2006-on-vista/</link>
			</item>
	<item>
		<title>Crash IE, slow down Firefox, with this e-mail validation routine</title>
		<description>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 ...</description>
		<link>http://www.gamecreatures.com/blog/2008/06/10/crash-ie-slow-down-firefox-with-this-e-mail-validation-routine/</link>
			</item>
	<item>
		<title>Flash Actionscript Smooth Horizontal Text Scrolling</title>
		<description>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...

The movieclip graphics moved very smoothly, only the textfield ...</description>
		<link>http://www.gamecreatures.com/blog/2008/05/20/flash-actionscript-smooth-horizontal-text-scrolling/</link>
			</item>
	<item>
		<title>PHP&#8217;s Frustrating Flush</title>
		<description>PHP not listening when you try to flush data. Try the following, it helped for me:


@ob_flush(); // try a normal flush
flush(); 
 

If PHP isn't flushing it could be your webserver that's collecting your output for gzipping:


mod_gzip_on no



This worked for me.. </description>
		<link>http://www.gamecreatures.com/blog/2008/05/19/phps-frustrating-flush/</link>
			</item>
	<item>
		<title>Synchronization of calendar, contacts on my (windows) mobile, horde and thunderbird.</title>
		<description>(Sorry for the format, it's a straight copy from my DokuWiki)

This is my situation:

  * I've got a FreeBSD server which runs PHP, Apache, Mysql, Courier Imap.
  * I've multiple clients which run Thunderbird as my mail client. I'm using imap for mail access
  * My thunderbird ...</description>
		<link>http://www.gamecreatures.com/blog/2008/04/30/synchronization-of-calendar-contacts-on-my-windows-mobile-horde-and-thunderbird/</link>
			</item>
	<item>
		<title>&#8220;2008-03-30&#8243;.to_date.to_time.tomorrow == &#8220;2008-03-30&#8243;</title>
		<description>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's a problem when you're living in The Netherlands ...</description>
		<link>http://www.gamecreatures.com/blog/2008/03/31/2008-03-30-to_timetomorrow-timenowto_date/</link>
			</item>
	<item>
		<title>Choosing a direction for Rich Internet Applications</title>
		<description>Currently we'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't a requirement.
The idea is that RIA makes this application work like a local ...</description>
		<link>http://www.gamecreatures.com/blog/2008/02/05/choosing-a-direction-for-rich-internet-applications/</link>
			</item>
	<item>
		<title>Using the h method in a controller / model</title>
		<description>The h method you use in a Ruby on Rail View, isn't available in a model or in a controller. 
That's very frustrating. An alternative method to use is:


CGI::escapeHTML( string_to_escape )
 </description>
		<link>http://www.gamecreatures.com/blog/2008/01/29/using-the-h-method-in-a-controller-model/</link>
			</item>
	<item>
		<title>Apache Authentication and Mongrel Cluster</title>
		<description>Currently I'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 "Somewhere"
AuthType Basic
AuthUserFile /home/nobody/.htpasswd
Require valid-user



The problem was I needed to enter this login data 2 times. ...</description>
		<link>http://www.gamecreatures.com/blog/2008/01/21/apache-authentication-and-mongrel-cluster/</link>
			</item>
</channel>
</rss>
