Monday, June 14, 2010

What motivates us at home and at workplace?

Recently I found this video on Facebook (thanks to Vipin Shenoy who shared this). It discusses about what really motivates people at work and at home. I liked it very much and wanted to share it with my friends. I shared it on facebook and buzz. It looked like lot others were also interested in this stuff. So I am sharing it here for a wider audience.

I feel every Manager/CEO/CTO/COO should watch this.


For those who might be interested to know the source of this Video, here it is.

RSA stands for "Royal Society for the encouragement of Arts, Manufactures and Commerce". Find more about RSA and other such interesting work at RSA Website

Sunday, June 13, 2010

Simple stopclock using BASH

Today I had to use a stop clock to time something in a program that I was writing. I found a way to use a BASH variable to make my simple watchdog

#!/bin/bash
clear

# While some condition is true (I always tend to use data command)
while date > /dev/null
do
# Seconds is a bash variable which will give the number of seconds since
# the shell invocation. If a value is assigned to SECONDS, the value
# returned upon subsequent references is the number of seconds since
# the assignment plus the value assigned. "man bash" for more details
SECONDS=0

# Something to pause the execution
read pause_var
echo " $SECONDS Secs"
done

I press enter to know the lap time.

BASH has so many such surprises in it, I wonder how much more still needs to be discovered.