Archive for June, 2009

Is it just me or are bots getting smarter?

Monday, June 29th, 2009

The great thing about the internet is that it allows people to disseminate massive amounts of information at amazingly cheap prices.  This is also one of the worst things about the internet...  Because it's so cheap to send out information, there are a lot of people out there spewing out pure garbage on a colossal scale.

Everyone knows about spam email and how annoying it is. But, really, it's not that big of a deal. Be careful who you give your address to, change addresses often, and delete the random junk messages that do make their way in.

Spam's ugly online cousin, spam-bots, can be much more difficult. Of course, not all bots are bad. Without them, we wouldn't have search engines or aggregated news feeds. But, even those useful bots can do a lot of damage. Looking over my access logs and reporting, I find that bots are consistently around 50% of the traffic to all of my sites. That means that 50% of my server load is spent delivering pages to non-humans.

And then, even worse, there are the evil little bots sent out by the same jerks who think sending out bulk spam emails qualifies as a fun hobby. The thing that was good about them in the past was that they were so dumb you could trick 'em real easy. Throw anything in a JavaScript tag and suddenly they don't see it. Or just do the most basic of keyword filtering and knock out virtually all the spam comments on a blog (for some reason, they all seem to talk about viagra, porn, and online degrees a lot). Lately, though, I've seen some alarmingly smart little guys trolling out there.

I had an Ajax script being used for cost-per-click displays of phone numbers and got a huge wave of impressions on it from the same IP in a really short time. I figured it was some prankster, but when I investigated, I found that it was GoogleBot. Of course, this isn't spam, but still it was alarming to see that a spider was out there hitting links that were only available by running a JavaScript function. So, clearly, I'm going to have to do a little re-thinking there and also start worrying about nefarious bots picking up JS capabilities too.

Then, today, I got a notification from WordPress.com that someone had posted a follow-up to one of my comments on another blog. I went back to the post and was very surprised to see my comment reposted again below the original with my name and a link to some spammy site (as my URL). That's impressive. And scary. Now, it's going to take more than a casual glance to figure out which comments are real and which are not. And, it'll probably result in some legitimate comments getting blocked and visa versa.

So, moral of the story is, this isn't the nineties anymore and you can't just assume bots are stupid like they used to be. Watch out.

What text editor is best for coding?

Thursday, June 25th, 2009

This is a question that I haven't thought much about in the last ten years or so.  I picked up a copy of Homesite back when it was still published by Allaire and never looked back.  I upgraded versions a couple times out of necessity as I moved to new computers, but never really checked out any other editors.  So, why change now?  Well...

After Vista forced me to install some update or another, my built in FTP client stopped working.  Even so, I stuck with Homesite.  It was like an old, favorite, worn-in baseball glove by this point and I didn't want to give it up.  But then, my hard drive started making this crazy noise consistently and Vista kept giving me bizarre errors and I realized my laptop was probably on it's last legs.  Rather than panic after a crash, I decided to be proactive and get a new computer (a desktop) and I loaded it up with Ubuntu Linux distribution rather than continuing to deal with the Microsoft garbage.

Homesite doesn't work with Linux so I was forced to finally find something new.  Bluefish Editor is what I came up with. It rocks. I easily connected it to all my FTP hosts (including the SFTP ones) and happily started coding away.

Only problem was that I kept forgetting what I had edited from there and then overwriting my own code with local stuff from the laptop. Plus, my wrist was taking some major abuse with all those clicks: save, switch window to FTP, change local directory, change remote directory, upload, change window to browser, refresh, switch back to the editor, etc. Finally, I decided enough was enough and I went out on the hunt for a new editor for my laptop.

The first thing I tried was just getting familiar with the VI Editor and working directly on the servers through a shell. Although this would have been wicked cool, it is a pretty steep learning curve and I just didn't have the patience. Every time I wanted to do anything (cut, paste, search, replace, undo) I'd have to go back to the tutorial. That got annoying real quick. Plus, I found that the VI Editors on different servers are wildly different. One will be color coded while another is monochromatic, etc.

So, then I asked a colleague for recommendations and he said to try PSPad and Notepad++. But after downloading these, I quickly found that neither supported SFTP so they were no good for me. I was hoping to find something like Bluefish for Windows, but there was just nothing out there.

Finally, I downloaded a copy of WinSCP and figured out how to configure it to work with Homesite as an external editor. I guess I should have just done that to begin with and saved myself all this effort. Bottom line is, 10 years later, I continue to use the same editor I started with. Funny how some things never change.


Copyright © 2010, Ink Plant. All rights reserved.