James Cassell's Blog

Thursday, March 31, 2005

Tomorrow, I plan to build a trebuchet. This is a project for my history class. A trebuchet is sort of like a catapult that throws stuff at castles. I will write how it goes after I'm done. I still have a book to read with a test comming Monday when we go back to school.

Tuesday, March 29, 2005

I finished and turned in my snake program.

I have been working on a prime number calculator. The first incarnation of it checked if it was divisible any number between itself and 1. That was very inefficient.

The next version of it had an array of calculated numbers. The number being checked was checked againsta all numbers in this array. This was reasonably faster.

I later thought of a way to exponentially increase the speed at which it processed the numbers by only checking numbers that were smaller than its square root. At this speed, it does the same amount of numbers in a fraction of the time.

I ran this program on my mom's brand new computer for about 15 hours. When I looked at the output after this time, I saw negative numbers. I realized that I had forgotten to declare the variables as unsigned. I fixed this problem and now have a program that will calculate all of the 32-bit prime numbers.

...Sort of unrelated, but I am on spring break this week. That is why I can stay up so late.

Tuesday, March 22, 2005

My snake program is almost finished. The error that I was having the other day was overflow, this means that my variable wasn't big enough to hold the number I wanted to hold. I just declared it as long instead of integer. I will post a link to the executable when the program is done. I'm still a procrastinator. I don't think that will ever change.

Sunday, March 20, 2005

My snake program is comming along pretty well, though, at the moment, it won't even run. Today, I went for a run and it started raining. Something weird happened: to my left, a flash went off and I thought someone took a picture next to my head, and about a half a second later, there was this huge burst of thunder. It was pretty scary. I turned around and went back home. I only ran for 45 minutes instead of an hour.

Thursday, March 17, 2005

Yesterday, I laid down on my bed at around 8:00 pm. I hadn't started my homework yet. I accidentally went to sleep, and I awoke when my alarm clock went off. I was able to barely complete my homework in time.

In programming class, we are each doing our own program. I am continuing work on the game snake. I have added options to change the keys that control the snake as well as the option to change all of the colors.

Sunday, March 13, 2005

Get a free iPod (and help me get mine also)!

I have information that they really do send out the iPods. I saw a clip from a Screensavers television show where they actually talk to the owner of the company. You can find the clip at TheScreenSavers.com. I would appreciate anyone who signed up through this link. You have to participate in one of the offers and refer five friends.

I will write something about me. Since I stopped posting, I have gotten my driver's license. I went through dirvers ed in school. I now to to Colonial Forge High School. The day I went to court to get my driver's license, the judge wasn't there, so everyone just walked through the courtroom and picked their license off of a table. This winter, I was on the swim team. I went to district where I swam the 500 freestyle and the 200 IM. I just joined outdoor track because swimming is over. My favorite class in school is programming. I find it very easy. My hardest class is Honors English 10. Anything anyone want's to know or wants me to post about can be requested via the commenting. I probably will, but might not post on it. It is late, so I had better go to bed.

I'v decided to start posting to my blog again. This is mainly because I found out that someone linked to it. I will in return link to their site. Rantings of a Gen X Misanthrope

I found out today that someone actually linked to my blog. I haven't updated this blog for a very long time. I have recently been working on my website. I bought my own domain and am currently hosting it on my computer. It can be found at elite-geek.org. I have been developing it and learning web technolgies.