Posts

How to find the source branch of a branch in git

Build kept failing for one of the projects that I was trying to compile and I was told that the source branch ( meaning the original branch from where my working branch got created from) just compiles fine. I had this doubt in my mind, is the branch that I'm working on is really branched from of from the same source branch that I was told? How do I figure that out..  I know, gitk right??? But, I want to see if this is possible with git log. And it turns out , its possible with git log   git log --graph --color --decorate --oneline --all And finally I figured I was given a wrong branch to work with - *smile*  

How to compare branches on github

I was under the impression that the '...' thingy would only work  when used from the git command line.. but github.com is no exception. a simple way to compare branches on github: http://github.com/ < reponame > /compare/ < basebranch > ... < deviated branch >

gpg: cancelled by user

While signing a release tar.gz with gpg key, I got into this weird issue. After digging the internet I finally got the solution. Here is the error that I got and below is the solution to this issue.  [user@host tar]$ gpg --armor --output something.tar.gz.asc --detach-sig something- .tar.gz You need a passphrase to unlock the secret key for user: "user (somthing) " 4096-bit RSA key, ID 654321, created 2012-06-22 can't connect to `/home/user/.gnupg/S.gpg-agent': No such file or directory gpg-agent[7582]: command get_passphrase failed: Operation cancelled gpg: cancelled by user gpg: no default secret key: General error gpg: signing failed: General error Initially I thought I didn't start the gpg-agent [user@host tar]$      eval $(gpg-agent --daemon) I started the gpg-agent with the above eval [user@host tar]$ gpg --armor --output something.tar.gz.asc --detach-sig something- .tar.gz You need a passphrase to unlock the secret key for user: "

yarn nodemanager doesn't start - Caused by: EPERM: Operation not permitted

I was dealing with this YarnRuntimeException recently and thought it might be useful for folks who encounter this situation.   Both Namenode and Datanode is up and running and it was time to start the yarn daemons. ResourceManager came up just fine while the nodemanager stalled with the following exception.  " 2014-04-19 03:46:37,595 INFO org.apache.hadoop.service.AbstractService: Service org.apache.hadoop.yarn.server.nodemanager.containermanager.localizer.ResourceLocalizationService failed in state INITED; cause: org.apache.hadoop.yarn.exceptions.YarnRuntimeException: Failed to initialize LocalizationService org.apache.hadoop.yarn.exceptions.YarnRuntimeException: Failed to initialize LocalizationService         at org.apache.hadoop.yarn.server.nodemanager.containermanager.localizer.ResourceLocalizationService.serviceInit(ResourceLocalizationService.java:234)         at org.apache.hadoop.service.AbstractService.init(AbstractService.java:163)         at org.apache.hadoop.

Flask - WSGI micro framework based on WerkZueg and Jinga2

Flask  a WSGI (Web Server Gateway Inteface) for python based on WerkZueg and Jinga2 .   WerkZueg is a toolkit for WSGI, the standard Python interface between web application and a variety of servers for both development and deployment.   Jinja2 renders templates. How to Install flask: There are many ways one could install flask but virtualenv is one interesting way to do this.  virtualenv: Virtualenv is the best way to deal with multiple version of python and it's modules during the development and production too. Virtaulenv help's solve the problem of separating out multiple versions of python and its modules and give us the flexibility of switching between multiple version of python in a sane way. Helping us maintaining multiple version doesn't mean that Its going to install separate copies of python but it does provides a smart way to keep different project environments isolated.  How to Install virtualenv:  mac: $ sudo easy_install virtualenv or $ sudo pip install v

git tags

All these years (not very long) I ve been using subversion day in and day out. This time I have to work on a distributed source code management system; yes Im talking about git. The company that I work for has git as the SCM. Git changes everything for the right reasons. I like git. While learning and working on git I had to create a tag for the first release of my deployment tool. I looked around to figure out a way to create a tag on my git branch and got this page git-tag . This is not quite helpful. This ref just talks about how to create a git tag locally. But this is not what I want. I want the git tag to be visible in the remote repository as well. Someone playing with git might say git push would do the trick, really not. Pushing git tag to the remote repo is slightly different from the way its done for pushing your branch. Here is how: git tag -a -m "tag for v0.1" 0.1 create a new tag - 0.1 git tag -l list al the tags git push --tags push the new ta

Release Eng

What is RE - Release Engineering Release Management This exactly what I want to say: things-i-love-and-hate-about-being-a-release-enginee