“Let us rise up and be thankful, for if we didn’t learn a lot today, at least we learned a little, and if we didn’t learn a little, at least we didn’t get sick, and if we got sick, at least we didn’t die; so, let us all be thankful.”
- Buddha Through Julie911
Anything that interests me finds place here. Software dominates my interests and hence a good part of this blog as well.
Monday, November 30, 2009
let us all be thankful.
Tragedy is a test of courage.
“Tragedy is a test of courage. If you can meet it bravely, it will leave you bigger than it found you.”
- A Star is Born (1937) from Perfectly Imperfect/Julie911
The joy of life comes from our encounters with new experiences
“So many people live within unhappy circumstances and yet will not take the initiative to change their situation because they are conditioned to a life of security, conformity, and conservatism, all of which may appear to give one peace of mind, but in reality nothing is more dangerous to the adventurous spirit within a man than a secure future. The very basic core of a man’s living spirit is his passion for adventure. The joy of life comes from our encounters with new experiences, and hence there is no greater joy than to have an endlessly changing horizon, for each day to have a new and different sun.”
- Chris McCandless, Into The Wild from Perfectly Imperfect/Julie911
Wednesday, November 25, 2009
You should never try to be better than someone else
The reason people find it so hard to be happy is ...
“The reason people find it so hard to be happy is that they always see the past better than it was, the present worse than it is, and the future less resolved than it will be.”
- Marcel Pagnol Through Julie911
Tuesday, November 24, 2009
Monday, November 23, 2009
...This, too, shall pass.
“Expect trouble as an inevitable part of life and repeat to yourself the most comforting words of all: This, too, shall pass.”
- Ann Landers Through Julie911
Sunday, November 22, 2009
Strategies for development with Liferay
Portlets in Liferay
Saturday, November 21, 2009
DRM - Digital Rights Management
Friday, November 20, 2009
Audio connectors/plug/jacks
Thursday, November 19, 2009
Which process has a lock on a file (continued....)
The command line utility to check the processes that have a lock on a given file:
e.g.
$ handle server.log
Handle v3.42
Copyright (C) 1997-2008 Mark Russinovich
Sysinternals - www.sysinternals.com
<Non-existant Process> pid: 277144 43C: E:\xyz\abc\logs\server.log
<Non-existant Process> pid: 278500 71C: E:\xyz\abc\logs\server.log
<Non-existant Process> pid: 279112 71C: E:\xyz\abc\logs\server.log
$CDPATH - very useful for bash shell navigation
Often, we “cd” to commonly used directories in a bash shell. Having to type the whole path is often a pain. I was using aliases to navigate to commonly used directories (e.g. alias scripts=’cd /cygdrive/c/scripts’). But this would require you to identify each frequently used directory, define an alias for each one of them and remember the alias.
A good friend of mine, pointed out an alternate to achieve the same. $CDPATH. This is a set of paths that the “cd” command would look into (besides “.”) for the directory to switch to. So if “cd scripts” is executed, it will check if the current directory has a “scripts” directory, if not, it will look for a “scripts” directory in each directory indicated in the “CDPATH” variable. If “CDPATH” has “/cygdrive/c/: /cygdrive/c/home/xyz”, then cd will look for “./scripts”, “/cygdrive/c/scripts”, “/cygdrive/c/home/xyz/scripts” and cd to the first directory that exists.
Wednesday, November 18, 2009
Which process has a lock on a file
Many times one attempts to delete a file and windows reports that the file is in use by another program and hence cannot be deleted. Tracing out which program is using the file was a hassle.
With Windows Process Explorer, you can figure out which process is holding the lock on a given file.
Once installed and started, click on “Show Lower Pane (Ctrl + L)” on the tool bar. This will open up a listing below the list of the processes. Now click on a process and all files used by that process is listed in the lower pane.
Saturday, November 14, 2009
Friday, November 13, 2009
Merging specific commited changes from one branch to another
To merge changes made in revision 7877 from trunk to the current working directory (which could be another branch):
svn merge -r -r7876:7877 svn://xyz/abc/efg/trunk
Lunch at O'falafel today
Went to O’falafel today and the sandwich for pretty good.
Thursday, November 12, 2009
There is more to life than increasing its speed.
“There is more to life than increasing its speed.”
- Gandhi through Kari-shma
Wednesday, November 11, 2009
Tuesday, November 10, 2009
When you love someone...
“When you love someone, you’ve got to trust them. There’s no other way. You’ve got to give them the key to everything that’s yours. Otherwise, what’s the point?”
- Robert De Niro, Casino through Julie911
"A cheerful frame of mind, reinforced by relaxation. is the medicine that puts all ghosts of fear on the run."
“A cheerful frame of mind, reinforced by relaxation… is the medicine that puts all ghosts of fear on the run.”
- George Matthew Adams through Julie911
Friday, November 06, 2009
People and Virtues
Don’t break virtues to appease people.
Don’t break people to enforce virtues.
- Me