Tuesday, July 31, 2007

The Case of a Dumb Email Forward



I got a mail forward from a friend saying "That happens only in bangalore !!!" as the subject line. I usually don't believe in such mail forwards. There are several such forwards we see/get from the friends in our daily life.

This happens only if the people are using the mail just for the forwards with out thinking for a while. If they know the actual reason for the snap, which i was talking about, they have to agree with me for the abnegation.
Here i am giving the mail content from the forward:
"Technology on street..
A techie transfers fund for a penalty from his laptop near Trinity Circle in Bangalore on Tuesday....
"

Forwarding such a mail is not a problem, sending blindly to create such an impression about the public services is a issue. So i finally found the actual reason for this on knowledge base[net]. I am not sure even this is the root cause for this photo or not, but since its a public site, i can trust site than the mail. See this link, it would reveal the actual reason of this snap...
http://www.kiruba.com/2007/07/case-of-dumb-email-forward.html


+

Monday, July 16, 2007

Procastination is the cause of all the problems . . .

I don't know whether you people have faced this or not. But i faced a situation with this concept in life. Things are going fine and every thing seems to be in control. I am a fan of delaying the things to tomarrow when it comes to shopping or purchasing some thing. The thing is that i won't give much preference to do this immediately. This started happening after i left the college. Belive me i am the first person used to put leg in college out of all the people.[used to stay near to the college campus where all the rest used to stay in the city almost 20K from the college.] So what ever it is, the moment you think you can do it, doing it immediately is better than delaying it to tomarrow. Ofcourse there are few exceptions, where delaying things might help in making a good and better decision. So it is up to us to decide and act so that the plan will be crystalized and stop the aberrant mind fluctuations...


.

Wednesday, June 27, 2007

We can search Flickr images with yahoo search now !

This is so cool that this takes care of searching for the images with the given attributes and renders the list of the returned list :). Same thing can be done even with google too, but i am not very sure whether google does indexing of the flickr images...

Any way the things are becoming clear and no need to remember hell lot of site names to search for a desired one...

Wednesday, June 20, 2007

FooPlot is really Cool ...

I tried by manually entering x+1 with a liner line funtion y = x + 1 in 3D to see the graph,














http://fooplot.com/x+1 the plot is well shown in the site. I read from this site that in coming days, it will communicate with Google spreadsheets and interact with server-side scripts that do curve fitting and other tasks :) Probably i will skim through my engineering graphics book to study the mysterious curves...




+

Monday, June 18, 2007

Jakie ...

I come to know from my brother that our pet dog has left to heaven ... It was part of our family since 1997. It was so good and understands the commands well. I still remember, it never used to leave my legs when i go to home once in a while... Actually it happened a month and half ago, since i love it much, parents didn't tell me immediately ... I was passive for a while after knowing this news and found the snap that looks similar in flickr. I was thinking to bring it to my place from the place where i had born. Bringing pets to office is not a restriction/ constraint in companies like google, yahoo or amazon. She is great. I am sure i will get a new pet very soon.


+

Nokia N-series ...

This cool series has many features . . . Recenly got this N70 - phone. It comes with a real player song by rehman, the song seems like it dedicated for this series of phones. You can take snaps using 2 of its cameras. I will try to post pics from this mobile soon here in this blog . . .

Tuesday, June 12, 2007

One liner to ensure desired directoy hierarchy exists . . .

This tick reveals unix command line depth and expertise:
You have a predefined directory structure hierarchy and before you start the installation/pushing the binaries into them want to make sure you create the directory structure.

How can you write a command line which creates only the directory structure of a given directory. It should not creates the files, just only the directory hierarchy.

Context:

Present directory is /home/narayana/ and it has the below structure:
a
|------- b
|.........|----- c
|.........|.......|---- t1.txt
|.........|
|.........|
|.........|----- d
|.........|.......|---- t2.txt

Create a new directory called programs in /tools/narayana/ and copy only the directory structure to this.

Solution:
Create a t directory and cd to /tools/narayana/ and execute the below command to create this hierarchy.

ls -Rl /home/narayana/a | grep -e '/home/narayana/a.*:$'| cut -d ':' -f 1| awk '{print substr($1, length("/home/narayana/")+1)}'| xargs mkdir -p

This command creates it!!!

Explanation:
------------
Check it by doing recursive listing byls -Rl:
narayana.desktop% pwd
/tools/narayana/
narayana.desktop% ls -Rl
.:
total 4
drwxr-xr-x 3 narayana homedev 4096 Jul 7 13:24 a

./a:
total 4
drwxr-xr-x 4 narayana homedev 4096 Jul 7 13:24 b

./a/b:
total 8
drwxr-xr-x 2 narayana homedev 4096 Jul 7 13:24 c
drwxr-xr-x 2 narayana homedev 4096 Jul 7 13:24 d

./a/b/c:
total 0

./a/b/d:
total 0


Check with the actual directory format:
narayana.desktop% pwd
/home/narayana
narayana.desktop% cd a
narayana.desktop% ls -Rl
.:
total 4
drwxr-xr-x 4 narayana homedev 4096 Jul 7 12:41 b

./b:
total 8
drwxr-xr-x 2 narayana homedev 4096 Jul 7 12:40 c
drwxr-xr-x 2 narayana homedev 4096 Jul 7 12:41 d

./b/c:
total 4
-rw-r--r-- 1 narayana homedev 126 Jul 7 12:41 3

./b/d:
total 4
-rw-r--r-- 1 narayana homedev 9 Jul 7 12:41 4


+ This is useful in many instances where you just want to create the bins into which
a scheduled job can populate the stuff/demographics :)




+