About Me

My photo
Northglenn, Colorado, United States
I'm primarily a BI Developer on the Microsoft stack. I do sometimes touch upon other Microsoft stacks ( web development, application development, and sql server development).

Friday, April 14, 2006

Krugle

So today, I got my Krugle beta test access. The not beta website, where you can read up on Krugle is: http://www.krugle.com/. Krugle is a search engine that you can use to search, view open source code, comment on, etc..

Well, the first thing I tried was C# to see if there was any, unfortunately there wasn't any.

So the next search I did, was on "reinforcment learning", and there were some code. I am pleased about this. I selected a source code called: test_agents.c

I am able to see the source code, the comments, etc. It is very nice to see how other programmers would do things.

I also took a look at a java class called RLPolicy.java, it was cool to see they implemented some of the exact same things I did.

They allow you to view the whole project, in which they catagorized the files to where they belong.

I'll probably look at some of the code, and if I find something I like, I'll probably rewrite it in C#, not to hard coming from code like C,C++, or Java.

Tuesday, April 11, 2006

Old, but new to me: C# will this compile?

From: http://blogs.msdn.com/brada/archive/2004/12/21/329270.aspx

using System;
using System.Threading;

public class Class1
{
   public static void Main ()
   {
      new Thread(delegate
         {
            Console.WriteLine("On another thread");
         }).Start();
   }
}

I couldn't see why it could ever worked, but then looking at his solutions http://blogs.msdn.com/brada/archive/2004/12/27/332863.aspx

I see why I didn't like it. I would have used the first version of his solution:

new Thread(
delegate ()
   {
      Console.WriteLine("On another thread");
   }
).Start();

since it looks like the way a delegate would be initialized and a function that a thread would call.

Monday, April 10, 2006

How To: Build a RPG in a week

http://www.gamedev.net/reference/articles/article2259.asp

Nice to see that an 80's RPG can easily be made with free tools. He did his programming with python, which is interesting to see that python has come a long way.

Friday, April 07, 2006

How to pull an all nighter... (Shout out to Cornell)

http://www.christianmontoya.com/2006/04/04/how-to-pull-an-all-nighter/

Good basic tips:

Drink caffene, but not too much.

Eat food

Take a shower

Loud Music (doesn't work for me, makes me tired)

Walk around (any good exercise, like 20 pushups or something)

Don't lie down

Don't eat fatty food, I would also add sugary foods since they make you drowsy after 15 minutes

Don't turn the lights out (hope you don't have a room mate)


I never did an all nighter, but I also never procastinated. I knew the sooner I got my shit done, the more time I had to play Counter Strike. :)