Tuesday, September 22, 2015

Unnecessary files getting checked in GIT


https://premaseem.wordpress.com/2013/05/10/git-status-shows-files-as-changed-even-though-contents-are-the-same/

good use of git rm and git reset command to remove unnecessarily checked out files.

Sunday, September 20, 2015

Post from September.. :)


The days are so happening now days. There are many new things happening everyday. Most of them positive and some negative developments.
I wish I could garner enough strength to write on a daily basis. But some times sharing my inner thoughts on blog does not seem a good idea given that I have a common blog for my tech related posts and general posts. However, I feel inspired by my Mausi Ji who writes so much everyday despite having a grueling schedule of Job, household chores, Palmistry etc.

Anyway, I am enjoying joyful, insightful company of Anup, Shekhar and Srini. Our kitchen is cursed for cooks. Every new cook end up facing some or other tragedy. Earlier Basant, the cook came but soon cyclone in Odisha washed away his house. Later his father also died. So he left. The next, also from Odisha, met similar fate. His Mother died so he also left. Sad. Some times I wonder, how painful or cruel are these moments in comparison to not clearing a exam or not meeting a deadline.
Anyway, My flatmates and me have spotted an opportunity in this. I have explored number of food joints in Bangalore in last 3 months. Recently we visited La Kasa. It had variety of things. I had American dish, Shekhar and Srini had TIbetan while Anup had mexican dish. Sorry, I do not remember names of dishes we had. One afternoon we visited BBQ Square(Turkish food). Before that Napoli, Espresso Cafe, Whats in the Name, Big Brewsky, AAngan, Bakasur, GoldKonda Chimney, Maxmuller, Ant cafe, Tomatino, Luhoan, Earth Planet, Calvins, and few others... Some times I wonder on the rich and lavish life style people live. Most of the time, my gaze is observational. I pity the difference inside and outside the restaurant.
But at other times, I think these are the economic conduits from where money of rich, fortunate and extravagant flow into the economy and reach to the poor.

Apart from food and fun, what makes the company of Anup, Shekhar and Srini more interesting and joyful is their vast knowledge and world view. It is tough to find similar breadth of knowledge in people outside civil services arena. Thus discussions are more rationale, liberal, critical and deep in nature. Anup has good food taste and has traveled a lot. Srini has great command over trivia and general start up related discussion. He is a live walking linkedin. Shekhar is avid book reader and movies lover. Just listening to their conversation is some times so enthralling that it ignite my craving for books and movies.

Start up experience is also good but it is not as great as I expect it to be. This is probably because we do not have strong technology team so learning does not get multiplied. Its like you slog, you search and you find the solution. But some times, having a senior mentor or other colleagues helps in breaking seeming unsolvable problem of technology.
Schedule is not going great. Deadlines have spoiled my schedule. I have to take some serious tough decisions. May be making schedule as my first priority than start up. My flatmates are also not very inspiring in this regard.

Sometimes, I feel really confused about my career choice of making IT as my primary career and Civil Services teaching as fun, hobby and time pass activity. Lot of doubts clutter my mind. Loads of money, good network in Civil Services coaching is great thing. But some how Civil Services teaching does not seem very futuristic. It seems mundane. Technology is more transformational in nature.

Anyway will write further on this later. Need to separate my blogs too.

Saturday, September 12, 2015

Loading contact details of person in Android



Very helpful android code snippet
http://www.higherpass.com/android/tutorials/working-with-android-contacts/2/



Tuesday, September 8, 2015

Loading my small java code on servlet start up

I was confused about how to execute my java code automatically when servlet container is started. Found a quick solution on this
http://crunchify.com/how-to-run-java-program-automatically-on-tomcat-startup/

Here init method of any servlet could be used to run or load some code.


Sunday, September 6, 2015

Working with GIT

As the number of files and number of team members increase, It becomes essential to move to some standard code repository management system. We have number of options like Perforce, Svn, ClearCase etc. We decided to move ahead with git for couple of reasons. Firstly, open source nature of product and secondly, available android and eclipse plugin for the same.

However, Due to my lack of knowledge about Git and time constraint, I am still confused about smooth merging of files and branching in git. I found following document very useful in this regard.

http://rogerdudler.github.io/git-guide/

Recently, some one made a mistake in git repository using my user name (I am still not sure if I made those deletes). Thus a lot of work had to be repeated. Thankfully I had some back up files so things worked out for me.

Anyway, Done. Will continue writing about my daily learning. Of all the things, taking up laptop and writing is most difficult to put into routine. Anyway, I am sure it is just matter of starting on a regular basis. Things will be simplified.