Programatically Shutdown of a Computer without Administrative Privileges

Posted by Al on Sat, January 30 at 12:42:53 in C#

I recently fixed a bug at work where one of our applications could not shutdown the computer it was running on when the user logged out.  It turned out the problem was introduced when we recently modified the software to run under a non-administrator account.  We had made the system more secure, but the program no longer had sufficient privileges to shutdown the computer.  The fix for this was to have the software invoke the shutdown program using an administrator account.  Since the solution might be useful to someone else, I’m posting the code that I implemented.

Code appears after the break…

Read more

Testing the Latest Version of Expression Engine

Posted by Al on Sat, January 30 at 11:57:56 in Site Notes

I just installed the latest version of Expression Engine, the backend software used to run this site, and I’m testing to make sure everything is running properly.  If you can see this post, things are working as expected.  If you can’t, then you can’t read this so it doesn’t matter.

Dolphins are so cool

Posted by Al on Thu, January 21 at 06:57:46 in Cool Stuff

Hitler finds out Scott Brown won Massachusetts

Posted by Al on Thu, January 21 at 06:42:45 in Local

Scott Brown Wins Big!!!

Posted by Al on Tue, January 19 at 20:34:32 in Local

For over thirty years, I’ve been voting in Massachusetts.  In all that time, I think that maybe two candidates that I have voted for have actually been elected to office.  It’s been a frustrating thirty years, but today may have made it all worth it.

I didn’t have a whole lot of hope for Scott Brown being successful in this election.  My wife had been talking about him for some time and was pretty impressed by him.  Feeling like Charlie Brown with Lucy holding the football, I refused to get my hopes up, fearing that once again my heart would be torn out. 

I was wrong.

Brown was the right person in the right place at the right time.  People have been frustrated with the arogance of the Democrats.  The taxpayers (as opposed to the leaches) have let them know that we did not want the Democrats vision of health care.  We warned them.  We showed up at teapartys.  We wrote letters and e-mails but we were ignored and looked down upon.

The arrogance of Obama is astonishing.  The man has accomplished little in his life yet he still believes that he’s smarter than us and we should just shut up and do what he says. 

That’s not the way that it works Mr. President.  Consider this a warning from the people in charge.  You work for us.  We don’t work for you. Remember that.

Congratulations to …

Read more

Page 1 of 6 pages  1 2 3 >  Last ›