Is getting rich worth it?

Recently I came across this topic in Quora. This kind of interested me.. So, thought of writing a blog on it. Obviously, the answer is, it depends on what is important to you. Let me explain.

What is getting rich? Earning Money.

How much is “that” money? Why do you need “that” much money? ie. Are you earning for yourself or your next generation?

Will “that” money be enough? Or will you start thinking of a little bit more? (And once that little bit more is reached, you will see that there is another little bit more next to it). Especially because, today’s 100$ will not be same as tomorrow’s 100$. So, you need to plan for a steady growth of the money so that you can REMAIN RICH.

What you are gaining?

Obviously, “That” much money with which you can lead your life (or whatever left of it) as you wish/as per your health at that time. And Yes, your next generation will be rich.

What you loose?

People around you may have their expectations changed on you. Today you give them 10$. Once you are rich, will they be happy with that 10$? Are you ready to sacrifice the people or that additional amount? [That additional amount means you will have to earn more :D ]

I don’t think it is possible to split the life as “I am going to spend this much hours for becoming rich” and “this much is for my personal life (to spend with family, friends, recreation…)”. So, once you started to think about becoming rich, you have to reduce the time you spend on your personal life.

If you ask my personal opinion: Yes, Obviously everybody wants to be rich and Im not an exception. I have a certain amount in mind. But, I don’t work towards that. I spend my time/money as I wish (not lavishly though) and the remaining is for becoming the so called “rich”. Finally, If I reached my target, I’ll be happy. Else, no worries. I lived my life as I wished :)

NEST

Tags

, ,

Happy new year to all :) First blog in this year.

NEST is a maker of Internet-connected thermostats and smoke detectors. Google has acquired this company and looks like lots of magic “Sci Fa” (Science Facts, Not Science Fiction any more) is about to happen around us. Click this link to see some of the applications of NEST. Pretty kool. Looks like our house hold items are going to evolve pretty soon.

So over a period of time, this is one thing that can happen. You will start from office/home. This will be known to your car. Your car will start. It will automatically adjust the temperature (switch on AC/Heater based on the weather outside) and adjust the seat for you. Once you are near the car, the door will automatically open. You just have to get in and start driving. And, in the evening, once you come close to your home, your car will inform your house that you are close. Immediately, your thermostat will start and adjust the room temperature, your coffee maker will start and prepare coffee for you and your once you open the door, Your TV will play the game/show that you are awaiting to watch, your coffee maker will give you coffee and you just have to sit back and RELAX :)

Hello!!! Wake up computer!!

Tags

, , , , , , ,

Recently, I was looking for some possibility on whether I can put my computer to sleep and wake it up when I want it to..

While doing so, found this URL: In short, you can put it to suspend or hibernate and wake it up after some time:

rtcwake -m disk -s 60

There are different options to make it to suspend/hibernate/standby… and can specify the time to wake up.. Refer “man rtcwake” for more.

Its cool when you want your computer to wake up before you and have everything setup when you look at your computer for the first time in the day :)

Samba – Allow writes but not modify/delete

Tags

, , , ,

Recently, I was configuring samba on my machine.. I wanted people to copy files to my machine but don’t want them to delete/modify the existing ones. Searched for a bit and found that adding:

create mode = 555

to the /etc/samba/smb.conf file and restarting the samba services makes the files to be created in read and execute mode. (Thus preventing anybody from modifying the files). So, others can copy files to my machine but will not be able to modify/delete them.

Formatting XML in GEdit

Tags

, , , , , ,

Have you ever got an XML that is in a messed up format and had a hard time in trying to figure out what is there? And felt that, what if there is a tool that you can use to format it…

If you are using GEdit as your editor, here is a solution for you:

  • Install python-lxml (Or look for lxml)
  • Create a new external tool configuration (Tools -> Manage External Tools…) and add a new command. Like : (Format XML)
  • This is the script you need to execute:

 #! /usr/bin/env python
 
import sys
import lxml.etree as etree
import traceback
 
result = ”
for line in sys.stdin:
  result += line
try:
  x = etree.fromstring(result)
  result = etree.tostring(x, pretty_print=True)
except:
  etype, evalue, etraceback = sys.exc_info()
  traceback.print_exception(etype, evalue, etraceback, file=sys.stderr)
print result

  • Set Input to Current document
  • Set Output to Replace current document

Once done, you will have a menu option under Tools -> External Tools -> Format XML. Once you click on it, you can enjoy understanding XML easily :) Obviously, being a software engineer, I reused the above given code from somewhere else :D

Unlocking levels in Candy Crush

Tags

, , , , , ,

How many of us are playing candy crush regularly? And, loose all the lives and have to wait for long time to regain all the lives?

Once we reach a certain level, to proceed to the next level, it asks us to play 3 quests and we can plan only one per day.. And as we are addicted, how can we wait for so long… huh??

Solution: This worked for me (Read from somewhere though)

1) In your mobile, close the candy crush app. (Not exit. Terminate the application)

2) Change the date/time on your mobile (Add 2:30 hrs to the current time if you ran out of lives and 1 day if you want to play the next quest. to unlock the next level.)

3) Start candy crush. Open the game. But, don’t start playing yet.

4) Exit candy crush. (As mentioned in step 1)

5) Revert your change to date/time on your mobile

6) Start enjoying candy crush.

If you didn’t exit candy crush app or change the time properly , you will be in a big trouble either to play candy crush or with the date/time on your mobile.. So follow the steps as mentioned.

Beware!! Candy crush is not a game. It is an ADDICTION :)

First week in the USA

Tags

, , ,

First week went fast… :)

The best thing was, (Believe Me!!), I didn’t have jet lag :)  I didn’t know how.  I started at night from my place.. On the first flight, slept well. Once I reached the place where I have the connecting flight, I roamed inside the airport for a while. Then came the flight to US. I didn’t sleep during that travel. Tried watching movies.. May be that was the reason for not having jet lag.. Reached USA that evening. One of my friend had prepared some good food for me.. Had it and slept. The next day, I was up and running :)

My observations so far.. People seem to be polite. They greet whenever they meet others. That is good. The roads are clean. People follow traffic rules strictly. I have heard honking in cars only when the car gets locked. Not on the roads. Being an Indian, Im missing honking :D One thing for sure is, Any Indian can drive in the USA.. But, I dont think any American can manage to drive in India :D Common India, lets do something about it :)

One more observations about the TV commercials: In the USA, I can find that the TV contains commercials for medicines, alcohols.. But, that is not that much in India. I like India in that perspective.

Another observation about the programs in TV: Around night, the programs seems to become a bit violent. Lots of horror stuff, killing stuff.. But that is not the case in India. Again, I like this in India.

Being Indian, Im used to do the conversions when I buy things. Hope I stop doing that soon :) (Yes.. Some things seems to be more expensive).

I’ll be staying here for a while.. So, I’ll try to write more :)

Alcoholism in movies

Tags

, ,

Drinking is not an Indian culture. I don’t say that nobody drinks.. But, people will have a guilty feeling when they do.

In olden movies, the actors will drink only when they are sad or bad (villains). If the good guy drinks, either he will die because of drinking or he will quit drinking.. That kind of made sense. But, nowadays, the hero or his friend drinks. Whether they are happy or sad doesn’t matter. As if it is part of daily life.. There are very very very very few movies that doesn’t have alcohol in it in the past 5-6 years.. This sends a wrong message to the next generation.

I read that, the government makes a lot of profit from wine shops. Somehow this makes me think whether the government is indirectly forcing the media industry to have atleast one scene where somebody drinks…

If the directors say that the story needs it, how did the (g)older movie directors made movies for ages without any drinking scenes.. Can anybody show/name me a movie where MGR had alcohol?? Didn’t those stories had the so called “situations”? If he wanted, do you think he couldn’t have included such scenes? Because, he wanted to send ONLY the RIGHT messages to people. And HE STOOD BY IT.

Don’t BS me saying that this is the culture now. Still, there are millions who are afraid to go home after taking drinks and don’t drink for that reason alone.

Showing “Drinking is injurious to health” at the beginning of the movie alone is not enough.. If you really mean it, why the *** do you need those scenes in your movies??

Film industry, Movies have a greater reach. It is a powerful media.. Do not misuse it and Please DO NOT SPOIL THE UPCOMING GENERATION.. By watching the movies, we can build an opinion about those olden days.. This is also like recording the culture in history.. DO NOT DEFAME OUR CULTURE…

Recursively list files (with space in their names)

Tags

, , , , , ,

Today, I had to do a long list of files inside a folder recursively. I tried using

find <folder> | xargs ls -l

This failed miserably when the folders/files inside the search location had space character in it. Searched for sometime and came across:

find <folder> -print0 | xargs -0 ls -l

Its kool..

-print0 prints null character as line delimiter and -0 (for xargs) takes null character as line delimiter and passes that input to ls.. Nice one :)

Follow

Get every new post delivered to your Inbox.