Categories
Geeky/Programming

What's A GUID?

GUID – “GooID – not Gee You ID” – a unique identifier. There is often debate on the uniqueness of GUID’s. Microsoft uses them for a ton of things. CLSID’s in the registry, uniqueidentifer fields in SQL, and just anything unique. Microsoft isn’t the only one to use them, Oracle, Novell, etc use them.

As far as the uniqueness of GUID’s, here is what I found on Wikipedia:

“While each generated GUID is not guaranteed to be unique, the total number of unique keys (2128 or 3.40282366×1038) is so large that the probability of the same number being generated twice is very small. For an application using 10 billion random GUIDs, the probability of one or more overlaps is on the order of 1 in a quintillion.”

A quintillion is 1018

That is alot 🙂 since scientists estimate that there are about 70 sextillion stars in the sky, lets just say that the number of GUIDs is close to a duodecillion – which is more than the sextillion (if I have my large number names correct)

Those numbers alone should end any debate on duplicate GUID’s occurring in the wild, unless you are doing something really wacky to generate them. Some say that because in V1 of the algorithm, the MAC address was used as a basis for the last 4 digits, that you could get duplicates. I think that is still hard to believe that you would get dupes, since it was just the last 4 digits and it just didn’t use MAC address, it also uses time. So two computers with the same MAC address would have to create a GUID at the same nano-second. And even if that did happen, it would have to be a GUID used in the same application to have any adverse effects.

One problem with GUID’s, which usually happens because of sample code on the net, is that people use the sample code that has a GUID hard coded, and then reuse it in their application, which then can end up with duplicates on user’s computers. Browser Helper Objects, Explorer Shell Hooks, etc use GUID’s. Any DLL you want to register (COM for instance) is going to create a GUID when registered. It is always a good idea to create a new GUID when deploying any code that would use it. Visual Studio has a utility built right in on the tools menu to create GUID’s for you.

Basically, every developer should know what GUID’s are, and how they can be used, and how to created them. It is something that you should be able to talk about with colleagues and have no questions on the creation, use or uniqueness, or how to pronounce it 🙂

Categories
Random

Online Mii Creator

Check this out, a “Mii” creator

Here is mine

Categories
Life

24 starts tonight!

Ahh, finally it’s back. 24. Probably the best show on TV. And there are two hours tonight. I usually watch TV as background noise, or I really don’t care if I miss or see a show, but 24 is different. Change the IM’s to away, block out everything else – 24 is on. One hour that I’m focused on that and only that. Basically I can’t wait for tonight 🙂

Categories
Product Reviews

When does 687,300 = 1 Million?

When Sony says it does. They are losing, and they know it. If you know me, you know I despise Sony. DRM/Rootkit? No problem! Every product we make only work good with other products we make and nothing else? Heck yeah! The only way I will ever buy a Sony product again is if I get it for free or win it, which then I guess I won’t be really buying it.

Categories
Product Reviews

Nintendo Wii

Wow, well, I finally got a few chances to play Nintendo Wii yesterday. Someone at work brought one in an hooked it up, and then last night a buddy has one hooked up at his house. I’d have to say the I for sure want one. Thing is, playing it, it was hooked up to projectors, which is even better. So I might need to get one of those too 🙂

Played Wii Sports – Baseball, Tennis, Bowling, Boxing. Also played Super Monkey Ball Banana Blitz – but I didnt really get into it, it is tough trying to move your arm compared to how I am used to playing it.

Also, probably the best side effect is that, you get a workout~! Nintendo really came out with something that anyone can play as well. I can’t wait to get one.

Categories
Product Reviews

iPhone – why I am not buying one.

Oooooooh, the iPhone. Apple’s latest gadget. Well, it has been all over the blogs and media the last couple days, and here is why I will NOT buy one.

  • iPod – i have a 80 gb. It sucks. Itunes sucks. It is a pain to sync. It locks up. I don’t like it.
  • No 3G – are you kidding me?
  • Battery – I can’t replace it myself? And the battery life is 2 hours if you use it at all
  • Full Touchscreen – this is cool if you are like, never going to use your phone. How about the bars, purses, backpacks, wherever you throw it – its going to get scratched.
  • PPC6700 – i already own a Pocket PC 6700 through Sprint. I can play music. I have wifi. I have bluetooth. I have a touchscreen. I can send SMS. I can browse the web. I can play videos. I can hookup a GPS though bluetooth (the iPhone has no GPS). I have word, excel, outlook, powerpoint. I have a camera and video recorder. I can watch TV (through slingplayer mobile). I can use it as wireless modem. I can develop programs for it and do whatever I want on it. The question is – what CAN’T I do with it. 🙂

I could probably go on and on, but this is one gadget I do not want!

What is even better, other people agree.

Categories
Geeky/Programming

VS2005 MFC Class Wizard Changes

If you ever used Visual Studio/C++ 6 (98), you would notice that the MFC Class Wizard allows you to set up messages as you create a class. Well, I’m not sure about VS2003, but VS2005, when you use the MFC Class Wizard, there are no options for setting up messages and events. Where did the options go?!?! Well, if you click on the class in class view, there are more little buttons on the properties window. If you click on the little icon next to the lightening bolt, you will see you can then set up messages for your class. Easy as 1-2-3!

Categories
Life

Back to Reality

Well, I have been on vacation since 5:00 PM on Dec 21st. It has been a good vacation. Hung out with some friends, went up north, saw my family, had xmas, went out and saw people that I haven’t seen in a while. My buddy that is back from Iraq came up one night to St. Cloud and we partied it up. Recovering from that, I watched a few movies I have been wanting to see, Superman Returns, The DaVinci Code, V for Vendetta, and some others. Then topped it off with a little New Year’s party and James Bond marathon today 🙂 – oh, and don’t forget I had to play a lot of Xbox 360, guitar and piano. I actually wrote a song and recorded it over the break – first time for everything. Maybe if I get some guts I’ll post it up for public consumption. I even took some time and pimped out my MySpace page – well, just changed the colors 🙂

As far as xmas gifts, I’d have to say, the best things? Bose Headphones (so I can jam out after 10 pm – yes!), Pajama Pants (can always use these), Beatles Love CD (blows my mind), Buffalo Wild Wings Gift Certificate (oh – heck yeah!) – oh and don’t forget the Jag – with the two shot glasses.

Throughout the vacation, I tried *not* to work. Its tough – I went on invisible on IM, didn’t VPN in, so if I wanted to check email I was forced to use Outlook Web, didn’t look at reports or worry too much about things. This was pretty much my first vacation since August of 2005 when I went to Chicago for a few days. It will be good to get back into the swing of things though, I’m already itching for it. People always say I should just go on a trip or something – well, I’ll save that for the next vacation 🙂

I hope everyone had a good 2006, and is ready to have a great 2007. It can only get better.

Categories
Life

W(ho)TF is ScaleOvenStove?

I always get the question when I’m online. Who or What is this ScaleOvenStove thing? It’s an anagram.

Steve Novoselac = ScaleOvenStove

Rearrange the letters. Pretty nerdy, I know – but it works, and is unique 🙂

Categories
Life

Imagine (Update) – Merry Xmas

Merry Xmas everyone – here is my present to you.

Imagine (Piano Take 1)

The vocals could be better 🙂 – I can’t sing in the morning – have a good holiday!