James Cassell's Blog

Wednesday, August 31, 2005

Yesterday, I went to the orthodontist to get my spacers in before I get braces. They are like small rubber bands that they stick between your teeth to make room for the braces or something. They told me that I could eat normally, but not to eat anything sticky like caramel. Last night, I ate steak for dinner, and all was fine; when I got myself some cereal this morning, I found that I felt excruciating pain when I tried to bite into something. I ended up having to suck on the cereal until it was soft, and then swallow it without chewing. The spacers are quite annoying, but I suppose it will be worth it after all of my teeth have been straightened.

Sunday, August 28, 2005

My latest host for cyberpear has not come back up, so I am hosted on my own computer again. This weekend, I have been messing with mod_rewrite. I have made it so that the URIs on my site don't tie it to any particular technology. Each page has what seems to be its own directory. This is faked by mod_rewrite and internally the actual PHP page is outputted.

Saturday, August 27, 2005

I just came across the HTTP/1.1 Specification while looking for information on http status codes. It is interesting, and I will probably read it.

Tuesday, August 23, 2005

My host for cyberpear has been down for the past few days. I hope that it comes back online, as 1l has been an excellent host to this point. Otherwise, I may have to purchase hosting, or find another free host. For now, my site can be found at elite-geek.org: my first domain name.

Sunday, August 21, 2005

Someone requested that I post the code for my Prime number calculator, so I will do so here. It is a function that will output to the page all of the prime numbers between 2 and the number that is given as input.

function prime($count)
 if($count>10000) #when changing this also change line 18
 $length = 1;
 /*unsigned int x, test;*/
 $stored[0] = 2;
 $test = 3;
 while($test <= $count)
   if(!($test % $stored[$x]))
   else if($stored[$x] * $stored[$x] > $test)
    if($length < 102)# change "102" to a number slightly greater than the square root of number in line 3
     $stored[$length++] = $test;

Saturday, August 20, 2005

I finally got a few digital pictures of me. The first is from when I went on paddle boats with my cousins, the second is from the finals swim meet (which I wasn't able to swim in because of delays), and the third is from the awards banquet for swim team. The picture dimensions are large, as I have not yet resized them for the web.

I finally started making the PHP version of my Prime Number Calculator. At the moment, it only outputs as text and the input has to be manually inserted into the address bar. I added functionality to my site in that it now includes a Last-Modified header. For some reason, servers don't normally do that by default. I should go to bed as I have to get up in a few hours.

Friday, August 19, 2005

This week, practice for Cross Country started. I ran track in the spring, but didn't keep practicing over the summer. Today is the second day that I ran. It shouldn't have been that hard of a workout, but since I am out of shape, I am sore all over. I am going to Mountain View High School (yes, I know the web site is a piece of junk; I had nothing to do with it) next year. It is a new school, and they are still finishing it with such things as a track, and many fields. Since there is no track there, we practiced at a park that is about 2 miles from my house, so that is kind of nice.

I went to Home Depot after dropping off my sister at work to pick up a piece of rope. The person I asked to help me didn't seem to know much of anything. He didn't know how to use the counter for the rope, so he used a tape measure. He didn't know to use the thing that cuts by melting the rope, so he used a knife, which resulted in a rope that comes unraveled. I think I can fix it myself, so that will be ok.

Thursday, August 04, 2005

For the past day, I have been attempting to make Opera be able to work with such things such as Java, QuickTime, and other "plugins" as they are often called. Without realizing it, I was attempting to make Java work with it when I realized that Opera comes with it already installed. I enabled Quicktime, but it took a trip to the forums to figure out how to make it play mp3s and other file types not indiginous (if that's the best work) to QuickTime.

Wednesday, August 03, 2005

I went to the dentist today. He filled a cavity that I had in one of my teeth. From an x-ray, I found out that I have 2 extra teeth behind my wisdom teeth. The dentist says that they will have to come out. I'm not thrilled about that to say the least.

I was disappointed the other day (yesterday) when I was not able to go to my friend's house for reasons that won't be discussed here. I started reading the SAT study books that my dad gave for my birthday. They are very long, but I will get through them. I will have to take the new SAT that adds an essay section and gets rid of analogies.