Coder's Revolution

Do you want a revolution?

Blog Archives - 33 Record(s)

Year: '2008' - Month: '7'

Sour Endings: Anatomy of a Loser

ColdFusion, General
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...
Comments are currently closed

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

ColdFusion, SQL
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.
Comments are currently closed

Lemonade Memoirs: Make a stand

ColdFusion
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.
Comments are currently closed

Cookie Reserved Names- Who's to blame?

ColdFusion, Java
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
Comments are currently closed

Java Servlet Filters Part 2: Removing Cookies

ColdFusion, Java, Object Oriented Design (OOP)
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.
Comments are currently closed

Review: Free Server alerts with www.servermojo.com

Technology
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.
Comments are currently closed

I've created my first Java Servlet Filter!

ColdFusion, Java
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.
Comments are currently closed

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

Technology
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.
Comments are currently closed

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

ColdFusion
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.
Comments are currently closed

Ask and you will (hopefully) receive

ColdFusion, General, SQL
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/
Comments are currently closed