MURA CMS, ORM and ormcfclocation

So I've started to get a handle on ORM in Coldfusion but now I want to integrate it with MURA.  I started to integrate it as a stand alone application but then discovered MURA is one step ahead and now provides the  ormcfclocation setting for plugins.  So I'll go back next week and consider moving the app into a plugin setting.


Coldfusion 9, ORM, Inserting Null Values

I have a little app to write and I decided to use the opportunity to learn some ORM.   I use the same form when I add or edit  an item.  The only difference is that edited values have a pre-set ID identity  field / column.

The problem I ran into was when I submitted the form as an "ADD" the field was empty.  I set the ID to an empty string and when I tried to save it got the error

The value '' cannot be converted to a number.

The solution was simple,  in my form processing I just did the following:

<cfif isnumeric(form.MeasureId)>
<cfset measures.setMeasureId(form.MeasureId)  />

If no identity field is provided, it looks like ORM decides it's an insert.


Zojirushi Rice Cooker

An early gift is our Zojirushi Micom Rice Cooker & Warmer NS-WAC10 rice cooker.

Zojirushi offers some recipes but with some reading it appears that just about any rice or grain can be cooked in it.

Tried this one tonight.  I would recommend spicing it up a bit more with some cinnamon and clove.

Chick Peas and Rice.

1 medium onion, chopped
2 garlic cloves, minced
2 tablespoons olive oil
2 cups long grain brown rice, cooked
1 (16 ounce) can chickpeas, drained
1/2 cup water
2 tablespoons parsley, chopped  (fresh)
1/2 teaspoon salt
1/2 teaspoon dried basil
1/2 teaspoon dried marjoram
1/2 teaspoon ground cumin
1/4 teaspoon ground turmeric
1/4 teaspoon fresh ground pepper

Saute the onion and garlic in olive oil in a large skillet over medium-high heat, stirring constantly, until tender.

Stir in the cooked rice and the remaining ingredients. Cover the skillet, reduce the heat to low, and simmer for 15 to 20 minutes, stirring occasionally.