Know the name of a Federal Employee? You can look their salary up online!

I actually can’t believe this is real: an online database containing the salaries of most federal employees (exempt are those who deal with matters of national security):

http://php.app.com/feds06/search.php

This sort of makes sense since we the tax payers are paying these people, however, it also seems a little wrong. Aren’t these people entitled to some amount of privacy? I’d be annoyed if someone could look up my salary, though then again, maybe if everyone knew what everyone else made it wouldn’t be so bad. You wouldn’t have people trying to cut backroom deals to get a higher salary.

Unfortunately I don’t know many Federal Employees. I tried most of the people on my facebook list and came up with only one hit (and it was the guy who told me about the site). This would be a much juicer find if Maryland State employees were listed, sort of like how New Jersey State employees are listed.

Anyway, I found this to be shockingly interesting site. If you know any federal employees you might want to point them to the site, just to see what they think :).

New Old Stuff

I decided to resurrect the “Most Asked For VB Code” section of my old site. I figured there were a lot of helpful bits of code in there, and that it was a waste to simply discard it. You can view it here:

VB 6.0 Code Bank

I went through and checked all of the code to ensure that it still works, and I tidied up some of the messier looking segments. It’s cool to look back at some of the code I wrote when I was 16/17 and think “hey, that’s pretty clever!” But then some of it also made me go “holy crap, I was an idiot!” I was especially embarrassed by how many times I used variables named “pat” or “patorjk”. I believe early on in my programming days I saw some hacker posting code on a message board and he would use his handle as a variable name. I thought that was pretty cool so I picked it up. Sadly, no one ever pointed out to me that this was a bad programming practice and that it made code hard to decipher.

I suppose that’s one of the disadvantages to teaching yourself. You can end up unaware of certain bad practices until they come back to haunt you. When I was a Teaching Assistant back in grad school I worked with a beginner class where students could lose up to 60% of their project points on style alone. I remember having irate students come to me and ask how they could have received a “D”, or in some cases an “F”, when their project worked perfectly.

I was kind of upset with the harsh grading guidelines too, but there wasn’t anything I could do. Looking back, I still think it’s too harsh to put so much of a weight on style. All that will do is discourage smart people who have picked up some bad habits. This reminds me of an essay I read recently:

Hackers and Fighters

I like how the author romanticizes the idea of the “street programmer” (the self-taught programmer), and I like how he points out the weak points in a university education. Though a university does do a good job of weeding out complete idiots, I’ve seen a number of people who can barely program (ex: “I can’t program in Java, I only know C++”) who go on to make 80k+ a year. Then there are people I know who are self-taught who could program circles around those people and they make less than 50k a year. It boggles my mind. A degree and good social/networking skills seem to be the most important things when getting a good job, which saddens me a little, but oh well.

Opera and Other Things

I downloaded the Opera web browser recently, just to see what this page looked like. I noticed that the TAAG program looked like crap so I’ve redone some of the CSS for it. Later this week I hope to do another update to it to add in some new features.

A while back I was working on a new web app, I haven’t touched it in over two weeks – my plan is to start working on it again later this week and to try and release it asap.

“Google! Teacher, mother… [lustful voice] secret lover.”

I love google. Lately it’s been bringing me lots of visitors. It brought me 55 yesterday, which is a pretty damn cool (and pretty good for a small site like this one). However, this past weekend when I messed up my .htaccess file, it brought me no one. In case you weren’t here: I screwed up my 301 redirect links and no one was able to access anything in the /software, /downloads, or /programming directories of this site (you were just redirected to one of my blog pages). I will now do a total site checkout after touching that file. I can’t believe I was that stupid.

Like an idiot I let this error sit around for a few days before I realized something was terribly wrong. That something wrong was that google was no longer bringing me traffic. I’d fallen in my page rank. I quickly fixed the error and my page rank mostly returned. However, my ranking for the term Patrick Gillespie seems to have disappeared. I was actually kind of hoping to grab the top spot from that stupid news article on the pervert named Patrick Gillespie. Though then again, it was my Tiburon entry that was climbing the top ten of that page, and I’m not so sure that article would look good next to one titled “Patrick Gillespie arrested for failing to register as a sex offender.”

Back to the topic at hand though. Luckily google forgave my foolish .htaccess blunder. I was reading an article on some other blog earlier this week where the site owner wasn’t as lucky:

Google Penalty Nightmare

Google penalizes sites for certain offenses. Usually this is because a site is trying to do something artificial to raise its page rank. But since google doesn’t tell these sites the reason they are penalized, no one can be sure why a page suddenly drops in its page rank – or in some cases, is removed from the search results. Sometimes you mess up and things go back to normal (like me), and sometimes you mess up and things are sucky for a decent amount of time (like the girl in the blog entry above).

I find the whole idea of a secret penalty system quite interesting. It makes sense that they wouldn’t release all of the details, because then people would know exactly what to try and get around. Not knowing what you’re up against means there are more mines you could potentially step on, and when those mines are things like being removed from google’s search results, you’re less likely to do something to try and cheat the system. At least that’s what I think their reasoning is.

Not surprisingly, webmasters have tried to understand this system and some have even put together lists of possible google penalty filters. Below is one such list:

Google Filters

Jargon you’ll need to know to understand that article:
SERPS = Search engine results pages
SEO = Search engine optimization

If you’re a webmaster, that article is worth reading. It’s even caused me to think twice about the naming of my “links” section – though it’s late now so I’ll rename it later.

Oh yeah, in case you’re wondering, the title of this entry is a reference to a famous Homer Simpson quote. I figured it would probably be a good idea to mention that :).

Cool New Image Resizing Technique

One of the things I studied in grad school was how to find the least visible seam in an image. This would be useful say if you overlapped two images and wanted to find the best way to cut them together, or if you wanted to create your own waldo image. I thought that the seam finding algorithms were really cool, but that there wasn’t a whole lot of use for them outside of doctoring photos and generating texture. Holy crap was I wrong. Check out this video:

This is the first time I’ve ever watched a technical video and thought to myself “I understand everything that is going on here… why didn’t I think of this!!” That’s a truly awesome idea. It makes me want to breakout my seam finding code and make an image resizer (I’ve written code that finds the low energy image seams you see in the video – it’s what I used to make the waldo image, which is the same image randomly pasted over and over again with a seam between overlapping areas).

The only problem with that idea is that finding seams isn’t as fast as they show you, at least not for large images (400+ by 400+). They might be using a different algorithm then what I’m thinking of, or maybe they were running the app on a super fast computer, but in my experience finding a seam can take some time if the image is of a decent size (by “some time” I mean 1 or 2 seconds). Though I might be wrong and this might be a super fast algorithm. It’ll be interesting to see how people apply this.

Blocking Firefox

There’s been a decent amount of hysteria on some of the social news web sites about a new campaign to block Firefox users. The reasoning behind this is because Firefox has a plug-in that allows you block ads.  Proponents of this campaign argue that this robs website owners of the opportunity to make money from their site. You can see the campaign’s website here:

http://whyfirefoxisblocked.com

The majority of people who are reacting to this seem to be upset about this. However, after doing a bunch of googling, I was only able to find one site that is participating in this campaign (and it sucks).

Anyway, I figured I’d give my opinion on this issue since I’m sure I’m in the minority. Frankly, I don’t see why so many people are getting upset. If a website is going to block you, just don’t visit that website. There are millions of places to go on the internet, if a handful of sites want their ad revenue and you don’t want to look at ads, just don’t go to those websites. For every site that blocks Firefox, I’m sure an alternative will spring up somewhere.

I kind of like the ad revenue based system though, since it allows a lot of stuff to be free. Most sites I visit have a tasteful display of ads. If I go to a website and they ambush with lots of crap, I just never go there again. I’d hate to see this model replaced with a model where ads are injected into the actual content (movies and TV shows sometimes do this). I wouldn’t put it above sites to do this either. They’re going to make their money one way or another (or disappear).

As a site note, according to my web stats, 37% of the people who visit this website use Firefox. 52% use Internet Explorer, and the rest use a variety of other browsers. I guess that’s indicative of a more web savvy audience.

Some Minor Updates

VB Arrays Tutorial

I noticed from my stats page that chicanerous’ VB Arrays tutorial was getting between 8 and 10 views a day. This made me realize a decent number of people were reading it and I felt sort of bad that I had it displayed with such a crappy layout. The grey background and white text on a stand alone page made the tutorial look very low quality, so I decided to give it a make over and add a section on the Split and Join functions:

http://www.patorjk.com/programming/tutorials/vbarrays.htm

Also, there will be more updates to the programming section soon. It’s been pretty sparse for a while.

Links

I’ve created a formal link section. On my old website, I had a link exchange program. I will no longer do this. Mainly because I had a lot of crappy links submitted to me, and at the time I figured it was better to be nice and do the link exchange than to reject someone who probably visited my page regularly. However, I actually ended up having a few people email me asking why I had a couple of really crappy sites linked (I wont name names). I’m sure this caused them (and others) not to trust the link suggestions I gave. There was also the problem with people unlinking me after I linked them, which was annoying (especially if I didn’t like their site to begin with).

So now I’m just going to limit it to sites that I like, think are interesting, have useful/relevant content, and feel are worth checking out. As time goes on I hope to add a lot more than what’s there now. I haven’t decided if I want to focus on smaller sites or just interesting sites in general. My gut is to go with smaller sites, but we shall see.

Sleep

I haven’t been getting much sleep lately. I guess there’s no point to me saying that here, but I’m pretty tired right now and felt like sharing :P. There was actually going to be more added today, I just didn’t get around to it, maybe this weekend though.

TAAG Update

One thing that annoyed me about my TAAG program was that every time you changed fonts, the top frame had to be reloaded. This was because the program needed to talk to the server to get the information about the new font. However, technically, nothing on the page needed to be redrawn, so refreshing the whole frame seemed like a little much, and when you change fonts a lot, it gets annoying. Anyway, this week I was reading up on AJAX, which is a way of talking to the server without reloading the webpage. Since this was just was I was looking for, I decided to incorporate the technique into TAAG:

http://www.patorjk.com/software/taag/

The top frame will still reload is you change the “Font Type” or if you select a font from the preview page. However, it should not reload if you change fonts via the drop down font list. Also, there is a bug in Firefox where the “onchange” event isn’t triggered for keypresses on listboxes, I’ve set things up so you should now be able to change fonts with your keyboard on Firefox. A few other things were updated as well, but it was all small stuff.

If you’re thinking about developing web applications or interactive webpages, AJAX is worth reading up on. I wish I’d known about it sooner. Later this week I think I’ll start on my next program, it’ll be another web program and I’m unsure of how long it’ll take to make.

Social Bookmarking Websites

A couple of years ago a friend of mine showed me a website he was working on. It was a site that allowed you to save a list of your favorite websites to a server, so that you could obtain a list of these sites no matter which computer you happened to be at. He told me it was fully functional, and he had even given a few test accounts out. When I saw it, I thought it was a pretty neat idea, though nothing revolutionary. Later that day I did a google search and discovered that there were already a couple of sites like that. “Hmm, looks like this idea has already been implemented pretty thoroughly…” And social bookmarking sites left my thoughts completely, until a week ago.

I frequent sites such as reddit.com. Mostly so I can get my daily dose of odd ball news and information. A lot of the sites that are posted on reddit are blogs, and lately I had been noticing that many of these blogs had these strange little buttons at the bottom of their entries. After having wondered what the hell they were for some time, I finally clicked on one out of curiosity and it took me to del.icio.us, a modern day social bookmarking site. I was actually kind of amazed that the site had become so popular that bloggers were posting a link to it in all of their posts. After some researching though, I figured out why.

  • Social bookingmarking sites allow you to share your favorite links with friends and strangers. For website owners, this is free promotion, and people are much more likely to spend some time looking at a link on someone’s favorites list than they are to spend time looking at some random site they came across in a search engine.
  • Links on social bookmarking sites actually get factored into your page rankings on most search engines. Thus, the more people who favorite your site, the higher your page is ranked.

The first point may be obvious, but the second point is probably the reason those little buttons have taken off. Search engines are a powerful tool in driving traffic to your site. It didn’t seem to make sense to promote some other site just for point 1, but with points 1 and 2 together you actually have a pretty nice combination.

Those little buttons have taken off so much that there are now sites that offer the service of providing you with the latest buttons. Sign up for an account on their site and you can have all the popular buttons easily placed on your blog or website. Check it out:

  • http://blog.addthis.com/ – A plug-in you can get for WordPress. Has a nice little popup of notable bookmarking sites when you mouse over the button.
  • http://badged.net/ – Free service that doesn’t require you to register an account. It looks like they survive by taking donations.

These seem like nice little services, but one has to ask themselves: How do these sites make money? My biggest fear with using a free service like the ones listed above is that they’d start putting ads everywhere once they got really popular. And the last thing I want for my visitors is for them to be greeted by some pop-up window, especially if I’m not making anything off of it. This may seem like a rather cynical thing to say, but most of the free services I’ve used in the past have all ended up being saturated with ads (geocities, xoom, various free counters I’ve had, and the list goes on).

For the moment, AddThis appears to be looking at data mining as a possible income generator:

http://www.techcrunch.com/2007/03/05/addthis-widget-gathering-lots-of-interesting-data/

Badged may be doing the same thing, but they don’t say anything about keeping track of clicks on their website. Personally, I actually prefer Badged’s setup. It’s nice to be able to choose which buttons you want. However, it’d be a lot nicer if there was no dependence on the main site. For example, after you selected the buttons you’d like, it’d generate the HTML for you and you’d simply right click and save the icons to your computer. That way there’s no chance of people putting ads on your site and no chance of them mining data from your users. I like that idea so much I may do it myself, maybe.

In the meantime, I’ve decided to put two social bookmarking buttons on my TAAG program. Just to see how that goes. TAAG will also be getting an update later in the week. To give you a hint, I’ve been reading up on AJAX.

As for my friend, to my knowledge, he didn’t really do anything with his bookmarking site, which is kind of a shame, since it was a neat enough site to leave an impression on me.

Stats: July vs June

Visits were up for the month of July, I’m not exactly sure why, but it’s certainly encouraging! Thanks to all of you who come here, it motivates me to keep working on this site. As far as stats go, I’ve actually sort of been wondering how to best promote this site. Towards the end of the month I realized I hadn’t submitted this site to any search engines, so I did that. However, I was listed on most of them already, so I’m assuming manually submitting a site doesn’t do a whole lot. I did find some interesting web tools available from google though:

http://www.google.com/webmasters/sitemaps/

If you have a website you may want to check that out. It’ll give you interesting information about how your site is ranked in their search engine. Stuff like your highest ranked page, sites that point to you that count in your page rank, when the last time your page was crawled, and a couple of other things. Anyway, here are the stats…

July Stats:
Average Number of Visitors a Day: 120.94
Total Number of Visitors: 3749
Total Amount of Bandwidth Used: 2.91 GB

Links from an Internet Search Engine  
8 different refering search engines Pages Percent Hits Percent
Google 681 90.9 % 683 90.9 %
Yahoo 30 4 % 30 3.9 %
Unknown search engines 13 1.7 % 13 1.7 %
AOL 11 1.4 % 11 1.4 %
MSN 9 1.2 % 9 1.1 %
Ask Jeeves 3 0.4 % 3 0.3 %
DMOZ 1 0.1 % 1 0.1 %
MetaCrawler (Metamoteur) 1 0.1 % 1 0.1 %

June Stats:
Average Number of Visitors a Day: 84.00
Total Number of Visitors: 2520
Total Amount of Bandwidth Used: 547.01 MB

Links from an Internet Search Engine  
8 different refering search engines Pages Percent Hits Percent
Google 373 91.8 % 373 91.8 %
Unknown search engines 11 2.7 % 11 2.7 %
Yahoo 9 2.2 % 9 2.2 %
AOL 5 1.2 % 5 1.2 %
MSN 5 1.2 % 5 1.2 %
Ask Jeeves 1 0.2 % 1 0.2 %
MetaCrawler (Metamoteur) 1 0.2 % 1 0.2 %
Dogpile 1 0.2 % 1 0.2 %