Thursday, December 29, 2016

Fundamentally, I am good

'We can begin to understand that we can be with those feelings of failure - to allow those feelings- and even train ourselves to say, "I haven't done anything wrong; I'm not a bad person . I'm not a failure; I'm not a mess-up; I haven't blown it." Or, "Fundamentally, I am good, and I can allow this feeling; I can experience this feeling . I can stay with this feeling for now, maybe two seconds , or maybe four seconds, or maybe even longer."'

- Pema Chodron in "fail fail again fail better"

Saturday, December 17, 2016

Failure and it's hurt is something that happens to us from outside?

"I think the most significant thing about it is that we usually think of it (failure and its hurt) as something that happens to us from the outside, right?"

- Pema Chodron in "fail fail again fail better" 

Tuesday, August 25, 2015

Daily Focus Blocks

"The focus block method...has you block off a substantial chunk of time, most days of the week, for applying sustained focus to your most important creative tasks...The key twist is that you mark this time on your calendar like any other meeting. This is especially important if your organization uses a shared calendar system.
Now, when someone tries to schedule something during these times, you can defer to your existing, clearly marked obligation: "Sorry, I'm already booked from nine to twelve that day." Similarly, if someone complains that you were slow to respond to an e-mail, or didn't pick up the phone, you have a socially acceptable excuse "I was booked all morning and am just seeing this now." People are used to the idea that they cannot demand your attention during times when you already have a scheduled appointment...
Blocking off time for uninterrupted focus, however, is only half the battle. The other half is resisting distractions. This means no e-mail, no Internet and no phone...If you've been immersed in distraction for years, you need to train yourself before you can work for long periods without it. A few tips can help you in this effort:
Start with small blocks of focused time and then gradually work yourself up to longer durations...begin with an hour at a time, then add fifteen minutes to each session every two weeks. The key, however, is to never allow distraction. If you give in and quickly check Facebook, cancel the whole block and try again later. Your mind can never come to believe that even a little bit of distraction is okay during these blocks.
Tackle a clearly identified and isolated task...
Consider using a different location for these blocks. Move to a different room, or a library, or even a quiet place outside to perform your focused work. When possible, do your work with pen and paper to avoid even the possibility of online distraction."

- "Manage Your Day-to-Day: Build Your Routine, Find Your Focus, and Sharpen Your Creative Mind (The 99U Book Series)" by Jocelyn K. Glei and 99U

Wednesday, November 26, 2014

To lean toward the very edge of what wants to be born through us

"Becoming fully ourselves requires that we wrestle with our fear and sense of inadequacy, and yet continue to lean toward the very edge of what wants to be born through us. To live an authentic life and really give your gifts to this world requires a healthy balance of spontaneity and the development of self-discipline."

-- mindful discipline by Shauna Shapiro & Chris White

Saturday, September 06, 2014

Life's in-between moments

"Now (after meditating for a while) I started to see life's in-between moments - sitting at a red light, waiting for a my crew to get set up for an interview - as a chance to focus on my breath, or just take in my surroundings. As soon as I began playing this game, I really noticed how much sleepwalking I did, how powerfully my mind propelled me forward or backward. Mostly, I saw the world through a scrim (a piece of gauze cloth that appears opaque until lit from behind, used as a screen or backdrop) of skittering (move lightly and quickly or hurriedly) thoughts, which created a kind of buffer between me and reality. As one Buddhist author put it, the "craving to be otherwise, to be elsewhere" permeated my whole life."

- 10% Happier by Dan Harris

Friday, September 05, 2014

Every moment ... an opportunity for a do-over

"(after meditating for a while)...Pretty quickly, my efforts began to bear fruit "off the cushion,"...I started to be able to use the breath to jolt myself back to the present moment - in airport security lines, waiting for elevators, you name it. I found it to be a surprisingly satisfying exercise. Life became a little bit like walking into a familiar room where all the furniture had been rearranged. And I was much better at forgiving myself out in the real world than while actually meditating. Every moment was an opportunity for a do-over. A million mulligans (A Mulligan, in a game, happens when a player gets a second chance to perform a certain move or action; usually due to lack of skill or bitter luck. A "Do-Over")."

- 10% Happier by Dan Harris

Thursday, September 04, 2014

Meditation Instructions

"1. Sit Comfortably. You don't have to be cross-legged. Plop yourself in a chair, on a cushion, on the floor - wherever. Just make sure your spine is reasonably straight.
2. Feel the sensations of your breath as it goes in and out. Pick a spot: nostrils, chest, or gut. Focus your attention there and really try to feel the breath. If it helps to direct your attention, you can use a soft mental note, like "in" and "out".
3. This one, according to all of the books I read, was the biggie. Whenever your attention wanders, just forgive yourself and gently come back to the breath. You don't need to clear the mind of all thinking; that's pretty much impossible. (True, when you are focused on the feeling of the breath, the chatter will momentarily cease, but this won't last too long.) The whole game is to catch your mind wondering and then come back to the breath, over and over again."

- 10% Happier by Dan Harris

Wednesday, September 03, 2014

Painful practice for a pleasurable race

"MWG (Marvin Goldberg - the author's coach) taught his athletes to love self-discipline and to beware of the temptations of self-indulgence.
"I want to make your practice painful," he would say, "so that the race will be a pleasure." It was his way of reminding us that life is full of occasional hardships. We should get used to it.
Self-discipline was an issue in every part of life, in little things as well as big. One minute, self-discipline might mean pushing to break a personal record on the track. In another moment, it might be a matter of seemingly insignificant details."

- A Resilient Life by Gordon Macdonald

Convince ourselves that we had far more stamina than we believed we had

"One day he (Marvin Goldberg - the author's coach) said to his cross-country team, "When you near the finish line tomorrow, I want you to sprint, even if no one is near you, and I want you to continue running a good pace for another quarter mile past the finish line."... It was meant to convince us that we had far more stamina than we believed we had. And furthermore, it was to teach us the importance of finishing any kind of race in life with vigor and to exceed the minimum requirements."

- A Resilient Life by Gordon Macdonald


The route to true happiness is by understanding impermanence

"The Buddha was... promising salvation...through the embrace of the very stuff that will destroy us. The route to true happiness, he argued, was to achieve a visceral understanding of impermanence, which would take you off the emotional roller coaster and allow you to see your dramas and desires through a wider lens.Waking up to the reality of our situation allows you to , as the Buddhists say, "let go," to drop your "attachments." As one Buddhist writer put it, the key is to recognize the "wisdom of insecurity.""

- 10% Happier by Dan Harris

Tuesday, September 02, 2014

Impermanence

"The Buddha's main thesis was that in a world where everything is constantly changing, we suffer because we cling to things that won't last. A central theme of the Buddha's "dharma" (which roughly translates to "teaching") revolved around the very word that had been wafting through my consciousness when I used to lie on my office couch, pondering the unpredictability of television news: "impermanence." The Buddha embraced an often overlooked truism: nothing lasts - including us. We and everyone we live will die. Fame fizzles, beauty fades, continents shift. Pharaohs are swallowed by emperors, who fall to sultans, kings, kaisers and presidents - and it all plays out against the backdrop of an infinite universe in which our bodies are made up of atoms from the very first exploring stars. We may know this intellectually, but on as emotional level we seem to be hardwired for denial."

- 10% Happier by Dan Harris

Monday, September 01, 2014

Monkey Mind

(The Buddhists) "compiled meticulous lists: The Three Characteristics of All Phenomena, the Four Noble Truths, The Four Highest Emotions, The Seven Factors of Enlightenment, etc. They also came up with names for so many of the mental habits I'd come to notice in myself, such as "comparing mind," and "wanting mind." They had a term, too, for that thing I did where something would bother me and I would immediately project forward to an unpleasant future... the Buddhists called this prapanca (pra-PUN-cha), which roughly translates to "proliferation," or "the imperialistic tendency of mind." That captures it beautifully, I thought: something happens, I worry, and that concern instantaneously colonizes my future. My favorite Buddhist catchphrase, however, was the one they used to describe the churning of the ego: "monkey mind"."

Lurch headlong from one pleasurable experience to the next without ever achieving satisfaction

"We are constantly murmuring, muttering, scheming or wondering to ourselves under our breath," wrote (Dr. Mark) Epstein. "'I like this. I don't like that. She hurt me. How can I get that? More of this, no more of that.' Much of our inner dialogue is this constant reaction to experience by a selfish, childish protagonist. None of us has moved very far from the seven-year-old who vigilantly watches to see who got more." There were also delightful passages about the human tendency to lurch headlong from one pleasurable experience to the next without ever achieving satisfaction. Epstein totally nailed my habit of hunting around my plate for the next bite before I'd tasted what was in my mouth. As he described it, "I do not want to experience the fading of the flavor - the colorless, cottony pulp that succeeds that spectacular burst over my taste buds."

- 10% Happier by Dan Harris

Wednesday, August 20, 2014

Understand that the present moment is what it is and then do what you need to do

"So, you're not saying sit around, let everything wash over you, let people cut you off in your car. You're saying understand that it is what it is right now--" (Dan Harris)

"And then do what you need to do,"..."Make the present moment your friend rather than your enemy. Because many people live habitually as if the present moment were an obstacle that they need to overcome in order to get to the next moment. And imagine living your whole life like that, where always this moment is never quite right, not good enough because you need to get to the next one. That is continuous stress." Eckhart Tolle

- 10% Happier by Dan Harris

Tuesday, August 19, 2014

Gusts of wind

"... what if somebody cuts you off in your car?" (Dan Harris)
"It's fine. It's like a sudden gust of wind. I don't personalize a gust of wind, and so it's simply what is." (Eckhart Tolle)

- 10% Happier by Dan Harris

Monday, August 18, 2014

whatever was coming next would definitely be better

"...in a deadline-dominated world of news, I was always hurtling headlong through the day, checking things off my to-do list, constantly picturing completion instead of calmly and carefully enjoying the process. The unspoken assumption behind most of my forward momentum was that whatever was coming next would definitely be better. Only when I reached that ineffable ... whatever ... would I be totally satisfied."

- 10% Happier by Dan Harris

Saturday, May 10, 2014

The great curse

"The great curse, though, is that, as I's learned on 9/11, you come to see these events, at least in part, through the lens of self-interest. Did I get to go? Did I perform well? This psychology was not discussed much in all the autobiographies of legendary journalists that I's read, but it was nonetheless real."

- 10% Happier by Dan Harris

We expend most of our energy competing with our own colleagues

"As outsider might assume that we journalists spend most of our time competing with people from other networks. In actuality, we expend most of our energy competing with our own colleagues. In order to retain my spot on the front lines, I found myself vying against fellow correspondents like David Wright, another young reporter who'd recently arrived from local news. He was aggressive and smart, and I kind of resented him for it... during a period in which David was kicking ass over in Afghanistan and I was stuck in New York, I could barely bring myself to watch the news."

- 10% Happier By Dan Harris

When you're covering a news story there's a tendency to feel bulletproof

If gunshots had gone off in a situation where I was not on the job, I would have wet my pants. I had no record of courage in my personal life...When you're covering a news story, however, there's a tendency to feel bulletproof. It's as if there's a buffer between you and the world, as exponentially more dangerous variant of the unreality you feel when taking a stroll while listening to your iPod. In the context of combat, my reflex to worry had been completely overridden by my desire to be part of the big story."

- 10% Happier by Dan Harris

Hypervigilance prolongs life but makes it less enjoyable

"...the balance between stress and contentment was life's biggest riddle. On the one hand, I was utterly convinced that the continuation of any success I had achieved was contingent upon persistent hypervigilance. I figured this kind of behavior must be adaptive from an evolutionary standpoint - caveman who worried about possible threats, real or imagined, probably survived longer. On the other hand, I was keenly aware that while this kind of insecurity might prolong life, it also made it less enjoyable."

- 10% Happier By Dan Harris

Wednesday, April 16, 2014

To which "self" should we be true to?

"...to which "self" are we to be true?...Is it the one who speaks from the dark recesses of the heart when we're depressed or upset, or the one that appears during those fleeting moments when life seems so fanciful and light?"

- Michael A. Singer in "The Untethered Soul: The Journey Beyond Yourself"

Tuesday, January 21, 2014

Faith is taking the first step when you don't see the whole staircase

"Faith is taking the first step when you don't see the whole staircase"

- Martin Luther King Jr.

Sunday, October 06, 2013

A safe haven to hone skills

"The Talent Code" book significantly stresses the importance of a safe haven to practice deeply, make errors and learn from them (a.k.a being at the edge of one's ability) without paying a huge cost (of life or public ridicule). Could not agree more.

Practice more deeply, to stop, struggle, make errors, and learn from them

Edwin Link's trainer (a jet aircraft trainer for pilots) worked so well "... because it "permitted pilots to practice more deeply, to stop, struggle, make errors, and learn from them. During a few hours in a Link trainer, a pilot could "take off" and "land" a dozen times on instruments. He could dive, stall, and recover, spending hours inhabiting the sweet spot at the edge of his capabilities in ways he could never risk in an actual plane."

- The Talent Code by Daniel Coyle

Greatness by spending vast amounts of time and energy being immature

Great writers "become great writers not in spite of the fact that they started out immature and imitative but because they were willing to spend vast amounts of time and energy being immature and imitative, building myelin in the confined, safe space of their little books."

- The Talent Code by Daniel Coyle

Deep practice X 10,000 hours = world-class skill

"The true expertise of ... geniuses, the research suggests, resides in their ability to deep-practice obsessively, even when it doesn't necessarily look like they're practicing.
...
Deep practice X 10,000 hours = world-class skill"

- The Talent Code by Daniel Coyle

Saturday, October 05, 2013

"Buying Time"

"The more effective and competent you feel, the more you think you've accomplished, which makes your remaining time feel more expansive, Mogilner explains... If you get a lot done in an hour, you tend to imagine how much you'll be able to do during the rest of the day."

- Psychology Today

A Good Apology

"Social psychologist Steven Scher of Eastern Illinois University has identified five main elements of apologies: a simple expression of regret ("I'm sorry" "I apologize" or "Excuse me"); an explanation or account of the cause that brought about the violation ("I forgot to call you the other day with the information"); an expression of the speaker's responsibility for the offense ("what I did was wrong"); a promise of forbearance ("I promise nothing like this will happen again"); and an offer of repair ("What can I do to make it up to you?")"

- Psychology Today

Persuasion

"When you want to change someone's mood, mind or willingness to act, ask yourself not "How can I win this argument?" but "How can I win agreement without anger?" says rhetorics expert Jay Heinrichs, author of Thank you for Arguing... Figure out what you want, then go about getting it.

"Never debate the undebatable," he says. "Instead, focus on goals." Control the mood with volume, tone, stories. Watch for persuadable moments, And most important, be agreeable -- express similarities and shared values; show people that you have their best interest, as well as your own, at heart.

And never discount the power of bringing up someone's peer group, says Robert Cialdini, Arizona State University psychologist turned consultant, who wrote the book on persuasion (Influence: The Psychology of Persuasion). He points to an energy company that placed monthly hangers on doors to let people know where they stood on energy use compared to their neighbors - and reduced usage by 3.5 percent. "It's not peer pressure as much as 'social evidence," says Heinrichs. Evolutionarily, it's proven smart to do what those around us in similar situations have done."

- Psychology Today

The correct praise

"Praising someone's ability to work hard is more effective than gushing about how brilliant she is. Research shows that kids who are praised for their intelligence do not try as hard on future tasks. Praising smarts breeds the belief that things should come naturally - and when they don't, kids think they are no longer bright. Or they choose unchallenging paths so as not to be exposed as "frauds."

"Being praised for effort or other aspects of performance directly under your control leads to resilience, while being praised for being smart or for other innate abilities can lead to feelings of helplessness or self-doubt when a setback occurs." says psychologist Heidi Grant Halvorson, associate director of the Motivation Science Center at Columbia University... When praised for persistence, those who think the path ahead will be difficult invest more effort.

... To the brain, receiving a compliment is as much as social reward as being given money."

- Psychology Today

Healthier decisions

Guiding "people towards making healthier decisions by tapping into their own values, can provide a template for encouraging someone you care about to ... partake less of any ... harmful behaviour.

William Miller, emeritus professor of psychology and psychiatry at the University of New Mexico and his Colleague Stephen Rollnick found it is essential to engage a person's intrinsic motivation to change. Conversational techniques include asking open-ended questions("How do you feel about your health right now?" "What kinds of activities do you like that don't involve eating/drinking?" "What small change would you like to make?"), providing affirmations ("It seems that you would like to work on your self-control."), using reflective listening and making summary statements.

A key component of motivational enhancement is to help a person recognize the difference between the way she wants her life to be and the way it is now: "How does drinking every night interfere with other things you would like to do?" The question allows the person to come up with her own solutions as well as her own motivations.

It's helpful to focus on things that are important to your loved one with-out laying on guilt ("What will the children think?"). Goals should be small, specific, and realistic, and always the person's own idea: "So what do you want to tackle first?" Self-control can be practiced, and habits can be formed and unformed. The path starts within..."

- Psychology Today

Framing Criticism

"Susan Heitler, author of From Conflict to Resolution, recommends feedback that "skips the complaining and goes straight to the explaining"(the solution).
For instance, while cooking, instead of saying, "That's not the way to saute, that will dry out the potatoes," offer helpful tips, such as: "If you start out with a hot skillet, it will be easier to tell when the potatoes are done; that's it, keep stirring until the onions are translucent, add a little more butter, keep stirring...perfect!"

For parents, the same approach applies to homework and chores. Choose encouraging statements over a stern grilling, Heitler advises, and say what you would prefer your child to do rather than what she has not done or has done incorrectly.("I'd love to see your playroom cleaned by this weekend so you and your friends can have fun downstairs," instead of "This place is a mess! What have you been doing? You haven't picked up one thing. No one is coming over this weekend until this room is spotless.")

Criticism is the single most significant factor in a child's perception of the parental relationship. It's important to criticize without demeaning or humiliating.

If you feel disappointed with a child's performance at school or in any other domain, it's best to channel the feeling into a fact-finding discussion. Ask your child to evaluate his own performance and what he got out of the experience. If he is dissatisfied with the outcome of his own actions, ask what he might do differently the next time, and what he feels he needs in order to do as well as he wants.

... We are social creatures, and the way we say things has real power. To show care when choosing how to phrase something is a way to honor, and safe-guard, any relationship."


- Psychology Today

Tuesday, September 17, 2013

Myelin

"1. Every human movement, thought, or feeling is a precisely timed electrical signal traveling through a chain of neurons - a circuit of nerve fibers
2. Myelin is the insulation that wraps these nerve fibers and increase signal strength, speed and accuracy.
3. The more we fire a particular circuit, the more myelin optimizes that circuit, and the stronger, faster, and more fluent our movements and thoughts become.

... Everything neurons do they do pretty quickly. It happens with the flick of a switch, ... But flicking switches is not how we learn a lot of things. Getting good... Takes a lot of time, and that's what myelin is good at.

What do good athletes do when they train?... They send precise impulses along wires that give the signal to myelinate that wire. They end up, after all the training, with a super-duper wire--lots of bandwidth, a high-speed T-3 line. That's what makes them different from the rest of us.

Q: why is targeted, mistake-focused practice so effective?
A: because the best way to build a good circuit is to fire it, attend to mistakes, then fire it again, over and over. Struggle is not an option: it's a biological requirement.

Q: why are passion and persistence key ingredients of talent?
A: because wrapping myelin around a big circuit requires immense energy and time. If you don't love it, you'll never work hard enough to be great.

Q: What's the best way to get to Carnegie Hall?
A: Go straight down Myelin Street."

- The Talent Code by Daniel Coyle

Thursday, August 29, 2013

Practising deeper

The author presents 2 columns (A and B) of related words and asks the reader to read the words.
Column A: ocean/breeze leaf/tree ...
Column B: bread/b_tter music/l_rics ...
Now He asks the reader to recollect as many words as possible from both lists. I had recollected more words from column B. This is why (in author's words): "When you encountered the words with blank spaces, some-thing both imperceptible and profound happened. You stopped, You stumbled ever so briefly, then figured it out. You experienced a microsecond of struggle, and that microsecond made all the difference. You didn't practice harder when you looked at column B. You practiced deeper... Deep practise is ... experiences where you're forced to slow down, make errors, and correct them...One real encounter, even for a few seconds, is far more useful than several hundred observations... It's all about finding the sweet spot... There's an optimal gap between what you know and what you're trying to do. When you find the sweet spot, learning takes off." This is why pilots learn better in flight simulators. The pilots "could dive, stall, and recover, spending hours inhabiting the sweet spot at the edge of his capabilities in ways he could never risk in an actual plane."
- "The Talent Code' by Daniel Coyle

Operating at the edge of ability

"The people inside the talent hotbeds are engaged in an activity that seems, on the face of it, strange and surprising. They are seeking out the slippery hills... They are purposely operating at the edge of their ability, so they can screw up. And somehow screwing up is making them better. "

- "The Talent Code" by Daniel Coyle

Moments of slow, fitful struggle

"When I started visiting talent hotbeds, I expected to be dazzled... those expectations were met and exceeded - about half the time... During the other half I witnessed something very different: moments of slow, fitful struggle,... They slammed to a halt; they stopped, looked, and thought carefully before taking each step. Making progress became a matter of small failures, a rhythmic pattern of botches, as well as something else: a shared facial expression. Their taut, intense squint..."

- "The talent code" by Daniel Coyle

Saturday, July 20, 2013

Discipline

"Discipline, in essence, is consistency of action - consistency with values, consistency with long-term goals, consistency with performance standards, consistency of method, consistency over time. .. True discipline requires the independence of mind to reject pressures to confirm in ways incompatible with values, performance standards, and long term aspirations, having the inner will to do whatever it takes to create a great outcome, no matter how difficult."

Great By Choice
- Jim Collins

Wednesday, July 17, 2013

Interpreting word through one's own opinion

"I can often figure out someone in a course or conference heard what I said, interpreted through their own opinion and came up with something I never meant. Words are a dangerous thing"

- Mike Cohn

Tuesday, July 02, 2013

Our personhood is carved by the flow of our habits.

"The flow of water carves rock, a little bit at a time. And our personhood is carved, too, by the flow of our habits."

- Jonathan Safron

Thursday, May 02, 2013

How can I gravitate towards something I would like and what people will accept?

"What else can I do? How can I gravitate towards something I would like and what people will accept?"

-- A.R. Rahman (source)

When you just do things for the sake of doing your work, it shows

"When you just do things for the sake of doing your work, it shows. It becomes boring for everyone, even his own team, if he’s not allowed to explore different directions, given the limitations."

--  A.R. Rahman (source)

If there’s honesty in something, it works.

" if there’s honesty in something, it works."

- A.R. Rahman (Source)

Friday, March 29, 2013

Instead of engaging the world in an anxious mental state, plunge head first into the experience of life

"When our children are just being themselves, they are unconcerned about the things we parents so often obsess over. How things look to other people, achievement, getting ahead - none of these issues that preoccupy adults are a child's agenda. Instead of engaging the world in an anxious mental state, children tend to plunge head first into the experience of life, willing to risk all."

- The Conscious Parent, Shefali Tsabary, PhD

If we are super-successful, we expect our children to be super-successful

"...If we are super-successful at what we do, we are likely to expect our children to be super-successful also...If we were an academic wizard in school, we tend to carry a torch for our children to be brilliant. If we didn't so well academically and have struggled in life as a result, we perhaps live in fear that our children will turn out like us, which causes us to do everything in our power to ward off such a possibility."

- The Conscious Parent, Shefali Tsabary, PhD

Monday, March 11, 2013

Best in the world have best attitudes and best behaviour patterns and a good, hard, ruthless culture

The Australian cricket team suspended 4 players today and a few tips on success from the couch in the explanation of the suspension

"I wanted three points from each of them technically, mentally and team as to how we were going to get back over the next couple of games, how we were going to get ourselves back into the series...We pride ourselves on attitude. We have given the players a huge amount of latitude to get culture and attitude right,...We believe that those behaviours with what we want to do with this team, how we want to take this team to be the best in the world, teams that are the best in the world have best attitudes and best behaviour patterns and a good, hard, ruthless culture. "

Arthur said to become world-beaters, the Aussies will have to fall in line when it comes to discipline.

- Mickey Arthur(Australian cricket team couch)

Sunday, February 24, 2013

End of superiority, inferiority, and equality is end to suffering

“one who has truly penetrated this threefold conceit of superiority, inferiority, and equality is said to have put an end to suffering.”

- The Buddha (Source)

Saturday, February 16, 2013

Natural scenery in a camera

"This is the hardest stuff in the world to photograph. You need a three-hundred-and-sixty-degree lens, or something. You see it, and then you look down in the ground glass and it's just nothing. As soon as you put a border on it, it's gone."

- Zen And The Art of Motorcycle Maintenance by Robert M. Pirsig 

On how a beautiful natural scenery cannot be completely captured in a camera.


Sunday, February 10, 2013

Maintaining Personality

"Each machine has its own, unique personality which probably could be defined as the intuitive sum total of everything you know and feel about it.  This personality constantly changes, usually for the worse, but sometimes surprisingly for the better, and it is this personality that is the real object of motorcycle maintenance. The new ones start out as good-looking strangers and, depending on how they are treated, degenerate rapidly into bad-acting grouches or even cripples, or else turn into healthy, good-natured, long-lasting friends."

- Zen And The Art of Motorcycle Maintenance by Robert M. Pirsig


Saturday, February 09, 2013

If somene's ungrateful

"If someone's ungrateful and you tell him he's ungrateful, okay, you've called him a name. You haven't solved anything."

- Zen And The Art of Motorcycle Maintenance by Robert M. Pirsig

Monday, December 31, 2012

Difference between @Autowire and @Resource

1. @Resource is part of JSR-250. @Autowire is part of Spring framework.
2. @Resource can inject by name only(to inject into a field named "xyz" look for a bean named "xyz"). @Autowire can inject by name, type(to inject into a field/parameter of type "Abc", look for a unique bean of type "Abc") and many more.
3. @Resource can inject into a field only. @Autowire can inject into field, constructor and method parameters.
3. @Resource can inject List, Map and other Collection types. @Autowire cannot.

Sources: [1] [2]

Monday, December 24, 2012

Wave and water

" To represent the two dimensions of reality, we use the images of the wave and water. Looking at the dimension of the wave, the historical dimension, we see that the wave seems to have a beginning and an end. The wave can be high or low compared with other waves. The wave might be more or less beautiful than other waves. The wave might be there or not there; it might be there now but later not there. All these notions are there when we first touch the historical dimension: birth and death, being and nonbeing, high and low, coming and going, and so on. But we know that when we touch the wave more deeply, we touch water. The water is the other dimension of the wave. It represents the ultimate dimension.
...

If the wave is capable of touching the water within herself, if the wave can live the life of water at the same time, then she will not be afraid of all these notions: beginning and ending, birth and death, being or non-being; non-fear will bring her solidity and joy. Her true nature is the nature of no-birth and no-death, no beginning and no end. That is the nature of water."

- Thich Nhat Hanh

I have arrived, I am home

"I have arrived, I am home
In the here, in the now
I am solid, I am free
In the ultimate I dwell.

...
You can recite the poem above as you breathe in and out. You can practice this poem when you drive to your office. You may not have arrived at your office, but even while driving you have already arrived at your true home, the present moment. When you arrive at your office, this is also your true home. In your office, you are also in the here and now. Just practicing the first line of the poem, “I have arrived, I am home,” can make you very happy."

- Thich Nhat Hanh

We cannot enjoy life if we worry

"We cannot enjoy life if we spend our time and energy worrying about what happened yesterday and what will happen tomorrow. If we’re afraid all the time, we miss out on the wonderful fact that we’re alive and can be happy right now. "

- Thich Nhat Hanh

Thursday, December 20, 2012

Our real home is peace.

"This house you’re living in: You and your husband built it. Other people can build houses, too, making them large and lovely. Those are outer homes, which anyone can build. The Buddha called them outer homes, not your real home. They’re homes only in name.

Homes in the world have to fall in line with the way of the world. Some of us forget. We get a big home and enjoy living in it, but we forget our real home. Where is our real home? It’s in the sense of peace. Our real home is peace."

- Ajahn Chah Subhaddo

Tuesday, November 06, 2012

Gifts of time and love

Gifts of time and love are surely the basic ingredients of a truly merry Christmas.

- Peg Bracken

Saturday, November 03, 2012

Motives Leading to a Poor Conversations

1. "Wanting to win. (The) desire to win is built into our very fiber before we're old enough to know what's going on... Unfortunately, as we grow older, most of us don't realize that the desire to win is continually driving us away from healthy dialogue. We start out with the goal of resolving a problem, but as soon as someone raises the red flag of inaccuracy or challenges out correctness, we switch purposes in a heartbeat"
2. "Seeking revenge. Sometimes, as our anger increases, we move from wanting to win the point to wanting to harm the other person... (response is) Everyone immediately clams up and looks at the floor."
3. "Hoping to remain safe... Rather than add to the pool of meaning, and possibly make waves along the way, we go to silence. We're so uncomfortable with the immediate conflict that we accept the certainty of bad results to avoid the possibility of uncomfortable conversation. We choose... peace over conflict.(the objective of the conversation is not met)"

- "Crucial Conversations - Tools for talking when stakes are high"

Maintaining Composure Under Fire

To maintain composure under fire ask yourself "what do I really want here?"

"What do I really want?... it's not to make the other person squirm or to preen in front of a crowd. I want " your actual objective of having the conversation (such as cut cost).

"When we ask ourselves what we really want,... the problem solving part of our brain recognizes that we are now dealing with intricate social issues and not physical threats."

"Once you've asked yourself what you want, add one more equally telling question:

How would I behave if I really wanted these results?"

- "Crucial Conversations - Tools for talking when stakes are high"

Work on Me First

'Although it's true that there are times when we are merely bystanders in life's never-ending stream of head-on collisions, rarely are we completely innocent... People who are best at dialogue understand this simple fact and turn it into the principle "Work on me first."...As much as others may need to change, or we may want them to change, the only person we can continually inspire, prod, and shape--with any degree of success--is the person in the mirror...People who believe they need to start with themselves...become the most skilled at dialogue. It's the most talented, not the least talented, who are continually trying to improve their dialogue skills.'

- "Crucial Conversations - Tools for talking when stakes are high"

Difficulty with Crucial Conversations

"We either anticipate a crucial conversation or are in the middle of one and we're at our absolute worst -- we  yell; we withdraw; we say things we later regret... That's because emotions don't exactly prepare us to converse effectively. Countless generations of genetic shaping drive humans to handle crucial conversations with flying fists and fleet feet, not intelligent persuasion and gentle attentiveness... Tow tiny organs seated neatly atop your kidneys pump adrenaline into your bloodstream. You don't choose to do this. Your adrenal glands do it, and then you have to live with it... Your brain diverts blood... (and) the higher level reasoning sections of your brain get less (blood). As a result, you end up facing challenging conversations with the same equipment available to a rhesus monkey."

- "Crucial Conversations - Tools for talking when stakes are high"

When Talking Turns Tough

When talking turns tough, do we pause, take a deep breath, announce to out innerselves, "Uh-oh, this discussion is crucial. I'd better pay close attention" and then trot out our best behavior(minding one's Ps and Qs)?

- "Crucial Conversations - Tools for talking when stakes are high"

Pattern of Behavior in Conversations

"If you handle even a seemingly insignificant conversation poorly, you establish a pattern of behavior that shows up in all of your crucial conversations."

- "Crucial Conversations - Tools for talking when stakes are high"

Effects of Communication Failure

"The void created by the failure to communicate is soon filled with poison,drivel(Silly nonsense) and misrepresentation.
-- C. Northcote Parkinson"

- "Crucial Conversations - Tools for talking when stakes are high"

Monday, October 22, 2012

Appealing for not being famous

"It is a kind of nowhere, (place where the author is riding his bike) famous for nothing at all and has an appeal because of just that "

- Robert M. Pirsig in "Zen and the art of motorcycle maintenance"

Friday, June 29, 2012

Thursday, June 28, 2012

"Real peace of mind must come through inner mental strength."

"Money is the top most important (thing) for value of our life. This is, I think, wrong. The material facility can provide only physical comfort. Through physical comfort mental satisfaction is false, delusion. Real peace of mind must come through inner mental strength."


- Dalai Lama

Monday, June 04, 2012

Thursday, May 31, 2012

Tuesday, May 29, 2012

Programming is a knowledge intensive activity, and good programmers know a lot

Programming is a knowledge intensive activity, and good programmers
know a lot.


Ralph Johnson 

Words and meaning

"The software industry delights in taking words and stretching them into a myriad of subtly contradictory  meanings."

- Martin J Fowler in "Patterns of Enterprise Application Architecture"

Saturday, May 19, 2012

Friday, April 27, 2012

The master - Destiny or Man?


"Look! the clay dries into iron, but the potter moulds the clay:-
Destiny to-day is master - Man was master yesterday."

- Toru Dutt

Wednesday, April 25, 2012

Creativity is the residue of time wasted.

Creativity is the residue of time wasted.


Albert Einstein through copyblogger

Tuesday, April 24, 2012

In the attitude of silence...

“In the attitude of silence the soul finds the path in a clearer light, and what is elusive and deceptive resolves itself into crystal clearness.”


- Mahatma Gandhi through A Flourishing Life

Thursday, April 05, 2012

Bad reactions and faults

If somebody acts un-reasonably to you, its their fault.
But if you react un-reasonably in response to their fault, your bad response is completely your fault. They did not control you to give out that un-reasonably response.

Wednesday, April 04, 2012

I have never found anger to make a situation better

"I have never found anger to make a situation better"

- Prof. Randy Pausch 

I can't control the card that I am dealt just how I play the hands

"I can't control the card that I am dealt just how I play the hands"

- Prof. Randy Pausch 

Its not about how you achieve your dreams its about how you lead your life

"Its not about how you achieve your dreams, its about how you lead your life. If you lead your life the right way, the karma will take care of itself, dreams will come to you."

- Prof. Randy Pausch  

Brick walls let us show our dedication

"Brick walls let us show our dedication. They are there to separate us from the people who don't REALLY want to achieve their ... dreams."

- Prof. Randy Pausch 

Wednesday, March 21, 2012

Null values in Postgresql date comparison


test=# begin;
BEGIN
test=# create temp table test(test_date date) on commit drop;
CREATE TABLE
test=# insert into test(test_date) values (null);
INSERT 0 1
test=# insert into test(test_date) values (current_date - interval '1 day');
INSERT 0 1
test=# insert into test(test_date) values (null);
INSERT 0 1
test=# select case when test_date < current_date then 'less' else 'nope' end, coalesce( test_date::varchar, 'NULL') from test;
 case |  coalesce  
------+------------
 nope | NULL
 less | 2012-03-20
 nope | NULL
(3 rows)

Saturday, February 11, 2012

It’s not hard to decide what you want your life to be about. What’s hard, she said, is...


“It’s not hard to decide what you want your life to be about. What’s hard, she said, is figuring out what you’re willing to give up in order to do the things you really care about.”

- “Bittersweet” by Shauna Niequist through Julie911

Maintaining character in every moment


My understanding:

Not all horses are skilled at being swift
Not all dogs are skilled at sniffing
Since I am naturally dull, shall I, for that reason, not take pains?
NO. One should continue to take pains.

I may not be the best body builder in the world, yet, I will not neglect my body.
I may not be the best rich man in the world, yet, I will not neglect my property

In short we do not neglect looking after anything because we despair(loose hope or complete absence of hope) of reaching the highest degree.

- A Selection From The Discourses of Epictetus With The Encheiridion

Thursday, February 02, 2012

Strong, Weak, Soft and Phantom references in Java

The following code instantiates an instance of Student class in the heap and references the created instance from the stack variable s.

Student s = new Student();

The instantiated Student object remains in the heap until it is reachable by at least one reference to it. When the garbage collector runs after the last object reference has been removed, the object is deleted from heap. 

In the above example, s is a strong reference to the Student object. The garbage collector will not remove objects that have a strong reference.

When strong references fall short
There are times when a object should be marked as garbage collectible even when there are active references to it. For example, consider a large image object held in a in-memory cache. This image object should remain in the heap as long as the caching API's clients have reference to the image object. But if the caching API uses strong references, the image object will never get garbage collected as there will always be a strong reference to the image object from the cache itself. Enter weak references.

In the above caching example, the caching API should use a WeakReference. A weak reference "is a reference that isn't strong enough to force the object to remain in memory".

WeakReference weakStudent = new WeakStudent(new Student());

weakStudent.get(); // Returns actual Student object

The weakStudent.get() call could potentially return null if there are no strong references to the Student object.

A WeakHashMap is similar to HashMap except that the keys (not values) are referred to using weak references. So when there are no other Strong references to a key, it will be removed from the map.

Once WeakReference.get() starts returning null, the reference has become garbage collectible and the WeakReference is of no good. The ReferenceQueue class helps keep track of such garbage collectible references and should be passed as argument to WeakReference's constructor. When a object becomes garbage collectable, it will be placed in the ReferenceQueue. The application can read this queue from time to time and perform clean up on its end.

Degrees of weakness
A WeakReference is only one flavor of weakness. There are 2 more flavors:
1. SoftReference - This is less weak than a WeakReference. In a WeakReference, the referenced object is garbage collected the next time garbage collector runs, irrespective of whether memory is in shortage or not. A SoftReference is garbage collected only when memory is in short supply.
2. PhantomReference - This is stronger than a WeakReference. Its get() method always returns null. Its only use is to figure out when the object is enqueued into ReferenceQueues. For a WeakReference, the object is queued as soon as its only weakly reachable. Even before finalization and actual garbage collection. For PhanthomReference, the object is queued only after the object is physically removed from memory.

Saturday, December 03, 2011

To be upset over what you don't have is to waste what you do have.

To be upset over what you don't have is to waste what you do have.

- Ken Keyes Jr.

The minute you settle for less than you deserve

The minute you settle for less than you deserve, you get even less than you settled for.
- Maureen dowd

Wednesday, November 30, 2011

Better to take many small steps

“It is better to take many small steps in the right direction than to make a great leap forward only to stumble backward.”

Louis Sachar through Julie911

Saturday, October 08, 2011

3 ways to initialize and destroy Spring beans

There are 3 ways to initialize (and destroy) spring beans
1. Using init-method and destroy-method attributes
2. Implementing InitializingBean and DisposableBean interfaces
3. Using @PostConstruct and @PreDestroy Annotations (available only in Spring >=2.5)


1. Using init-method and destroy-method attributes
Certain bean methods can designated as initializing and destroying methods using the init-method and destroy-method attributes. Like so:



<bean
    id="studentService"
    class="initMethod.StudentServiceImpl"
    init-method="subscribe"
    destroy-method="unsubscribe"/>



2. Implementing InitializingBean and DisposableBean interfaces
The bean can implement these methods InitializingBean.afterPropertiesSet() and DisposableBean.destroy(). Like so:

public class StudentServiceImpl implements StudentService, InitializingBean, DisposableBean {
    @Override
    public boolean isExists(long studentId) {
        // A fake implementation
        if ( studentId % 2 == 0 )
        {
            return true;
        }
        else
        {
            return false;
        }
    }

    @Override
    public void afterPropertiesSet() throws Exception 
    {
        // subscribe logic goes here
    }

    @Override
    public void destroy() throws Exception 
    {
       // unsubscribe logic goes here
    }
}



3. Using @PostConstruct and @PreDestroy Annotations
Note that both of these are JSR-250 annotations (here is a nice introduction to JSR-250 support introduced in spring 2.5).

@PostConstruct
public void subscribe()
{
  // subscribe logic goes here
}


@PreDestroy
public void unsubscribe()
{
  // unsubscribe logic goes here
}

Wednesday, September 28, 2011

If the work is worthwhile, then whether we can complete it or not, it's worth making the attempt

If the work is worthwhile, then whether we can complete it or not, it's worth making the attempt. That's why courage is important.
- Dalai Lama

Actions driven solely by anger are of no use at all

Actions driven solely by anger are of no use at all; realizing this can help strengthen your determination to resist it. - DalaiLama

Wednesday, September 21, 2011

Monday, September 19, 2011

One hand

"We are afraid of losing what we have, whether it's our life or our possessions and property. But this fear evaporates when we understand that our life stories and the history of the world were written by the same hand." Sometimes, the caravan (in the middle of a desert) met with another. One always had something that the other needed - as if everything were indeed written by one hand. - The Alchemist by Paulo Coelho

No matter how many detours and adjustments it made, the caravan moved towards the oasis.

"The desert was all sand in some stretches, and rocky in others. When the caravan was blocked by a boulder, it had to go around it; if there was a large rocky area, they had to make a major detour. If the sand was too fine for the animal's hooves, they sought a way where the sand was more substantial... If a guide were to fall ill or die, the camel driver would draw lots and appoint a new one. But all this happened for one basic reason: no matter how many detours and adjustments it made, the caravan moved towards the same compass point. Once obstacles were overcome, it returned to its course, sighting on a star that indicated the location of the oasis." - The Alchemist by Paulo Coelho

Tuesday, September 13, 2011

Don’t ask yourself what the world needs, ask yourself what makes you come alive

“Don’t ask yourself what the world needs, ask yourself what makes you come alive. And then go and do that. Because what the world needs is people who are alive.” - Howard Thurman through Think Simple Now

Friday, September 02, 2011

Saturday, August 20, 2011

I am a parent and do not have the luxury of principles.

Father (who doesn't like his state going to war): I am a parent and do not have the luxury of principles.
...
Son (who is enlisting in the army): Father, I thought you were a man of principles.

Father: When you have a family of your own perhaps you will understand.

Son: When I have a family of my own I won't hide behind them.

- "The Patriot"

Wednesday, August 10, 2011

when each day is the same as the next

"...when each day is the same as the next, it's because people fail to
recognize the good things that happen in their lives every day that the
sun rises."

"The Alchemist" by Paulo Coelho

Thursday, August 04, 2011

Money for good books

"No matter how tight our budget was over the years, we always made money available for good books." - Tim seldin in "How to raise an amazing child The montessori way"
Published with Blogger-droid v1.6.8

Monday, July 18, 2011

There isn’t a way things should be. There’s just what happens, and what we do.

“There isn’t a way things should be. There’s just what happens, and what we do.”

- “A Hat Full of Sky ” by Terry Pratchett through Julie911

I don’t know the key to success, but the key to failure is trying to please everyone.

“I don’t know the key to success, but the key to failure is trying to please everyone.”

- Bill Cosby through Julie911

Friday, July 08, 2011

This is your life. Learn to enjoy what you’ve got.

“This is your life. Learn to enjoy what you’ve got.”

- Mr. Destiny through Julie911

If we cannot love ourselves, we cannot fully open to our ability to love others or our potential to create.

“There are two basic motivating forces: fear and love. When we are afraid, we pull back from life. When we are in love, we open to all that life has to offer with passion, excitement, and acceptance. We need to learn to love ourselves first, in all our glory and our imperfections. If we cannot love ourselves, we cannot fully open to our ability to love others or our potential to create. Evolution and all hopes for a better world rest in the fearlessness and open-hearted vision of people who embrace life.”

- John Lennon through Juliee911