Blog

Blog Archives - 103 Record(s)

Remove Filter Year: '2008'

Does grammar at its peak, pique your interest? Take a peek.

Posted by Brad Wood
Jul 15, 2008 22:47:00 UTC
For those of you that like to be as grammatically correct as possible, read through this guide to common grammar blunders. I enjoyed it. Franklin's Grammar Cheat Sheet

Check out new info on Adobe Flex 4 "Gumbo"

Posted by Brad Wood
Jul 15, 2008 22:38:00 UTC
Check out the juicy details here: http://opensource.adobe.com/wiki/display/flexsdk/Gumbo One new item of interest is the new incentive program. The first two people to get 10 approved patches to the open source Flex project will get their way paid to Max!

No Cookie For You: Second Solution

Posted by Brad Wood
Jul 15, 2008 08:06:00 UTC
I have a solution that I have gotten working locally to rid my ColdFusion logs of the annoying "Cannot create cookie" errors. For those of you just joining us, Teeps blogged it, Jochem explained it, I took a stab and it and failed, and now I'm back for round two. I apologize for blogging this so much lately, but once I get a good puzzle in my craw, I just can't let up until I've solved it.

Sour Endings: Anatomy of a Loser

Posted by Brad Wood
Jul 14, 2008 19:29:00 UTC
They say that hindsight is 20/20 and I think they're right. Ray announced the winner of his Lemonade Stand contest today and I'm afraid I didn't do too well. In fact I lost $3.87 overall. Don't worry though, after downloading the code and fixing my function up a bit I can win almost every time now! If only I could remember where I put that danged time machine...

Just when you felt safe... SQL Injection and MySQL

Posted by Brad Wood
Jul 14, 2008 02:07:00 UTC
Zac Spitzer recently blogged about an article explaining how to hack ColdFusion. Overall the "exposé" was mostly meaningless drivel not having anything much to do specifically with ColdFusion itself. It was accompanied by an array of Code Samples that look like they were written by a third grader. One point the article made though caught my eye. It claimed MySQL would let you inject SQL into a cfquery not using cfqueryparam even if the variable was enclosed in single ticks. "Could it be?", I scoffed. Oh yes, yes it is true.

Lemonade Memoirs: Make a stand

Posted by Brad Wood
Jul 12, 2008 16:52:00 UTC
While, Ray is still reeling from the massive response to his IPhone post which has pushed back the Lemonade Stand Puzzler, I thought I would take a quick opportunity to put my code out there. In overview, Ray asked us to write a function that emulated a Lemonade Stand. It had to decide how many cups of lemonade to sell and for what price based on the weather, temperature, budget, and cost of supplies.

Cookie Reserved Names- Who's to blame?

Posted by Brad Wood
Jul 12, 2008 04:35:00 UTC
Teeps started off the fun last month with this blog post about countless errors in his logs about not being able to set cookies. I get the errors too, and they usually look like this: 07/11 15:58:19 error Cannot create cookie: domain = .notingdetails.com 07/11 16:19:01 error Cannot create cookie: domain = .notingdetails.com 07/11 16:39:12 error Cannot create cookie: domain = .notingdetails.com 07/11 16:45:05 error Cannot create cookie: domain = .notingdetails.com

Java Servlet Filters Part 2: Removing Cookies

Posted by Brad Wood
Jul 12, 2008 02:50:00 UTC
As promised, I have written a Java Servlet Filter to remove cookies from a request. If you don't know what a Servlet Filter is, read this blog. Let me start by saying while my filter does function like I wanted it to, it did NOT solve this problem. I'll blog on that next. UPDATE: Here are my findings Given that, I can't really think of a real-world use for this code, but I am always in favor of coding for the sake of learning.

Review: Free Server alerts with www.servermojo.com

Posted by Brad Wood
Jul 11, 2008 22:09:00 UTC
Last week I saw a blog entry talking about the free server monitoring at http://www.servermojo.com so I figured I would give it a spin.

I've created my first Java Servlet Filter!

Posted by Brad Wood
Jul 10, 2008 05:35:00 UTC
In the Java world, web requests are handled by servlets loaded within a servlet container. There is a servlet mapping which specifies a servlet class conforming to Sun's Servlet specification which has been part of the J2EE spec since version 2.2. When a request is sent to the servlet container, it is matched to the proper url pattern and passed to the appropriate servlet object via that objects service() method.

Site Updates

Entries Search