Archive for March, 2008
One of the big problems I faced in .Net 1.1 web applications was capturing the enter key so that the correct asp:button would be “clicked.” To solve this problem, ASP.Net 2.0 lets you specify this on the html form element with the defaultfocus and defaultbutton attributes. This is really slick and works like a charm. [...]
Most programming languages have built in libraries for generating random numbers from a uniform distribution. If you need to convert this to a normal or Gaussian distribution, some sort of transformation must be made. I found a good page that talks about this process and gives some example code in how to convert a uniform [...]