AlanBarber.Org

Twitter Twitter Updates

Rocking out in cubicle land... http://t.co/trOKKOy5
Thu May 17, 2012 12:34 PM
New project to play with for the day. Writing a VS2010 plugin that runs on every build... this should be fun!
Thu May 17, 2012 11:48 AM
Today is *facepalm* day... Dev DB was rolled back without telling any developers. ugg!
Thu May 17, 2012 9:13 AM
Started watching Breaking Bad the other day. Little slow at first but it gets really good. Bryan Cranston turns into one serious badass :)
Wed May 16, 2012 8:52 PM

Follow me on TwitterTwitter

Saturday, October 02, 2010

OctoBeard 2010 Day 2

Sure is nice to finally see some scruff on my face. Starting to feel like my old self again. Give it another 2 weeks or so and no one will be the wiser that I shaved my beard off.

OctoBeard 2010 Day 2

Posted by AlanBarber on 10/02/2010 at 09:52 AM
Bookmark and Share General • (0) CommentsPermalink

Friday, October 01, 2010

OctoBeard 2010 - Day 1

Sweet googlely moogely what have I done?!?!? I look hideous. Now I remember why I have facial hair. I look like a fracking fool!

Oh well it’ll be fine in a few weeks time.

OctoBeard 2010 - Day 1

Posted by AlanBarber on 10/01/2010 at 06:30 AM
Bookmark and Share Culture • (0) CommentsPermalink

Thursday, September 30, 2010

OctoBeard 2010 - Day 0

I’ve decided to participate in the great celebration of all things manly… OctoBeard!  I will shave my beard on October 1st and then grow it back over the next 30 days.

Honestly I can’t remember the last time I had a fully shaved face and it’s quite scary. I’ve become very accustomed to having facial hair. This is going to be one very strange experiment.

So here is day 0 to show what I looked like before I shave tomorrow.

Octobeard 2010 Day 0

Posted by AlanBarber on 09/30/2010 at 07:24 PM
Bookmark and Share Culture • (0) CommentsPermalink

Saturday, July 03, 2010

Codestock 2010

IMG_3303


Another CodeStock has gone and passed and what an event it was! They finally moved from The Pellissippi State Community College out in the boonies of Knoxville, TN to The University of Tennessee Conference Center in downtown Knoxville. Even better the “official” hotel of the event was the Hilton right across the street. Major props to the event organizers for setting this up so well.

Thursday

I had a nice 7 hour drive from Bowling Green, Ohio to Knoxville and by nice I mean a pain in the butt. I ran into major traffic slowdowns several times and hit two torrential downpours that had the entire highway driving 20-25mph through the mountains.

Luckily I managed to make it safely and got checked into the hotel. The hotel was very nice! Much better than the Laquinta I’ve stayed in the past 2 years!
I ended up meeting up with a large group and we went over to the Downtown Grill and Brewery for some good eats and drinks and then back to the hotel to hang and enjoy a few cigars.

Friday

Awake at the crack of 7:30am I was showered and across the street to the UT Conference Center.

I started out my day in Jeff Barnes (@jeff_barnes) session “Building Reliable and Scalable Systems with NServiceBus”.  This was a great intro to service buses and similar technology for scaling systems. I learned a lot from Jeff’s presentation and could see a few potential uses for this system at my own company if we were to re-engineer some of the core systems.

Sessions 2 was Robert Cain’s (@arcanecode) “The Decoder Ring for Data Warehousing / Business Intelligence with SQL Server”. Thank you so much Robert! You were amazing! I’ve been trying to get my head around the basics of data warehouses for some time now and for some reason I just couldn’t “get it” until you explained it. I have a few book suggestions from him as well so I need to pick those up to get moving forward on this for my company as well.

Next I hit the early lunch session and wandered over to the open spaces.

Sidenote, I love the way they did lunches at CodeStock. Instead of the usual set lunchtime that everyone eats at they just had lunch available for two sessions so that you could grab food between sessions and eat in a session. I liked that much better as it lets early or late eaters choose when they want to eat and it doesn’t waste precious learning time. I call it genius!

So at open spaces I ended up getting into a very long discussion about changes in society and the devaluation of information, free market, piracy, etc.  Holy cow was that a great conversation. This is one of the reasons I love events like this. So many smart people in one little area to share and disseminate knowledge, ideas and thoughts.
After that discussion I spend a good majority of the time speaking with a few people about my beliefs that our industry needs to be professionalized like engineers, doctors and lawyers. This is a highly volatile area of thought so I won’t go into the discussion now but it was fun to share my thoughts with other people.

The last session of the day I caught was Layla Driscoll (@LaylaDriscoll), .Net CLR Program Manager at Microsoft, on “.Net from within: CLR 4.0 and beyond”. It ended up being a very good presentation on some of the new 4.0 features and even a chance to ask questions about how Microsoft adds features. Very informative and cool to get some inside scoop on how MS works.

The day finally ended and we all hiked over to the Bijou Theater for the keynote. I wasn’t so sure I liked the idea of the keynote being 3 blocks away but it worked out so no complaints.

Rachel Appel (@RachelAppel), Developer Evangelist for Microsoft, gave the keynote on the topic of community. She brought up many people to talk about their experiences in the technology community. It was a fun keynote and best of all they did the prize giveaway there. Again, great idea staff! It’s nice not to have to wait after the event is over for an hour of prize giveaways since many people want to get on the road home.

Again, I headed back to the hotel for a few drinks at the bar and cigars. I was feeling very happy by the end of the night!

Saturday

Once again I was awake and at the event ready to go.

Session 1 was by Michael Eaton (@mjeaton) on “Going Independent 101: Lessons learned from a decade of independence”. This was a top notch session and it was very nice of Michael to share so many good tips and suggestions for how to move into the path of consultant.

I had planned to see Jennifer Marsman’s (@jennifermarsman) presentation on Win7 multitouch next but I ended up in Open spaces again chatting with people on many different topics.

Lunch time I sat in on Michael Kimsal’s (@mgkimsal) session “Getting start with Twilio”. This was probably the most useful session I sat in on. I do a lot of telephony work at my job and Twilio could end up being the perfect fit replacement for managing our own phone systems. I’m very happy that Michael did this presentation so I could be exposed to this technology.

After that session I sat around OpenSpaces for a while talking about jQuery, Sharepoint, sharing work horror stories and finally bailing out early to watch the USA soccer game.

The only thing left to do was attend the world renowned Alan Steven‘s (@alanstevens) Post-Stock party at his place. It’s so nice of Alan and his wife to open up their house to dozens of nerds to enjoy a fun night. There were drinks flowing aplenty and plenty of folks smoking pipes and cigars outside. We even had a bonfire to sit around while several people took turns playing guitars and singing songs.

IMG_3398 IMG_3395


Sunday

Getting up was a killer after staying up so late at Alan’s place but I managed to get checked out by 10:00am and on the road home to Ohio. Traffic flowed better but I still managed to get caught in two separate torrential downpours again that slowed traffic to a crawl. Man what is it about the mountains and rain?

I finally pulled into my home around 6pm and was glad to be back with my family and my own bed.

Now all I can think about is my next big adventure… DevLink!

Posted by AlanBarber on 07/03/2010 at 11:10 AM
Bookmark and Share Technology EventsComputer Conferences • (0) CommentsPermalink

Monday, May 17, 2010

C# Mutex for running single instance of a program

Here is some sample code that can be used in a c# application to make sure that only one instance of the program can run at a time.  In order to do this you will use a Mutex (Mutual Exclusion) which is a type of system wide lock. In laymens terms a Mutex is like a claim to ownership of a idea. You’re telling the world that no one else can have that idea as long as you are holding claim to it. As so as you don’t need it you can let go of the ownership and then someone else can claim ownership.

Sample Code:


class OneAtATimePlease {
// Use a name unique to the application (eg include your company URL)
static Mutex mutex = new Mutex (false, "oreilly.com OneAtATimeDemo");

static void Main() {
// Wait 5 seconds if contended – in case another instance
// of the program is in the process of shutting down.
if (!mutex.WaitOne (TimeSpan.FromSeconds (5), false)) {
Console.WriteLine ("Another instance of the app is running. Bye!");
return;
}
      try {
Console.WriteLine ("Running - press Enter to exit");
Console.ReadLine();
}
finally {
mutex.ReleaseMutex();
}
  }
}


A good feature of Mutex is that if the application terminates without ReleaseMutex first being called, the CLR will release the Mutex automatically.

As you can see it’s pretty simple code. You create a Mutex object. However, until you call the WaitOne function you do not actually make your claim to ownership of the mutex. So remember to do that!

* Disclaimer: This code and content are taken from multithreading in C# by Joseph Albahari. I do not claim any ownership or rights to this content. I am merely copying for my own future reference and to share the knowledge.

Posted by AlanBarber on 05/17/2010 at 09:11 AM
Bookmark and Share Computers & TechnologyCoding • (0) CommentsPermalink

Wednesday, April 07, 2010

Ann Arbor Day of .Net 2010 Registration Open

The Ann Arbor Day of .Net 2010 registration is now open.

There will be a small nominal fee of $10.00 this year to help cover expenses. Lets be honest her folks, for the great amount of information you be getting and the amazing opportunities to network with other professionals it’s worth the small fee.

It will be held Saturday, May 1st, 2010 in Ann Arbor, MI at Washtenaw Community College again.

Hurry up and go get registered before it’s too late!

Posted by AlanBarber on 04/07/2010 at 09:20 AM
Bookmark and Share Technology EventsComputer Conferences • (0) CommentsPermalink
Page 2 of 77 pages  <  1 2 3 4 >  Last »