Monday, September 08, 2008

Success or Value - Whats real and important?

“Try not to become a man of success rather try to become a man of value.”
–Albert Einstein

Read a famous quote from Einstein and thought what an amount of hidden value this has and these were my thought written as words.

I want success, its my dream, its my life, i dream of it every morning and night and thats my thought all day long, sounds familier isint it?
Look into you, thats what you have been reciting all these years.

So whats success?, typically we associate success with an image of expensive cars, things, a big house and the things that we hardly would even want, so success = things.
We all need things, but associating success with it is where all the problem starts.

     Try all you want to become a man (or woman) of success.  It will likely happen if you try often and with clear focus.  However, if you are merely

seeking those images, then you will be just another example of how money doesn't buy you everything.

     Try to become a person of value, and it won't matter to you if you have success or not.  Becoming a person of value means that first, you are of

value to your own existence, and second, you are of value to the existence of others.  Being a person of value may mean having those images of success,

but if it does not, you will find that it truly does not matter to you.

     Here is an idea that many people don't seem to like:  no matter who, no matter what, every person acts out of selfishness.  Mother Teresa acted out

of selfishness.  Of course, this requires a broader definition of selfishness as we typically see it.  Call it “conscious selfishness.”  When Mother

Teresa helped countless people, she did so out of the deep yearning that came from within.  It was the best way that she found to serve her passion.

Just live your life like a downstream river, mould the curves, adapt to the currents, and play with the corners and hit the rocks, make choices that serve what you regard as your highest value and just see what happens and not the temporary wants.

Stop worrying about success, it cant go anywhere else other than lining up with your passion, your passion should be of service, of value, no matter if its for you or better for the whole world.

If you have this kind of a mindset following values rather than chasing the illusionary world of success, everything you want will definitely be right there in the perfect moment you wanted it...

So decide for yourself what success is for you, what ever you wanted you have it, or what ever you wanted you chase it it keeps eluding you at the right moment.

GPS Loggers - RBT 2300 and Holux M241 Reviewed in depth

Here is a details review of both the GPS logger models and read on to see which one is a clear winner over the other.

So I purchased the RBT-2300 and had some issues with the signal fix and one of my friend suggested to try the new Holux-M241, later realised the fix is due to the low signal level inside my apartment and its an issue with all GPS units.

My main use is for Geotagging photographs and also to be used as GPS with my Nokia N73.

Here are my observations on both the devices on a test I did this weekend.

Specs:
RoyalTek RBT-2300 with Nokia battery fully charged
Holux M-241 with Energiser lithium battery fully charged

Time to Acquire first fix:
Tried both inside my flat and first fix was difficult, so moved both the devices to my Balcony, RBT-2300 acquired the fix in approx 12 minutes and the Holux took 15 minutes.

Lock:
The RBT-2300 was able to lock to the signals more easily than the holux M-241 when i moved inside my apartment, Royaltek lost signal one in 10 compared to Holux losing 4 times in 10.

Logging:
RBT starts logging the moment you switch it on and the GPS is fixed, no hassles to wait for the fix and then press the start button to start logging.
Holux needs to get the fix first and then need to press the enter button to start logging.

Log size:
RBT : 180 days worth data or approx half million way points
Holux : 130,000

Battery life:
RBT using a Nokia batterly (860mAh) ran very good for 9 hours until the unit totally died.
Holux using the new Energiser lithium battery (approx 2800mAh) ran for 6 hours till it totally died.

Connecting to Smartphone:
Both the devices were very easy to connect to my Nokia N73 using bluetooth, got connected immediately without any problems.

Connecting to computer:
RBT provides only bluetooth and connected pretty well,
Holux uses both USB and bluetooth and connection was good.

Software:
RBT software is better then the Holux, remembers the selected Com port and also the folder location where GPS log file was last downloaded.

Downloading LOG files:
This is the main part where I started hating the Holux M-241, both took the same time to download using bluetooth, however the Holux files were empty without any log info in a previous test.

Reliability:
For any geotagging and logging purposes reliability of the data is more important, RBT has delivered proper ones till now and had no issues, but with the Holux, I was not able to download the data, this might be due to the fact that the battery got over and the unit switched off without stopping the log, now am not able to see the data in Holux, using the download tool, it crashes whenever I try to get the file.

Verdict:

Eventhough the looks of the Holux is better then the RBT, and the Holux has an attractive LCD display and many modes, it is clearly not a winner in the Geotagging scenario, may be it can be used as a GPS device for smartphones, but definitely never a reliable one for Geotagging, the reasons below.

1. For geotagging, i would prefer to switch on the device and start logging by default and if I dont want it, then I can switch it off, its ridiculous to wait for a signal and then to switch the logging on.

2. If the unit dies of low battery charge, I should atleast be able to get the proper log files from it, here Holux fails to impress.

Overall the new Holux M-241 is just a beauty with absolutely no brains  and does not seem to be very useful for logging and Geotagging world with a highly unreliable performance.

Even though the RBT is simple and does not have any fancy display, it exactly does the job its claimed to do.

so anybody planning to buy the Holux M-241, please assess these facts and base your decision on what you mainly intend to use the GPS for, if visual display of the GPS details is not much of a bother to you, better go with the RBT-2300.

The Winner:

[b]RBT-2300 is a clear winner[/b] compared to the Holux M-241.

(I Wanna Be) Your Underwear Lyrics - My all time Fav song

I loved this song by Bryan Adams (I Wanna Be) Your Underwear.

Dont know why? , here is why, I loved this song for no reason, my Rational mind has its own thinking, what a Crazy guy would he be to 'Be an Underwear', I wanna be - your high heels when ya kick it - to be a shoe to kick somebody.

Very few are blessed to get such crazy thoughts and it feels so great to be crazy about someone this much.... thats the Heights of Craziness on someone you love!.

Here is the lyrics.Enjoy!!

Artist: Bryan Adams Lyrics  
 Song: (I Wanna Be) Your Underwear Lyrics
 
I wanna be your t-shirt when it's wet - I wanna be the shower when you sweat
I gotta be the tattoo on your skin - yeah lemme be your bed baby - when you climb in
I wanna be the sheets when you sleep - let me be the secrets that you keep
I gotta be the spoon - ta stir your cream
I wanna be the one that really makes you scream

I wanna be - your lipstick when ya lick it
I wanna be - your high heels when ya kick it
I wanna be - your sweet love babe - ya when you make it
from your feet up to your hair - more than anything I swear
I wanna be - your underwear

I wanna be the itch that you scratch - wanna be the chair when you relax
I gotta be your razor when you shave
I wanna be the habit that really makes you crave

I wanna be - your hot tub - when you're dippin'
I wanna be - your bathrobe - when you're drippin'
I wanna be - your cocktail baby - when you're sippin'
I just wanna be right there - more than anything I swear
I wanna be - your underwear

I wanna be your sleeping bag - baby slip inside
Let me be your motorcycle n' take you for a ride - alright

I wanna be - your hot sauce - ya when you're cookin'
I wanna be - your sunglasses - hey good lookin'
I wanna be - wanna be the one - you're stick your hook in
I just wanna be right there - more than anything I swear
Oh ya I wanna be - your underwear

The hottest songs from Bryan Adams

Geotagging of Photos made simple

***What is Geotagging? 

Geotagging is a simple process of writing the Geographic information to Exif data in the images. 
Geographic information includes Lattitude, Longitude, Height and other related information. 

***Why should I Geotag? 

When fotos are Geotagged, it makes it simple for the viewers to pinpoint the exact location where the foto was shot, and also saves the creator from the hassle of remembering each of the locations. 

Geotagging is also now read by most of the popular sites like flickr, provides an amazing integration with Google maps to show a Location Map of the fotos you have taken. 

How wonderful it would be to see your pics on google map with the exact location details. 

***Do i need a GPS receiver to Geotag my fotos? 

No you dont need a GPS receiver to do it, although a GPSr may get the exact co-ordinates of the location and saves the hassle of manually searching the co-ordinates. 

***How do I Geo tag my fotos? 

There are a couple of free tools to do the job. 
---------------------------------------------------------------------------------- 
you can use GPicSync, it's open source and supports the following raw filetypes: 
http://code.google.com/p/gpicsync/wiki/RawFormats 

Very nice, have a try: 
http://code.google.com/p/gpicsync/ 
---------------------------------------------------------------------------------- 
Detailed instructions here: 
http://www.oziphototool.com/smf/index.php?topic=124.0 
---------------------------------------------------------------------------------- 
The latest Picasa has a great integration with Google Earth... It wont let you write to CR2 files, but will store in a .ini file. 

For JPEGs it write the exif, you can upload the photos to Flickr and Picasa Web and they will show in the map.
 
----------------------------------------------------------------------------------- 

***How do i find the location co-ordinates? 

Its very easy with Google Earth or google Maps, if you know the location, search in Google Earth and that will give you the exact details required. 
Picasa also has an integration with Google earth and writes values to JPG files. 

***What is the difference between Geotagging and GeoStamping? 

Tagging means writting GPS coordinates into EXIF metadata -same as writing/changing (for example) variuos DateTime values. Important is: tagging doesn't change image! With other words: when you open geo-tagged image, you don't see GPS coordinates (you need some exif utility to see and edit those values). 

Stamping means you (using some utility) "write" coordinate values directly onto image. So, everybody will see those values by opening/viewing image (you remember old photos containing date/time when they were taken?). The problem is, it is difficult to edit stamped images later. In short: GPS stamped images are not very artistic -they look ugly, actually Smile 

***Examples? 
I have tried Geotagging some images and here is how they look on my site, scroll to the bottom of the page to see the Google maps. 

http://www.vividscapes.com/gallery/main.php?g2_itemId=5790 

Missing any information?, please feel free to add or correct me where ever am wrong.

Do not fool around with your profs

True story from IIT Bombay ...Batch 1992-96 


One Night 4 College Students Were Playing Till Late Night and Didn't 
Study For The Test Which Was Scheduled For The Next Day.


In the morning they thought of a plan. They made themselves look as
dirty and weird with grease and dirt. They then went up to the Dean and
said that they had gone out to a wedding last night and on their return
the tyre of their car burst and they had to push the car all the way
back and that they were in no condition to appear for the test.


So the Dean said they can have the re-test after 3 days. They thanked
him and said they will be ready by that time.
On the third day they appeared before the Dean. The Dean said that as
This was a Special Condition Test, All four were required to sit in
Separate classrooms for the test. 
They all agreed as they had prepared well in the last 3 days.
 
 

The Test consisted of 2 questions with the total of 100 Marks.
 
 
 
 

Q.1. Your Name........ ......... ........( 2 MARKS)

Q.2. which tire burst....... ......... (98 MARKS) 

a) Front Left
b) Front Right
c) Back Left
d) Back Right.....!! !

What the heck is all about Photography.....

Had a prosumer camera for 2 years, i was a bit happy with the pics, bcos i did not have to do anything to get some pics.

The SLR bug caught me and I treated myself to the 400D Canon and some glass.

Now the fun started, I thought I was ok in pictures, but now i see am Crap, my goodness my fotos were horrible and when browsing the photography forums came across this link, Now i know what i should do, and what those great men did to get those jaw dropping fotos!.

http://www.kenrockwell.com/tech/spectator.htm

Now i really need to do something to atleast say I can take a picture.

What is Samyama?

Recently came across a link that exactly says what a Samyama is.

http://www.kriyayoga.com/english/on_your_wings/samyamah.htm

Happy B'day to my lovely Dad.

DAD, I love you always,

In all possible ways.

 

He who got me into this lovely world,

He who taught me to walk,

He who taught me to Talk,

He who taught me to dance,

He who taught me to sing,

He who taught me to live Life,

He who taught me not to Stife,

He who is always excellent,

Always the best,

Dare not to Test,

Not a passing Fad,

It's my best Dad.

 

Be it good times, be it bad times,

Be it happy time, be it sad times,

I realized "U da man!".

 

I saw your wisdom,

I saw your courage,

I saw your forgiveness,

I saw your compassion too,

And I knew I can rely on you.

 

As Strong as a mountain,

As Majestic as a tree,

As Warm as the summer sun,

As Calm as the cool blue sea,

As comfortable as the serene nights,

As wise as the Ages of wisdom

As joyous as the morning spring,

With nothing more to ADD,

And everything is there in this LAD,

He is none other than my wonderful DAD.

 

You were there with me,

When I was angry with you,

I shouted in my ignorance,

You showed to be intelligent,

You were there whenever I am sad,

You are my wonderful and loving Dad.

 

DAD, I love you always,

In all possible ways.

Before and after marriage.....just for a laugh.

Before marriage: 

He: Yes. At last it was so hard to wait.
 She: Do you want me to leave?
 He: NO. Dont even think about it!
 She: Do you love me?
 He: Of course!
 She: Have you ever cheated on me?
 He: NO! Why you even asking? 
 She: Will you kiss me?
 He: Yes!
 She: Will you hit me?
 He: No way I am not such kind of person!
 She: Can I trust you?
 He: Yes!

 

Now after the marriage you can read it from below to top.

A Quote

What you don't like to see in yourself is what you hate seeing in others.

Too True, Too Often

Too True, Too Often

Too often we don't realize
What we have until it is gone
Too often we wait too late to say
"I'm sorry - I was wrong."

Sometimes it seems we hurt the ones
We hold dearest to our hearts
And we allow foolish things
To tear our lives apart.

Far too many times we let
Unimportant things into our minds
And then it's usually too late
To see what made us blind.

So be sure that you let people know
How much they mean to you
Take that time to say the words
Before your time is through.

Be sure that you appreciate
Everything you've got
And be thankful for the little things
in life that mean a lot.

Significance of chanting mantras

What is the significance of chanting mantras? Logical minds have a problem with mantras. A logical mind asks: "What can a simple sound do to me?" All mantras are not for higher levels of freedom. There are many mantras that you can chant for getting material benefits or to even ward off negativity. Day-to-day matters can effectively be handled by such mantras. Very few mantras lead to spiritual well-being. If any mantra, God or religion supports your greed, fear or limitation, it would be of no significance. Maybe your immediate purpose will be served because you destroyed your neighbor with your mantra or you made the necessary money that you wanted. 

Why do some people make fun of those chanting mantras? A jnana yogi uses his intelligence to realise his ultimate nature. Usually jnana yogis have absolute disdain for all other systems, because they consider everything other than jnana as being stupid or idiotic. They laugh at bhaktas; they make fun of kriya yogis and karma yogis. Once a jnana yogi went to Shiva and said, "All your bhaktas keep chanting mantras? All they are doing is just adding to the noise pollution. If you want to transcend, you must have the consciousness to look beyond. Just by shouting mantras, where will they go? Why don't you tell them to stop this nonsense?" 

Pointing to a worm crawling on the floor Shiva said, "Just go close to that worm and utter the mantra, Shiva Shambho''. The jnana yogi shrugged with disdain and went close to the worm and uttered Shiva Shambho. The worm died. The jnana yogi was shocked. He said, "What is this? I just uttered the mantra, and the worm died". Shiva smiled and pointing to a butterfly said: "Focus on that butterfly and say, Shiva Shambho''. The jnana yogi said, "No, I don't want to kill the 
butterfly". Shiva said, "Try". The jnana yogi looked at the butterfly and said, Shiva Shambho. The butterfly too died. 

The jnana yogi was taken aback and said, "If this is what the mantra does, why would anyone want to utter it?" Shiva continued to smile and again pointing to a spotted deer romping around said: "Focus on the deer and say Shiva Shambho". The jnana yogi said, "No, I don't want to kill the deer. Shiva said, "It doesn't matter; say it''. So the jnana yogi said, Shiva Shambho; the deer fell dead. Aghast, the jnana yogi asked: "What is the purpose of this mantra? It is just killing every being". 

Soon after a mother came with her newborn child, seeking Shiva's blessings. Shiva looked at the jnana yogi and said, "Why don't you utter the mantra for this child?" He replied, "No, I don't want to kill the child". Shiva said: "Try". The jnana yogi, with great apprehension, approached the child and said, Shiva Shambho. The child sat up and spoke. He said, "I was just a worm; with one mantra you transformed me into a butterfly. With another mantra you made me into a deer. With yet another mantra you made me into a human being. Just utter the mantra once more; I want to attain divinity". 

Modern science has now conclusively proven that the whole of existence is just a vibration of energies. Where there is vibration there is bound to be a sound. So in yoga we say the whole existence is just a sound. This is known as nada brahman. The entire creation is a complex amalgamation of sounds. Among this complex web of sounds there are a few sounds which are key sounds. These key sounds are referred to as the mantra.

Prayer and its Meaning

Before Pranayama/Before Food

 

Aum… Aum… Aum…

Sahana vavatu sahanou bhunaktu

Sahaveeryam karavavahai

Tejasvinavadhitamastu

Mavid Visha vahai hi

Aum Shanthi… Aum Shanthi… Aum Shanthi…

 

 

Let us be together. Let us eat together.

Let us produce the energy together.

Let there be no limit to our energies.

Let there be no ill feeling among us.

Aum… Peace, Peace, Peace.

 

 

After Pranayama

 

Aum… Aum… Aum…

Asatoma sadgamaya

Tamasoma jyotirgamaya

Mrutyorma amrutangamaya

Aum Shanthi… Aum Shanthi… Aum Shanthi…

 

From Untruth to Truth. From Darkness to Light

(From Ignorance to Enlightenment).

From Mortality to Immortality.

May I be lead.

Aum… Peace, Peace, Peace.

 

Humility

Humility doesn't mean believing you are less than anyone else. It means being aware that you aren't more important than anyone else while at the same time being aware that no one is more important than you. You treat yourself with respect and you treat everyone else with respect also. You no longer compare yourself to others in any way because you know through direct perception that everyone is equal.

I love you the most

I love you the most,
You are my foremost,

When I was born,
I was new to this entire existence,

Did I know where I am, 
Neither do I know who I am,

You taught me the way,
To be in my best possible way,

You became my world,
So dear and near that cannot be told,

When I grew, I thought,
You were not noticing me,
But I saw the truth,
You had every picture of my growth,

I saw you always with me,
Can I ask anything more for me.

At joy, at sorrow,
At Bliss, At love,
At hardships, at sweet moments,
You were like the skin of the fruit,
Protecting me from prying eyes that loot,

You wanted a ring,
I wanted something,
You traded your precious ring for that Something,
So selfless, So humble, So giving,
What more can I ask for such a living,

You were the best,
I love you of all the Rest.

Neither will I regret,
It's a sin to forget,

My all time love to you,
To my Best Mom and Dad,

I love you the most,
You are my foremost,

Let Nothingness take me away

Before a New day,

Let Nothingness take me away,

 

Am I the Mind,

I struggle to Find,

 

Am I the body,

And I finally conclude, Am nobody,

 

Shatter thy Ego,

To be in absolute Bingo,

 

15 minutes of Nothingness,

Has done wonders to my Worthiness,

 

I don't need a Yama,

To take away my Prana,

 

Before a New day,

I wish Nothingness could take me away.

28 WAYS 2 MAKE A GIRL SMILE

28 WAYS 2 MAKE A GIRL SMILE........

1,Tell her she is beautiful.not hot or fine.

2,Hold her hand at any moment even if it is just for a second 

3,Kiss her on the forehead 

4,Leave her voice messages to wake up 

5,Always tell her you love her at any & and all times 

6,When she is upset ,hold her tight & tell her how much means to u 

7,Recognice the small things .they usually mean the most 

8,call her sweetie or Baby 

9,Sing to her no matter how horrible your voice is 

10,Pick her over all the other girls you hang out with 

11,Write her notes. (she loves them) 

12,Introduce her to family &friends as your girlfriend 

13,play with her hair 

14,Pick her up ,tickle her .& play Wrestle with her 

15,Sit in the park &just talk to her 

16,Tell her funny jokes,tell her stupid jokes,just tell her joke 

17,Throw pebbles at her window in the middle of the night just becuse u missed her 

18,Let her fall asleep in your arms 

19,carve your names into a tree 

20,If she's mad kiss her 

21,Give her piggyback rides 

22,bring her flowers just becuse girls like flowers 

23,Treat her the same around your friends as you do when your alone 

24,Look her in the eyes& smile 

25,let her take as many pictures as she wants 

26,slow dance with her ,even if there isnt any music playing 

27,kiss her in the rain 

28,YOU ARE IN LOVE WITH HER TELL HER

bhO shambhO - Meaning of this Ecstatic song

bhO shambhO
raagam:
rEvati

2 ratnaangi janya
Aa: S R1 M1 P N2 S
Av: S N2 P M1 R1 S

taaLam: aadi
Composer:
Dayaananda Saraswati
Language: Sanskrit

pallavi

bhO shambhO shiva shambhO svayambhO

anupallavi

gangAdhara shankara karuNAkara mAmava bhavasAgara tAraka

caraNam 1

nirguNa parabrahma svarUpa gamAgama bhUta prapanca rahita
nija guhanihita nitAnta ananta Ananda atishaya akSayalinga

caraNam 2

dhimita dhimita dhimi dhimikiTa kiTatOm tOm tOm tarikiTa tarikiTakiTa tOm
matanga munivara vandita Isha sarva digambara vESTita vESa Isha sabEsha sarvEsha


Meaning:by Suhasini Jayakumar
pallavi: Hail , oh Lord Shambhu, one who "self appeared"

anupallavi: Source of Ganges, Shankara, oh merciful lord who redeems me from this ocean of sorrow, samsAra

caraNam 1: without gunas, one who is beyond time, past, present and future

truth beyond gunas(?), beyond all things finite, oh infinite, blissful, wondrous, ever the same lingA

caraNam 2: This is just the rhythm of the dance of creation and destruction


Other information:
Lyrics contributed by Lakshman Ragde.

Song performed for karnATik by Prithi Narasimhan

Citation : http://www.karnatik.com/c2437.shtml

Shiva is the destroyer among the trinity

Shiva is the destroyer among the trinity.

The  holy word chant to worship him is made of five letters and is popularly called Panchakshara- “Na Ma Si Va ya”.

In this popular mantra each of these letters is considered as him and he is praised for his great qualities.)

 

Nagendra haraya  Trilochanaya,

Basmanga ragaya maheswaraya,

Nithyaya shudhaya digambaraya,

Tasmai nakaraya namashivaya.                                                              1

 

My salutations to the letter “Na” , which is Shiva,

Who wears as  garland the king  of snakes.

Who has three eyes,

Who wears ash all over Him,

Who is the greatest Lord,

Who is forever,

Who is the cleanest,

And who wears  the directions themselves  as dress

 

Mandakini salila chandana charchithaya,

Nandeeswara pramadha nadha maheswaraya,

Mandra pushpa  bahu pushpa supoojithaya,

Tasmai makaraya namashivaya.                                                              2

 

 

My salutations to the letter “Ma” , which is Shiva,

Who is bathed by waters of ganges,

Who applies sandal paste all over him,

Who has Lord Nandi as his chiefton,

Who is the greatest lord,

And who is worshipped by Mandhara and many other flowers.

 

Shivaaya gowri vadanara vinda,

Sooryaya  daksha dwara naasakaya,

Sri neela kantaya  vrisha dwajaya,

Tasmai sikaraya namashivaya.                                                              3

 

 

My salutations to the letter “Si” , which is Shiva,

Who is peace personified,

Who is like Sun to the Lotus face of Gowri.

Who destroyed the fire sacrifice of Daksha.

Who has a blue neck,

And who has a bull in his flag.

 

Vasishta kumbhodhbhava  gowthamadhi.

Munendra devarchitha shekaraya,

Chandrarka  vaiswanara lochanaya,

Tasmai vakaraya namashivaya.                                                              4

 

My salutations to the letter “Va” , which is Shiva,

Who is worshipped by great sages like,

Vasishta, Agasthya and Gowthama ,

As also the devas,

And who has sun , moon and fire as his three eyes.

 

Yaksha swaroopaya jada dharaya,

Pinaka hasthathaya  sanathanaya,

Divyaya devaaya digambaraya,

Tasmai yakaraya namashivaya.                                                              5

 

My salutations to the letter “Ya” , which is Shiva,

Who takes the form of Yaksha,

Who has a tufted hair,

Who is armed with spear,

Who is forever filled with peace,

Who is godly,

Who is the great God,

And who wears the directions themselves as dress.

 

Phalasruthi

 

Panchaksharamidham punyam,

Ya padeth Shiva sannidhou,

Shivaloka maapnothi,

Shive na saha modathe.

 

Those who read these holy  five letters great,

In the temple of Shiva,.

Would go to the world of Shiva,

And be forever happy with Him.

 

Thanks to this site -http://www.geocities.com/ramya475/Shivapanchaksharastotram.htm

Adventure in Ooty

Looks like an amazing place to have some adventure in Ooty

http://www.kingscliff-ooty.com/

Creating Objects that Support Edit Cancellation via IEditableObject

This blog is from - http://blogs.infragistics.com/blogs/joshs/archive/2008/05/08/creating-objects-that-support-edit-cancellation-via-ieditableobject.aspx
Creating Objects that Support Edit Cancellation via IEditableObject

The IEditableObject interface provides controls with a way to allow a data source to react intelligently to being edited. This might seem superfluous, until you consider that complex controls, such as a data grid, allow the user to cancel an editing session via the Escape key.

For example, suppose the user is editing a row in the UltraGrid or XamDataGrid, and then realizes that he has been editing the wrong row. If he presses the Escape key once, the grid automatically reverts the active cell to the value it had before editing began. If the user hits Escape again, the entire row reverts to the values it had before the user started to edit its cells.

If the grid is bound to an ADO.NET container, such as DataTable, all of this magic happens for us automatically. However, if the grid is bound to a collection of your own objects, such as custom business objects, this will not happen by default. Your business objects will need to implement that logic, just as the ADO.NET containers do. Perhaps your business objects will not implement that functionality, since it is not part of any business domain, but Presentation Model objects might, instead. Regardless of the lingo, at the end of the day you will need to implement this logic somewhere!

Fortunately, this is quite easy to do. The IEditableObject interface is all you need to implement, as seen below:

private BinaryFormatter _formatter = new BinaryFormatter();
private MyData _myState;
private MemoryStream _snapshot;


void IEditableObject.BeginEdit()
{
if (_snapshot != null)
return;

_snapshot = new MemoryStream();
_formatter.Serialize(_snapshot, _myState);
}

void IEditableObject.CancelEdit()
{
if (_snapshot == null)
return;

// Restore our state to the snapshot taken when the editing session began.
_snapshot.Position = 0; 
_myState = _formatter.Deserialize(_snapshot) as MyData;
this.ThrowAwaySnapshot();
}

void IEditableObject.EndEdit()
{
this.ThrowAwaySnapshot();
}

void ThrowAwaySnapshot()
{
if (_snapshot != null)
{
_snapshot.Dispose();
_snapshot = null;
}
}

This code assumes the MyData type (and all of its ancestor types) is decorated with the Serializable attribute, since it is serialized by the BinaryFormatter.

The BeginEdit method starts with a check to see if we are already in an editing session. If so, it immediately returns since there can only be one editing session at a time. There is no guarantee regarding when and how often that method will be invoked, so this precautionary step is necessary. When a new editing session begins, a snapshot of the object's state is taken and stored in a MemoryStream.

If the user cancels the editing session, the CancelEdit method executes. That method deserializes the snapshot taken in BeginEdit, and applies the saved values to the editable object. If the IEditableObject instance contains the various fields being edited, instead of having a reference to one object that contains all the values, your CancelEdit method will include code that sets all of those fields to whatever values were saved in the BeginEdit method.

When the user completes an editing session (i.e. finishes editing a row in the grid) the EndEdit method is invoked. That gives us a chance to dispose of the snapshot data. Once the snapshot is removed, a subsequent call to BeginEdit will cause a new editing session to begin.

Sunday, July 27, 2008

Einstein's Quote of the day

Nothing will benefit human health and increase chances for survival of life on Earth as much as the evolution to a vegetarian diet.

Friday, July 25, 2008

Northern lights

Here is the link to stay very near to the northern lights spectacular.

http://www.eiscat.uit.no/EISCAT/cookbook/micro_guide/

contact person for staying there
http://www.eiscat.uit.no/EISCAT/cookbook/micro_guide/

http://www.visitnorway.com/en/Articles/Norway/North/Tromso/Winter/

http://www.nordlysopplevelser.no/content.php?p=contact

This site Sami adventure has custom packages for the northern lights.
http://www.samiadventure.no/eng/index.html

Tips for photographing the Aurora.
http://alaskaphotographics.com/how_to_photograph_northern_lights.shtml

Monday, July 21, 2008

Its all how you take it

coming back from lake district this week, there was heavy traffic, yes I had a vacation, so did everybody and they do need to come back, definitely the roads got to be busy, my friend was driving and was a complaining about the traffic, so at that time a little thought came to me, read along....

If you are stuck in traffic;
Dont despair, there are people in this world for whom driving is an unheard privilege.

If you have a bad day at work;
think of the person who has been out of work for years.

Should you grieve the passing of another weekend;
Think of the person in dire straits, working twelve hours a day, 7 days a week to feed their children.

Should your car break down, leaving you miles away from assistance;
Think of the paraplegic who would love the opportunity to take a small walk.

Should you despair over a relationship gone bad;
think of the person who has never know or felt what its like to love or be loved in return.

Should you find yourself at a loss and pondering whats life all about;
Be grateful, there are some who didnt even live long enough to get such an opportunity.

Should you be any situation, you don't even have to think of somebody, its just enough that you accept the situation without any reaction to it and see what can be done, Once you accept the situation, there are a million ways to deal with it, if you don't accept, the the only way is to keep lamenting!

Have a good day.... Enjoy the moment.

Loneliness is not grief....

Loneliness...... am not talking here about any kind of seclution from life or a family break or dispute.... this is just about being alone out in the woods, look back nobody and look in front nobody...

A long narrow winding road
where lead me it would
Without a hint i could
Walk along the path full of wood

Broken trunks
Lively trunks
Fresh Grass, lovely ferns
The flowers Purple and yellow
Standing there with a bellow
Nobody around to follow
In tune with nature myself I Allow

Sends me, The gentle sounds of the River
and the birds and trees, into a Quiver
Of intermittent Rain drops dazzling down
in the slight peek of the sun at dawn
Am dripping wet, noting to fret
the winding paths, the disappearing peaks and curves
The only being there in valley all alone in loneliness
No reason to feel any illness

Oh what a joy, what a luxury
Just to be alone and all alone
Just with nature, inside let it be flown.


This week we had been to Lake district and had a full day for myself with nature and that too alone, what a wonderful time and place to be in alone, and the weather was raining, and a little bit rain and more rain, i was a bit irritated at moments not because I was enjoying the rain, but at moments i was not able to take my camera out for some good clicks, it was raining full day with a 10 minute break for the sun to show itself its there.

I did not even feel i walked some 16 kilometers up and down the hills.In all it was a enjoyable walk and time to be all alone and enjoy whats around.

Friday, June 20, 2008

Geotagging your precious photos

Just thought of writing an article on Geotagging, a lot of them with their new toys, might find this interesting :)

***What is Geotagging?

Geotagging is a simple process of writing the Geographic information to Exif data in the images.

Geographic information includes Lattitude, Longitude, Height and other related information.

***Why should I Geotag?

When fotos are Geotagged, it makes it simple for the viewers to pinpoint the exact location where the foto was shot, and also saves the creator from the hassle of remembering each of the locations.

Geotagging is also now read by most of the popular sites like flickr, provides an amazing integration with Google maps to show a Location Map of the fotos you have taken.

How wonderful it would be to see your pics on google map with the exact location details.

***Do i need a GPS receiver to Geotag my fotos?

No you dont need a GPS receiver to do it, although a GPSr may get the exact co-ordinates of the location and saves the hassle of manually searching the co-ordinates.

***How do I Geo tag my fotos?

There are a couple of free tools to do the job.

----------------------------------------------------------------------------------

you can use GPicSync, it's open source and supports the following raw filetypes:
http://code.google.com/p/gpicsync/wiki/RawFormats

Very nice, have a try: http://code.google.com/p/gpicsync/

----------------------------------------------------------------------------------

Detailed instructions here:
http://www.oziphototool.com/smf/index.php?topic=124.0

----------------------------------------------------------------------------------

The latest Picasa has a great integration with Google Earth... It wont let you write to CR2 files, but will store in a .ini file.

For JPEGs it write the exif, you can upload the photos to Flickr and Picasa Web and they will show in the map.

Have tried a lot of tools and the best I found and that I use currently is Geosetter.

http://www.geosetter.de

Its a very lovely piece of software that does whatever you can think off.

-----------------------------------------------------------------------------------

***How do i find the location co-ordinates?

Its very easy with Google Earth or google Maps, if you know the location, search in Google Earth and that will give you the exact details required.

Picasa also has an integration with Google earth and writes values to JPG files.

***What is the difference between Geotagging and GeoStamping?

Tagging means writting GPS coordinates into EXIF metadata -same as writing/changing (for example) variuos DateTime values. Important is: tagging doesn't change image! With other words: when you open geo-tagged image, you don't see GPS coordinates (you need some exif utility to see and edit those values).

Stamping means you (using some utility) "write" coordinate values directly onto image. So, everybody will see those values by opening/viewing image (you remember old photos containing date/time when they were taken?). The problem is, it is difficult to edit stamped images later. In short: GPS stamped images are not very artistic -they look ugly, actually Smile

***Examples?

I have tried Geotagging some images and here is how they look on my site, scroll to the bottom of the page to see the Google maps.

My gallery "Showcase" at http://www.vividscapes.com has many of them Geotagged.
The album page shows a wider view and the Photo pages show the exact location.

***What are the GPS receivers that you can use for Geotagging.

I use the Royaltek RBT-2300, its very good for tagging, also the Holux M-241 is now improved after the new firmware version.

You can get these for approx 30£ off ebay.

Once you get a feel for Geotagging, you will definitely enjoy it.

Wednesday, May 28, 2008

Creating Objects that Support Edit Cancellation via IEditableObject

This blog is from - http://blogs.infragistics.com/blogs/joshs/archive/2008/05/08/creating-objects-that-support-edit-cancellation-via-ieditableobject.aspx
Creating Objects that Support Edit Cancellation via IEditableObject

The IEditableObject interface provides controls with a way to allow a data source to react intelligently to being edited. This might seem superfluous, until you consider that complex controls, such as a data grid, allow the user to cancel an editing session via the Escape key.

For example, suppose the user is editing a row in the UltraGrid or XamDataGrid, and then realizes that he has been editing the wrong row. If he presses the Escape key once, the grid automatically reverts the active cell to the value it had before editing began. If the user hits Escape again, the entire row reverts to the values it had before the user started to edit its cells.

If the grid is bound to an ADO.NET container, such as DataTable, all of this magic happens for us automatically. However, if the grid is bound to a collection of your own objects, such as custom business objects, this will not happen by default. Your business objects will need to implement that logic, just as the ADO.NET containers do. Perhaps your business objects will not implement that functionality, since it is not part of any business domain, but Presentation Model objects might, instead. Regardless of the lingo, at the end of the day you will need to implement this logic somewhere!

Fortunately, this is quite easy to do. The IEditableObject interface is all you need to implement, as seen below:

private BinaryFormatter _formatter = new BinaryFormatter();
private MyData _myState;
private MemoryStream _snapshot;


void IEditableObject.BeginEdit()
{
if (_snapshot != null)
return;

_snapshot = new MemoryStream();
_formatter.Serialize(_snapshot, _myState);
}

void IEditableObject.CancelEdit()
{
if (_snapshot == null)
return;

// Restore our state to the snapshot taken when the editing session began.
_snapshot.Position = 0;
_myState = _formatter.Deserialize(_snapshot) as MyData;
this.ThrowAwaySnapshot();
}

void IEditableObject.EndEdit()
{
this.ThrowAwaySnapshot();
}

void ThrowAwaySnapshot()
{
if (_snapshot != null)
{
_snapshot.Dispose();
_snapshot = null;
}
}

This code assumes the MyData type (and all of its ancestor types) is decorated with the Serializable attribute, since it is serialized by the BinaryFormatter.

The BeginEdit method starts with a check to see if we are already in an editing session. If so, it immediately returns since there can only be one editing session at a time. There is no guarantee regarding when and how often that method will be invoked, so this precautionary step is necessary. When a new editing session begins, a snapshot of the object's state is taken and stored in a MemoryStream.

If the user cancels the editing session, the CancelEdit method executes. That method deserializes the snapshot taken in BeginEdit, and applies the saved values to the editable object. If the IEditableObject instance contains the various fields being edited, instead of having a reference to one object that contains all the values, your CancelEdit method will include code that sets all of those fields to whatever values were saved in the BeginEdit method.

When the user completes an editing session (i.e. finishes editing a row in the grid) the EndEdit method is invoked. That gives us a chance to dispose of the snapshot data. Once the snapshot is removed, a subsequent call to BeginEdit will cause a new editing session to begin.

Monday, May 19, 2008

Doing a Planet transformation to a Pano foto.

1. Make the foto into a square using 'image size' by putting in the same number of pixels in the vertical axis.. uncheck constrain proportions..the image now looks a bit funky

2. Now flip 180

3 Go to filter effects and choose 'Distort......polar co-ordinates and press o.K and hey presto

this tip was given by one of the members in the Fredmiranda forum.

Friday, May 16, 2008

GPS Loggers - RBT 2300 and Holux M241 Reviewed in depth

Here is a details review of both the GPS logger models and read on to see which one is a clear winner over the other.

So I purchased the RBT-2300 and had some issues with the signal fix and one of my friend suggested to try the new Holux-M241, later realised the fix is due to the low signal level inside my apartment and its an issue with all GPS units.

My main use is for Geotagging photographs and also to be used as GPS with my Nokia N73.

Here are my observations on both the devices on a test I did this weekend.

Specs:
RoyalTek RBT-2300 with Nokia battery fully charged
Holux M-241 with Energiser lithium battery fully charged

Time to Acquire first fix:
Tried both inside my flat and first fix was difficult, so moved both the devices to my Balcony, RBT-2300 acquired the fix in approx 12 minutes and the Holux took 15 minutes.

Lock:
The RBT-2300 was able to lock to the signals more easily than the holux M-241 when i moved inside my apartment, Royaltek lost signal one in 10 compared to Holux losing 4 times in 10.

Logging:
RBT starts logging the moment you switch it on and the GPS is fixed, no hassles to wait for the fix and then press the start button to start logging.
Holux needs to get the fix first and then need to press the enter button to start logging.

Log size:
RBT : 180 days worth data or approx half million way points
Holux : 130,000

Battery life:
RBT using a Nokia batterly (860mAh) ran very good for 9 hours until the unit totally died.
Holux using the new Energiser lithium battery (approx 2800mAh) ran for 6 hours till it totally died.

Connecting to Smartphone:
Both the devices were very easy to connect to my Nokia N73 using bluetooth, got connected immediately without any problems.

Connecting to computer:
RBT provides only bluetooth and connected pretty well,
Holux uses both USB and bluetooth and connection was good.

Software:
RBT software is better then the Holux, remembers the selected Com port and also the folder location where GPS log file was last downloaded.

Downloading LOG files:
This is the main part where I started hating the Holux M-241, both took the same time to download using bluetooth, however the Holux files were empty without any log info in a previous test.

Reliability:
For any geotagging and logging purposes reliability of the data is more important, RBT has delivered proper ones till now and had no issues, but with the Holux, I was not able to download the data, this might be due to the fact that the battery got over and the unit switched off without stopping the log, now am not able to see the data in Holux, using the download tool, it crashes whenever I try to get the file.

Verdict:

Eventhough the looks of the Holux is better then the RBT, and the Holux has an attractive LCD display and many modes, it is clearly not a winner in the Geotagging scenario, may be it can be used as a GPS device for smartphones, but definitely never a reliable one for Geotagging, the reasons below.

1. For geotagging, i would prefer to switch on the device and start logging by default and if I dont want it, then I can switch it off, its ridiculous to wait for a signal and then to switch the logging on.

2. If the unit dies of low battery charge, I should atleast be able to get the proper log files from it, here Holux fails to impress.

Overall the new Holux M-241 is just a beauty with absolutely no brains and does not seem to be very useful for logging and Geotagging world with a highly unreliable performance.

Even though the RBT is simple and does not have any fancy display, it exactly does the job its claimed to do.

so anybody planning to buy the Holux M-241, please assess these facts and base your decision on what you mainly intend to use the GPS for, if visual display of the GPS details is not much of a bother to you, better go with the RBT-2300.

The Winner:

[b]RBT-2300 is a clear winner[/b] compared to the Holux M-241.

Wednesday, April 30, 2008

How to find if a c# DLL was built in Debug or Release mode.

**Here is the text from that site as is**

Was an Assembly Built in Debug or Release Mode?

Sometimes you find yourself wondering if an assembly was compiled with or without the /debug compiler option, in the case of the C# compiler. The following download link will allow you to download a small C# program that given the path to an assembly will print either debug more or release mode to the console.

http://msmvps.com/files/102443/download.aspx

Basically this is determined by looking at the IsJITTrackingEnabled property of the DebuggableAttribute class as applied to the assembly in question. This property returns true if the runtime will track information during code generation for the debugger; otherwise, false.

Thanks to Bill for providing a blog posting in VB that this C# solution is based upon.

Notes: Within the Visual Studio 2005 solution that can be downloaded from this blog posting you will find three C# projects. The first of these projects, DebugBuild, contains the actual program that establishes if an assembly was built with the debug or release modes. Also within the solution are two other projects, Debug and Release, that are intended to allow you to test the DebugBuild program. These projects are simply new C# projects with only the Debug or Release configuration set, nothing more interesting than that there. If you have any questions regarding this code please contact me through the blog.

Published Tuesday, June 20, 2006 2:21 PM by DougHolland

Monday, April 21, 2008

Bus rapid transit system... rapid transit for who?

Did somebody recently have a foreign trip and amazed at the happenings of the road thought of copying the same to implement it in our amazing India.
I agree the idea is right, but copying should be done properly, who asked for copy right issues, it sounds like take something, change a bit and there you have broken all copyright issues.

A bus lane in the middle of the road?, sounds ridiculous to me, on the footoges shown on NDTV, the dedicated bus route stands majestically right in the middle of the busy traffic road.

How do i get into the bus?
Thats a bit of adventure for you, try to dodge the trafic, escape from the trailer, have a narrow sneak at the whizzing car past you, this is not any video game, this how you need to get into the bus that stops the middle bus lane.

Cant somebody think logically with some common sense please?
Wake up India Wake up!!

Wednesday, April 09, 2008

Adventure in Ooty

Looks like an amazing place to have some adventure in Ooty
http://www.kingscliff-ooty.com/

Wednesday, January 24, 2007

Snow Snow Snow, its just Snow all over

Snow Snow Snow, its just Snow all over,
Woke up to an ecstatic sight,

The Roads are white,
The Cars are white,
The Trains are white,

The roofs are white,
The houses are white,

The Trees are white,
The track is white,
The Park is white,

Such an Ecstatic sight,
Falling down so light,
As far as the eyes can see, its all white,

As light as a feather,
So cool and breezy is the weather,

Snow Snow Snow, its just Snow all over,
Woke up to an ecstatic sight
Dancing to a lovely morning light.

Tuesday, January 23, 2007

Onions and the Mind - Simply synonymous

I was reading Jaggi's Mystic Musings and it took me into a journey of the Bhava Spandana and Silence programs and I just started to write my feelings, am not a poet, but just some words of the feelings about how I was feeling.
I could feel the tears in my eyes, am not crying for sure, it was out of joy, bliss.

This is just a dedication to Jaggi who taught me how to peel, I mean not the Onions!

-------------***-------------

Onions and the Mind
Similar do they Unwind

As do they Peel layer by layer
and do you Reveal layer by layer

When the hand works Meticulously on the Onions
When Emotions work Meticulously in the Mind

The strong stench is for sure
The mind is now so Obscure

As if in search of something inside the Onions
To find nothing inside the Mind

The more you peel, the more you feel
Tears flowing down like a veil

At last you are left with nothing to peel
Now do I have anything to feel

Gone are the peel
Shattered are the Feel

Absolute joy, absolute bliss
Its all there in this
Where is all this you may ask
Its in the very mind that you bask

-------------***-------------

Im now on my Own Blog

Now that i have coded up a simple blog on my own site, just thought to say, i will start my posts there....

Now the wanderings got a bit more freedom!

do visit it at www.kannanv.com

Friday, January 12, 2007

Sex and Spirituality

This was one of the posts I liked, posted by Deepak Chopra, the link to the original article is here - http://www.kavitachhibber.com/main/main.jsp?id=wisdom-Oct2005

I have copied the exact wordings from there to here...... Ctrl+C.....Ctrl+V

Sex and Spirituality
By Dr. Deepak Chopra, MD
(Courtesy of Dr. Deepak Chopra and Intentblog.com)
Recently I have started to write a contemporary version of the Kama Sutra. An ancient text that sees pleasure (kama) as one of the four goals of life. The other three being: Dharma which is harmony with the universe; Arth (material abundance) and Moksha (enlightenment). Before I started the book I thought I would put down any insights I personally had with you:1. Sexual energy is the primal and creative energy of the universe. All things that are alive come from sexual energy. In animals and other life forms, sexual energy expresses itself as biological creativity. In humans, sexual energy can be creative at all levels - physical, emotional and spiritual. In any situation, where we feel attraction, arousal, awakening, alertness, passion, interest, inspiration, excitement, creativity, enthusiasm, sexual energy is at work. When ever we feel these states of awareness, we must put our attention on the energy that we are experiencing, nourish it with our attention, experience it with joy and keep it alive in our awareness.
2. Sexual desire is sacred and chaste. The suppression of sexual energy is false, ugly and unchaste.
3. During sexual union, there is union between flesh and spirit.
4. Bliss, being carefree and playfulness are the essence of sex.
5. To improve your sexual experiences, get rid of your expectations.Expectations are primarily in three areas: 1) Performance, exemplified in the question, "How am I doing?" 2) Feeling, exemplified in the question, "How am I feeling?" 3) Security, exemplified in the question, "Do you love me?"
6. In sex, as in all areas of life, resistance is born of fear. All resistance is mental. It implies judgment against what is being felt. Sex becomes a problem when it gets mixed with hidden emotions such as shame, guilt and anger.
7. Sexual intimacy is the road to the taste or experience of true freedom, because it is the one area of life in which we can become completely uninhibited and free.
8. Sexual fulfillment occurs when the experience comes from playfulness instead of need. Frequently people bring their conflicts and needs into the sexual experience. When sex is used to fulfill needs, it leads to addiction. When sex comes from playfulness, the result is ecstasy. 9. All problems related to sex, neurosis, deviancy, sexual misbehavior, violence, abuse, can be traced to resistance, to suppression and repression, not to the sexual urges themselves. If we are allowed to discover our urges, desires and emotions, without outside inhibition, they won't go to extremes. Extremism, in any form, is a reaction to repression, inhibition and suppression. Aggression and violence are the shadow energies of fear and impotence.
10. Sex is a means of escaping our little self or ego. It is many peoples' only experience of meditation.
11. Meaningful sex has to be value based. Values are personal. Each situation that has sexual energy in it, involves the whole human being and their entire value system. My values may be different from yours, and I have no right to be the moral judge of anyone's values. It is important, however, to have core values, and respect them. Without values, we become spiritually bankrupt. Sexual experience will never cause problems and will always be joyful, if lovers share the same values.
12. True intimacy is union between flesh and flesh, between subtle body and subtle body, between soul and soul. Sexual energy is sacred energy. When we have restored the sexual experience to the realm of the sacred, our world will be chaste and divine, holy and healed.

Q: to Jaggi about Destiny?

Q: If everything is destined about our life, where is the scope or where is the need to use our intelligence?

Whoever told you everything is destined? Nothing is destined. It is just that unconsciously you have made yourself into a certain possibility. So, naturally, you are moving in that direction. This is not destiny; this is a blind man walking. You create certain tendencies within you with your unconsciousness, according to the tendencies you keep moving in that direction. This destiny that you are talking about is something that you created unconsciously; you can also create it consciously.

The very first moment when you utter the word spirituality, whether you realise that or not, what you are actually saying is ‘I want to take my destiny into my hands’. It doesn’t matter what my karma says. It doesn’t matter, what somebody in the heaven is going to say. ‘I want to move towards liberation.’ This is taking destiny into your hands. The moment you say ‘I want to walk a spiritual path’, you are saying ‘I want to take my destiny into my hands.’ If you want to go where you want to go, you better take your destiny into your hands; otherwise, you will exist here as an accidental being.
I know for a long time they have been telling you that God is making your destiny. Sitting there everyday and plotting your life for you. They told you many things like this but I think you are adult enough these days. They even told you your marriage was made in heaven (laughs), you believed it for three days. They have told you such things and got away with it.
There is no such thing as destiny. There is a limited sense of destiny working, there is no ultimate destiny. That is something that you have to choose. In a limited sense, the accumulations that you have within you form a certain attitude and tendency within themselves and it starts moving in that direction. It is not because somebody is guiding it in that direction. Simply because your tendencies are such, you are going that way.
Now, the river that is born on top of this mountain, at one place it’s a brook, at another place it’s a waterfall, in another place it is just a meandering river. Somewhere else, it’s become a wide estuary to join the ocean. In another place it’s become the ocean. Is this the river’s destiny? No, this is the water’s tendency. To constantly move from one place to another depending upon the levels that are there. If the oceans were placed high, the rivers wouldn’t go to the ocean.
I want you to strip yourself of all fancy stories and come to terms with life. The river is not longing to go to the ocean, although your poet said so. Water just finds its own level and keeps going, that’s all. If you dam it, the river is not sitting there and crying I want to go to the ocean. There is no such thing. It's poetry; let's enjoy the poetry, but reality is different. Enjoying poetry, enjoying the current realities around is one thing. When you are talking about reaching your ultimate reality, it’s a different thing.
Like they say in Zen; when you’re an ignorant person, rivers are just rivers; trees are just trees; mountains are just mountains; clouds are just clouds. Once you become a seeker, rivers are no more just rivers, trees are not just trees, mountains are not just mountains, clouds are not just clouds - everything has a different dimension to it. But if you reach, if you become enlightened, once again rivers are rivers, trees are trees, mountains are mountains, clouds are clouds. Then what is the point?
If you are ignorant, it is the same way, if you are enlightened it is the same way. Yes. An enlightened person is just as good as an utter fool, but completely in a different world. An enlightened person is not in any way special the way you know special, because your idea of special is adding parts to yourself. Isn’t it? Your idea of special is that you start identifying yourself with many things and become special. In that sense he is not special, he is more ordinary than the ordinary but it is a full circle. It’s a different dimension of existence all together.
Sadhguru Jaggi VasudevIsha Yoga CentreNew No.55, Moosa StreetT NagarChennai - 600 017Ph: 91-44- 24333185, 24348732

Thursday, January 11, 2007

Fate??

I am not a fatalist. I believe our lives can be as good (or as bad) as we want it. I am not very sure of the nature of the fate, that is whether it is predetermined or not. But I do assume one thing, that is it doesn’t serve anyone purpose to assume that everything in the world is predetermined. Even if our lives were pre-destined, it’s best if we assume that we are in control of our lives.

The above one was a pressing question in my mind and happened to see exactly the words that were resonating in my mind on one of my friends blog Anto.A.J....

so just posting it here...... planning to ask this question to Jaggi...

Monday, January 08, 2007

What is Love

-- By Anonymous

"If you love a person, how can you destroy his or her freedom? If you trust a person, you trust her or his freedom too.One day it happened that a man came to me who was really in a mess, very miserable. And he said, 'I will commit suicide.'I said, 'Why?'He said, 'I trusted my wife and she has betrayed me. I had trusted her absolutely and she has been in love with some other man. And I never came to know about it until just now! I have got hold of a few letters. So then I inquired, and then I insisted, and now she has confessed that she has been in love all the time. I will commit suicide' he said.I said, 'You say you trusted her?'He said, 'Yes, I trusted her and she betrayed me.'What do you mean by trust?—some wrong notion about trust; trust also seems to be political.'You trusted her so that she would not betray you. Your trust was a trick. Now you want to make her feel guilty. This is not trust.'He was very puzzled. He said, 'What do you mean by trust then, if this is not trust? I trusted her unconditionally.'I said, 'If I were in your place, trust would mean to me that I trust her freedom, and I trust her intelligence, and I trust her loving capacity. If she falls in love with somebody else, I trust that too. She is intelligent, she can choose. She is free, she can love. I trust her understanding.'What do you mean by trust? When you trust her intelligence, her understanding, her awareness, you trust it. And if she finds that she would like to move into love with somebody else, it is perfectly okay. Even if you feel pain, that is your problem; it is not her problem. And if you feel pain, that is not because of love, that is because of jealousy.What kind of trust is this, that you say it has been betrayed? My understanding of trust is that it cannot be betrayed. By its very nature, by its very definition, trust cannot be betrayed. It is impossible to betray trust. If trust can be betrayed, then it is not trust. Think over it.If I love a woman, I trust her intelligence infinitely. And, if in some moments she wants to be loving to somebody else, it is perfectly good. I have always trusted her intelligence. She must be feeling like that. She is free. She is not my other half, she is independent. And when two persons are independent individuals, only then there is love. Love can flow only between two freedoms.I have seen couples who have lived together for thirty or forty years; still, they seem to be as immature as they were on their first day together. Still the same complaint: "She doesn't understand what I am saying." Forty years being together and you have not been able to figure out some way that your wife can understand exactly what you are saying, and you can understand exactly what she is saying.But I think there is no possibility for it to happen except through meditation, because meditation gives you the qualities of silence, awareness, a patient listening, a capacity to put yourself in the other's position.It is possible with me: I am not concerned with the trivia of your life.You are here basically to listen and understand.You are here to grow spiritually.I was talking to a friend yesterday. There is a conflict between him and his wife. As is natural, he thought if he had married another woman there would not have been this state of affairs. Now this man has no experience of another woman. She exists only in imagination. The wife also feels the same way. She feels she has made a wrong choice. Another man would have made a better husband. In this case also, there is no experience of the other man. He is purely imaginary. Now we cannot have the experience of all the women in the world or all the men in the world, therefore, the illusion persists.I told my friend, "It is not a question of this woman or that woman. It is a question of your different natures. There is conflict in your dispositions. And it is the arrangement between a man and a woman that society has prescribed that is to be blamed for this, for it is an arrangement of ownership. Wherever we make permanent relationships, strife is bound to be, for the mind is most impermanent and relationships very permanent.I was traveling for twenty years in this country. I was staying in thousands of homes, and I saw it continuously: when the husband is not in the house, the wife seems to be very cheerful, very happy. The moment the husband enters the house she has a headache, and she lies down on the bed. And I was watching, because I was just staying in the house. Just a moment before, everything was okay—as if the husband has not entered but a headache has entered.Slowly slowly, I understood the logic. There is a great investment in it. And remember, I am not saying that she is simply pretending. If you pretend too long it can become a reality, it can become an autohypnosis. I'm not saying that she is not suffering from a headache, remember. She may be suffering: just the face of the husband is enough to trigger the process! It has happened so many times that now it has become an automatic process. So I am not saying that she is deceiving the husband; she is deceived by her own investments.You have a certain image and you don't want it to be changed, and criticism means again a disturbance.One of my friends was continually complaining to me about his wife; "She is always sad, long faced and I am so worried to enter the house…I try to waste my time in this club and that club but finally I have to go back home and there she is."I said to him, "Do one thing just as an experiment. Because she has been serious and she has been nagging, I cannot imagine that you enter the house smiling."He said, "Do you think I can manage that? The moment I see her something freezes inside me—smile?"I said, "Just as an experiment. Today you do one thing: take beautiful roses—it is the season; and the best ice-cream available in the city—tutti frutti; and go smiling, singing a song!"He said, "If you say so I will do it, but I don't think it is going to make any difference."I said, "I will come behind you, and see whether there is any difference or not."The poor fellow tried hard. Many times on the way he laughed. I said, "Why are you laughing?"He said, "I am laughing at what I am doing! I wanted you to tell me to divorce her and you have suggested I act as if I am going on a honeymoon!"I said, "Just imagine it is a honeymoon…but try your best."He opened the door and his wife was standing there. He smiled and then he laughed at himself because to smile…And that woman was standing almost like a stone. He presented the flowers and the ice-cream, and then I entered.The woman could not believe what was happening. When the man had gone to the bathroom she asked me, "What is the matter? He has never brought anything, he has never smiled, he has never taken me out, he has never made me feel that I am loved, that I am respected. What magic has happened?"I said, "Nothing; both of you have just been doing wrong. Now when he comes out of the bathroom you give him a good hug."She said, "A hug?"I said, "Give him one! You have given him so many things, now give him a good hug, kiss him…. "She said, "My God…. "I said, "He is your husband, you have decided to live together. Either live joyously or say goodbye joyously. There is no reason…it is such a small life. Why waste two person's lives unnecessarily?"At that very moment the man came from the bathroom. The woman hesitated a little but I pushed her, so she hugged the man and the man became so afraid he fell on the floor! He had never imagined that she was going to hug him.I had to help him up. I said, "What happened?"He said, "It's just that I have never imagined that this woman can hug and kiss—but she can! And when she smiled she looked so beautiful."Two persons living together in love should make it a point that their relationship is continuously growing, bringing more flowers every season, creating more joys. Just sitting together silently is enough….One of my friends was retiring; he was a big industrialist, and he was retiring because of my advice. I said, "You have so much and you don't have a son; you have two daughters and they are married in rich families. Now why unnecessarily bother about all kinds of worries—of business, and income tax, and this and that? You can close everything; you have enough. Even if you live one thousand years, it will do."He said, "That's true. The real problem is not the business, the real problem is I will be left alone with my wife. I can retire right now if you promise me one thing, that you will live with us.I said, "This is strange. Are you retiring or am I retiring?"He said, "That is the condition. Do you think I am interested in all these troubles? It is just to escape from my wife."The wife was a great social worker. She used to run an orphanage, a house for widows, and a hospital particularly for people who are beggars and cannot pay for their treatment. I also asked her in the evening, "Do you really enjoy all this, from the morning till the evening?"She said, "Enjoy? It is a kind of austerity, a self-imposed torture."I said, "Why should you impose this torture on yourself?" She said, "Just to avoid your friend. If we are left alone, that is the worst experience in life."And this is a love marriage, not an arranged marriage. They married each other against the whole family, the whole society, because they belonged to different religions, different castes; but their imprints gave them signals that this is the right woman, this is the right man. And all this happens unconsciously. That's why you cannot answer why you have fallen in love with a certain woman, or with a certain man. It is not a conscious decision. It has been decided by your unconscious imprint.Particularly people in India go on using women as if they are just servants. Their whole work consists of taking care of the children and the kitchen and the house, as if that's their whole life.Have you respected your wife as a human being?Then, if anger arises, it is natural. If she feels frustrated—because her life is running out and she has not known any joy, she has not known any bliss, she has not known anything that can give meaning and significance to her life….Have you just sat by her side sometimes, silently, just holding her hand, not saying a word, just feeling her, and letting her feel you? No, that is not done in India at all.Wives and husbands have only one kind of communication: quarreling. I have been acquainted with thousands of Indian families, I have stayed with thousands of Indian families. While I was traveling all over the country I was staying with so many families that I have come to know almost all kinds of families, but very rarely have I seen husbands and wives respectful to each other. Using each other, exploiting each other, reducing each other to things, but never respecting each other's divinity—then this hell is created.One of the great Hindu saints, Tulsidas, who is worshipped and read all over India by every Hindu, has a strange statement: Dhol gamar pashu aur nari. Ye sab tadan ke adhikari. He is categorizing women with drums—dhol means drum, gamar means idiots, pashu means animals, and nari means woman. All these four are constantly to be beaten. The dhol, the drum, will not work if you don't beat it. So for thousands of years Indian women have been beaten. It has been taken for granted, there is no question.I have come across situations where a husband was beating his wife and I could not tolerate it and I entered their house, and I was amazed: more than the husband, the wife was against me, saying, "He is my husband, you cannot interfere in our affairs. If he is beating me, it is perfectly okay."So deep has the conditioning gone.In Indian villages I have seen with my own eyes…In India you cannot marry a widow. It is really the same logic because if people start marrying widows then who cares about virginity? In a strange way widows look more beautiful. Perhaps they have to look more beautiful, otherwise who is going to be interested in them? Virgins are inexperienced, look childish; widows are experienced, well polished, more attractive. But in an Indian village, if you marry a widow, the whole village—which is still a tribe—boycotts you, and the boycott is total. You cannot take water from the village well, you cannot purchase anything from any village shop; nobody will welcome you into his home.The village will simply forget about you as if you don't exist. You cannot live; it is impossible. If you cannot purchase anything and nobody speaks to you, if you cannot even get water from the well, life has become impossible. What kind of freedom…?One man—he was one of my students in the University—told me that he would like to marry a widow. In India that is a problem. Nobody wants to marry a widow. So there are people who think that to marry a widow is a great sacrifice.I said, "You can marry, but once you have married she will not be a widow. Then what will you do? Then the whole charm will disappear because the charm is in her being a widow."He laughed—he thought I was joking. And he got married. And after six months he said, "You were right. I'm no more interested in her. My interest was basically in her widowhood. I wanted to show to the public that I am a great servant of people, that I am serving people even through my love. I am sacrificing my love for a widow. I am going against the society, I am going against the tradition. I am doing something great. But now the marriage has happened and the widow has come, now there is no point."I said,"You do one thing. You commit suicide. She will be a widow again, and somebody else will have a chance to serve her again. If you are really a public servant, do this." Since then I have not seen him.I am absolutely in favor of liberation—liberation for both man and woman—because it is a simple law: the enslaver also becomes a slave of his own slaves.Man has enslaved woman, but he has also become a slave. That's why you cannot find a husband who is not really henpecked—at least I have not found one yet. I have been searching for a husband who is not henpecked.Once I was on a journey and someone asked me which word in a man's vocabulary was the most valuable. My reply was, "Love". The man was surprised. He said he had expected me to answer "soul" or "God". I laughed and said, "Love is God."Raising on the ray of love one can enter the enlightened kingdom of God. It is better to say that love is God than to say that truth is God, because the harmony, the beauty, the vitality and the bliss that are part of love are not part of truth. Truth is to be known; love is to be felt as well as known. The growth and perfection of love lead to the ultimate merger with God.The greatest poverty of all is the absence of love. The man who has not developed the capacity to love lives in a private hell of his own. A man who is filled with love is in heaven. You can look at man as a wonderful and unique plant, a plant that is capable of producing both nectar and poison. If a man lives by hate he reaps a harvest of poison; if he lives by love he gathers blossoms laden with nectar.If I mold my life and live it with the well-being of all men in mind, that is love. Love results from the awareness that you are not separate, not different from anything else in existence. I am in you; you are in me. This love is religious.The doors of love only open for the person who is prepared to let his ego go. To surrender one's ego for someone else is love; to surrender one's ego for all is divine love.Love is not sexual passion. Those who mistake sex for love remain empty of love. Sex is only a passing manifestation of love. It is part of nature's mechanism, a method of procreation. Love exists on a higher plane, and as love grows, sex dissipates. The energy that has been manifested in sex is transformed into love.Love is the creative refinement of sex energy. And so, when love reaches perfection, the absence of sex automatically follows. A life of love, an abstinence from physical pleasures is called brahmacharya, and anyone who wishes to be free from sex must develop his capacity to love. Freedom from sex cannot be achieved through supression. Liberation from sex is only possible through love.I have said that love is God. This is the ultimate truth. But let me say as well that love also exists within the family unit. This is the first step on the journey to love, and the ultimate can never happen if the beginning has been absent. Love is responsible for the existence of the family and when the family unit moves apart and its members spread out into society, love increases and grows. When a man's family has finally grown to incorporate all of mankind, his love becomes one with God.Without love man is an individual, an ego. He has no family; he has no link with other people. This is gradual death. Life, on the other hand, is interrelation.Love surpasses the duality of the ego. This alone is truth. The man who thirsts for truth must first develop his capacity to love—to the point where the difference between the lover and the beloved disappears and only love remains.When the light of love is freed from the duality of lover and the beloved, when it is freed from the haze of seer and seen, when only the light of pure love shines brightly, that is freedom and liberation".

Tuesday, January 02, 2007

Italy fotos

Italy fotos posted on my site, do have a look.

Thursday, December 21, 2006

The Seven basic chakras (a bit technical)

The Seven basic chakras (http://en.wikipedia.org/wiki/Chakra)

Sahasrara

Sahasrara or the crown chakra is said to be the chakra of consciousness, the master chakra that controls all the others. Its role would be very similar to that of the pituitary gland, which secretes hormones to control the rest of the endocrine system, and also connects to the central nervous system via the hypothalamus. The thalamus is thought to have a key role in the physical basis of consciousness. Symbolised by a lotus with a thousand petals. Color violet.

Ajna

Ajna or the third eye is linked to the pineal gland. Ajna is the chakra of time and awareness and of light. The pineal gland is a light sensitive gland, that produces the hormone melatonin, which regulates the instincts of going to sleep and awakening. It has been conjectured that it also produces trace amounts of the psychedelic chemical dimethyltryptamine. Symbolised by a lotus with two petals. Color- indigo

(Note: some argue that the pineal and pituitary glands should be exchanged in their relationship to the Crown and Brow chakras, based on the description in Arthur Avalon's book on kundalini called Serpent Power or empirical research.)

Vishuddha

Vishuddha or the throat chakra is said to be related to communication and growth, growth being a form of expression. This chakra is paralleled to the thyroid, a gland that is also in the throat, and which produces thyroid hormone, responsible for growth and maturation. Symbolised by a lotus with sixteen petals. Color- blue

Anahata

Anahata or the heart chakra is related to higher emotion, compassion, love, equilibrium, and well-being. It is related to the thymus, located in the chest. This organ is part of the immune system, as well as being part of the endocrine system. It produces T cells responsible for fighting off disease, and is adversely affected by stress. Symbolised by a lotus with twelve petals. Color- Green

Manipura

Manipura or the solar plexus chakra is related to the transition from base to higher emotion, energy, assimilation and digestion, and is said to correspond to the roles played by the pancreas and the outer adrenal glands, the adrenal cortex. These play a valuable role in digestion, the conversion of food matter into energy for the body. Symbolised by a lotus with ten petals. Color- yellow

Swadhisthana

Swadhisthana or the sacral chakra is located in the groin, and is related to base emotion, sexuality and creativity. This chakra is said to correspond to the testicles or the ovaries, that produce the various sex hormones involved in the reproductive cycle, which can cause dramatic mood swings. Symbolised by a lotus with six petals. Color- Orange

[edit] Muladhara

Muladhara or the base or root chakra is related to instinct, security, survival and also to basic human potentiality. This centre is located in the region between the genitals and the anus. Although no endocrine organ is placed here, it is said to relate to the inner adrenal glands, the adrenal medulla, responsible for the fight and flight response when survival is under threat. In this region is located a muscle that controls ejaculation in the sexual act. A parallel is drawn between the sperm cell and the ovum, where the genetic code lies coiled, and the kundalini. Symbolised by a lotus with four petals. Color Red

7 chakras of the human body

The seven chakras are energy centers that dwell within us and are responsible for bringing and maintaining balance in our bodies and lives. Each of the seven centers carry out different functions. Listed below are the seven main chakras and the subsequent roles they carry out in your body and spirit.

The seventh chakra: (self knowledge, universal identity, thought) This is the greatest charka of them all, providing a bridge towards a bigger far better world. A charka linked with self consciousness that when built upon reveals improvements in wisdom, bliss and spiritual connection.

The sixth chakra: (light self, reflection ) The charka also known as a the third eye and is closely linked to your vision and intuitively sharpness, the development of this charka reveals increased mental and physical abilities that help you se life more clearly.

The fifth chakra (creative, sound, self expression) Found in the throat region, this charka is linked with creativity and art, also liked to sound and the sounds we produce, be it words or song

The fourth chakra(self acceptance, air, identity) This is a charka dedicated to the heart and it is the one in the middle, has a strong connection with love feelings and binds the mind and the body together. If developed it allows for strong true feelings and a well balanced personality

The third chakra( ego, self definition and fire) The charka that holds the key to power and it is located in the plexus. This charka has a strong link with our power over others and our body's metabolism. Keep this charka healthy and it will bring you effectiveness and energy

The second chakra( self gratification, water, emotional identity) This charka is located in the abdomen ,sexual organs and lower back, it governs sexual emotions and the element of water, connects us to other people through desire, feeling, movement. With this charka developed you will benefit from sexual performance, grace, deep feelings and willingness to change

The first chakra(self preservation , earth, physical identity) The first and basic charka and also the most important, linked to the earth element . Located in the spine, more precisely at the base of it the first chakra is the root of our survival instincts and the connection with our body and mind. Develop this charka as it will bring you presence, security, prosperity and health.

Friday, January 13, 2006

Just a discussion on what to use for reading XML....

From: Venkataramani, Kannan (Infosys) Sent: 14 December 2005 10:08To: 'Vikram Abrol'Subject: RE: Fetching XML data
Hi Vikram,

Q1. XpathDocument is a light weight class.

This means that the class does not have numerous methods and properties that consume more memory when you iniialize an instance of a class.
The object of this class are so less.

XPathDocument Class
XPathDocument Constructor
XPathDocument Constructor (Stream)
XPathDocument Constructor (String)
XPathDocument Constructor (TextReader)
XPathDocument Constructor (XmlReader)
XPathDocument Constructor (String, XmlSpace)
XPathDocument Constructor (XmlReader, XmlSpace)
Methods
XPathDocument.CreateNavigator Method

It just has one simple method and no properties as well, this is the meaning of a light weight class.

Q2. Less Footprint

When ever you try to work with XML data using different class, what happens is this, the XML document is de-serialized or read based on the type of parsing you use, during this operation, the elements are either stored as string equivalents then boxed and unboxed as and when required.
the XPathDocument has the schema information stored and the corresponding elements are stored as CLR equivalents.

So Footprint means this class trying to box and unbox variables, this requires some CPU time as well as memory, the less the memory used, less is the footprints.

In simple terms, you go to different shops to buy different items, you have more footprints than buying all items in the same shop.

Q3. Xpath and Xquery

i have a couple of links for you, these might xplain u better.
http://www.xml.com/pub/a/2002/01/02/xquery.html
http://www.db2mag.com/story/showArticle.jhtml?articleID=12803228
http://www.gnu.org/software/qexo/XQuery-Intro.html

What reader to use to read XML files.

CHOICES
PROS
CONS
XmlTextReader
-Fastest-Most efficient (memory)-Extensible
-Forward-only-Read-only-Requires manual validation
XmlValidatingReader
-Automatic validation-Run-time type info-Relatively fast & efficient(compared to DOM)
-2 to 3x slower than XmlTextReader-Forward-only-Read-only
XmlDocument (DOM)
-Full traversal -Read/write -XPath expressions
-2 to 3x slower than XmlTextReader/XmlValidatingReader-More overhead than XmlTextReader/XmlValidatingReader
XPathNavigator
-Full traversal-XPath expressions-XSLT integration-Extensible
-Read-only -Not as familiar as DOM
XPathDocument
-Faster than XmlDocument -Optimized for XPath/XSLT
-Slower than XmlTextReader

Hope this helps you
Kannan.V
[MCSD.NET]
From: Vikram Abrol [mailto:Vikram_Abrol@infosys.com] Sent: 14 December 2005 05:43To: Kannan VSubject: RE: Fetching XML data
Thanks Kannan , it helps when you say performance of one is better than another , but if this is the case then when is XmlDocument used ?
A few q: inline also..

From: Kannan V Sent: Monday, December 12, 2005 7:20 PMTo: Vikram AbrolSubject: RE: Fetching XML data

Hi Vikram,

Generally in the set of close cut answers, the most appropriate and most performance oriented one will be the choice, look below for why C is the correct answer among all others.

Use XMLReader/XMLWriter in performance oriented scenarios. Validation could be performed with XMLValidatingReader. You will pay development cost for speed.
XPathDocument is a light weight class [ What do you mean by this ? ] and the reason you want to use it is this.Reasons:1. In .NET 2.0 it becomes Read/Write.2. XPathDocument optimized for XSLT and XPath processing, has less footprint [ What do you mean by saying it has less footprint ?, resulting in much better performance relative to XmlDocument. In some cases it will perform 10 times faster, and becomes even faster in Whidbey.3. In .NET 2.0 can be used with XQueries [ Is there any diff. between Xpath & Xquery ? ].

For more information on the different methods and their performance.
----------------------------------------------------------------------
Can you explain in simple terms the below gist ?
Check this blog http://blogs.msdn.com/mfussell/archive/2004/2/23.aspx , but would appreciate how XmlReader, XmlWriter and XPathDocument classes differ in performance in concept of having xml types used as CLR type ?

XmlReader, XmlWriter and importantly the XPathDocument classes all have schema information stored. This means that when you load an XML document from a validating reader with an associated schema, we are able to store the XML types as CLR types. For example if the XML schema indicates that the values are of type xs:int these are stored as CLR int types in the XPathDocument, rather than as untyped strings. Not only does this enable you to work with the types in your CLR language of choice, but it reduces the storage and working set of the document loaded into memory, dependent your type of data of course. Importantly if you apply an XSLT or XQuery to the XPathDocument and use this to generate another XPathDocument, these CLR types are “flowed” between components in that they are not first copied to string values and then reparsed through a text XML parser. This provides a significant performance improvement when chaining XML components together that utilize schema type information.
Hope this helps...
Kannan.V
[MCSD.net]

From: Vikram AbrolPosted At: Mon 12/12/2005 16:25Posted To: ASP-ASP.NetConversation: Fetching XML dataSubject: Fetching XML data
You are creating a Web site .

You receive product lists in the form of XML documents. You are creating a procedure to extract information from these XML documents according to criteria that your users will select.
When a user makes a request, you want the results of these requests to be returned as quickly
as possible.
What should you do?


Ans C is correct…

my Question is Why D is incorrect ??


A. Create an XmlDataDocument object and load it with the XML data.
Use the DataSet property of the object to create a DataSet object.
Use a SQL SELECT statement to extract the requested data.
B. Create an XmlDataDocument object and load it with the XML data.
Use the SelectNodes method of the object to extract the requested data.
C. Create an XPathDocument object and load it with the XML data.
Call the CreateNavigator method to create an XPathNavigator object.
Call the Select method of the XPathNavigator object to run an XPath query that extracts the
requested data.
D. Create an XmlReader object.
Use the Read method of the object to stream through the XML data and to apply an XPath
expression to extract the requested data.

Thursday, January 05, 2006

Demystifying the GAC

Came across a good link for details on the GAC.

http://www.codeproject.com/dotnet/DemystifyGAC.asp

Monday, December 05, 2005

Recovering Shift+Deleted Mails from outlook

Go to Run and type regedit

2) Go to:
\HKEY_LOCAL_MACHINE\SOFTWARE\MICROSOFT\EXCHANGE\CLIENT\OPTIONS registry key.

3) Right click options and add new DWORD VALUE (data type is REG_DWORD) and then right click and rename to DumpsterAlwaysOn. It is case sensitive.

4) Then right click and modify the value to 1 to turn the Recover Deleted Items menu choice on for all folders or enter 0 to turn it off.

5) Then go to Outlook , choose "Recover deleted items" option from the Tools
Menu to get back your "permanently deleted" mails!

Wednesday, September 28, 2005

A Gift..........

A Gift . . .

What have I done,
to deserve this gift I've received..?
It is a gift without comparison,
that is more precious to me than can be believed.

I don't know why I've been blessed,
with such a heavenly gift.
And if this is truly a dream,
then I never want this sleep to lift.

Why you chose to give me this gift,
is more than I can see.
But in return I promise,
that you will never lose me.

I will stay by you always;
never letting you fall.
And if you are ever in danger,
I will defend you until I fall.

For you are a gift,
that I hope never to lose.
And for as long as I live I'll know,
no gift in this world deserves to be cherished more than you . . .

Tuesday, September 27, 2005

Moving or deleting the ViewState from the page

' This method overrides the Render() method for the page and moves the viewstate ' from its default location at the top of the page to the bottom of the page.
This ' results in better search engine spidering. '

Protected Overrides Sub Render(ByVal writer As System.Web.UI.HtmlTextWriter)
Dim stringWriter As System.IO.StringWriter = New System.IO.StringWriter
Dim htmlWriter As HtmlTextWriter = New HtmlTextWriter(stringWriter)
MyBase.Render(htmlWriter)
Dim html As String = stringWriter.ToString()
Dim StartPoint As integer = html.indexOf("
("Dim EndPoint As integer = html.indexOf("/>", StartPoint) + 2
Dim viewstateinput As String = html.Substring(StartPoint, EndPoint - StartPoint)
html = html.Remove(StartPoint, EndPoint - StartPoint)
Dim FormEndStart As integer = html.indexOf("") - 1
If FormEndStart >= 0
Then html = html.insert(FormEndStart, viewstateinput)
End If
End If
writer.Write(html)
End Sub

Wednesday, September 14, 2005

Unwritten Laws - But very true.

Law of Mechanical Repair:
After your hands become coated with grease, your nose will begin to itch.

Law of the Telephone:
When you dial a wrong number,you never get an engaged one.

Law of the Alibi:
If you tell the boss you were late for work because you had a flat tire, the next morning you will have a flat tire.

Variation Law:
If you change queues, the one you have left will start to move faster than the one you are in now.

Bath THEOREM
When the body is immersed in water , the telephone rings.

LAW OF CLOSE ENCOUNTERS The probability of meeting someone you know increases when you are with someone you don't want to be seen with.

LAW of the RESULT
When you try to prove to someone that a machine won't work, it will.

LAW OF BIOMECHANICS
The severity of the itch is inversely proportional to the reach.

THEATRE RULE At any event, the people whose seats are furthest from the aisle arrive last.

LAW OF COFFEE
As soon as you sit down to a cup of hot coffee, your boss will ask you to do something which will last until the coffee is cold.

Tuesday, September 06, 2005

Doing Interop with Win32 APIs in DotNet

PINVOKE.NET attempts to address the difficulty of calling Win32 or other unmanaged APIs in managed code (languages such as C# and VB .NET). Manually defining and using PInvoke signatures (also known as Declare statements in VB) is an error-prone process that can introduce extremely subtle bugs. The rules are complex, and if you make a mistake, you’ll probably corrupt memory.
Therefore, this site is a repository where you can find, edit, and add PInvoke signatures, user-defined types, and any other information that helps us leverage each other's efforts. Think of this as the 21st century version of VB6's "API Text Viewer," a standalone application which used static files such as WIN32API.TXT as input. Did you spend hours figuring out how to successfully define & call a given unmanaged API in managed code? Share (and get credit for) your discovery here! Is there an error on this site? Go ahead and fix it!

Thursday, August 25, 2005

A Poem to my Dear Friend(s).......

Dear Friend . . .

We might not meet, we might not chat,
but we would still be friends,
you better don't forget that..

Times would go passing by,
changes would come with you and I,
our lives destiny would shape,
as with time progress we make.

Distance would take us away miles & miles,
we might not even see each others smiles.
We might not help each other;
but still let not,our friendship wither..

Remember the moments which we share..
no matter, now you are where
you would then miss me
but in your memories I will be..

The magic of friendship would call me
and I would miss you then
thinking..
together we would be when . .