10
Mar

Site policy, contact info, registrations.

   Posted by: Jesse Cole   in Site Stuff

I’ve made a new page detailing the site policy, etc. I also realized that you apparently cannot leave comments for a page and that no one could contact me without using a post that may or may not be relevant. I’ve created a new text box on the left sidebar(to the right) with all my contact info to get ahold of me. I also turned on user registrations so people can have a little more of a permanent presence on my blog. If this starts getting abused by bots, etc. i may have to get some capchas in there or turn it off. If you request, i may up your status from subscriber to something that can submit posts, etc. to me.

I hope you enjoy the new changes and happy blogging :) .

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.

5
Mar

Cops Everywhere!

   Posted by: Jesse Cole   in Real Life

Wow, we had a lot of excitement tonight. Some guy that lives on the same little subdivision area thing that i do barricaded himself in his house with guns. Cops were blocking both entrances up to my house and after 5 hours of waiting in my car (eventually my dad got off work and went out to dinner), we finally came back and tried again. This time a nice lady cop let us by after making sure we understood that it was at our own risk if we went home. Even as i write this that guy is still in there. I feel pretty safe though, from the looks of things, every cop in Star Valley was there along with several cops from Jackson and a tactical unit (swat team) from Jackson as well. There is also a house, several trees, and a mound of snow between us.

*Update* 10:30 pm

As soon as i posted this we got a call. The situation’s been “resolved” and everything’s clearing out. I don’t know what “resolved” means but i’ll update this as soon as i get more information.

*Update 2* 03/06/08 6:00 pm

More information here Deputies Respond to Firearm Incident.

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.

28
Feb

New Button!!!1!!!1!!111!

   Posted by: Jesse Cole   in Site Stuff

Ok, so i’ve added the following button somewhere on the site.

Its awesome and will definitely attract more viewers. Definitely more viewers. Oh. Yeah.

P.S. If said button does not appear on the site then i am currently curled up in a fetal position crying over my inability to add it to said site. Help me.

19
Feb

You’re not pulling your weight.

   Posted by: Jesse Cole   in Site Stuff

I looked through my access logs that i’ve kept around since i got this site going. Below are the biggest visitors to my site according to how many “hits”(i think this is where that word applies) each unique ip has.

14179 192.168.0.105
1659 137.90.169.200
957 192.168.0.110
838 127.0.0.1
560 66.249.70.74
316 67.43.173.121
185 66.249.65.142
144 192.168.0.111
141 38.100.41.102
117 69.92.61.124

As you can see, the most popular visitor is me(192.168.0.105,192.168.0.110) and the server itself(127.0.0.1,192.168.0.111). Next we have 137.90.169.200 which is the school district where i work so those are probably mine as well. Next is 66.249.70.74 which happens to be google, crawling my site. Next is 67.43.173.121 who i don’t really know anything about except they screwed up their nameserver. Next is google again then we have some company in washington, dc that owns a /8 ip range and then kyle. So…you suck. My top 10, and you’re not in it. Thanks.

17
Feb

Code tag

   Posted by: Jesse Cole   in Site Stuff

Have you ever seen on websites where they show you some lines of code and those lines are seperated in a little box and clearly demarcated from the rest of the page? I’ve always wanted to be able to do that, now i can. I’ve edited the style.css page here and added a style for the code tag. Once i get it how i want it i’ll retroactively put code tags around all the code i’ve ever posted. See below for what i settled on.

pre {border: inset 1px blue;
font-size: 1.3 em;
color: blue;
margin: 10px;
padding:10px;
background: #fde8b9}

*Update*
I’ve finished adding the pre tags to the rest of the code on the site. That right i said pre tags. Turns out, pre, standing for “preformatted text”, reproduces exactly what is in the text including whitespace, etc. This was more useful than the code tags which don’t quite do that. Also, i found out that if you paste something from dreamweaver mx into a post and then save it, it drops everything after what you pasted and crashes the browser. So…don’t do that.

17
Jan

dns queries

   Posted by: Jesse Cole   in Boring Tech Crap, Interesting Tech Crap

In a previous post i explained how i run a server, etc. etc. Since i have absolutely nothing else to write about, i’m posting a part II of sorts for that post. This time its about the dns server i run. A few months ago i switched my internal network over to use my own locally hosted dns server. The following are the top queries its received from the internal hosts.

16527   time.apple.com
16188   www.google.com
4513   weather.wapp.wii.com
4235   ad.yieldmanager.com
2315   news.wapp.wii.com
1907   www.symantec.com
1852   ad.doubleclick.net
1612   105.0.168.192.in-addr.arpa
1347   cfh.wapp.wii.com
1320   202-177-19-148.kdd.net.hk.jessecole.org

Ok, we can see we have several very popular sites. The first is not quite what you’d expect, its time.apple.com. You don’t think about it but every computer and device you own likely keeps itself synchronized with a time server. Every time it goes to synchronize, it has to do a dns lookup. Actually this number is a tad distorted by the fact that my router decided it should update its time 10 or 11 times a day, (thank you Dlink). I actually got sick of it a made it use the ip address for time.apple.com instead of the hostname so hopefully that number won’t go up so much.

The next most popular query is for www.google.com. No surprise there. Every time you type in the website or use the search bar in your browser and possibly even just visiting certain websites will cause a query to be performed.

The most interesting out of all these though is the fact that, in my top 10 queries, 2 of them (ad.yieldmanager.com and ad.doubleclick.com) are well known ad servers. What a waste of time and bandwidth that is. In the future, i may start blocking queries to well known ad sites just to avoid giving them stats on us.

14
Jan

New Theme.

   Posted by: Jesse Cole   in Site Stuff

I forgot to mention before my last post but i have a new theme.  You like?  I feel it has a pirate type of feel to it.  Anyway, its new.  Leave suggestions in the comments.

7
Jan

ssh attempts

   Posted by: Jesse Cole   in Interesting Tech Crap

So. I run a server. And by that i mean i have a computer with many different services running on it that are accessible over a network. One of these services is ssh. Over the past few months while my computer has been exposed to the internet, i have received thousands of automated ssh login attempts by people doing a dictionary attack trying common usernames and password. I have decided to post some of the ip address and some of the more common usernames attempted. The first column is number of attempts since Oct 28 06:47:05.

1319 202.177.19.148   692 root
352 84.200.29.111   81 admin
275 213.223.16.236   79 test
168 211.53.78.104   41 guest
156 208.100.6.172   34 user
137 61.218.44.69   27 clark
120 216.234.56.210   23 oracle
105 205.206.124.18   21 smith
104 209.189.91.8   21 anderson
84 210.192.124.242   19 staff

ps. For the love of god if you know how to format that so that both columns are next to each other, tell me! I’ll give you a treat. Really, it will happen.

*Update* I cheated and got a table to do what i want. If anyone can tell me a better way please do. The treat thing still stands.

*Update 2* Nevermind, i’ve decided i like the way looks. After looking around a bit, it appears that there really isn’t a more elegant solution so i’m going to stick with it.

Page 2 of 3123