Monday, February 18, 2013

How to remove postgresql from ubuntu

1.get the list of package postgresql installed
dpkg -l | grep postgres
This will give you all the package
2. Now you will remove all package
sudo apt-get --purge remove postgresql
sudo apt-get --purge remove postgresql-9.1


You will remove all of them like shown above
3.your done enjoy

Wednesday, January 30, 2013

How to make OpenERP field unique

1.Assume you have inventory item definition on inventory.py
...............
_columns = {
'product_id' : fields.char('Product ID' , size=32 , required=True),
}
2. To make unique add the following line in the class

_sql_constraints=[( 'product_id_uniq', 'unique(product_id)' , 'Duplicate product id !')]

3.Enjoy

Thursday, January 17, 2013

Am enneagram type six


Recently my friend invited me to attend free enneagram session , this session was conducted by Enneagram Institute Ethiopia near CMC was eager to know what it is and at the same time i was not sure if am interested at all.

We have reached there on time and I was looking around wondering what am going to get , after a while two enneagram certified trainers started the session .After brief introduction about enneagram they started video guided discussion about 9 types in enneagram starting from one and so on , since they started this discussion I was so happy trying to label all friends and family on each types and of course wondering which type am going to fit,

Until type six is reached i couldn't relate to any but when six ,I was surprised and I had no word how to express what i felt it just me they are talking and I couldn't believe my behavior is stipulated and being told to me.

And it was quit good experience to know yourself , I learnt about my type in other dimension. i can use this to study my behavior and know more about my type for better personal development.

The trainer told us this session was a glimpse of the course , when the one month course is taken it will include more detailed explanation and how to interact with other types and so on.

What can I say thanks EIE for the enlightenment in this short period.