GTA 4 vs Iron Man

Posted by Nicholas Thu, 01 May 2008 22:46:25 GMT

In the recent months there has been some debate regarding whether or not the release of Grand Theft Auto 4 was going to affect the ticket sales for the Iron Man film during it’s opening weekend.

Adam Sessler’s take on the issue is that the companies responsible for the film are simply trying to place blame on GTA in an attempt to anticipate poor success at the box office and that if the movie is good, people will see it regardless....


finish reading 'GTA 4 vs Iron Man'

Posted in films, gaming, media | no comments

A GTA 4 of my very own

Posted by Nicholas Thu, 24 Apr 2008 21:17:00 GMT

The release of Grand Theft Auto 4 is only a few short days away. Personally I’m getting extremely antsy.

This morning I pre ordered the game from Best Buy for in store pickup and managed to walk away only a mere $5.32 less rich....


finish reading 'A GTA 4 of my very own'

Posted in gaming, media, general | 1 comment

Persisting a user session from RoR->PHP

Posted by Nicholas Thu, 10 Apr 2008 18:28:00 GMT

Recently I was given the task of integrating a (complete for all intents and purposes) PHP application with our main Ruby on Rails application. Because the PHP application needed to display a similar interface and required knowledge of the user’s account, I needed a way to access that data from the database both applications were now sharing. The only real requirement I had was that I absolutely didn’t want to make the user login to the PHP app if they were already authenticated on the Rails side of things as this seemed unnecessary and interrupted the flow things.

I did a bit of searching and, while I did find the wiki page on going from PHP -> Rails, I wasn’t able to find anything that fit my specific need, so I set out to roll my own. I read an article this morning from somebody who had ostensibly encountered the same problem as I, and was able to come up with a much different solution than what I had come up with. Therefore I thought it would be fun to share some of the details of my approach....


finish reading 'Persisting a user session from RoR->PHP'

Posted in php, tips, rails, ruby, code | no comments

Injured by Integer

Posted by Nicholas Sat, 05 Apr 2008 02:35:00 GMT

It’s been a very long time since I’ve used Kernel#Integer, but to my recollection it was simply coercion that raised an error if necessary, as an alternative to things like String#to_i which would simply return the first digits in a string, or 0 if the string did not contain a valid integer.

Since the program I was writing was receiving amounts in the form of strings representing cents, I figured it would be a natural fit. Leading zeros would be stripped off of anything under a buck, and I could simply rescue any ArgumentError and handle them appropriately....


finish reading 'Injured by Integer'

Posted in tips, ruby | no comments

Little man finally rocketed

Posted by Nicholas Fri, 04 Apr 2008 04:15:00 GMT

I’ve finally gotten around to playing and beating Half-life 2 episode 2.

I knew before I even began playing the game that I absolutely had to snag that Gnome achievement during my first play through....


finish reading 'Little man finally rocketed'

Posted in ridiculous, gaming | 1 comment