Custom Error Pages

I’ve had custom error pages on my site since it started, but today I added an awesome feature. It was great that the user was getting an error page with the same look and feel as my site, but I wasn’t getting any information from it.

I’ve added some PHP scripting so that whenever someone gets one of my error pages, I am sent an email with the URL they were trying to access, the referring page that has the broken link, time, date, visitor’s IP address. Now I’ll be able to track down broken URLs and resolve them.

Mr Bob’s Web Design has a great code generator and instructions for setting this up. When you do step 2, make sure to remove any blank lines at the end of functions.inc.php after pasting the code into it. If you don’t, you will get an error message on your error pages that the headers have already been sent.

TFS Statistics

I just finished installing TFS Statistics on my web site. The configuration was a breeze and the instructions were top notch for the installation.

From their website:

TFS is a Web statistics package written in PHP.

Features: Web site statistics by day, month, year, OS, browser, bots/spiders, referrers,last visitors, last bots/spiders, page hits, visitors by country, average visitors/bots and % function on all counters. In the last bots/spiders and last vistors overview you can click a link so you can see what pages are requested by the visitor, spider, or bot. Referrers are listed by domain if you click on the domain you will see the pages where your site is listed. You can also exclude ip adresses, so they will not show up in your statistics.

I did run into a conflict between their code and WordPress. I was getting “is not a valid MySQL-Link resource” error messages from some of the WP queries, but the errors went away when I turned off the TFS includes. I ended up finding a fix for the problem and documented it on their forums.

So far it looks like a great package that gives me all of the information that I want about the visitors to my site.

4 Game Winning Streak

Today we finally played a good game in basketball league. We beat a team (by about 14) that we barely lost to in the first half of the season. We really shot well and took good shots.

My shot finally came around as I stepped in closer to the basket and made a few drives to the hole. I had at least 20 of our 54 or so points. Felt good to finally drill some shots.

On a side note: This weather is killing me. We have more snow than we probably got all of last year. The roads were super slick tonight. I slid right through a stop light and missed my turn. Good thing it was a green light and not red, because that would have been a nice crash.

Living On A Golf Course

I’ve always said that I would like to have a house on a golf course. Today I questioned myself…why?

The view would be awesome, but other than that, there really aren’t any great advantages I can think of. The property around a “nice” golf course is over priced because of the location. You can’t walk out and play a few holes anytime you want. You have limited use of your yard for obvious reasons. You have to put up with people walking on your property to find their golf balls. Your children will be in danger of golf balls and foul language.

Maybe it would make for a nice retirement/summer home.

The Friday 5

Each week, The Friday 5 site has a set of questions, which I’ll be using as a post here. Just something to look forward to once a week.

At this moment, what is your favorite…

  1. …song?

    -“Hey Ya” by OutKast

  2. …food?

    -Chiken Philly sub from Charley’s Steakery

  3. …tv show?

    ER

  4. …scent?

    -Home cooking (on a long term basis)

    -Gasoline or a fresh lit match (on a short term basis)

  5. …quote?

    -“Free your mind” from The Matrix

How about you?

A Good Day

Just a few updates…

My interview for the programming position at SVSU has been scheduled for next Wednesday afternoon. It can’t come soon enough.

I started on my income taxes today and it looks as if I’ll be getting another nice return this year. The money will be going straight towards extra payments on my student loans.

Casey, Hater, and I met for dinner tonight. We really haven’t hung out enough this school year.

Andy Rooney

Today I received an email forward from a friend with a bunch of Andy Rooney quotes. I’ve received similar messages a few times before and each time I read them I like Rooney more and more.

Here are a few of the items from the email:

I think that if you feel homosexuality is wrong, it is not a phobia, it is an opinion.

I don’t think being a minority makes you a victim of anything except numbers. The only things I can think of that are truly discriminatory are things like the United Negro College Fund, Jet Magazine, Black Entertainment Television, and Miss Black America. Try to have things like the United Caucasian College Fund, Cloud Magazine, White Entertainment Television, or Miss White America; and see what happens. Jesse Jackson will be knocking down your door.

I have the right “NOT” to be tolerant of others because they are different, weird, or tick me off. When 70% of the people who get arrested are black, in cities where 70% of the population is black, that is not racial profiling, it is the Law of Probability.

In addition to these examples, I found a website with a whole page full of Andy Rooney thoughts. It makes for interesting reading material.

Fetus Found At SVSU

Earlier tonight (around 6:30 p.m.) a janitor walked into a bathroom in Curtiss Hall, found a puddle of blood, and called 911. It turns out that there was a fetus in one of the toilets, but the mother was no where to be found. The Michigan State police have been investigating, but no further details have been released.

I’ll update this post tomorrow as the story unfolds.

Update: Check the comments for information provided by the SVSU Chief of Police.

Dinner Invites

If you could invite any 3 people (living or dead) to dinner, who would they be?

I’m going to split my choices up into two categories.

Sports:

  1. Barry Sanders, the great running back of all-time. Anyone that can have so much talent and be so quiet about it is a special human being.
  2. Mike Krzyzewski, coach of the men’s basketball team at Duke. The guy flat out knows how to coach, motivate, and be a friend to his players. He will end up as the greatest coach ever at the college level.
  3. Lance Armstrong, cancer survivor and 5-time winner of the Tour de France. He might be one of the greatest athletes alive today, expecially after battling cancer!

Other:

  1. Nostradamus, perhaps the greatest prophet ever to live. Many of the things he predicted have come true in some part. I’d like to ask him how he did it.
  2. Bill Gates, founder of Microsoft. How could you not want to have dinner with the richest man in history?
  3. Thomas Edison, the inventor of the lightbulb. You may not know that he invented many other things including the motion picture camera, phonograph, an electrical voice recorder, sockets, switches, insulating tape, steel alkaline storage batteries, and many many others. During his life, he was awarded 1,368 different patents.