Javascript

Thursday, May 1, 2008 at 11:26:09 PM

I'm all up in the javascript now, like whoa.

Probably gonna start posting a lot of JS-related stuff on here now.

Favicon

Sunday, September 16, 2007 at 2:13:45 AM

Dear Mr or Mrs 128.222.37.21,

I appreciate your apparent interest in my favicon.ico file. I am very flattered that you have decided to download it not only once, but 582 times in the past two days. That marathon run of 108 successive requests this evening thoroughly impressed me. Truly, the artistry that I have packed into the 16x16 canvas must boggle your mind. However, for the sake of my server log and your convenience I have decided to instead give you this gif version which you may download to your computer permanently:

Please download it only once, and you may enjoy it in the comfort of your home for as long as you like.

Until then, I have removed the favicon.ico file in the hopes that whatever automated program you have running will stop after a 404 or two.

Thank you,
Jason

Download Queue (DQ) v0.2

Wednesday, September 12, 2007 at 3:30:14 AM

Download Queue Screenshot

A fairly big update to the script, I've added several new features:

  • Notifications via libnotify Download Queue libnotify screenshot

  • Download History

  • Reprioritization via move, up, and down commands

  • Added the ability to add multiple urls at once

  • Added the ability to skip a download via CTRL+C (moves it to end of queue)

  • -f option for custom queue.txt at command line

  • -c option for custom .dqcfg at command line



Get the updated script here: Download Queue v0.2

If some of the new code seems a little hack-ish just remember, I'm still learning.

Next on the agenda:

  • Figure out how to account for wget getting 404, 503, etc, while still providing real-time output to the command line.

.htaccess IP Blacklist

Tuesday, September 4, 2007 at 6:12:21 PM

've not yet implemented anything in the way of blocking spambots on this site, and recently I got my first taste of comment spam. Luckily it was only one bot and a few comments, which were easily deleted, but after taking a look at my access logs I've noticed that the bot's still there, and has been trying to post to various pages for several days.

In all instances the bot had the same IP, so I toyed with the idea of having my comment posting function check the IP against a database table of known bad IPs, but that seemed a bit overkill for one bad bot. It also wouldn't do much for stolen bandwidth, CPU usage, etc. So I decided to ban the IP entirely in my .htaccess file:

# Block spammers by IP
Order Allow,Deny
Deny from 195.225.177.136
Allow from all


Now if I get a few more bad apples I can just toss their IP in as well. If it gets too large I'll work up an alternative.

Download Queue (DQ) v0.1b

Sunday, September 2, 2007 at 5:21:50 PM

[update]

Download Queue v0.2 Available!


See this blog post for details: Download Queue (DQ) v0.2
[/update]

I've been spending more and more time at the Linux command line lately and have been looking at ways of improving the experience, customizing and personalizing it. At the same time, I've been using it as an opportunity to learn new languages, one of those being bash.

I've used bash in a very simplistic way ever since I first got Linux, simple one-off commands here and there, aliases, .bashrc, etc., but I only recently decided to take a serious, in-depth look at it. I've been reading tutorials here and there, studied up a bit on common useful commands, but in order to really get to know a language you have to use it, so that's what I'm doing.

Download Queue (DQ) v0.1b


Tags, Search, and Archives

Tuesday, April 10, 2007 at 5:50:29 AM

Lots of new features added today:

Search
I have a basic search system set up, which recognizes phrases in quotes and space separated key words.
Tags
Each blog can have tags associated with it. Users can click on a tag to see all blogs that use that tag.
Archives
A basic archive setup that lists blogs by month and year.

Credit goes to poeticcode for the formula I used for my tag cloud sizing.

The Who and the What

Monday, April 9, 2007 at 7:13:14 PM

I've completed a blog entry form, and included features for editing and deleting blogs, so it'll be much easier to update. Now that it's easy to post blogs, I can let you know a bit more about who I am and what kind of functions I intend this site to serve.

First, I am a 22 year old web developer named Jason Hutchinson. I live in Southwest Missouri, USA, and I greatly enjoy programming. For several years I've been particularly interested in web development and design, and ASP, HTML, Javascript, and CSS have been my languages of choice. This site marks my first real foray into PHP and MySQL, and at the rate things are going they'll very likely supplant ASP and Access as my preferred web development technologies.

PHP's syntactical similarity with Javascript has made it relatively easy for me to pick up, and development on this site's going much faster than I had expected. Next I'll be adding the usual blog features like tags, archives, trackbacks, and search, as well as a few useful tools for me to use behind the scenes.

Recent Posts


Tags



Archives