All entries for September 2006

September 28, 2006

Vim Vs XEMacs : Word Completion

In Vim use Ctrl-n
In XEMacs use Alt-/

Vim Vs XEMacs : Indentation

In this series of postings—“Vim Vs XEmacs”, I will reflect on my experiences with these two editors. For a long time, I was addicted to Vim (or old time vi), and then all of a sudden last year I decided to go for XEmacs. The transition was smooth and I quickly learned the nuances of XEmacs. It was difficult, but very intuitive. I liked several features of XEMacs, like indentation, word completion and colorthemes.

After using XEMacs for 1 year, I realized that Xemacs is missing some of the things which made Vim my favourite editor. It is so easy to use Vim over telnet, e,g. I like vim’s default colortheme and Vim its like my first love and so too difficult to forget. So I decided to look for all the things which I like in Xemacs and see if I can have them on Vim. Today I will show how to get that nice “TAB” indentation of xemacs in vim. You have to use ”==” to indent in the palce of Tab, but it has got the same effect as TAB in XEMacs.

All you have to do is to add following lines in your ~/.vimrc file:

set et
set sw=2
set sts=2
set smarttab
set autoindent
set smartindent
set cindent
set background=dark
syntax on

  1. Thanks Antony B. Holmes for the tip.


September 09, 2006

Nacho Libre soundtrack — I am I am

*Movie: Nacho Libre
Artist: Mister Loco
Song: Religious Man (I am, I am)*


I am I am, I am I am
I think I am I think I am
I’m glad I am
I’m proud I am
A real religious man

As I realized
The mightiest friend
Can separate
A chance from fate
Cause you have all I need to take
That’s why I think I am I am

Cause I have prayed I just behave
Cause saints and sinners
Are quite the same
Cause it’s my temple
The whole wide world
That’s why I think I am I am

I am I am, I am I am
Think I am
I think I am
I’m proud I am
A real religious man

I am I am
I am I am
I pray I am
I feel I am
Oh Lord I am
God knows I am
A real religious man

I am I am,
I am I am
I pray I am
I feel I am
Oh lord I am
God knows I am
A real religious man

A riddle

I am slim and tall,
Many find me desirable and appealing.
They touch me and I give a false good feeling.
Once I shine in splendor,
But only once and then no more.
For many I am “to die for”.
What am I?


September 08, 2006

LonDoc: Magazine for psotgraduate researchers.

If you are a postgraduate researcher (PGR) like me, you will like this magazine. I liked the article about “a PhD window” and some good effects of running.

Read this magazine, it’s free :) (as if any PGR will buy it, if they will sell :)

Another interesting thing is that they have some tips for PG researchers sponsored by PGTips.

Tricks to Teach Your Body

Interesting tricks to teach your body, ripped from here.

If your throat tickles, scratch your ear.
When you were 9, playing your armpit was a cool trick. Now, as an adult, you can still appreciate a good body-based feat, but you’re more discriminating. Take that tickle in your throat; it’s not worth gagging over. Here’s a better way to scratch your itch: “When the nerves in the ear are stimulated, it creates a reflex in the throat that can cause a muscle spasm,” says Scott Schaffer, M.D., president of an ear, nose and throat specialty center in Gibbsboro, New Jersey. “This spasm relieves the tickle.”

Feel no pain!

German researchers have discovered that coughing during an injection can lessen the pain of the needle stick. According to Taras Usichenko, author of a study on the phenomenon, the trick causes a sudden, temporary rise in pressure in the chest and spinal canal, inhibiting the pain-conducting structures of the spinal cord.

Stop the world from spinning!

One too many drinks left you dizzy? Put your hand on something stable. The part of your ear responsible for balance—the cupula—floats in a fluid of the same density as blood. “As alcohol dilutes blood in the cupula, the cupula becomes less dense and rises,” says Dr. Schaffer. This confuses your brain. The tactile input from a stable object gives the brain a second opinion, and you feel more in balance. Because the nerves in the hand are so sensitive, this works better than the conventional foot-on-the-floor wisdom.

Cure your toothache without opening your mouth!

Just rub ice on the back of your hand, on the V-shaped webbed area between your thumb and index finger. A Canadian study found that this technique reduces toothache pain by as much as 50 percent compared with using no ice. The nerve pathways at the base of that V stimulate an area of the brain that blocks pain signals from the face and hands.

Unstitch your side!

If you’re like most people, when you run, you exhale as your right foot hits the ground. This puts downward pressure on your liver (which lives on your right side), which then tugs at the diaphragm and creates a side stitch, according to The Doctors Book of Home Remedies for Men. The fix: Exhale as your left foot strikes the ground.

Thaw your brain!

Too much Chipwich too fast will freeze the brains of lesser men. As for you, press your tongue flat against the roof of your mouth, covering as much as you can. “Since the nerves in the roof of your mouth get extremely cold, your body thinks your brain is freezing, too,” says Abo. “In compensating, it overheats, causing an ice-cream headache.” The more pressure you apply to the roof of your mouth, the faster your headache will subside.

Breathe underwater!

If you’re dying to retrieve that quarter from the bottom of the pool, take several short breaths first—essentially, hyperventilate. When you’re underwater, it’s not a lack of oxygen that makes you desperate for a breath; it’s the buildup of carbon dioxide, which makes your blood acidic, which signals your brain that somethin’ ain’t right. “When you hyperventilate, the influx of oxygen lowers blood acidity,” says Jonathan Armbruster, Ph.D., an associate professor of biology at Auburn University. “This tricks your brain into thinking it has more oxygen.” It’ll buy you up to 10 seconds.

CIA test

The CIA had an opening for an assassin. After all of the background checks, interviews, and testing were done there were three finalists, two men and a woman.

For the final test, the CIA agents took one of the men to a large metal door and handed him a gun. “We must know that you will follow your instructions, no matter what the circumstances. Inside of this room, you will find your wife sitting in a chair. Kill her!!!” The man said, “You can’t be serious. I could never shoot my wife.”

The agent said, “Then you’re not the right man for this job.”

The second man was given the same instructions. He took the gun and went into the room. All was quiet for about five minutes. Then the man came out with tears in his eyes. “I tried, but I can’t kill my wife.”

The agent said, “You don’t have what it takes. Take your wife and go home.”

Finally, it was the woman’s turn. She was given the same instructions, to kill her husband. She took the gun and went into the room. Shots were heard, one shot after another. They heard screaming, crashing, banging on the walls.

After a few minutes, all was quiet. The door opened slowly and there stood the woman. She wiped the sweat from her brow and said, “You guys didn’t tell me the gun was loaded with blanks. I had to beat him to death with the chair.”


September 05, 2006

anti–dentite fact no 1.

The electric chair was invented by a dentist.

PhD Comics

September 2006

Mo Tu We Th Fr Sa Su
Aug |  Today  | Oct
            1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30   

Search this blog


Most recent comments

  • Can't beat a German Market. by on this entry
  • Imagine Shiva in Words by this stotra (Thanks to Ravana) by Yogendra on this entry
  • This is the favorite and most inspiring stothram for me. It invokes the manliness in ourself to rise… by Bhargav on this entry
  • Went last night and it was really good. First time i have been and will definatly return next year. by Mad Dozza on this entry
  • strota really purifies soul by shailendra on this entry

Blog archive

Not signed in
Sign in

Powered by BlogBuilder