November 30, 2005

My first 'real' win!

I won my first $5.00 + $0.50 sit-n-go tonight at Bodog.com. 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 @ bodog.com. Come play with me! :)


cheers
jk

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 :)

jk

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!
jk

November 15, 2005

GotFocus()?

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

from http://www.syncfusion.com/FAQ/WindowsForms/FAQ_c41c.aspx#q1021q

jk

----------------------------------------------------
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:

 
[C#]
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

jk

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"

enjoy!

jk

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 :)

jk


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

Programmers are optimists (well, most anyway)

I ran across the 'GodObject' anti-pattern http://perldesignpatterns.com/?GodObject 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 :)

jk

November 05, 2005

CTP Madness

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

http://channel9.msdn.com/ctpmadness/Default.aspx

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!

jk