Web Development

SETI@home Stats Display Script

Ever want a simple way to put your SETI(Search for Extra-Terrestrial Intelligence) stats on your webpage? Well, now that SETI@home is publishing personal stats in XML(eXtensible Markup Language) form, its easy to put your stats on your page, in a highly configurable way, using this little PHP(PHP Hypertext Preprocessor) script! The following script: Seti Display Script parses the XML files provided by SETI@home, and provides tons of data about your stats, easy configuration, and features like adjustable caching to prevent hammering the SETI servers. Installation instructions are in the header of the PHP file, and should be pretty simple. The script was based on Phil Ringnalda's excellent "PHP Blogroll":http://www.philringnalda.com/phpblogroll/ script. Update: Bigmad_drongo has cooked up a similar script that does about the same thing!

Hacked, sort of

I opened up my IIS FTP server on my WinXP Pro PC to let some friends upload some music. What happens but the next day I take a look, and there are hundreds of tiny directories that have been made, with little files in them. Looks like some script kiddies had found my box, and were trying to use it as a repository for various crapulence. I summarily booted the 4 FTP users that were online, and began to delete the crap they had put on my drive. Often, a strategy used in this sort of behavior to keep the files around longer is to make directories with bad characters in the names, so that windows can't delete them. Also, they will make directories with names like 'aux' and 'com1' which are reserved words. Windows won't let you delete those directories either. I'm not much of a Windows guy, so it took a little bit of jerking around to get rid of those directories. If you try to delete them in Windows, you get the error "Cannot delete file: Cannot read from the source file or disk." Which is a pain in the butt. Here was my strategy for cleaning up after the minor intrusion... Open a command prompt, hit ctrl-alt-delete, find explorer.exe in the processes tab, and kill it. Close the task manager, and go to your command prompt. Navigate to the directory containing the little garbage files, and start deleting them. If you use "rd dirname /s /q" you will be able to get some of them right off. If you can't delete them that way, try listing the contents by doing "dir /x" which will list the 8 char names for the directories, use those names to delete more of them. Remember that the /s switch is for recursive, and the /q switch keeps it from asking permission each time. This method will help get rid of directories with bad names, or illegal characters in them. If you are left with a few directories, chances are they have names like 'aux' or 'com1' or 'com2' or something. In that case, windows is not letting you delete them because those are reserved words. You can bypass reserved word checking by using the following syntax with the del or 'rd' commands: "rd \\.\driveletter:\directory" For example "rd \\.\d:\ftpshare\com1\" got rid of the com1 directory that was causing me trouble. This Microsoft Knowledge Base article is handy, as is this article at JSI. The final lesson is this: Never open up anonymous FTP uploading. Even just for a few hours. They'll scan the open port, and be into your computer in a flash. Things were pretty well patched up, so its unlikely that they would have been able to actually cause any harm, but the annoyance factor that they were trying to use my computer as a storage depot is enough to make me glad they aren't on my computer anymore. Though, I did get 5 albums uploaded by my friends. I should have just created user accounts for them though. I got lazy, and look what it got me!

Currently Playing

I don't have much for you today, but I did package up and release the scripts that drive my Currently Playing bar down on the right hand menu. They get information from a Winamp3 plugin called spyAMP, and they use a mySQL database to store the data, and PHP scripts to display it. Read all about it in my Projects page! My sleeping schedule is totally wacked out at the moment. Its about 11:40PM, and I just woke up. I don't know what my problem is. USB Overdrive now supports Mac OS X.2, and that can only mean one thing... Nintendo emulator time with my now-supported USB gamepad! Woo!

GeoURL

My site is now listed in the GeoURL directory. Check out my listing here. All you have to do is put two meta tags in the head of your main index, and submit your site. One of the tags holds your latitude and longitude, and the other holds a short description of your site. The latitude and longitude should be your personal physical location, not the location of the server. Who cares where your server is anyway? I don't even KNOW where my server is. I think its on the East Coast or something. What matters is where the person running the site is. If you don't want to be too specific about your location, you can use the coordinates for your city, or your block, or some landmark near your house. People then have the ability to search for nearby websites and blogs. There is a GeoURL link at the bottom of this page now, for anyone who wants to see where I am, and what is physically near me.

Content Fun

I'm trying to convince my mother to get a website, I'm baiting her by showing her just how simple and fun it is to use Moveable Type to manage a blog.

Kung-Log and DNS Crapola

As you may or may not have noticed, my site was down for a good while yesterday and the day before. That might have something to do with a mighty DOS (Denial of Service) attack that was launched on UltraDNS. Check out the Slashdot story on it. But maybe it didn't have anything to do with that at all. Though the problem was DNS related. In better news, I'm currently posting with a program called Kung-Log that uses Moveable Type's RML-XPC protocol to make posts remotely. Basically, its a standalone OS X application that lets you post. It gives nice options like selecting the blog, automatically inserting 'currently playing' info from iTunes, post preview, spell checking and more. Its pretty seamless, and its free too! So if you use Moveable Type and OS X, you should check out Kung-Log. (There is actually only one of you out there that uses both of those as far as I know, so, uh, Josh, you should try it out.) Also application related, I found myself coding some C, and wanting to have a rectangular selection option in BBedit. For those of you who don't know, rectangular selection (or 'block' selection) is where you can select text in a perfect rectangle. Instead of starting at a word, and wrapping around each line as you select downward, it remembers your exact position left and right as well. Its hard to describe, but pretty simple if you see it. It is totally useless for word processing, but for code, there are times when it is nice to grab a chunk out of the middle, and rectangular selections make that very easy. Anyway, I was disappointed that BBedit didn't have that feature. But lo and behold, when I checked their site, they had just released BBEdit 7.0! Which includes, you guessed it, rectangular selections! I love it when developers pre-read my mind. BBEdit 7.0 also includes goodies like Quartz text smoothing, XHTML 1.1 support "Close Current Tag" tool, and more. BBEdit is the best OS X text editor known to man. I had other stuff I really wanted to write about last night, but I seem to have forgotten it. Oh well, I suppose that means it wasn't very important anyway, or that I'm just really forgetful. Maybe it will come to me later. Interesting side note: While glancing up and down the post looking for spelling errors (which Kung-Log highlights!), I realized that I had to add the word 'blog' to the computer's dictionary. Funny, huh?

Security for fun and profit.

Today, in a stint of 'I dislike unsecure protocols' I deleted proftpd from my linux box, in favor of sftp, which was already installed thanks to openSSH. However, I was concerned that I wouldn't have a nice, easy to use SFTP client on my Mac. So I searched on Google, and found out that just in the past day or two, Panic Software (one of my favorite small software developers) released version 2.0 of their super-cool Transmit FTP client, which now supports SFTP! Excellent timing, Panic! Job updates coming later... I'll post about how THAT went this evening.