Blog

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.

The Side of the 'Net Google won't show you

Posted by Brad Wood
Jul 09, 2008 17:30:00 UTC
They say the Universe is 22% Dark Matter. Invisible particles floating out there that are about impossible to locate-- maybe we're just not looking for it the right way. It reminds me of parts of the Internet.

When life gives you lemons... (Ray's Friday Puzzler)

Posted by Brad Wood
Jul 08, 2008 18:17:00 UTC
If you haven't seen it yet, Ray Camden is back at it again with a new Friday puzzler. This one involves creating a UDF to mimic a lemonade stand. Your code has to programmatically decide how many cups of lemonade to make and how much to sell them for based on your budget, the weather, temperature, and your cost.

Ask and you will (hopefully) receive

Posted by Brad Wood
Jul 08, 2008 05:17:00 UTC
Do you know the address of the Adobe page for requesting bug fixes and product enhancements? Yes, that magical gateway of mystery and wonder that rhymes with a popular children's game. http://www.adobe.com/go/wish/

Site Updates

Entries Search