So you want to run Rails 4 x64 on Windows 8

So right after I solved installing rails I ran into another error: ExecJS::RuntimeError.

Now this one has been solved: ExecJS::RuntimeError on Windows

By changing the runtimes.rb file located in C:\Ruby200-x64\lib\ruby\gems\2.0.0\gems\execjs-2.0.0\lib\execjs

Simply change:

JScript = :name => "JScript", :command => "cscript //E:jscript //Nologo //U", :runner_path => ExecJS.root + "/support/jscript_runner.js", :encoding => 'UTF-16LE' # CScript with //U returns UTF-16LE )


JScript = :name => "JScript", :command => "cscript //E:jscript //Nologo", :runner_path => ExecJS.root + "/support/jscript_runner.js", :encoding => 'UTF-8' # CScript with //U returns UTF-16LE )

Now restart Rails server and it should work.

So you want to install Rails 4 x64 on Windows 8

Well I’m in the process fo learning Rails just because and I am primarily a Windows developer. I ran into an issue with Sqlite3 and Rails 4 for Ruby 2.0.0-p247 (x64). Since many will be following a tutorial off of the Rails community page, Pluralsight, or YouTube you may run into this error.

Here is how to solve it:


I’m going to assume you’ve installed Ruby 2.0.0-p247 (x64) and DevKit-mingw64-64-4.7.2-20130224-1432-sfx.exe or greater.

The process is simple and covered elsewhere so here is the short but complete version:

  1. Download Ruby 2.0.0-p247 (x64)
  2. Run the installer. Install it to your path. I’m going to assume it’s located at C:\Ruby200-x64.
  3. Unzip the DevKit somewhere. I’m going to assume it’s located at C:\Dev\DevKit.
  4. Follow the instructions off GitHub for initializing it.
  5. Open up cmd.exe and run gem update --system and gem update.
  6. Install rails gem install rails. There will be some warnings with “Unable to convert ASCII to UTF8”, so ignore them.
  7. Create a new Rails project. For example: rails new SomeProject
  8. Run bundle, bundle install

Now that you’ve got Ruby and Rails installed try running the server:

  1. cd C:\apps\SomeProject
  2. rails server

Navigate to http://localhost:3000 in your favorite browser. It should display something like “unable to find Sqlite3.” If you don’t encounter this then you’re fine and this doesn’t apply to you.

For those of you who do find this: (referencing How do I install sqlite3 for Ruby on Windows?) Exit rails server with Ctrl + C

  1. Go to SQLite Download Page
  2. Download Source Code which should show sqlite-autoconf-*.tar.gz where * is the build number in the 3.X range for example sqlite-autoconf-3071700.tar.gz.
  3. Extract to C:\dev\sqlite-autoconf-3071700
  4. Go to your DevKit directory and open msys.bat
  5. You’ll be in a msys prompt which follows unix conventions so cd /c:/dev/sqlite-autoconf-3071700
  6. Run ./configure
  7. Run make
  8. Run make install
  9. Run gem install sqlite3 --platform=ruby -- --with-sqlite3-include=/c:/dev/sqlite-autoconf-3071700/ --with-sqlite3-lib=/c:/dev/sqlite-autoconf-3071700/.libs/
  10. From cmd.exe: notepad C:\apps\SomeProject\Gemfile.lock
  11. Locate the line sqlite3 (1.3.8-x86-mingw32) under the specs section of GEM.
  12. Change it to sqlite3 (1.3.8-x64-mingw32)
  13. Save
  14. From cmd.exe: cd C:\apps\SomeProject
  15. Run rails which should return the rails help menu
  16. Run rails server

Refresh http://localhost:3000 and it should show the welcome page. Now you’re done.

SQL Server 2005+ Function that returns Month/Year INT table.

Simply regex for parsing Outlook Email Addresses

Format: <LastName>, <FirstName> <>;

Regex: (?<=<)(.*)(?=>)


And MagicJack is a scam.

And I’ll tell you why: no second hand market. The new Magic Jack Plus is out and I decided to buy one for a friend as a gift. Well they gave me their old original one since they didn’t need it anymore. Well I decided, “hey maybe I can just use the free outgoing calls part when I’m travelling.” So I got in contact with a representative to remove the device from their old account.

Well that’s not what happened. Due to the current “policy” devices cannot be removed once activated and if you give away your old device then be careful who you give it to since they can still use your account with the device.

Anyways I’ll just go back to using Skype, but be aware of the second hand scam.

My attempt at Unity.

So I’ve been fooling around with Unity to gain more understanding of the component / entity model. Unity is probably the best example I have encountered. The hierarchy is primitive as everything inside the game is a game object. Components extend the functionality of a game object and are scripted using your flavor of scripting language (I use C#).

Prefabs are used to add a collection of functionality to the game. It’s reusable and it’s pretty much the bread and butter of the engine. One simply makes an object and add the behavior to it via components. Then one may turn that bundle into a prefab to reuse. Some examples could be bullets, voxels, or enemies.

I’ve watched some of the Tornado Twins videos on unity and it was good as an introduction, but I don’t feel comfortable with javascript.

There are a few areas I want to explore in the engine. It is great for prototyping and I will learn a lot probing it.

There’s a couple more things I would like to write about such as the functionality of unity, the state of introductory game development, and voxel map hybrids (mainly interval trees).

I’m pretty tired now and I don’t really want to type everything, so I’ll see about making a voice clip and transcribing my thoughts.


C# Game Engine

So basically we’re at step one again at getting the information. I’m concerned with the direction I need to take this project in and how much time needs to be dumped to learn just how to make the game.

I’ve watched the google presentations today on NaCl and building web apps which has given some valuable information on what I need in the game engine.

Previously I have started with the Mono talk on how it is cross platform, but how will it be merged into the NaCl suite? Eventually I want the main engine using C++, but I do not have the skills to start so deep. Therefore, I will be using C# as a placeholder and expanding my knowledge and coding in a style that I can just drag-and-drop the concepts.

I’m going to start with strong inheritance and necessary components. Components will boost the ability of the engine with modularization AND this will allow a cleaner port between all of the targets (Mono, NaCl, flash, etc…).

Now I need to work on getting the core of the engine flushed out. There is a lot of boilerplate to hammer through which will require another long afternoon of development. I see this project going places where none of my other ideas have ever seen.

So what flavors taste good?

So after losing track of what I was doing for so long, I have found that Ubuntu 10.04 and Crunchbang are very good distributions.

I ended up sticking with Ubuntu 10.04 for the stability. Gnome 3 is buggy, but that will sort out in time. I look forward to using it in the future.

I will say Fedora is a very lean workstation and I would enjoy using it for office terminals.

Debian is still rock solid and I will always use it on my Rackspace/Linode.

Overall it’ll take a while before Linux will catch up to Windows for desktop usability, but if Microsoft keeps taking the Apple approach and locking down their system then it’s only a matter of time before their developers will be compelled to embrace the Penguin.

The one critical thing Windows lacks is a package management solution and that will only continue to hurt windows when ever other OS has an appstore.