Thursday, November 5, 2009

Leadership vs Management

I completely agree with the views posted by Avinash on his blog.

The table that he put at the end of the post looks very accurate to me.

Wednesday, July 1, 2009

Perforce ChangeList Diff

I use Perforce as source code version control system. I don't use any visual client.

Perforce allows you to view differences between the version you are working on and the latest version in the repository. To view the difference for one file, we use following command

p4 diff -du //depot/prod/branch/pkg1/test.java

To view the difference for multiple files opened for edit under pkg we use following command:

p4 diff -du //depot/prod/branch/pkg1/...

Many times we create a change list that contain multiple files spanning multiple packages. There is no way to view difference for all files in a change list. I wrote a simple shell script that will show the diff of all the files in a change list. Just copy the script below in a shell script, assign it execute permission and you are good to go.

#!/bin/sh
echo "Generating diff for ChangeList: $1"
p4 opened -c $1 | cut -d "#" -f 1 | xargs p4 diff -du

Let's say you saved the script in p4_cl_diff.sh then the command to use the script would be:

p4_cl_diff.sh

Let me know if you find it useful.

-Naren

Tuesday, June 23, 2009

My first blog

So far I have limited myself to reading what other write. But today is different, the long code build is on and I don't have nothing much to do. So I am here writing this first blog.

Initially the blogs that I read were very large and I assumed that one need to be good at writing pages before thinking of creating a blog. However, after reading blogs as small as 5-6 lines (it was certainly not twiter), I think I quality for creating my own blog and explore my writing skills.

I think this is it for now. The next one will be on my phone E71 which I bought last weekend.

I am not sure if many people will read it. But if someone come across this, please do share some tips to keep in mind while blogging.