Just came across this story where Tina Seelig at Stanford gave her student to make as much money as possible with $5 and 2 hours. It was a great story. Think out of the box and you might be surprised
It is impossible to keep kids away from computer and network these days. Actually, we should not attempt to do it anyways. They are born in this all digital world, internet is as natural as air and water for them.
I came across this interesting website called: http://www.doyouneedvisa.com recently. Basically what it does is that you tell it where are you from and where you want to go, the website will tell you if you need a VISA for
When I started my code snippet into my blog, I used <pre></pre> to make it as pre-formated text. However, it is ugly without syntax highlight. There are many WordPress plugins that can add the syntax highlight to various languages (just
Here a C shell snippet get_script_path.csh to do the trick.
if ( "$called" != "" ) then ### called by source
echo "branch 1"
set script_fn=`readlink -f $called`
else ### called by direct excution of the script
echo "branch 2"
set script_fn=`readlink -f $0`
set script_dir=`dirname $script_fn`
echo "script file name=$script_fn"
echo "script dir=$script_dir"
We have two ways to run the script, to illustrate why we need to handle differently, we print out the internal strings. 1. Source the script file
tps-VirtualBox:~/test> source ./get_script_dir.csh
script file name=/home/tps/test/get_script_dir.csh