My blog has been absolutely hammered with comment spam lately. If any of you were subscribed to any of those comments and were forwarded the offensive spam, I am very sorry.
Fortunately, one of the bots wasn't submitting something correctly. So, instead of getting a few thousand spam comments I got a few thousand error emails. :-(
Anyway, I just took the time to add CFFormProtect to my comment form. It was super easy. There was really no excuse for me not to do this sooner. So, again, I apologize.
Just to show you how easy it is, here is the implementation code from the docs.
Put
<cfinclude template="/cfformprotect/cffp.cfm">
somewhere between your form tags.
<!--- On your processing page include the following code: --->
<cfset Cffp = CreateObject("component","cfformprotect.cffpVerify").init() />
<!--- now we can test the form submission --->
<cfif Cffp.testSubmission(form)>
<!--- The submission has passed the form test. Place processing here --->
<cfelse>
<!--- The test failed. Take appropriate failure action here. --->
</cfif>
Of course there are lots of things you can do to customize it's behavior. But, that is the basics. So please go checkout CFFormProtect for all your 'spam form submission' needs. Because, seriously, Captcha is the suck.
If you are using my BlogCFC JS Twitter Pod or you visit my blog, you may have noticed that the Twitter time-stamp started reading "About 365 days ago" when the year rolled over. I finally sat down and looked into this today. Turns out, it's all my fault. I had to do some string manipulation on the date that Twitter sends to get it to work in IE and FF. Apparently I hard-coded '2007' in there to get it working. Maybe, I thought the world would end last year... Well, it didn't. So that code has been updated with #year(now())#.
The Twitter Pod download is still available here. And I'd still love to hear if anyone uses it on their blog.
So, I managed to volunteer myself to code (if possible) Derby support into BlogCFC.
I'm brand spankin' new to Derby. I managed to tweak the table create scripts enough to get them to run. That is as far as I have gotten. I hope to start looking into the scope of the project tonight. Who knows, maybe it'll be less work than I imagine. :-)
However, if it should turn out to be difficult or I run into an issue that I am having trouble with, it would be nice to have someone who knows Derby at my disposal. So, if you have some experience with Derby and would like to help if I get stuck, then add a comment here.
I'll keep you all up-to-date as I get into the meat of the project...
In march I created a BlogCFC pod to show Twitter messages using the JS Twitter badge script. Recently, Twitter changed the location of the script.
So, my script
http://www.twitter.com/t/status/user_timeline/3026521?callback=twitterCallback&count=10
changed to
http://www.twitter.com/statuses/user_timeline/3026521.json?callback=twitterCallback&count=10
Also, Twitter's server seems to have load issues at times. This can pause pages to render slowly while they wait for the script file. So, if you move the script include to the bottom of tags/layout.cfm, then it won't interfere with the page rendering.
The download is still available here. And I'd still love to hear if anyone uses it on their blog.
Within the last week or so, I got emails from both MXNA and Full As A Goog, both accepting my blog for aggregation.
So, this is a quick "Hello" to any new readers. Thank you for stopping by! Come back soon!
For some reason I clicked the print button on my blog the other day. It opened up a PDF in the tab I was in. Well, I just didn't like that (sorry Ray).
I recently built a print feature for an AJAX heavy project at work. Since this project uses Spry, the detail you see doesn't exist until javascript renders it in the browser. So, I came up with a solution of opening another window and then pushing the rendered contents into it. The new window even has a print.css. So, although it's the same mark-up, it looks different.
If you want to see the code I wrote for work you can check it out here. Just drill all the way into a vehicle and click the print button on the right.
Anyway, I used the same idea to change the print functionality on my blog. I've posted the resulting code and instructions for download here.
If anyone uses it I would love to hear about it.