Disable double click for HTML linksI’ve got a bunch of users that constantly double click html links. Also, I’ve had a few users probing my apps trying to expose holes. Those probes have generally included either clicking links multiple times, or automatically submitting URLs via some automated process. When I added messages to guide users that were re-submitting the same URLs, the double click users showed up as potential offenders. I needed a way to keep the double click users off of my intrusion detection report, but still be alerted to the more nefarious users. The solution to this problem is preventing browser based double clicks I think my solution is elegant. I didn’t find this solution on the Internet, so I decided to post it here. Simply make the onclick handler for the <a> tag reset it’s onclick handler to return false: I’ve tested this in Chrome/FF/IE8/IE6 and they all seem to work just fine. Comments and feedback welcomed.
Under Code Snippets, Internet Technology
Open Source Development RocksIt’s been a month since I started working for Learning Earnings, and it’s been a pretty good month. Using the LAMP stack of tools feels really nice after spending a couple of years with Microsoft technologies. The technology I’m using isn’t the latest, but solid design and good coding practices can make most environments tolerable. Some of the technologies I’m using are:
Under Uncategorized
Oversleeping is a problemI’m kicking off my polyphasic sleep schedule, and I seem to be oversleeping quite a bit. So far:
I hope this is not a harbinger of things to come. I’ve been using a timer app on my Android phone to wake up :30 min later. I’m going to switch back to using the trusty (and low tech) egg timer and see if that makes any difference. So far I’ve felt really good. I exercised Monday morning at 2am, rode my bike to the Dr (1 hr), and was able to awake after :30 every time other than the incidents mentioned above. I’ve decided that I’m going to take measurements of my mental acuity from time to time. I’ve got a “brain training” Nintendo DS game and a particular high score. I’m interested if I’ll be able to beat my high score, perform dismally, or something in-between (and normal). I’ll post results.
Under Uncategorized
Polyphasic – engageLet me start off by saying that my life heretofore has been an experiment in sleep deprivation. I don’t sleep very well and constantly wake up during the night. During these waking episodes, I’ll usually grab a snack and watch some TV – not a good thing especially for a Type-II diabetic
Under Uncategorized | Taged polyphasic
Friends wedding drawing closer
Thankfully the wedding has reminded me that my anniversary is drawing nigh. We celebrated our 25 wedding anniversary back in December by taking a cruise, but I’ll still need to acknowledge the wonderful past 25 years to my wife on the actual day.
Under Uncategorized
More College Visits
As we toured the newly constructed dormitories, I noticed a small kiosk in the lobby. This kiosk (no bigger than a gas station ATM) allowed the students to print documents from a flash drive (for a fee). This is a great idea, since it allows students to complete the document on their computer, and print it when they need it.
Under Uncategorized
Finished my second underquiltI’m making underquilts for camping hammocks so that my son and I won’t freeze if the temperature dips while doing a bit of bike touring. The first one I made was warm, but I made a few mistakes like grommets and the general length of the quilt. The second quilt is longer, and won’t have any grommets. I finally finished it last night, which mainly meant I needed to stuff it and sew it closed. I stuffed it with Cluster fill, which is pretty easy to work with and I’m pretty sure won’t cause Mesothelioma Cancer or anything nasty. I really need to post some pictures of the underquilts that I’ve made. I promise that Version 3 will get a decent photo history…
Under Uncategorized
Learning Rails: Live Editions
I’d never seen this “Live Edition” term, so I decided to check it out. First of all, it’s a pretty good deal ($19 discount), from a reputable source. The “Live Edition” indicates that it’s an interim release of updated material (in this case Rails 2.0.0 to 2.3.5). Also, it appears that “Live Edition” means you can re-download the book if the content changes (i.e. Rails 2.3.5 to 3.0.0). That sounds like a pretty good deal. The deal isn’t quite as good as the PeepCode deal, but it’s worth a try. I bought the E-Book, and will read it over the next few days. Downloading updates to the content is like of like having technical knowledge life insurance.
Under Uncategorized
Rails generator logging
In your config/application.rb file, put the line:
And that’s all there is to it. It wasn’t as hard as finding some low cost business insurance, but it did take me a few minutes to find. Hopefully, this helps someone else.
Under Uncategorized
Snow Commute Day
Under Uncategorized
|