November 30, 2005

My first 'real' win!

I won my first $5.00 + $0.50 sit-n-go tonight at winner takes 50% of pot ($25), 2nd takes 30% and 3rd takes 20%. It was a nice little boost to the bankroll.

At the risk of making this sound like a poker commercial:

I'm snk13 @ Come play with me! :)


November 22, 2005

Microsoft Office Marketplace: Comodo Free Email Certificate

Comodo is giving away free email certificates to use in signing and encrypting emails.

they are good for roughly a year. i havn't published mine anyplace yet, but probably should to promote PKI :)


November 18, 2005

In the money!!!

I just finished 24th in the 9pm PokerChamps freeroll tourney #4948. 1500 players, $35 prize pool, places 4-28 all get $1.

The turning point was where I had 8 2 unsuited in the big blind with $1500 in chips left, blinds were $2000/$4000. The flop came 8 2 8!!!!!!! I went all in and pulled down a $35,000 pot, which was enough to get me in the money!

$1 will not get me too far in online poker. I might try to play a low stakes ring game to see if i can scrape together $2.20 to play in a 10 person sit-n-go.

All in baby!

November 15, 2005


I always have to look for this code, so i'm posting it here so i know where it is :)



How do I get hold of the currently focused Control?

The .Net framework libraries do not provide you an API to query for the focused Control. You have to invoke a windows API to do so:

public class MyForm : Form
[DllImport("user32.dll", CharSet=CharSet.Auto, CallingConvention=CallingConvention.Winapi)]
internal static extern IntPtr GetFocus();

private Control GetFocusedControl()
Control focusedControl = null;

// To get hold of the focused control:
IntPtr focusedHandle = GetFocus();

// Note that if the focused Control is not a .Net control,
//then this will return null.
if(focusedHandle != IntPtr.Zero)
focusedControl = Control.FromHandle(focusedHandle);

return focusedControl;

Meet Your Deadlines with These Tips

Mork pointed out to me the other day, #4 and #5 are sometimes hard to do! :)

Read the article here


November 13, 2005

Indigo Beta 1 to WCF Sept CTP changes (from David Pallmann's Blog)

Making the jump from Indigo Beta1 to WCF Sep 05 CTP release

As with any prerelease, there have been changes, so watch out when you're working w/ the code examples from Programming "Indigo"



November 09, 2005

Fun with List <T>

I didn't see a method in the 2.0 dotnet framework to 'AddRange' or adapt an IList into a List, so this was the result...

enjoy :)


public List< T > ConvertListToListT< T >(System.Collections.IList list)
List< T > ret = new List< T >();
foreach (T o in list)
return ret;

Programmers are optimists (well, most anyway)

I ran across the 'GodObject' anti-pattern and saw this quote which seemed worth repeating regarding development in general:

Programmers are optimists. We assume that each feature in the specification
for a project can be added in a constant amount of time even as the code grows,
and we add each new feature just like we added the last. In other words, that
programs are completed in linear time. The last half, recursively, takes twice
as long.

This is very easy to lose track of when estimating, espically on a large system. If this post even saves one developer from an unnecessary late night (or nights) then it has done its job :)


November 05, 2005

CTP Madness

I ran across this link tonight and found it useful. (Thanks Channel 9!).

It can tell what versions of .net 2.0/Whidbey/WCF/WPF you have installed, which versions are compatible, and which are retired.

For those still looking at WCF and WPF this should still be of use.

It was really helpful for me getting Indigo installed on my VPC!