Mar 06

Switching between horizontal and vertical orientation in Lightroom

Today I wanted to edit a photo in Lightroom. However, found that the photo would have been better if I took it in vertical. Just googled it and found the solution in this website.

In crop mode (develop view) need to press x, orientation will be switched between horizontal and vertical.

Press X and have fun!

Jan 26

Moving or copying total commander configuration file

Today I got a new computer in my workplace. The first thing I had to do was to copy the configuration file of Total Commander from my old computer to my new computer. Although it seems very intuitive however, it took some time for me to find the location of .ini files. The easiest way to do the task:

  1. Start Total Commander (old computer in my case)
  2. On the right side of total commander window click Help -> About Total Commander…TC_help_option
  3. In the next window you can see the path of two .ini files. Here the paths are relevant for Windows 7. For other OS, you can see corresponding location.TC_ini_file
  4. Copy the files to an interim storage
  5. Similarly open Total Commander in other computer where you want to have same configuration and find the .ini file paths as shown in steps 2 & 3
  6. Close Total Commander
  7. Overwrite the .ini files from interim storage to the location found in step 5.
  8. Open Total Commander again on the new computer and enjoy intended configuration.

Sep 28

Lessons from “The Magic of Thinking Big” – Chapter 3

This is the continuation of my post Lessons from “The Magic of Thinking Big” – Chapter 1 & 2.

Following parts of Chapter 3 are directly taken from the book: “The Magic of Thinking Big” that I found magical.

Chapter 3: Build Confidence and Destroy Fear

Fear is real. Fear is success enemy No. 1. Fear stops people from capitalizing on opportunity; fear wears down physical vitality; fear actually makes people sick, causes organic difficulties, shortens life; fear closes your mouth when you want to speak.

All confidence is acquired, developed. No one is born with confidence.

Action cures fear. Indecision, postponement, on the other hand, fertilize fear.

Next time you experience big fear or little fear, steady yourself. Then search for an answer to this question; what kind of action can I take to conquer my fear?

  • Type of fear: Fear of what other people may think and say.
    • Action: Make sure that what you plan to do is right. Then do it. No one ever does anything worthwhile for which he is not criticized.
  • Type of fear: Fear of making an investment or purchasing a home.
    • Action: Analyze all factors. Then be decisive. Make a decision and stick with it. Trust your own judgement.
  • Type of fear: Fear of people.
    • Action: Put them in proper perspective. Remember, the other person is just another human being pretty much like yourself.

Remember, hesitation only enlarges, magnifies fear. Take action promptly. Be decisive.

Successful people specialize in putting positive thoughts into their memory bank. … When you’re driving your car or eating alone – recall pleasant, positive experiences. Put good thoughts in your memory bank. … Here is an excellent plan. Just before you go to sleep, deposit good thoughts in your memory bank. Count your blessings. Recall the many good things you have to be thankful for: your wife or husband, your children, your friends, your health. Recall the good things you saw people do today. Recall your little victories and accomplishments. Go over the reasons why you are glad to be alive. … Here is something very significant and very encouraging. Your mind wants you to forget the unpleasant. If you will just cooperate, unpleasant memories will gradually shrivel and the teller in your memory bank cancels them out.

Get a balanced view of the other fellow. Keep these two points in mind when you dealing with people: first, the other fellow is important. Emphatically, he is important. Every human being is. But remember this, also. You are important, too. So when you meet another person, make it a policy to think, “We’re just two important people sitting down to discuss something of mutual interest and benefit.” … The other fellow might look frightfully big, frightfully important. But remember, he is still a human being with essentially the same interests, desires, and problems as you.

It is easy to prove that managed motions can change emotions. People who are shy in introducing themselves can replace this timidity with confidence just by taking three simple actions simultaneously: First, reach for the other person’s hand and clasp it warmly, Second, look directly at the other person. And third, say, “I’m very glad to know you.” These simple actions automatically and instantaneously banish shyness. Confident action produces confident thinking. So, to think confidently, act confidently. … Below are five confidence building exercises. …

  1. Be a front seater. Sitting up front builds confidence. Practise it. From now on make it a rule to sit as close to the front as you can.
  2. Practice making eye contact.
  3. Walk 25 per cent faster.
  4. Practise speaking up. I’ve watched many persons with keen perception and much native ability freeze and fail to participate in discussions. It isn’t that these folks don’t want to get in and wade with the rest. Rather, it’s simple lack of confidence. The conference clam thinks to himself, “My opinion is probably worthless. If I say something I’ll probably look foolish I’ll just say nothing. Besides, the others in the group probably know more than I. I don’t want the others to know how ignorant I am.” Each time the conference clam fails to speak, he feels even more inadequate, more inferior. Often he make a faint promise to himself (that down deep he know he won’t keep) to speak “next time.” Put this confidence builder to use. Make it a rule to speak up at every open meeting you attend. Speak up, say something voluntarily at every business conference, committee meeting, community forum you attend. Make no exception. Comment, make a suggestion, ask a question. And don’t be the last to speak. Try to be the ice-breaker, the first one in with a comment. And never worry about looking foolish. You won’t.
  5. Smile big. Smile big and you feel like “happy days are here again.” But smile big. A half-developed smile is not fully guaranteed. Smile until your teeth show. That large-size smile is fully guaranteed.



Sep 13

Lessons from “The Magic of Thinking Big” – Chapter 1 & 2

A few months ago I read some parts of the classic book “How to read a book” by M. J. Adler & C. V. Doren. From many very nice ideas, one I specially liked and started to follow: marking the lines that I found interesting in a book, writing my personal opinion/ideas beside the margin. It was indeed helpful when I came back to that book later to skim through the parts that was important to me. This idea is relevant for non-fictional books as you guessed. Additionally I thought that why don’t I write those important points in this blog that would be handy for me as well. Based on this idea, this is my first effort to write the lessons I learned from another classic “The Magic of Thinking Big” by David J. Schwartz.

Following parts are directly taken from the book: “The Magic of Thinking Big” that I found magical.

Chapter 1: Believe you can succeed and you will

Think doubt and fail. Think Victory and succeed.

Production in your thought factory is under the charge of two foremen, one of whom we will call Mr. Triumph and the other Mr. Defeat. Mr. Triumph is in charge of manufacturing positive thoughts. He specializes in producing reasons why you can, why you’re qualified, why you will. The other foreman, Mr. Defeat, produces negative, depreciating thoughts. He is your expert in developing reasons why you can’t, why you’re weak, why you’re inadequate. His specialty is the “why-you-will-fail” chain of thoughts. Use Mr. Triumph 100 per cent of the time.

How to develop the power of belief:

  1. Think success, don’t think failure
  2. Remind yourself regularly that you are better than you think you are. Never – yes, never – sell yourself short.
  3. Believe Big. The size of your success is determined by the size of your belief.

Chapter 2: Cure yourself of excusitis, the failure desease

Another amputee friend is an excellent golfer. One day I asked him how he had been able to develop such a near-perfect style with just one arm. I mentioned that most golfers with two arms can’t do nearly as well. His reply says a lot: “Well, it’s my experience,” he said, “that the right attitude and one arm will beat the wrong attitude and two arms every time.”

Refuse to talk about your health. Talking about your health is a bad habit. It bores people.

Just being grateful for the health you have is powerful vaccination against developing new aches, pains and real illness.

Most of us make two basic errors with respect to intelligence:

  1. We underestimate our own brain power, and
  2. We overestimate the other fellow’s brain power.

Because of these errors many people sell themselves short.

The thinking that guides your intelligence is much more important than how much intelligence you may have.

Remind yourself several times daily “My attitudes are more important than my intelligence.”

Look at your present age positively, Think “I’m still young,” not “I’m already old.”

Remember, a person age 30 still has 80 per cent of his productive life ahead of him. And the 50-year-old still has a big 40 per cent – the best 40 per cent – of his opportunity years left.

Dec 01

The blogs I follow regularly

Other than regular newspaper feeds, I regularly follow the blogs:

Personal development blog:

 Finance blog:

 Photography blog:

Technical (tips and tricks) blog:

Aug 04

Raspberry Pi on hold

In my last post I considered buying a Raspberry Pi, however I put it on hold. The reasons I had:

  • It is not necessary at this moment to build a media center using Raspberry Pi since my  external harddisk can be connected directly to the TV or Blu-ray player and the movies can be played directly
  • Currently I don’t have much data to be backed up regularly. Manual backup still works.

Although it is not directly related to the post from Dumb Little Man about 23 Ways to Save Money for the Future That You’re Currently Missing Out On, it still close to the point “Think before you act”. Impulse purchase is always the kind of purchase that is not needed later on. Therefore, it is better to give time, think for a moment or two before buying any stuff. In my case, it is definitely not an impulse purchase however, it is not necessary at this moment.

Aug 02

Thinking about buying a Raspberry Pi

For last few months I am considering to buy a Raspberry Pi.  Currently there is an offer published in “Mein Deal” to get it from GetGoods for €31.95. My intention is to use this small computer along with my TV primarily as media center and to backup my important stuffs in an external hard disk. Later on it can be used to teach the children basic programming environment under linux.

Anyway here I’m listing the necessary hardware I need:

  1. Raspberry Pi — €31.95
  2. SanDisk Ultra SDHC 16GB Class 10 — €13.50
  3. D-Link 7 port USB hub with power supply — €23
  4. Logitech K400 wireless USB keyboard with touchpad — €31
  5. Wireless USB adapter — €10
  6. SD Card reader/HDMI cable/Ethernet cable — available already

The total amount I need is around €110. I know it is not a huge amount of money still thinking does it worth investing this amount?

Feb 19

Good looking thesis using latex: Part I

Latex is a very powerful candidate while comes the question of writing a thesis (which contains lot of equations). Since thesis is one of the most important works in our education, it is better to invest time to give it a smart look. That’s why before writing a thesis, some of the preliminary tasks should be done. Here I’ll list the packages that can be used to generate a good looking thesis and write a bit details about some packages (but not all). If anyone wants to use these packages, I recommend them to read the documentations first.


This is the most important part.

  1. You need to create a tex/latex project. I’m using texniccenter in winXP (linux has kile which is similar to it). Please take a look at the help file how to generate a project if you don’t know it already.
  2. Use separate tex/latex file for each chapter (easier to modify and include in your project).
  3. Use separate .bib file for bibliography.

By the way, I generally use pdftex (not normal latex). You can include .pdf, .png etc. directly in pdftex, however, .eps file cannot be included. You should convert those .eps figures first to .pdf before include those in pdflatex.

Special packages

Some of the following packages will give you the opportunity to make a good thesis.

  1. nomencl: Produce list of symbols. If you want to include list of symbols in your thesis, it is very important to use this package while start writing your thesis.
  2. acronym: This is very common to use acronym in all our writing. It is also important to use it from beginning of your writing.
  3. fancyhdr: Everyone wants different looking header and footer in their document. This package gives you the opportunity to customize your header and footer.
  4. fncychap: Although Fancy header is common in different documents, I have rarely seen the use of fancy chapter heading. In my view fancy chapter heading “Sonny” is really awesome.
  5. lastpage: Some people want page x of y printed in the footer of their document. This package is needed for this purpose.
  6. tocbibind: Table of contents (ToC) does not generally include bibliography, index etc. the it. This package can be used to includes ToC, Bibliography, index etc. in the table of contents.
  7. natbib: Sometimes people need to cite some paper in this form [3-6]. This is possible with sort&compress (or compress) option of natbib package.
  8. tikz: Although pstricks is one of the very well known package for drawing inline figures in latex, I have found tikz/pgf is also very strong candidate. Since pstricks can not be used while compiling pdftex, tikz is a very good choice. Using tikz/pgf, it is also possible to generate a good looking presentation as well. Since after writing your thesis, you need to give a presentation, why don’t you generate that in pdftex.

These are the special packages I used that give my thesis a bit smart looking. In the next part, I’ll tell about organization and formatting of the thesis.

Feb 18

How to read a non-fiction book

From our academic to professional life, we need to read a lot of non-fiction books to get infomation in shortest time. However, if we see that it is a 250-pages book and we don’t have enough time, we’ll just leave it (it happens to me a lot). Luckily, I have come up with a small document written by Paul N. Edwards of University of Michigan: How to read a book. It is really a nice piece of advice to read a 250-page book within six to eight hours.

I quote some of the ideas from the book I really appreciate:

We need to read the book three times. First time to discover the important contents (takes around 5-10 percent of the total time), second time for detail understanding (it is really reading the book that takes around 60-70 percent of total time) and finally for remembering the important contents (takes 20-30 percent of total time). Don’t you think it a a great strategy?

Do you know where lies the most important information of a book?

  1. Cover
  2. Table of contents
  3. Index: contains the most important terms (this one I did’t know earlier)
  4. Bibliography: tells about the source and authenticity
  5. Preface/Introduction/Abstract (just like the journal paper)
  6. Conclusion
  7. Pictures, grahps, tables, figures: images contain more information than text
  8. Section headings
  9. Special type of formatting: boldface, numbered items, lists (as we use in writing)

Just give some time to read that pdf. You may surprise yourself at your reading speed ;)

Feb 10

Drawing 2D radiation pattern using latex

I was wondering always, how to draw 2D antenna radiation pattern using tikz. I’ve finally figured out a way to draw it. My example code is below:

documentclass{article} % say
draw[line width=2pt] plot[smooth] coordinates{
coordinate (a) at (1.208323740806376,0);
coordinate (c) at (0,0);
node [draw,line width=1pt,circle through=(a),
label=330:$330^circ$] at (c) {};
draw[line width=1pt,dashed] (0,0) circle (1.208323740806376/2);
draw[line width=1pt,dashed] (0,0) circle (1.208323740806376/4);
draw[line width=1pt,dashed] (0,0) circle (1.208323740806376*3/4);

draw[line width=1pt,dashed] (0,0) — (30:1.208323740806376);
draw[line width=1pt,dashed] (0,0) — (60:1.208323740806376);
draw[line width=1pt,dashed] (0,0) — (120:1.208323740806376);
draw[line width=1pt,dashed] (0,0) — (150:1.208323740806376);
draw[line width=1pt,dashed] (0,0) — (210:1.208323740806376);
draw[line width=1pt,dashed] (0,0) — (240:1.208323740806376);
draw[line width=1pt,dashed] (0,0) — (300:1.208323740806376);
draw[line width=1pt,dashed] (0,0) — (330:1.208323740806376);

draw[line width=1pt] (180:1.208323740806376) — (0:1.208323740806376);
draw[line width=1pt] (270:1.208323740806376) — (90:1.208323740806376);


Result of this code is shown in .pdf file. However, the .tex file is also attached (due to the restictions I added .doc file).

pdf file: Radiation pattern in pdf

tex file: tex file

Older posts «