Archive for November, 2008

Programmatic impersonation in C#

Thursday, November 27th, 2008

Impersonation

I recently deployed a WPF app on a server that allowed the user to stop and start some application-related services. The purpose of the app was to allow users with administrative rights an easy way to manage the services that they needed to manage. Granted, they could manage the services through the services MMC, but the little WPF app was a requirement, and it’s our job as developers to make things easier for our clients - right?

All went well until a change of requirements meant that a user without administrative rights needed to use the program to stop and start the required services. When I tried to use the app, I got an exception - quite rightly, stopping and starting the services required admin rights. We needed the restricted user to be able to log on and use the app, but still needed to restrict their permissions.

So - step in programmatic impersonation in C# - a way to give restricted users the power that that’s required, all within the confines of your application.

Fieldrunners iPhone Game Review

Thursday, November 20th, 2008

Fieldrunners Review

I greeted the launch of the AppStore with great excitement and expectation, especially since a version of Monkey Ball was to be released that very same day. I was however disappointed with the iPhone version of Monkey Ball, and outlined my reasons in my review. Despite pretty graphics, over-sensitive controls made the gameplay non-existent. In addition, other games that grabbed my interest also disappointed with poor controls and use of the iPhone’s accelerometer.

Spore Origins was better than I thought, with finer control over movement, but I found the gameplay rather shallow. Disappointment once again.

A couple of weeks ago, I found a gem of a game, and refreshingly, it didn’t use the accelerometer, and the touch screen interface was implemented perfectly. Not only this, but it was fun to play, addictive, and graphically reminiscent of SNES games from an era of games that I loved. That game is Fieldrunners, currently standing at Number 12 in the top paid apps in the App Store. With an average score of 5 stars from 199 reviewers, it’s obviously got it’s followers, and I’m one of them.