Just woke up to the news on radio that there was a 4.4 earthquake near Los angles and I didn’t even feel a bit although I see a few entries from Redlands in the did you feel site.
Well gotta move the bed away from the windows, lets hope I do it by next year. May be I should use twitter for these kind of posts..
too many list of things of to do and too sleepy as well..time for a quick nap between the snoozes and blogging..
February 26, 2010 – 6:48 pm
February 26, 2010 – 12:38 am
I recently started using the CF9 along with Hibernate ORM and I had trouble saving the the object using the EntitySave Method on a new object with out setting the ForceInsert param to true.
If I don’t set the forceInsert param to true then I would get the below error which was driving me nuts since I wanted to use the EntitySave method and let CF ORM decide to save/update the object.
Exception in Hibernate operation.
Either the updated/deleted row does not exist or the session contained stale data. Root cause
rg.hibernate.StaleStateException: Batch update returned unexpected row count from update [0]; actual row count: 0; expected: 1
After a lot of time googling and going through my logs I figured out that doing the following would let me use the EntitySave as I wanted.
- Adding the Unsavedvalue attribute to the primary key and setting it to my default ID before the object is persisted.
- Removing the default attribute also works.
Looks like CF9 internally uses the primary key of the object to determine if the object is persisted or not. But setting the default attribute makes the CF engine to set the value when the object is created.
I was used to setting the default attribute on my properties by practice and even the CFBuilder didn’t highlight this as an invalid attribute on the primary key which all led me to waste almost a day on this silly issue.
Hopefully this would help some one starting off with CF9 ORM.
February 9, 2010 – 10:41 pm
Its always been a pain to maintain a backup of all photos and personal documents.When I heard about Amazon S3 cloud storage with its cheap pricing structure, I was in heaven finally a place I can store my data for eternity for cheap.
But when I started to move my data to Amazon S3 , the reality struck me hard was that
- my so called broadband connection which boasts a 512kbps upstream took me more than an hour to push a 200MB file and I have about 10gb of data.
- Most of all I can’t even switch to FIOS internet (Verizon) which has better up stream because they don’t have coverage in my locality.
- None of the freeware S3 sync applications like S3Fox, cloudberry and S3 Explorer support bandwidth limiting capability on up stream. So they basically occupy the pipeline until the upload is done annoying my room mate who was trying to figure what the hell’s happening with the connection for like 2 days.
So until I get a better internet connection or smart app that can push data like torrents clients, I will not be able to use Amazon S3 as my primary back up storage.
Amazon S3 back up or file storage isn’t for people who are stuck in the cable world like me.
January 7, 2010 – 12:53 am
Well I have always wanted a irony series with news that I have read or instances of my blog posts or anything that contradicts each other and finally I’m starting it today.
I just want to point out the ironies nothing more than that and probably what I consider as Irony might not be the same for everyone.
Here are 2 slide shows from The Hindu(Chennai edition) online news paper
- Showing the newly beautified Marina beach done by the TN govt dated Dec 22 2009.
- Other one showing an Oil slick off Chennai dumped illegally by some ship off the coast dated Jan 6 2009.
What happens to the Doctorates?
Well the news is out the Govt. of India is derecognizing 44 so called deemed universities in India due to lack of infrastructure facilities. Finally some one in the Education department recognized it and blew the whistle.
Although I didn’t study in any of these universities but I have visited some of them during my UG time and they weren’t gr8 even then so I’m gonna assume world didn’t become flat in last 5 years.
An example for the so called deemed university standard is when some universities awarded doctorates to some south indian actors just like a freebie (Google it).
So will these actors return the so call doctorates since these universities are no more universities?
I hope at least from now on people think twice before accepting any kind of doctorates just for the fun of it. I’m sure actors work hard as well but Please don’t mix academics and acting it doesn’t go well keep them separate.
Oscar looks good with A.R.Rahman than with Dr.A.P.J Abdul Kalam. Doesn’t it?