Orange is my favorite color

Archive for 2008 » Page 7


If you’re using my actionpack for search-engine safe URLs for Model-Glue, you may have noticed that appending values with a <result> to a redirected event uses the normal ?var=value syntax.
This unfortunately can’t be fixed by an external modification like my actionpack however the needed modification to the core is extremely tiny so I have made [...]

Heard via friends inside that Yahoo! is cutting loose lots of people today as speculated in the news recently. People are being called into conference rooms and dismissed. Apparently the severance package pays out through May so it’s a relatively “soft” landing. Tough times for the Y.

It wasn’t all that many years ago that I wasn’t even registered to vote. As a small business owner working long hours with lots of responsibility, the remote risk of being called to jury duty and being unable to manage my business kept me from participating in the political process.
When I sold my company, [...]

Yesterday I started a post talking about PostgreSQL 8.3 RC2 and this morning I come in to find the official 8.3 release in my inbox! There are quite a few interesting new features, a few of which are specifically of interest to ColdFusion developers:

UUID datatype
ANSI-standard SQL/XML support
ENUM datatype

There is a page about UUID support [...]

If you skim the Transfer docs, like I do, you might miss the fact that specifying a relationship (onetomany, manytoone, manytomany) automatically creates support for the column you reference. This can cause maddening errors like the following:
Error Executing Database Query.
ERROR: column “dtype” specified more than once
transfer\com\sql\QueryExecution.cfc (108)
transfer\com\sql\TransferInserter.cfc (371)
transfer\com\sql\TransferInserter.cfc (132)
transfer\com\sql\TransferInserter.cfc (49)
transfer\com\sql\SQLManager.cfc (61)
transfer\com\Transfer.cfc (197)
transfer\com\Transfer.cfc (177)
If [...]

A quickie tip that is (for me) easy to forget some days: I have a table with a foreign key. For certain reasons, I’m not creating a Transfer relationship with this foreign key and I want it to default to NULL. The object is defined like so in transfer.xml:
<object name=”club” table=”tblclub” decorator=”model.club.club”>
<id name=”ClubID” [...]

I did very little today due to a mistake in my modelglue.xml. It turns out I specified:
<event-handler name=”register.finish” access=”private”>
<broadcasts>
<message name=”clearNewAccountBean” />
</broadcasts>
<result>
<result name=”doEventPage” do=”event.advert” redirect=”true” append=”event” />
<result name=”doHomePage” do=”pap.home” redirect=”true” />
</result>
</event-handler>
See the mistake? The result tag is inside of another “result” tag instead of “results” like it should be in this correct version:
<results>
<result name=”doEventPage” [...]

It’s been quite-a-10-days. In fact, a little hard to believe it’s been 10 days. Technically it’s only been 9 days. Last weekend I proposed to my girlfriend of four years and she said yes! Although I’ve been working 12 hours a day, 7 days a week, it seemed like the right [...]

If you use any of ColdFusion’s network connectivity tags like CFHTTP or CFLDAP which can access SSL-protected resources, you may eventually come across a dreaded security error. This is caused by SSL certificates which are, in some way, not valid causing the JRE to throw an exception.
This link round-up is the result of getting [...]

In my quest to figure out Model-glue and convert my application, I’ve been referring to a lot of community blog posts. One of the most helpful has been Doug Boude’s Model-Glue Event Lifecycle in Layman’s Terms post. Over the past two weeks I’ve learned a few subtleties to the lifecycle that I want [...]