Login | Register

Nerd Paradise

Tell your friends

Front Page Posts

Page: < Previous 1 2 3 ... 17 18 19 20 21 Next >

10,000 Digits of Pi

Posted by Blake on 10 Cado 7:2
= 3. 1415926535 8979323846 2643383279 5028841971 6939937510 5820974944 5923078164 0628620899 8628034825 3421170679 8214808651 3282306647 0938446095 5058223172 5359408128 4811174502 8410270193 8521105559 6446229489 5493038196 4428810975 6659334461 2847564823 3786783165 2712019091 4564856692 34603486...

Counting Terminating Zeros in a Factorial

Posted by Blake on 10 Cado 7:2
Ever notice how large factorials always end in a ton of zeros? If not, take a look at 999 Factorial (scroll all the way to the bottom). Lots of zeros! Why is this so? Consider 15 factorial: 15! = 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 Obviously, there's at least 1 zero at the end of th...

Determining if a Point is in a Triangle

Posted by Blake on 10 Cado 7:2
Suppose you have 3 points in 2D space that represent a triangle. Now suppose you have another point and you want to know if that point is inside the triangle. How do you do that algorithmically without plotting it and doing a visual confirmation? This method is called walking-around-the-edge. Prete...

North Avenue #1: Works for Segfaults, Too

Posted by Blake on 10 Cado 7:2
Project did not compile: 43 Errors, 126 Warnings Project compiled successfully PREVIEW:

Sim City 2000 Integer Overflow

Posted by Blake on 10 Cado 7:2
So after Thanksgiving, I felt like I needed to take a break from coding for once and I started digging up some of my ancient computer games. I finally came across Sim City 2000, which sports a 1994 copyright date and proudly boasts Windows 95 compatibility. Remembering the long hours and days lost t...

The Abridged History of the Ancient World

Posted by Blake on 10 Cado 7:2
I usually don't write about this stuff. In fact, this is the first post in the History section of The Dry Erase Board Nerd Paradise. However I have lately become sad at the lack of knowledge the average American has of his/her own country. But similarly, I've also noticed that many people in general...

The Longest Words in the English Language

Posted by Blake on 10 Cado 7:2
A while back I had a list of long words posted on here. However, there is great debate on the internet as to what counts as a true English word. So in a laborous effort of googling, I now present you with a list of the words that are considered the longest from several perspectives and why. The lon...

Configuring the Joystick in PyGame

Posted by Blake on 10 Cado 7:2
One annoying thing about PyGame is the joystick API doesn't really give you much high level flexibility. It only serves as a small rickety rope bridge to the underlying hardware. You can poll to see if a button is pressed, and that's it. If you wanted to create a game where you could use a joystick...

Saving an Image in Silverlight to File

Posted by Blake on 10 Cado 7:2
I created a nifty drawing program in Silverlight. Unfortunately there doesn't seem to be any native way to save a BitmapSource or FrameworkElement to an actual bitmap and save it without sending a cheesy web request to a rendering service hosted elsewhere. However, using the SaveFileDialog class, it...

Background Worker in C#

Posted by Blake on 10 Cado 7:2
There are lots of factors you have to consider when creating a multi-threaded program in .NET. Going about sharing memory directly will cause a crash without setting up everything just right. However, a lot of this work is conveniently bundled up and abstracted away from you in a .NET class called B...
Page: < Previous 1 2 3 ... 17 18 19 20 21 Next >
Current Date: 13 Ineo 9:5Current Time: 15.59.86Join us in IRC...
Server: irc.esper.net
Channel: #nerdparadise
Your IP: 107.21.186.38Browser: UnknownBrowser Version: 0