Dan Bright's .NET Weblog

Getting Ready For Regionals

I've been playing with JCreator as I'm preparing for this weekend.  This will be my first programming competition, so I'm not really sure what to expect.  I've studied all of the previous problems, some of which are pretty tough, and I'm glad the rest of my team are great coders.).

Too bad C# isn't an option, but hey, Java is close enough, right

If anyone has any advice or experience with programming competitions, I would love to hear it.

Posted: Nov 05 2003, 12:15 AM by DanB | with 1 comment(s)
Filed under:
Up & Running with 1.2

Well I finally installed the PDC framework bits on my machine, and my web site is now running .NET 1.2.  Everything went very smoothly.  The code “just worked” without any changes at all.  I'm now looking forward to playing with the real MasterPages and replacing the setup I use now, which is a modified version of Paul's MasterPages.

One thing that I noticed though:  The ASP.NET 1.2 Web Service Extension was prohibited by default on my installation.  Has anyone else noticed this?  I'm running Server '03 Enterprise if that matters.

OT: My first impression of Serial ATA

Well, today I was out at CompUSA and I saw a pretty nice deal on a 120GB Maxtor SATA drive with the 8mb cache...

Now I really don't *need* any more storage space on my machine (360GB is enough even for me), but I have recently been having some problems with my Promise ATA RAID card.  The card is fine if you just want RAID to mirror or stripe and you are running Windows, but if you want to run Linux (mono anyone?), or (and this was my biggie) if you want to make a nice image using Ghost or Drive Image you are just plain out of luck.

So I decided that since my new motherboard has built-in SATA I'll give it a shot.  I haven't really seen the performance yet, as the drive is formatting as I type this, but I must say, the tiny drive cable is nice.  Especially coming from having to pay way extra for rounded IDE cables.

Once I finish this PHP project I have to deliver on Monday morning I will switch the new drive to my primary & install Windows on it.  One of my good friends told me it took him about 15 minutes to install Win XP Pro on his new system with SATA drives.  I can't wait to see this...

Posted: Oct 25 2003, 05:54 PM by DanB | with 1 comment(s)
Filed under:
Crypto Random Numbers

Note to self (and anyone else it will help):

 

public static int GetCryptographicRandomNumber(int lBound, int uBound)

{

RNGCryptoServiceProvider rng = new RNGCryptoServiceProvider();

// Assumes lBound >= 0 && lBound < uBound

// returns an int >= lBound and < uBound

uint urndnum;

byte[] rndnum = new Byte[4];

if (lBound == uBound-1)

{

// test for degenerate case where only lBound can be returned

return lBound;

}

uint xcludeRndBase = (uint.MaxValue - (uint.MaxValue%(uint)(uBound-lBound)));

do

{

rng.GetBytes(rndnum);

urndnum = System.BitConverter.ToUInt32(rndnum,0);

}

while (urndnum >= xcludeRndBase);

return (int)(urndnum % (uBound-lBound)) + lBound;

}

 

Thanks to Kevin Stewart for this.

Transcending the MCAD exams?

Well I finally got around to getting the C# Transcender exams, and I just finished my first Web test.  Much to my shock I did well.  Much better than I thought I would in fact (I'm horrible at these darn tests). 

Since I have seen many posts in the past about my fellow ASPNETWebLoggers taking these exams I wanted to pose this question to the community: Has anyone used these tests as a study tool for the MCAD/MCSD tests?  If so how would you rate the practice questions compared to the real deal?

Also, a couple of my pals from work told me I missed a great user group meeting tonight.  The topic was Flash Remoting, and my friend Ghayth IM'ed me this link to give me an idea of what it's been used for.  All I can say is wow.

And of course (severely off-topic):  Matrix Reloaded DVD's hit the shelves today... And this one has a whole DVD of special features!

Posted: Oct 14 2003, 10:28 PM by DanB | with 2 comment(s)
Filed under:
.NET does Rock!

I just finished listening to the .NET Rocks show with ScottGu and I am pumped!  IntelliSense in the inline code view of ASP.NET and also in the xxxx.config files!

Ooh, I want in this beta program so bad I can taste it!

Posted: Oct 08 2003, 07:41 PM by DanB | with 2 comment(s)
Filed under:
Weblogs @ ASP.NET Searcher

I just threw together a quick & dirty little search app that uses google to search the http://weblogs.asp.net site.

Check it out if you need it.

http://www.danielbright.net/ASPNETWeblogsSearch/

No to all?

Ever get one of those messagebox prompts with the options: Yes, Yes To All, No, Cancel?

Where is No To All?

I will tell you!  Hold the shift button when you click no and it will apply that to all following dialogs in the current operation.

My test results
Your Type is
INTP
Introverted Intuitive Thinking Perceiving
Strength of the preferences %
22 44 33 56

INTP type description by D.Keirsey
INTP type description by J. Butt


Qualitative analysis of your type formula

 You are:
  • slightly expressed introvert
  • moderately expressed intuitive personality
  • moderately expressed thinking personality
  • moderately expressed perceiving personality
Posted: Sep 12 2003, 06:02 PM by DanB | with 1 comment(s)
Filed under:
My Second Article

I just wanted to drop a blog about my new article on CodeProject about Creating a valid RSS 2.0 document using XmlTextWriter.  If anyone has time please stop by and tell me what you think.  It's only my second article, so be gentle.

Also, I have to mention that I'm posting this blog from the web interface.  I hadn't used it in it's new form yet, and it is NICE.  Good job Scott.

Posted: Aug 11 2003, 07:11 PM by DanB | with no comments
Filed under: ,
More Posts « Previous page - Next page »