If Only This Were Possible

Actual conversation between my wife and 2 1/2 year old.

Cailyn: Mama you need to change my diaper.
Debbie: Did you poop?
Cailyn: Yes. Oh, no, just gas. We should hurry to the gas aisle!
Debbie: You mean the gas station?
Cailyn: Yes. The car needs some gas.
Debbie: Oh baby it’s not the same kind of gas. It’s really called gasoline--it’s more like water, people gas is more like air.
Cailyn: Oh, well the car needs some poop gas.

If I could some how make this work I would keep my SUV forever…

posted in: Personal

The Zoom Quilt

Zoom In and Out of the Zoom Quilt.

posted in: Interesting

Using the CDOSYS COM Object in ColdFusion

I recently had to use the CDOSYS object in Cold Fusion.  Using COM Objects in Cold Fusion can get tricky.  After some trial and error I have figured out its quirks.

Cold Fusion won’t let you reference nested objects more than one level deep.  In using CDOSYS I needed to set an object.property("named_property") value. 

Using the CDOSYS object as an example:

Normally:
  Flds.Item("urn:schemas:mailheader:FOO") = “somevalue”

In Cold Fusion:
  mailheader = Flds.Item("urn:schemas:mailheader:FOO");
  mailheader.value = “somevalue”;

Not a major deal, but this isn?t documented anywhere. 

Full Code Example:

<cfscript>
objMail=CreateObject("COM”,"CDO.Message");
objMail.To="#to#";
objMail.CC="#cc#";
objMail.BCC="#bcc#";
objMail.From="#from#";
objMail.Subject="#subject#";
objMail.ReplyTo="#replyTo#";

if (#emailtype# EQ “HTML")
{
objMail.HTMLBody="#body#";
} else {
objMail.TextBody="#body#”;
}

// If you have an attachment, another CF quirk
// is all parameters of an object must be passed.
objMail.AddAttachment("#filename#”,"","");

// Set a custom header field, in this case “foo”
// with the value “somevalue”
iFlds = objMail.Fields;
mailheader = iFlds.Item("urn:schemas:mailheader:foo");
mailheader.value = “somevalue”;
iFlds.Update();

objMail.Send();
objMail="”;
</cfscript>

If you have any questions please feel free to write.

posted in: Coding

Colorzilla

screenshotCool extension for Mozilla Firefox that assists web developers and graphic designers with color related tasks.

With ColorZilla you can get a color reading from any point in your browser, quickly adjust this color and paste it into another program. You can also zoom the page you are viewing and conveniently open any HTML element in the DOM Inspector for further examination.

posted in: Assorted