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.


Scotland Powerpoint for elementary kids.

My wife is speaking to several classes of elementary school children about Scotland so I made her a powerpoint as an aid.   Scotland Powerpoint.


Outstanding resource on Social Media

Ed Bennett at University of Maryland Medical Center (UMMC) maintains a great blog about many issues facing social media.



Spread the word on Coldfusion and Mura

Please take a few minutes to fill out this survey about Open Source CMS, and let them know about Mura CMS! http://www.surveymonkey.com/s/2011-OSCMS-Survey. 

MURA CMS is used by GSA Office of Inspector General, the Social Security Administration, Food and Drug Administration, Environmental Protection Agency, U.S. Department of Health and Human Services, U.S. Marine Corps, U.S. Senate, and the Department of Homeland Security.


I knew this yesterday...

Puzzling results from Cern, home of the LHC, have confounded physicists - because it appears subatomic particles have exceeded the speed of light.



Allow Time Machine to run after logout. FIXED?

I just got a mac mini and time capsule.  I set it up for my family with multiple user accounts.   I was confused that the backups didn't work when I logged out.  If your logged out your not making any changes but if you made a change and then logged out, you would want that backed up.

Anyhow,  I think the solution is simple.  Don't log out.  Use Fast User Switching, this leaves you logged in.  I haven't tested it but one of the options is the login screen on Fast User Switching and I suspect it leaves you logged in and all your processes running.


No 5.1 from Blu Ray on PS3?

There's a bunch of stuff to know here.  I'm no expert but here's what I've learned.   Chances are you're trying to watch a DTS-HD sound track Blu Ray on equipment that only support Dolby Digital or you don't have the settings set correctly on the PS3.

It looks like there's 2 basic camps.  Dolby Digital (DD) and DTS.   These come in a number of flavors

DD is the oldest and was one of 2 required audio formats on DVD.   So a lot of equipment will decode DD.

DTS is a little newer and is also sometimes available on DVDs.

The kicker appears that Blu Ray disks don't always have both DD and DTS but have one or the other.  Even disks labeled Dolby Digital may only have certain tracks  (like french) available as DD.  Go to a website like Bluray.com to check what audio tracks are available.

Both DD and DTS are lossy.  There are newer formats that technically better because they are lossless and they should degrade gracefully to their older formats.

To add to the twist there's PCM.  PCM is not compress and requires HDMI cables.  If you're using Optical, then the PS3 will down grade a 5.1 signal to stereo (I think).

Then there is the PS3 and it's settings.   I'm not sure that older PS3's support all formats.  The PS3 slim covers most if not all but there are some settings you need to get straight.

There's the Settings > Output which controls which cable the PS3 will use.  Use the HDMI if you can, Optical next.   When Using HDMI whatever is connected will talk with the PS3 and will automatically set it up.   But at a minimum you probably want Dolby Digital and DTS checked.

Then there's Settings > Video Settings > BD/DVD Audio Output (HDMI and  Optical).  Try setting these to bitstream.  If using Optical you might also want to try Bitsream Mixed if Bitsream doesn't work.

These settings aren't the "best" settings, these are just the most likely settings.

I run HDMI to my TV and optical from the TV to the audio system.    The TV complains when receiving DTS signals because it doesn't support it.  But I'm not using my TV's speakers so it doesn't matter.  I'm not even sure why it complains since I have the speakers shut off in the menu but I suppose it could hurt the speakers or something so they warn me.

In the end,  using bitstream you need to have something capable of decoding the audio track.  Check your surround sound system to see what it supports.  Check your source to make sure you know what your sending.   And check your PS3 settings to make sure they all line up.  Simple.





AVCHD - iMovie 11 - Toast Titanium = BluRay

Here's the workflow I use from a Sony HD AVCHD camera to Blu-Ray disk.

  1. import from camera into iMovie without compression.
  2. Create movie.
  3. Share, Export Movie, 1080p
  4. Wait while it exports
  5. I'm using LG BE12 external blu-ray disc burner .  While it's not recognized by the Mac, Toast does recognize it if it's turned on before toast is loaded.
  6. Open Toast, create blu ray project and add the exported file
  7. Click the edit button in Toast and the Video tab to check that chapters are being inserted every so often.   Chapter markers don't seem to be exported or they are not imported or something.
  8. I haven't figured out how to prevent Toast from re-encoding the exported movie.   So it takes days to burn a 2 hour disc start to finish.


object 1991 VG

1991 VG is a Near-Earth object discovered by James Scotti. Due to its unusual orbit and rapid variation in brightness, it might be alien in origin.

will return in 2017.



PSN off line keeping millions of players out of the game. Sony has said little not helping the angst of when it will be back on line. Amazon also suffered an outage that appears to be unrelated.




I couldn't find the recipe, but I think this is it.

1 lb. scallops
1/2 tsp. salt
Dash of pepper
Dash of paprika
Fine dry bread crumbs
1 egg, slightly beaten

Preheat oven to 400.  (I also saw 500 for less time)

Wash scallops.

Dip in egg mixed.

Roll in bread crumbs which have been seasoned with salt, pepper and paprika.

Add some butter, olive oil, or spray bottom of baking dish and place scallops in a flat baking dish.

Bake in a hot oven of 400 degrees for about 20 minutes. They should be richly brown and crisp on the outside.  (or 500 for 10 minutes?)

Serve with lemon wedges and tartar sauce.

Optional: add a little white wine to bottom of baking dish before cooking.


Crock Pot Cuban Black Bean and Fish Soup

2 15 oz cans black beans
2 (14 1/2 ounce) cans chicken broth
1 (14 1/2 ounce) can diced tomatoes
1 (4 ounce) can diced green chilies (or 10oz Rotel Tomato and Green Chiles)
8 ounces cod, cut into 1 inch pieces
1/2 cup onion, minced
2 garlic cloves, minced
2 tablespoons red wine vinegar
1 teaspoon dried oregano
2 teaspoons dried thyme
2 teaspoons ground cumin
1/2 teaspoon ground black pepper


Easy Low Carb Crock Pot Fish Gumbo

1 lb. fish fillets
1 package (12-ounce) frozen shelled deveined cooked medium shrimp, rinsed
could add crab meat as well,
2 Tofurkey Italian sausage
2 beef bouillon cube
1 c. chopped onion or scallions or pearl onions
1 chopped green pepper
1 tbsp. parsley flakes
1 tbsp. minced garlic
1 tbsp. flour
1/2 tsp. chili powder
1 tsp. paprika
Dash cayenne or hot sauce
1 (1 lb.) can tomato wedges
1 (8 oz.) can tomato sauce
1 (10 oz.) pkgs. cut okra,
1 cup uncooked wild long-grain rice
4 cups water
tsp lemon juice optional


Mura, Mobile, and jQuery

There are 5 built in themes defined by a,b,c,d,e

“a” is the highest level of visual priority (black in our default theme).
“b” is secondary level (blue).
“c” is the baseline level (gray) that we use by default in many situations.
“d” for an alternate secondary level.
“e” as an accent swatch.


Crock Pot Lentils

Crock Pot Lentils
1 ½ cups dry lentils, rinsed and picked over
1 can chick peas, rinsed
1 onions, chopped
2 cloves garlic, minced
1 large canned tomatoes, with liquid
3 ½ cups low sodium vegetable broth
2 large carrots, sliced
1 bell pepper, chopped
½ teaspoon garam marsala
½ teaspoon cumin
¼ teaspoon cinnamon
¼ teaspoon paprika
Put everything in the pot with lentils and chick peas in first. Mix well. Turn crock pot on high for 3 hours or low for 6 hours.

Eat as made or use a hand mixer and mix until chunky.

You can add Tofurkey pre-cooked sausage and heat in the microwave.


Mura and maximum number of characters

The short story is turn on CLOB in your database connection in the CF Admin. I don't recall seeing this anywhere but I discovered I was truncating data at a 32,000 character limit.

MURA doesn't impose a limit, although your database or browser might.


Predicitions 2011

Hard to believe another year has gone by.

This past year: iPad dominated, Linux continues to threaten mainstream including Google's Android, TVs with web widgets, and netflix.

This coming year: HTML 5 widegets, more netflix or competitor, more handhelds of all sizes, hopefully more android. Facebook will jump the shark, skype will grow.

Government seems primed on discovering linux as budgets are pressured.