Monday, September 11, 2006

Last night I played poker with Catherine, my uncle and my cousin and I pulled off a Royal Flush with clubs!!!

For those that aren't familiar with it, a royal flush is the best hand in poker and the odds of getting one are about 650,000 to 1. Unfortunately, I didn't win much money off of it because everyone else had crap.

Fun
Monday, September 11, 2006 12:07:47 AM (GMT Standard Time, UTC+00:00)  #    Comments [0]  | 
Saturday, September 09, 2006

After watching John Bristowe's demo on Atlas last Thursday and seeing him use Windows Vista RC1 during the demo, I have decided to install Windows Vista RC1 on my desktop.

It is a quiet Saturday and I am hung over so I figure I will  have a lot of time to sleep while I wait for the long installation process. Hopefully, I will go to bed and when I wake up Vista will be installed. I will update this post as it installs.

 Update #1: I currently see a gray and black screen telling me "Please wait a moment while Windows prepares to start for the first time". There is also a lot of this action "..............................."

Update #2: This isn't taking as long as I thought and I haven't went to bed yet. It is completing the installation now. How will I sleep off my hangover now?

 Update #3: Completing the installation is taking forever. I am off to bed. Hopefully it will be done when I get up.

Update #4: I am awake now. This post must be popular because it seems like everyone read it and knew that I was sleeping and tried to phone me. I now see a screen asking me for a username and password, and login icon. Being a geek, I am going to pick the robot icon. 

I have made it through all the setup screens and now Vista is checking my computers performance, I hope Vista isn't disappointed with it.

Logging in for the first time now...Success! This rules, the experience is pleasant and my video card is only a NVidia GeForce2 Ti. Too bad I have a poker game to go to or else I would play around a bit more.

[ Currently Playing : Kill Me In My Sleep - Chad Vangaalen - Infiniheart (5:59) ]

Saturday, September 09, 2006 9:12:08 PM (GMT Standard Time, UTC+00:00)  #    Comments [2]  | 
Friday, September 08, 2006

Scott's post about changing his colours in his Visual Studio IDE to be closer to the colours in TextMate got me thinking about how I customize my environment and how my environment is different from other developers.

The first thing I do when i start VS on a new machine is change my background colour and my font. Currently I am using a gray background and although Scott takes a shot at us gray backgrounders I find it a lot easier on the eyes. Also, since I sit by a window there is less reflection on my monitor with a gray background than there is with a black background.

The font I am currently using at work is called AnonymousRegular, it is a Windows version of the popular Mac TrueType font Anonymous 9. It is quite slick looking give it a shot.

Next I add-in NUnit, FxCop, and NAnt into my external tools list. You will save tons of time if they can be launched right from your IDE.

The last thing that I do is change my mouse buttons so that I can mouse lefty. I switched about 2 months ago and although I am left handed I recommend it to people who aren't left handed by nature. You will feel like a complete asshat for about 2 weeks but once you get used to it you will find that the soreness in your arms and wrists is reduced significantly. Plus as an added bonus, when you move your hand from your mouse to the keyboard, you have less distance to travel.

 Let me know what settings you change either in the comments or on your blog. I am interested in finding out what other developers do to make their IDE unique.

Friday, September 08, 2006 7:16:04 PM (GMT Standard Time, UTC+00:00)  #    Comments [3]  | 
Thursday, August 31, 2006

September 23rd, Catherine and I will be doing the Parkinson's Superwalk at Rundle park here in Edmonton. I have been doing this walk for the past 3 years hoping that it is contributing to a finding a cure for Parkinson's.

Every year I do the walk for my Grandpa. This year is going to be tough because on my birthday this year my Grandpa was sent to the hospital suffering from the effects of Parkinson's and has not came out since.

This weekend, I am going back home to see him for what may be the last time so it would mean a lot to me if you could sponsor me (or if you don't like me sponsor Catherine) in this year's SuperWalk by clicking the link below:

Sponsor Me in the 2006 Parkinson's Superwalk

Thanks!

Update: I have been informed that people had problems with the previous link, I have updated the link but you will now have to put in the following information to sponsor me:

  • First Name: Steven
  • Last Name: Rockarts
  • Province: Alberta
  • City: Edmonton

Thursday, August 31, 2006 1:08:39 AM (GMT Standard Time, UTC+00:00)  #    Comments [0]  | 
Tuesday, August 29, 2006

I have been waiting for GeoTagging to come to Flickr for a long time and now it is finally here!

Here is the definition of GeoTagging from Wikipedia:

"GeoTagging, sometimes referred to as Geocoding, is the process of adding geographical identification metadata to various media such as websites, RSS feeds, or images. This data usually consists of latitude and longitude coordinates, though it can also include altitude and place names."

Basically, it maps the locations that you took your pictures so that you can give people a virtual tour of your trip, here is an example I made up tonight of our trip to Vancouver in 2005:

http://www.flickr.com/photos/stevenrockarts/map/

Adding the GeoTags to our pictures was fairly easy and will convince me to renew my Flickr pro account when it expires. I am also probably going to buy a GPS that I can bring along with me when Catherine and I go on vacation later this year.

One gripe that I do have with Flickr GeoTagging is that it uses Yahoo Maps for its map layer (since it is now own by Yahoo). The Yahoo maps don't have the level of detail that Google maps has and I found myself switching over to Google maps to get a better satellite view of Vancouver.

Tuesday, August 29, 2006 2:57:19 AM (GMT Standard Time, UTC+00:00)  #    Comments [0]  | 
Sunday, August 27, 2006

A couple of us geeks are getting together 7:30pm Thursday September 14th at Muddy Waters (8211 111 Street NW) to talk about Rails. It is a fairly unofficial meeting and definetly nothing like Edmug. This is probably the beginnings of a new Rails group in town, you can check it out at http://www.edmontonrails.org (site may be down)

The meeting is just going to be a bunch of people geeking out and talking about Ruby and Rails so if you are interested feel free to come out and grab a beer or coffee with us.

Sunday, August 27, 2006 6:19:49 PM (GMT Standard Time, UTC+00:00)  #    Comments [1]  | 
Saturday, August 26, 2006

This stop motion movie called Game Over has to be one of the coolest stop motion movies I have seen. It uses house hold items to recreate old school video games.

Chech out the other movies while you're there. They are pretty cool.

Fun
Saturday, August 26, 2006 7:31:27 PM (GMT Standard Time, UTC+00:00)  #    Comments [0]  | 

I was pretty impressed with my girl today. I came home from work and sitting there waiting for me to  install it on her computer was an extra gig of ram. :)

The reason for the upgrade, so she could play WoW. Does this make her geekier than me?

[ Currently Playing : Blackstar - Radiohead - The Bends ]

Saturday, August 26, 2006 1:24:10 AM (GMT Standard Time, UTC+00:00)  #    Comments [1]  | 
Friday, August 25, 2006

A lot of people want to use mock objects in their code, but have a hard time because of the steep  learning curve it takes to learn how to use mock objects.

Today at work, I accidentally stumbled upon an easy way to learn the syntax of Rhino Mocks. Keep in mind that this is not the proper way to do test driven development, this method should only be used to understand the Rhino Mocks way of doing things.

Say we have a presenter class which needs to call another layer in order to do it's work like so:

Public Sub Save() _task.UpdateSettings() End Sub

 This is a pretty contrived example but it helps get my point across. In order to see what Rhino Mocks is expecting to happen you can set up an empty test like this:

Dim _mockery As MockRepository = new MockRepository _task = CType(_mockery.CreateMock(GetType(ISettingsTask)), ISettingsTask) _mockery.ReplayAll() _presenter.Save()

Now when you run the tests, Rhino will tell you that it expected the task layer to get called when the save method in the presenter was invoked. You can satisfy Rhino with the following code:

Dim _mockery As MockRepository = new MockRepository _task = CType(_mockery.CreateMock(GetType(ISettingsTask)), ISettingsTask) _task.UpdateSettings() LastCall.IgnoreArguments() _mockery.ReplayAll() _presenter.Save() _mockery.VerifyAll()

Once you get the hang of Rhino's syntax and how it works you can change your mindset and do the code here in reverse with red, green refactor and you will reach mocking zen. If you have any questions please leave a comment or email me and I will try my best to answer it.

 Update: Mike, let me know this morning that I was missing a VerifyAll() after my _presenter.Save(). I take it for granted because I have it in my TearDown but I have added it for clarity.

[ Currently Playing : Oh, Me - Nirvana - MTV Unplugged in New York (03:26) ]

Friday, August 25, 2006 5:20:30 AM (GMT Standard Time, UTC+00:00)  #    Comments [2]  | 

Theme design by Jelle Druyts

Pick a theme: