Archive for the ‘Other’ Category

30
Aug

Software raid with linux.

   Posted by: Jesse Cole   in Other

Recently, i noticed my once massive 500 GB hard drive had been reduced to nothing more than 3-4 gigs of free space. I decided i wanted more. I also decided, i didn’t like the idea of one hard drive dying and taking every byte of data i’ve collected with it. This meant redundancy. Now, there are a lot of solutions out there for making storage redundant. But, I decided I had a price range of only $200-$300 total. There was now only one solution. Linux software raid. Read the rest of this entry »

8
Mar

Prime Numbers

   Posted by: Jesse Cole   in Other

So, as you know from previous posts, I’m a geek. That means i like to do geeky things and then tell people. What do i have this time you ask? Why its a list of prime number up to and including 1005833, not counting 1(it was slightly more effort than i wanted to put in to this). Yeah, so i got bored and wrote the little program below in java to generate this. I decided to run it on my file/web server here. Its a 2.6 ghz pentium 4 with hyperthreading and it took about 4.5 hours to generate these.

public class CountPrime
{
public static void main(String[] args)
{
for(long i=1;i<30000000;i=i+2)
{
for(long j=i-1;j>1;j--)
{
if(i%j==0) break;
if(j==2) System.out.println(i);
}
}	}
}

This bring me to a little mini-rant. Notice how i’m using longs in the code above? Why not just do something smart and use unsigned integers giving you a nice 2^32 long space to work with? Well here’s the answer. JAVA DOESN’T FREAKING SUPPORT UNSIGNED ANYTHING!!!! I took 2 classes on java and never heard a word about this. I’ve defended java from idiots that for some reason like c or c++ without knowing this. How do you freaking design a programming language without support for something so unbelievable basic as unsigned integers or short or chars or bytes or longs or anything like that?

Ok, that was a little more than a mini-rant but i feel better now. Anywho, here are the list of prime numbers. The file is tar’ed and gzip’ed so if you’re using the only os in the world that doesn’t support it built-in (windows), its time to upgrade to something ‘nix based.

3
Mar

This is a Test.

   Posted by: admin   in Other

This is a test of my new post by email system i’ve set up. Ha! you can’t do this with notepad!

*Update* Ok, so this nightly build of wordpress breaks a few things in the plugin i’m using for my post by email thing.  So…yeah.  Until the author updates this plugin or i really get motivated to learn php and hack this thing to work myself…no email posting.

23
Dec

Merry Christmas!

   Posted by: Jesse Cole   in Other

It’s Christmas!!! Wheee!!!!

……

Ok, i got nothin’. I did put a Christmas Tree at the top….that looks nice and cheery. I was going to put a frame of holly around this post but i haven’t the slightest idea how to do it. So…i give up.

Merry Christmas.