March 2008 - Posts

Call me Mr. Observant....but I just noticed that for some reason my VS2008 start page is set to some Sql Server Rss that contains REALLY out of date information (see:http://msdn.microsoft.com/sql/rss.xml)....so my question to you is what do you have as your start page RSS feed?  On another box I had the DotNetKicks feed...but I always got an error when I clicked on a link in that window so I stopped using it after a bit.

Posted by ryansjedi | 13 comment(s)
Filed under:

So I had my first chance to work with the DLR and LOLCODE today while for a lark I rewrote a solution to one of Windows Scripting Games event as highlighted on Scott Hanselman's blog.  To install the runtime requirements check out this page on Scott's blog.  I was struck by the power of the DLR while I was doing this.  I was also a little stymied in spots as LOLCODE and specificaly this implementation of LOLCODE isn't exactly well documented so I'm sure there's a lot of room for improvement here.  Anyway the challenge was to create a round-robin schedule for 6 teams, ensuring that each team played each other once and that one team didn't play a bunch of games in a row.  Here's the code or (HERE DA CODEZ):

HAI
CAN HAS System?

I HAS A NUMBEROFTEAMS ITZ 6
I HAS A NUMBEROFGAMES ITZ 15
I HAS A HT ITZ NJU ArrayList ON Collections ON System WIT 15
I HAS A RANDOBJ ITZ NJU Random ON System
I HAS A COWNTER ITZ 0
I HAS A INTA ITZ 0
I HAS A INTB ITZ 0
I HAS A THING
I HAS A NOTHERTHING
I HAS A HMMMM
I HAS A GAME

IM IN YR
LOL HMMMM R COL get_Count ON HT
IZ HMMMM SMALR NUMBEROFGAMES?
YARLY
LOL INTA R COL Next ON RANDOBJ WIT NUMBEROFTEAMS
LOL INTB R COL Next ON RANDOBJ WIT NUMBEROFTEAMS
IZ INTA BIGR INTB?
YARLY
LOL GAME R COL Format ON String ON System WIT "Team {0} vs. Team {1}" AN INTA AN INTB
LOL THING R COL Contains ON HT WIT GAME
LOL NOTHERTHING R COL ToString ON THING
IZ NOTHERTHING LIEK "False"?
YARLY
COL Add ON HT WIT GAME
NOWAI
BTW NUFFIN HERE
KTHX
NOWAI
KTHX
NOWAI
GTFO

KTHX

KTHX

I HAS A LUPESIZE ITZ COL get_Count ON HT
LOL COWNTER R 0
IM IN YR
IZ COWNTER SMALR LUPESIZE?
YARLY
VISIBLE COL get_Item ON HT WIT COWNTER
NOWAI
GTFO
KTHX
UPZ COWNTER!!1

KTHX



KTHXBYE
For more fun with LOLCODE visit Alex Thissen's blog and John Lam's blog   EDIT:Due to formatting issues you can't see all the code as it scrolls right...(silly blog). Just select the code with your mouse and copy and paste to see it all.
Posted by ryansjedi | 1 comment(s)
Filed under: , ,
More Posts