Sunday, August 24, 2008

Response to and thoughts on an article on trickle down economics, and my take on the Shock Doctrine

A friend came over for dinner one night and as is inevitable, we talked politics. He mentioned an article he'd read recently and later sent me a link to it.
In response to a link to this article:
http://www.fee.org/PUBLICATIONS/THE-FREEMAN/article.asp?aid=479

I wrote this:

Frank,

It was great seeing you too. Those two boys are total studs just like the old man!

...of course I'm talking about my boys...

Thanks for bringing all that food over when we invited you to dinner! I guess that means when we come to FLA we have to bring dinner.

And thanks for indulging with me in all that political rant, and for forwarding that article. It was a good time. Easy to get me going on that stuff these day's I'll admit.

That's an old article. I'd never heard of "Olson's Law of Groups" but it was very compelling. Also interesting to read about Milton Friedman's observation that interest groups desire government regulation as long as they are the one's doing the regulating, and it always leads to higher prices. Just look at the medical and pharmaceutical industries for solid proof of this. This would seem to be an argument against regulation, but there's no discussion about the corruption that is inevitable without effective oversight, because that would erode the idea of pure market magic.

The part about future based programs like jobs training and public education being a failure because the poor live only "in the present" was ridiculously simplistic, and extremely chauvinistic. It nearly blew the whole article even if it wasn't merely a 28 year old validation of pure market driven and unregulated trickle down economics.

I agree in principle that market based solutions are superior to government dependent ones, but I'm skeptical that without effective oversight, market based solutions will benefit anyone other than the few who construct their "iron triangle". One only has to witness the recurring deregulated financial industry collapses and subsequent bailouts to see who's benefiting and who's paying for all the pure market driven solution fuckups. Do I even need to mention how energy industry deregulation resulted in Enron's collapse? Did the energy industry suffer?

Any more I believe inn fact that they are not fuckups at all. It is by design that these unregulated markets fail and are bailed out by the taxpayers. They wrote the laws for their own industry, and are in effect playing the bankruptcy game, for which they are held unaccountable, because they have constructed their "Iron Triangle". Government exists to be ridiculed and gamed, and the taxpayers are to be played as suckers.

Beyond the well exampled market driven solutions that benefit from the "Iron Triangle" effect of self regulating (read no oversight) industries, there is a much more dangerous derivative economic theory that is being realized. It is much worse than being simply corrupt.

What's going on now is that there are entire industries that benefit from government failure and in fact are motivated to make sure that government does fail so they can jump in and provide their "market solution". This solution doesn't solve anything, in fact it insures that the failure is perpetuated and enlarged so that they can continue to profit from it. Witness the military industry, and what has become the "Disaster Capitalism Complex". The economic theories of Milton Friedman are central, and provide the adherents with a kind of intellectualization and validation for many of the economic and geo-political policies of late. In fact, even if the policies fail, they use the failure as evidence of success. Totally Orwellian, Dude.

This is the premise of the book I mentioned during our rant session. It's called "The Shock Doctrine", and it's just as truthfull and well documented as it is dark and apocalyptic. Everything I've written above is my own take (rant) on it all, so I urge you to read it, or as I did, listen to the audio book, rather than listen to me. Unfortunately, I know that with two kids, a job and graduate school, reality will get in the way of you're getting to read it.

So, anyway, thanks for the visit. I hope we can see Jen next time,and I wish you well in grad school and career stuff.

Hang looose, baby

Saturday, July 12, 2008

Triple Bypass 2008


Rode the Triple Bypass today. 120 miles, 3 Mountain passes over 11,000 feet. Very tired. Too tired to give details. Stay tuned.

That was all I had energy for the evening after I finally got home about 10:PM. I got home, cracked open a beer and risked falling asleep in the tub for an hour or so.

Everything went pretty well on the ride, except that I never saw any of the guys I was supposed to ride with, until the finish. That's because I started before they did, and then when I got to the first rest stop at the top of Squaw Pass, I waited and watched for 45 minutes for them. It turns out that they all blew through that one and kept going. There was no cell phone coverage up there so I had no idea. After that I was far behind the rest of the day.

No matter though. The weather was perfect all day. The ride up Squaw Pass was was chilly, but calm. My toes were cold the whole way up.

Once at the top, I refueled and used the bathroom, walked around, waited and refueled some more. Finally I got ready to head down "The Dark Side" of Squaw pass. For this I put on all my wind protection: Wind shell, hand and toe shells. I already had on my next to skin silk layer (the one I should have had on the Mt Evans trip) The one item I was missing was the balaclava, that JB had with him, and that I we had arranged for me to get from him when we hooked up at the first rest stop. I decided not to put on the leg warmers, and it turns out I was ok without them.

The ride down The Dark Side of Squaw Pass is cold, and long. Many people complained that after Squaw Pass, their toes and hands were frozen until they got to Loveland pass some 40 miles later. I think I was well prepared, and the cold air didn't penetrate too much as I blasted down the 10 or 15 mile descent.

At the bottom (Idaho Springs) I pealed off and after trying to make phone calls to my buddies, I got going. The section from Idaho Springs climbs gently on the access road that runs parallel to I70 through Dumont to GeorgeTown where the next rest stop was.

Once again, I lingered at the rest stop and refueled, used the bathroom and sunscreened up. About here I got a call from JB who was pulling into Loveland, the next aid station about 20 miles up.

I got going again and continued the steady climb up to Loveland. This section of the ride takes you along I70 (part of it you actually have to ride on the highway). Just as I was about to get onto the highway section, my sister Alice called and we talked for a few minutes. "Oh, ya, you said you were doing a bike ride or something. Is that this weekend?"

A bike ride indeed.




The ride along the highway sucked and occasionally huge trucks would pass by and scare the crap out of me. It seemed like each mile was getting longer now. I got a call from Jim Pefanis who was at Loveland now. I told him I'd haul ass and get there ASAP.

When I finally pulled into Loveland I gave Jim an call, and when he answered, it was obvious that he was riding up the steeps. Between gasps, he said, he'd seem me, down the road.

Since I had missed him again, I wasn't in any big hurry, and so I lingered at the Loveland rest stop. Here there was live music, ham and turkey sandwiches and a table covered with nasty mustard and mayo bottles. Most were empty, and all were crusted over and vile. I found a Grey Poupon, banged it on the table and managed to get a squirt onto my ham and Wonderbread lunch. I can't complain. They did a good job of having plenty of energy food there, and the watermelon was awesome.

It was at this rest stop that I applied some kind of a salve to my crotch. The label identified it as some scary sounding medical name, but the first aid guy (discretely) recommended it. At first I was alarmed when it felt kind of like that "icy hot" stuff and I thought I had made a big mistake. It turns out that whatever that stuff works pretty well for saddle sore. Nuff said.

Next: Loveland Pass, painfully steep. Vail Pass, painfully long.

Sunday, July 6, 2008

Mt Evans Hail Storm From Hell


The Triple Bypass is next weekend and a few of us decided we needed a challenge to see if our training had paid off. We decided to ride to the top of Mt. Evans from Evergreen, Colorado. Evergeen is about 7000 feet, Mt Evan's is 14, 277 feet so It's about 35 miles of climbing at altitude and then the same distance again in descent.

Jim Pefanis and I met John Bissert and two of his friends at Bergan Park. We started up the mountain at 7:AM and rode the first leg of the trip up Squaw pass to Echo Lake (11,140ft) . As we rode everyone commented on how perfect the day was and how nice and cool it was.

JB and his buddy Warren rode up a bit faster than we did so we agreed to meet up later. Jim and I rode up to Echo Lake and took a long rest and refilled our water bottles. Echo Lake is the entrance to to the 14 mile road up to Mt. Evans, and there's a $3/per person fee to use the road.

At Echo Lake, we started up the road to Mt. Evans. Jim decided that he would stop after a couple miles and turn around to head down. I couldn't blame him since we all were riding the Triple Bypass in 6 days, and a ride like this so close to the event, was not necessarily a good training strategy. Also, since the weather up around Mt. Evan's had been dark and cloudy all morning, a storm seemed pretty likely.

Jim took off down and I kept riding up the mountain. The air gets pretty cold the higher you go, and I stopped to put on my jacket and head band. As I headed toward the summit, I could see lightning occasionally, and started hearing thunder. A light rain started to fall, but I felt pretty well protected.

As I rode on, I passed some people and got passed by a few others. I was soon at the 6 mile marker and moving pretty fast, but it was also getting pretty cold now and the light rain had increased to a drizzle. I stopped to put on my new REI silk shirt and discovered that it was actually new REI silk long underwear bottoms! I stood there and stared at them stunned, and then stuffed them back in my jersey while muttering something to myself about how if I died of hypothermia, I'd deserve it for being such an idiot.

The lightning and thunder was getting closer and more frequent, and the traffic coming down was seeming more and more urgent. I continued on, but soon decided to just ride to the next mile marker and then turn around.

I got to the 8 mile mark, was stopping to turn around and just then saw JB on his way down. I yelled and he stopped. I told him I was heading down and we agreed to meet at the Echo Lake store. By this time the rain had turned into small hail and the lightning and thunder was pretty alarming. I put on my waterproof mits and got going down.



I passed a couple who were riding pretty slowly. The road at this section was extremely exposed and the ride down has some really unnerving views. The side of the road is basically a cliff, and someone on a bike, about 4 or 5 feet from the road edge would be in some serious hurt if a gust of wind happened to blast them off the edge. The girl was very scared and was asking her friend if they should stop. He answered "Not here! Keep going!".

I passed them by and just about then the hail turned from small mushy pellets into hard icy projectiles. Soon the size of them increased to about the size of large (frozen) grapes, and it turned from a little scary and annoying into an extremely painful and dangerous bombardment. The balls of ice were penetrating the holes in my helmet and were painfully pummeling my arms, shoulders and face.

This was now the worst hail storm I'd ever experienced and I was on a mountain side with no cover, and with lightning and thunder crashing all around. I headed for a spot on the mountain side that was most leeward and tried to protect myself from the painful hail. I managed to get my head and shoulders protected but my legs and back continued to get pounded by the increasingly large and intense balls of ice. I wondered if I was dooming myself to a lightning strike by cowering against the rock to avoid hail damage.

While I cowered, my head was covered but I could watch as the hail violently pummeled and bounced off the road. It accumulated rapidly, and what was a gleaming wet road in a green and rocky mountain side, was now completely white. I watched as my bike slowly began to be covered by the accumulating hail.

As I wondered how long I'd have to endure the bombardment, a ranger truck drove by, stopped, and then backed up quickly. My bike was pretty hard to see now, and I thought it was going to drive over it, but the driver managed to park right next to it. I jumped up and a second later was inside the truck, thanking the ranger for stopping. Inside the truck the hail was unbelievably loud, and we sat for awhile before deciding to turn around and head down. I jumped back out into the bombardment, and put my bike in the back of the truck.



Jockying the ranger truck back and forth to turn around would have been pretty scary any time, but in the hail, with thunder and lightning crashing all around it was absolutely terrifying. I buckled up and hung on white knuckled as the ranger (Harry) managed it with little trouble, and we were on our way down.

I felt unbelievably lucky that the ranger had stopped for me. As we headed down, the hail started to slow, but it was now several inches deep on the road. Nothing with only two wheels could drive in these conditions.

On our way down we passed a lot of motorcycles and a few bikers who had taken cover in the many tourists cars that had also been caught in the storm. It seemed like everyone who had cars was helping out the imperiled bikers.

Harry dropped me off at the Echo Lake store, I enthusiastically thanked her, got my bike out of the back of the ranger truck, and went in. Soon the Echo Lake gift store was packed with travelers trying to get out of the rain. When JB, Warren and Brian showed up, we traded stories of our experience/rescue and watched the rain outside. It wasn't slowing down. Eventually we decided to brave the rain ("Hey, it's only rain!") and head down.

It was a long, wet, cold, nerve racking ride from Echo Lake back down to Evergreen, but after the Hailstorm from Hell, it seemed downright pleasant.

Thursday, July 3, 2008

HighGrade, Conifer, Aspen Park, Marshdale, S Turkey Creek Loop


I escaped from work a little early and started up Deer Creek from Wads about 4:45pm.

I rode up Deer Creek then HighGrade to Conifer, Aspen Park, and then turned right (East) onto N Turkey Creek at Marshdale. At Twin Forks where N Turkey Creek goes under 285 I took a right up S. Turkey Creek and then Closed the loop back onto Deer Creek at the Fire Station.

40 miles, About 3 hours. 5500 ft to 8500 or so.

Tuesday, July 1, 2008

Commute Home from work via Fiddlers Green

I stayed late at work because I had not fixed the vexing problem I'd been working on. All the sudden I figured it out and after getting it all working, I headed out on my bike.

I decided to take a new route along the Englewood Dam and then north toward S. Yosemite/DTC. Along the way, I passed by Fiddler's Green and saw that there were lots of people going to a show. I asked someone who told me "Stevie Wonder". Man, suddenly couldn't think of anything cooler to be doing with the rest of my evening.

I was still on my bike heading up the road, but I belted out some bars of "I wish" ("Sneakin' out the back door, to hang out with those hoodlum friends of mine") while weaving between the cars and the people streaming into the show. I got some sideways looks and I got some smiles, and I thought I souned pretty good. As I rode away, I thought about who I could call to come out with me to the show.

Further as I rode up the DTC, I discovered another music scene going on at the corner of DTC and Belleview. It was the regular Tuesday evening free music thing that happens there, that I am aware of, but never remember to go check out. Kids were everywhere playing and the music sounded a little like some kind of old time Western Swing or something. Everyone looked like they were having a blast and I thought "I had no idea this kind of stuff was happening. Man, I got to get out more. "

I started to roll toward the stage, but the security people told me I couldn't bring my bike in, of course. So I started talking to some people about how cool this was and then reluctantly, started to head home.

While riding, my phone rang. I dangerously reached into my pocket to answer it. It was my old buddy Al, and while negotiating the intersection one handed, I tried to talk him into getting Janet and meeting me down to check out the action. Alas, it's a school night and all us boring regular folks need to be boring. We all agreed we should get together for the 4th instead.

Once I got home, I fed Clark (our goldfish) and I realized that I needed to clean his tank...Since Sunday...! And I didn't have any distilled water. Dang!!

I had to go to the store...

Cool, I'll take my bike. No, it's going to be dark in a few minutes.

So I took the car instead, and hated myself for it. As I walked into Whole Foods, a girl said "I like your shirt!". We got to talking and it turned out she was from Anchorage (Rabbit Creek area) We talked a bit more and said goodby. Later when I though about it, I realized that I'd never even introduced myself or asked her name. Odd to meet someone from back home and I didn't even introduce myself. What a mullet.

At the store I wandered aimlessly looking for the distilled water. While I was at it I got salad stuff, pilfered a handfull of awesome dark chocolate covered walnuts and headed home, but not before stopping into the "Merchant of Vino" to get a bottle of vino. The woman at the store pegged me for a wine ignormous and talked me into something (a shiraz I guess) called "Stump Jump".

Once home I started to make salad, and opened the bottle to let it breathe (right?)

Excuse me? It has a screw top?

Did I look to her like the kind of person who drinks wine from a screw top bottle?

Apparently so. I let it "breathe" and made the salad.

Once done making the awesome salad, I poured a glass and sat down to watch Nova, to write in my blog, and to relax.

Hmm...what was it I was supposed to do? Whoa! I'd better go change Clarke's tank water!

Sunday, June 29, 2008

MS150 bike ride

Saturday and Sunday rode about 150 miles.

Both days were great.

Day 1:
The first day I woke to my alarm at 3:15am so I could pick up Jeff Elfeldt at 4:30am so we could be there at 5:AM! We made it there, and met Tony Schoenberger. Once we got all registered with our packets, clued in, slathered with Sunscreen we headed up the road.

I was pretty excited and took off shortly after we got started, passed up the first few rest stops and finally saw my team mates at the lunch stop.

I saw Dave Verdun who I worked with at Advance Geophysical and we sat for lunch and talked for quite a while about the oilfield. Lot's going on.

My team mates decided not to let me get ahead again so they apparently left without me. I wasn't without company though, and the rest of the ride was full of riding with different people up Horsetooth Reservoir and into Ft. Collins.

Once I got into Ft Collins, I hooked up with my team and we all hung out in the Comcast tent, took pictures, got a masage, and spent time in the beer garden.

I finally left about 4:30 and rode to my friends Brian and Stacy, where I had dinner and met their little boy Levi and Brian's parents who were visiting. I gave Levi a book and some Rocket Balloons, which were a big hit.

After dinner, I showered and slept like a rock.


Day 2:

I slept in and got a late start Sunday morning and didn't get on the road till about 7:45am, so I missed my teammates on there way out. I had to ride 4 miles in the opposite direction as everyone on my way from Brian and Stacy's house. I knew a few people who gave me funny looks as I rode by in the wrong direction.

It was another great day, and I took my time. I actually stopped at every rest stop to hang out. At lunch I talked to a guy about the triple bypass.

I finished the ride, ate dinner and headed home. All my teammates were already done, so no team hug.

It was a great couple of days and I hope to do it again next year.

Friday, June 27, 2008

Wednesday Morning Deer Creek mtb, afternoon Deer Creek road.

Wednesday morning I did the usual crazy early mt bike ride, again at Deer Creek. I got there about 5:45AM and Don Sims showed up a few minutes later. We were able to get on the trail by 6:05pm.

We rode up to Red Mesa, did one CW loop and then rode down and did a CC loop around Plymouth Mt.

I thought that since Don works at the CMC, and had a bike rack on his car, and I wanted to do a road ride up Deer Creek that evening, I'd just put my bike on his rack and ride to work with him. He was ok with that, and we rigged up and took off.

After work, I got on the road bike and biked the 30 miles back to Deer Creek and up the canyon to Highgrade. I decided not to climb to the top because my bike needed some mechanical work and I wanted to get it to the shop before they closed. I made it there and they fixed it.

Ready for the MS150

Sunday, June 22, 2008

Saturday bike ride with kids to Cherry Creek Reservoir


Most of the morning the kids laz'd around the house, but at one point were invited over to the neighbors house to play. I went over to thank the neighbors and see what the kids were up to and they were happily drawing and Aidan was writing in his journal.

I stayed at home and put new tires on my road bike and re-taped the handlebars. It will probably need re-taping again soon though.

When I went over to see what the kids were up to next door, they were laz'ing there watching Sponge Bob so I decided we needed to go to the beach.

We rounded up all the stuff and snacks we needed and I put it into the bike trailer. I strapped the super cool folding beach chair onto the bike trailer, Aidan found his helmet, Luka climbed in the trailer and we headed out.

It was a kind of longish bike ride, but Aidan managed to climb up all the hills!! He wanted to stop to rest a few times and I was fine with that, and proud of how hard he tried to climb. Later I thought about how we weighs only a bit more than his bike weighs, so it's got to be a big effort.

When we stopped to rest we checked on Luka who was unusually quiet. He was asleep for most of the trip.

After the 5 mile bike ride we were at the beach. We found a good parking place for our bikes and the trailer and the kids went right for the water. I got out the cool beach chair I'd strapped to the trailer and set up right on the water.

I got out the sunscreen and called the kids to slather them up. Since each have recent buzz cut hairdo's, I was glad to find that I had two bandannas with me, and I tied one on each of the kid's heads, Aunt Jamima style. They looked so cute, especially Luka, with them and I was glad that they'd be protected from the sun.

They played and splashed, and Aidan seems to have overcome his fear of getting his face wet. He was actually swimming underwater and having fun grabbing my leg when I went out to cool off in the water.

We played frisbee a bit but there were too many people and we didn't want to hit anyone. Aidan is getting pretty good at his aim now so we'll have to have some disc sessions soon.

We stayed a long time and then when I saw it was 5:PM decided we needed to pack up and head back home. Aidan was pretty un-psyched about the ride home, but he toughed it out.

I decided to take a detour and head to some friends house near ours who were having a bbq. They have a trampoline and a backyard pool so once we got there, the kids were psyched again. They jumped in the tramp, and played in the pool, and we ate hot dogs. I rode the bikes home and got the car to drive us all home.

We all fell asleep together on the couch watching Tom and Jerry.

Saturday, June 21, 2008

Friday evening Solstice bike ride with the kids


Happy Solstice!

After bike commuting to the Village (kids daycare) from work, I put both kids in the bicycle trailer home via Cherry Creek Reservoir. (11 miles. see pic) Aidan wanted to stop at the res beach so we did. What a great idea!! he and Luka and I all played in the water.

They really wanted to swim in the water but neither had swim suits. It was already 6:30pm and there weren't many people on the beach so I let them take off their pants and get into the water. Eventually they took off their shirts too, but were in the water up to their necks the whole time. They liked playing in the waves when a boat would go by. Luka had a great time doing everything his big brother did.

It started getting windy and kinda stormy so we rode home. Windy! Rode into the wind for quite a while, but then turned with the wind and hauled a__!

Got home and we made pizza and all fell asleep on the couch watching Tom and Jerry. Tomorrow we want to go hiking and then come back to the beach!

Friday, June 20, 2008

Friday Morning Summer Solstice Bike Commute 6-20-2008



Happy Solstice!
Pulled both kids in the trailer from our house to the Village: 5.45 miles 10.4 mph avg 31:31 mins 289 cal
Rode Village to CMC via new route (see map)
6.67 miles 30:31mins 13.1avg 416cal

Beautiful morning. Got the kids up and ready before 7:AM and we were on the road at 7:01am.

Got to work before 8:30am and did a short worked out in the gym before showering for work.
Situps 100
Pushups 35
Dumbell full body thang
Lat pulldowns

Thursday, June 19, 2008

Wednesday Morning Mt Falcon ride report



Nice, warm, no wind in the parking lot. I got tires on trail by about 6:15am. There was only one other guy there with his dog (who I nearly accidentally ran over at one point)

I rode (grunted) to the Gazebo, took in the view and did a few pushups and situps. Then I did a fast CCW loop around Parmalee Trail.




Mt Falcon isn't really technically tricky, but I still managed to spin out the rear tire and wash out the front one a couple times early on. I also had to stop to rest and catch my breath a few times, which tells me about the kind of shape I'm in.

Parmalee Trail





Overall, the trail is in good shape, which is more than I can say for the biker.

Wednesday, June 18, 2008

Wednesday Morning Deer Creek Ride Report

Awesome morning. Perfect temperature, no traffic on the road or the trail. I managed to get to the Deer Creek trailhead just before 6:AM and had tires on trails by about 6:05. There were a couple cars on the lot, but I saw only a couple other people on the trail (actually already coming down at 6:05am!)

I rode up the main trail all the way and did two fast CW loops around the Red Mesa loop. Before going all the way down I did a CCW loop on Plymouth Mt. trail. The view from Plymouth Mt was unbelievable.


The lower part main trail is as gnarly as ever and has some really tricky sections. The "Deer Creek Wall" is as demoralizing as ever and I spun out early, which is a good thing since my chest probably would have exploded otherwise.



Since Deer Creek is so close to the CMC, and since it's such a great ride, I may do it again next week.


Vitals: TOT 6:09am
Miles: 11.46 miles
Vert: 1400 vert gain
Time: 1:50
Miles from home to parking lot: 26
Miles from parking lot to work: 15
course link:
http://coach.summitbid.com/course/show/37


Rode up to Red Mesa loop and did two CW laps. Rode Plymouth Mt CCW and down.

Made it to work by 8:50am

Thursday, April 10, 2008

Hibernate cascade delete error

I did a search for
"remove deleted object from associations" in my gmail and came up with a post that sugggested adding a closure to the (Workout) controller called "beforeDelete". I added this and it deletes the items but there is still a problem. The controller stil errors out thinking that they didn't get deleted. I checked the db and the items are deleted so it works.

The problem seems to be references to the workout in the AuthUser domain so they have to be removed and nulled first I think.

Here's the method
def beforeDelete = { workout ->
workout.athlete.lastUpdatedWorkout = null
workout.athlete.removeFromWorkouts(workout)
}

Here's the error:
When trying to delete a workout or a meal I get:
[130922] StackTrace Sanitizing stacktrace:
org.hibernate.ObjectDeletedException: deleted object would be re-saved by cascade (remove deleted object from associations): [Meal#116]
at org.hibernate.impl.SessionImpl.forceFlush(SessionImpl.java:1014)
at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.entityIsTransient(DefaultSaveOrUpdateEventListener.java:165)
at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.performSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:94)
at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.onSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:70)
at org.hibernate.impl.SessionImpl.fireSaveOrUpdate(SessionImpl.java:507)
at org.hibernate.impl.SessionImpl.saveOrUpdate(SessionImpl.java:499)
at org.hibernate.engine.CascadingAction$5.cascade(CascadingAction.java:218)
at org.hibernate.engine.Cascade.cascadeToOne(Cascade.java:268)
at org.hibernate.engine.Cascade.cascadeAssociation(Cascade.java:216)
at org.hibernate.engine.Cascade.cascadeProperty(Cascade.java:169)
at org.hibernate.engine.Cascade.cascade(Cascade.java:130)
at org.hibernate.event.def.AbstractFlushingEventListener.cascadeOnFlush(AbstractFlushingEventListener.java:131)
at org.hibernate.event.def.AbstractFlushingEventListener.prepareEntityFlushes(AbstractFlushingEventListener.java:122)
at org.hibernate.event.def.AbstractFlushingEventListener.flushEverythingToExecutions(AbstractFlushingEventListener.java:65)
at org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:26)
at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:1000)
at org.springframework.orm.hibernate3.HibernateAccessor.flushIfNecessary(HibernateAccessor.java:390)
at org.codehaus.groovy.grails.orm.hibernate.support.GrailsOpenSessionInViewInterceptor.flushIfNecessary(GrailsOpenSessionInViewInterceptor.java:78)
at org.springframework.orm.hibernate3.support.OpenSessionInViewInterceptor.postHandle(OpenSessionInViewInterceptor.java:181)
at org.codehaus.groovy.grails.orm.hibernate.support.GrailsOpenSessionInViewInterceptor.postHandle(GrailsOpenSessionInViewInterceptor.java:59)
at org.springframework.web.servlet.handler.WebRequestHandlerInterceptorAdapter.postHandle(WebRequestHandlerInterceptorAdapter.java:61)
at org.codehaus.groovy.grails.web.servlet.GrailsDispatcherServlet.doDispatch(GrailsDispatcherServlet.java:257)
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:809)
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:476)
at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:441)


Deleting a workout:
[476516] StackTrace Sanitizing stacktrace:
org.hibernate.ObjectDeletedException: deleted object would be re-saved by cascade (remove deleted object from associations): [Workout#48]
at org.hibernate.impl.SessionImpl.forceFlush(SessionImpl.java:1014)
at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.entityIsTransient(DefaultSaveOrUpdateEventListener.java:165)
at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.performSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:94)
at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.onSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:70)
at org.hibernate.impl.SessionImpl.fireSaveOrUpdate(SessionImpl.java:507)
at org.hibernate.impl.SessionImpl.saveOrUpdate(SessionImpl.java:499)
at org.hibernate.engine.CascadingAction$5.cascade(CascadingAction.java:218)
at org.hibernate.engine.Cascade.cascadeToOne(Cascade.java:268)
at org.hibernate.engine.Cascade.cascadeAssociation(Cascade.java:216)
at org.hibernate.engine.Cascade.cascadeProperty(Cascade.java:169)
at org.hibernate.engine.Cascade.cascade(Cascade.java:130)
at org.hibernate.event.def.AbstractFlushingEventListener.cascadeOnFlush(AbstractFlushingEventListener.java:131)
at org.hibernate.event.def.AbstractFlushingEventListener.prepareEntityFlushes(AbstractFlushingEventListener.java:122)
at org.hibernate.event.def.AbstractFlushingEventListener.flushEverythingToExecutions(AbstractFlushingEventListener.java:65)
at org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:26)
at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:1000)
at org.springframework.orm.hibernate3.HibernateAccessor.flushIfNecessary(HibernateAccessor.java:390)
at org.codehaus.groovy.grails.orm.hibernate.support.GrailsOpenSessionInViewInterceptor.flushIfNecessary(GrailsOpenSessionInViewInterceptor.java:78)
at org.springframework.orm.hibernate3.support.OpenSessionInViewInterceptor.postHandle(OpenSessionInViewInterceptor.java:181)
at org.codehaus.groovy.grails.orm.hibernate.support.GrailsOpenSessionInViewInterceptor.postHandle(GrailsOpenSessionInViewInterceptor.java:59)
at org.springframework.web.servlet.handler.WebRequestHandlerInterceptorAdapter.postHandle(WebRequestHandlerInterceptorAdapter.java:61)
at org.codehaus.groovy.grails.web.servlet.GrailsDispatcherServlet.doDispatch(GrailsDispatcherServlet.java:257)
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:809)
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:476)

Thursday, April 3, 2008

acegi fix works

I got with ericacm@gmail.com and we got the acegi registraion working.

Wednesday, April 2, 2008

fixed equipmentRef

had to drop the table, recreate, remove foreign keys and the chang eto MyISM

Tuesday, April 1, 2008

subversion client upgrade (1.3.2 to 1.4.6) issues

I couldn't run svn update on my command line client on my work linux box because I got
[comcast@linuxdevstation workspace-tru2way]$ cd rngth-TRUNK/
[comcast@linuxdevstation rngth-TRUNK]$ svn update
svn: This client is too old to work with working copy '.'; please get a newer Subversion client

[comcast@linuxdevstation rngth-TRUNK]$ svn help
usage: svn [options] [args]
Subversion command-line client, version 1.3.2.

I downloaded the latest subversion-1.4.6 client (I think it's the client) but could not install because when I ran ./configure, I got
checking for Apache module support via DSO through APXS... no
==================================================================
WARNING: skipping the build of mod_dav_svn
--with-apxs or --with-apache must be used
==================================================================
configure: Apache Portable Runtime (APR) library configuration
checking for APR... no
configure: WARNING: APR not found
The Apache Portable Runtime (APR) library cannot be found.
Please install APR on this system and supply the appropriate
--with-apr option to 'configure'

or

get it with SVN and put it in a subdirectory of this source:

svn co \
http://svn.apache.org/repos/asf/apr/apr/branches/0.9.x \
apr

Run that right here in the top level of the Subversion tree,
then run autogen.sh again.

Whichever of the above you do, you probably need to do
something similar for apr-util, either providing both
--with-apr and --with-apr-util to 'configure', or
getting both from SVN with:

svn co \
http://svn.apache.org/repos/asf/apr/apr-util/branches/0.9.x \
apr-util

configure: error: no suitable apr found

Since I didn't need to mess with it (I use the eclipse subclipse client) I didn't pursue it.

Config issues deploying coach to a different server

MySQL: had to grant all permissions to the server ip explicitely like

grant all on coach_acegi2_prod.* to 'user'@'555.137.91.35' identified by 'password';

and had to set the ip explicitely in the grails-app/conf/Config.groovy production section mysql
url = jdbc:mysql://555.137.91.35/coach-0.3.4

Sunday, March 30, 2008

simple backup to usb drive

falcon has a usb drive mounted at /mnt/usbbak. To backup something important like the SVNRepository, do this:

sudo tar -cvf /mnt/usbbak/backup/svnrepository/SVNRepository-3-30-2008.tar /opt/data/SVNRepository/

Thursday, March 27, 2008

apache windows install on laptop error

httpd.exe: Could not reliably determine the server's fully qualified domain na
, using 192.168.2.4 for ServerName
(OS 10048)Only one usage of each socket address (protocol/network address/port
is normally permitted. : make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
Unable to open logs
Note the errors or messages above, and press the key to exit. 7....

tagged coach versions 0.3.4 and 0.3.4.5

Also included corresponding db backups since the code and db versions are not compatible. I'll bump the 0.3.4.5 version up to 0.4 for this reason, once it's well tested and stabilized.

Wednesday, March 5, 2008

acegi default role

When I try to save a registration I get "Default Role not found."

mysql backup and restore

mysqldump database_name -u root -p > database_name.sql

restore

mysql database_name <> create database racetrack_prod;

mysql> grant all on racetrack_dev.* to
'jason'@'localhost' identified by 'password';

to delete an entry in a table:
delete FROM `rngclient_dev`.`ate_request_reference` where ate_request_id = 150

Thursday, February 21, 2008

got editInPlace working!

Implemented it in the DevelIssue domain

got editInPlace working in coach-sortof

just need to figure out how to embed it in the list view. The current method is like how it's handled in the bookmark app, which isn't how I want to deal with it.

Wednesday, February 20, 2008

Bike commute home from CMC

First ride on Tricross. Great!
Note, at 10.6 miles ,there's a bend in the trail to the left. At that point it looks like you can cut through to a neighborhood and short circuit much of the ride to the Church.

The road is Cantitoe Lane and it looks like a dead end.

From Quincy it's:
S. On Holly to E Union Ave
curve right onto Cantitoe Lane.
Try it from the street side first.

Or at 10.97 miles, one that may be more likely to have a connection between trail and street. That one has a definate connection to Dahlia.
From Quinch:
South on Dahlia to where it ends.

slashdot

email=ejy@summitbid.com
user id=1242964
nick=EddyTheJekyll
passwd=mailed to ejy@summitbid.com

Once you receive your password, you can log in and set your account up.

adding inline edit to coach app

working in the coach-liquibase branch.

created a tag lib and some tags, but I have to work on the views and template to implement it. I'm following the dgg example which is a minefield.

Thursday, February 7, 2008

grails jdbc:hsqldb database notes

If you have two grails app deployed to tomcat and each use the jdbc:hsqldb, only one will start. The other one will fail because the database is locked. The lock file will appear in the root directory of the user that the web app container (tomcat or jetty) and will be called something like proDb.lck.

When the first app is started, the file will appear in the user under which the tomcat (or jetty) instance is started.

Monday, February 4, 2008

IDP: Fundamentals of Communication course

Learn Share course. 1.5 hour modules.

IDP Time Management Course

Looks like I have to read something and then take a test

Article is about 50 pages and called Time Management.pdf and is available online. I printed it out and will put it in my IDP folder.

Part 1 Time Management Principles
Got to page 10

Don't let the Urgent things crowd out the Important.

Have decided to support Barak Obama

Gary Hart's article in HuffPo is what has helped me make up my mind.

http://www.huffingtonpost.com/gary-hart/iraq-as-metaphor_b_84668.html

Basically, the war was wrong, and though many supported the decision to allow Bush to use all force, and voted that way, it should now be clear that it was wrong, and those who supported the decision should admit it and speak out against it.

Barak Obama did not support it from the beginning, and this shows both leadership, moral courage, and clear understanding of the decision.

Saturday, February 2, 2008

debugging grails unit tests in eclipse

found this in Groovy In Action page 528
Select Run -> Run, and create a new Java Application configuration. Set the
Project to be your current project, and select groovy.util.GroovyTestSuite as
the Main class.
Next, click the Arguments tab; in the Program Arguments box, include the
path to your Groovy script, as shown in figure 14.2.

It works! One strange thing is that the console view shows compiling ... which looks like it's not done compiling. I think that's because of the dynamic nature of groovy.

Just step and it looks like it works!

For a grails app, In the arguments box put path as test/integration/ or whatever path filename is.

Friday, February 1, 2008

grails-1.0-RC3 is broken with gwt-plugin: Use RC4

Watch the snapshot and hopefully the next version will have fixes for both gwt -plugin and the RC4 war file bug.

Thursday, January 31, 2008

Got step debugging within eclipse working!!!

http://docs.codehaus.org/display/GRAILS/Eclipse+IDE+Integration

I got it working in the bookmarks app!!!

Still need to get the testing code working right though!

bookmarks app notes

At the time of this writing all my grails apps have been reverted to grails-RC3 due to the war file bug in RC4.

On the HP laptop there are several versions of the bookmarks app. The one that seems to work at the moment is bookmarks-ch11-MappingWHibernateXML. This version is on a branch in SVN (falcon) and the branch name is chapter-11-MappingWithHibernateXML.

I fixed the app so it can be run from eclipse, (fixed the groovy build properties with bin-groovy) and fixed the classpath error so I can see the grails-app jobs dir. (so it's in the classpath).

I also added the jar files in the lib directory so they are included in the build environment. (properties->Java Build Path)

Now there are no "problems" in the problems view and it can be run from the eclipse run menu.

The app starts and the user controller displays users so it's working with GORM (hibernate and MySQL)

The bookmarks controller also seems to work and I can see my bookmarks including latest from del.icio.us.

Still most of the unit/integration tests fail. Need to fix that.

The version named bookmarks-ch11-TRUNK is broken. I can start it but it throws exceptions when I'm accessing the controllers.

Wednesday, January 30, 2008

Today going to the gym, finishing the UML, working Selenium

There's a good article by Neal Ford on selenium in the NFJS anthology I got. Just found it the other day and since we're looking at Selenium, it's apropos.

Other stuff...I need to finish the UML training and start the OO best practices training. Due the middle of Feb.

Need to move the RNG docs to the team space from my personnal space.

Work on the WebTestApp unit/integration tests.

Tuesday, January 29, 2008

grails 1.0-RC4 issues/bugs

It turns out that the RC4 war file described below is a known bug in grails 1.0-RC4 (wish I'd have known about it) and so I've reverted to RC3 for now. What a pain.

I couldn't deploy the WebTestApp as a war to tomcat (RH Linux, jdk 1.5.0_06) because it failed upon app invocation. The app deployed and appeared to be started in the tomcat administrator, but would not run. I did an experiment and this problem is apparently because of a bug in grails-1.0-RC4.

I therefore did an experiment: I created 4 identical grails apps with 1 domain class and used "generate-all" to generate the controller and views. The only difference between each one, was I created each one in a different version of grails from RC1..RC4.

Basically...

for each grails version X from RC1..RC4
grails create-app testRCX
cd testRCX
grails create-domain-class User
grails generate-all User
grails -Dserver.port=9090 run-app
test
grails war
copy the war file to the tomcat instance and test.

The only one that didn't deploy to tomcat and work was the app for RC4. Tomcat indicated it was started, but when I tried to invoke it, catalina.out reported
java.lang.NoSuchMethodError: javax.servlet.ServletContext.getContextPath()Ljava/lang/String

Here's the top of the error:
[4894343] [/testRC4].[gsp] Servlet.service() for servlet gsp threw exception
java.lang.NoSuchMethodError: javax.servlet.ServletContext.getContextPath()Ljava/lang/String;
at org.codehaus.groovy.grails.web.mapping.RegexUrlMapping.createURLInternal(RegexUrlMapping.java:179)
at org.codehaus.groovy.grails.web.mapping.RegexUrlMapping.createURLInternal(RegexUrlMapping.java:241)
at org.codehaus.groovy.grails.web.mapping.RegexUrlMapping.createURL(RegexUrlMapping.java:225)
at org.codehaus.groovy.grails.web.mapping.RegexUrlMapping.createURL(RegexUrlMapping.java:256)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)


The rest of the apps ran fine on tomcat.

Thursday, January 24, 2008

emailing from grails

The sendMail Method on page 270 of DGG (Definitive Guide to Grails) has a method used in the subscription controller that is run from a job. The method (sendMail) takes a user a subject and a bodyContent Closure and sends it using the org.apache.commons.mail.HtmlEmail package.

Should work for the WebTest app with some tweaks. Better then the Spring thing that I tried from the tutorial on the grails site. That one seems to be very old since Grails has progressed alot...Thought the book is old too and has problems.

It works! Except I can't email from windows, only linux WTF... Hard to only work in linux, but I can do some stuff.

Wednesday, January 23, 2008

Found Grails Eclipse resource!

http://docs.codehaus.org/display/GRAILS/Eclipse+IDE+Integration

Shows how to start grails app from eclipse.

Also has info on how to single step, but so far I can't get that to work.

Tuesday, January 22, 2008

eclipse bug: Compute launch button tooltip

Is happening when I try to run grails apps. Not sure if it's related to testNG, but it started when I installed it

grails upgrade and app debugging issues

I upgraded to rc4 and groovy 1.5.1 and had some problems developing on my HP laptop. New apps did not run and the class files were all scattered in the top level of the project.

Comcast laptop had racetrack at version from grails rc1 to rc3. I did the grails upgrade. The app still ran np. The Problems view showed the same Unbound claspath variable : GRAILS_HOME problem. I imported the groovy-all-1.0.jar file by "import groovy libs into project". No change.

I added the GRAILS_HOME variable in the project properties Java Build Path dialog (libraries) and it errored out with the same "Variable points to a folder: Use 'Extend...'to select an archive inside the folder." WTF? I can hit cancel, the variable is set, and the app no longer has the "Problems" view issues. I can then do an eclipse clean and the app builds, and all the class files are deposited in the project top level. again WTF?

I played with turning off the java builder and it works and makes changes to the .project file. I changed it back.

When running grails test-app in RC-3 all the tests fail.

I reverted the environ to rc1 and reverted the project to what's in trunk. I ran grails test-app and all but 4 of the tests passed. Not sure what it was before (all passed or what)

Did an experiment: Upgraded the project to rc3 and ran test-app in an rc-1 environment: Won't run because the app and environ grails version's don't match!! Did another grails upgrade from rc1 (app was rc3) and it downgraded the app! Tests (except 4) ran successfully.

Upgraded back to rc3 (app) and ran it in rc3 (environ) and the tests (cept 4) passed. Wtf.

Will experiment with TestGrails app.

Monday, January 21, 2008

trying to fix grails groovy tests in grails apps

Most of the grails test-app test fail with some odd problems about not being able to find some of the domain classes. The problems view in eclipse says stuff like

Unbound classpath variable: 'GRAILS_HOME/ant/lib/ant.jar' in project 'racetrack-TRUNK' racetrack-TRUNK Build path 1200916693560 24138
...
Unbound classpath variable: 'GRAILS_HOME/dist/grails-core-1.0-RC1.jar' in project 'racetrack-TRUNK' racetrack-TRUNK Build path 1200916693576 24197

When upgrading the groovy plugin I found that I needed testNG so I have added the testNG to my eclipse installation and I could then upgrade the groovy plugin. There's a maven plugin too, and I'll have a look at that too.

So next to fix the Unbound classpath variable problems...

Need to create a variable for GRAILS_HOME and point it to the latest grails version.

Setting the GRAILS_HOME only worked if I had also upgraded he project to RC-4. Have to test this with another app to be sure.

One weird thing is that dozens of .class files get build and put into the root folder. Messy. These are definately created by the eclipse build. If you delete them and then do a clean you get them regenerated.

Also seem to need to configure the .classpath so that all the class files go somewhere other than the root folder...