Thursday 20 December, 2007

Reality Mining using Mobiles

This "Reality Mining" is some sort of technique which collects information regarding a person using the mobile phone usage. This can be used to create a social network model. Just go through.. its interesting. He is using bluetooth when the phones come nearer to each other to find that they are nearer.

Thursday 13 December, 2007

Shell Scripting

I found quotes are little bit tricky and confusing in Shell Script. Below is about them got from freeos.com
"Double Quotes" - Anything enclose in double quotes removed meaning of that characters (except \ and $).
'Single quotes' - Enclosed in single quotes remains unchanged.
`Back quote` - To execute command.
Also, it looks like interpreter converts all the "Double Quotes" into 'single quotes' and again executes this resulted one with single quotes. You can get this from the output if you have "#!/bin/sh -vx" as first line in your script.

Wednesday 12 December, 2007

JunkTest Version 2.0


NerdTests.com says I'm a Slightly Dorky High Nerd.  What are you?  Click here!

Hmm.. Dorky High Nerd? Is it so? :)

Thursday 29 November, 2007

Beauty of Maths

Beauty of Math!

1 x 8 + 1 = 9
12 x 8 + 2 = 98
123 x 8 + 3 = 987
1234 x 8 + 4 = 9876
12345 x 8 + 5 = 98765
123456 x 8 + 6 = 987654
1234567 x 8 + 7 = 9876543
12345678 x 8 + 8 = 98765432
123456789 x 8 + 9 = 987654321

1 x 9 + 2 = 11
12 x 9 + 3 = 111
123 x 9 + 4 = 1111
1234 x 9 + 5 = 11111
12345 x 9 + 6 = 111111
123456 x 9 + 7 = 1111111
1234567 x 9 + 8 = 11111111
12345678 x 9 + 9 = 111111111
123456789 x 9 +10 = 1111111111

9 x 9 + 7 = 88
98 x 9 + 6 = 888
987 x 9 + 5 = 8888
9876 x 9 + 4 = 88888
98765 x 9 + 3 = 888888
987654 x 9 + 2 = 8888888
9876543 x 9 + 1 = 88888888
98765432 x 9 + 0 = 888888888

Brilliant, isn't it?

And look at this symmetry:

1 x 1 = 1
11 x 11 = 121
111 x 111 = 12321
1111 x 1111 = 1234321
11111 x 11111 = 123454321
111111 x 111111 = 12345654321
1111111 x 1111111 = 1234567654321
11111111 x 11111111 = 123456787654321
111111111 x 111111111 = 12345678987654321

This I got by a mail from my friend. Nice one..
By the way, are the results correctly?
So, from next time onwards, if any one asks you to write a program to print the pyramid of numbers, instead of writing using junk loops, use Maths to print it.

Thursday 22 November, 2007

Customized Newspaper

Blogging after a long time.. had been a little busy, I guess, these times.. ok..
Point is - again, looks like, one of my old junk idea is patented by Google :(
It is Google Magazine. I was thinking to have a newspaper in the way the reader wanted, i.e, based on his interests. Some may think business news should come in main paper and some may think sports should come in the main paper. Finally, wanted to say is - newspaper/magazine should be in the interest of the end user i.e., the reader.
They gave the caption as "Customization of Content and Advertisements in Publications.” They covered a lot in their patent like revenue in ads etc.
I just got this idea and mailed myself to work on it before 2005 July itself, but, never done it :( One problem you can see here is - printing. Google guyz patented it in 2006. I think they don't want to make it as a product. I guess - they want to enjoy the royality.
Whatever it may be, once again, I lost my chance, that too, to Google itself. I don't know whether I should feel happy or not.
One qn - can I ask royalty from Google by showing that mail? Waiting for responses

Monday 5 November, 2007

Nice movies that I watched

Watched 2 nice movies in the recent days - "Happy Days" and "Aakali Raajyam" - both are telugu movies :)
"Happy Days" - all about the college days. Haa man, awesome movie.. Nice fun filled one. How the ragging and how the friends will be moving and the fun moments between them and of course LOVE also are shown in the movie (many more fun scenes are there). But, I expected still more fun scenes in classrooms other than LOVE.
Totally, different from the above one is - "Aakali Rajyam" - Kamal Hasan's old movie in K.Balachander's direction. Ultimate piece of his creation - showing the problems faced by people searching for jobs (I hadn't mentioned all here). In that, there was one conversation, as,
A: Don't you have lunch?
B: We will have it once in a while.
What a heart touching one right! There are many such scenes and many communist related dialogues. Lot of problems they will be facing by him
But, I guess, its not the case now a days. Atleast, I can say it reduced a lot. Not that much unemployment, but still a lot. May be because of this, after watching the "Happy Days" movie, we prepared one more story saying "Jolly Days" - the next 4 years after B.Tech like the accommodation at the time of searching for jobs, attending interviews, initial days in office, facing the manager, house owners, going for trips, and some helping the family and finally entering the marriage phase etc.. (I hadn't mentioned a lot here) Aren't they jolly days if you got a right bunch of people around you - starting from your roommates, owners, office colleagues, your team, manager.. hmm.. and girl friend too
But, it is this bunch of people's responsibility to consider country's growth, involving in socialistic activities, inflation and everything and at the same time, enjoying :)

Wednesday 31 October, 2007

How can this happen? - regarding memory

This article throws light on some memory related use cases. Here, memory and use cases are not computer related terms. They are related to medical field. A lady (use case), as mentioned in that article, can remember each and every frame of her life starting from 11 years age to till now. Now, she is just 85 years young. And one more (other use case) cannot remember anything for long time. Once he wakes up and had breakfast, he will go to bed. Then, again, he will doubt whether he had breakfast or not after woke up, and so, he will have it again. One more point here is - he doesn't remember that he have some memory problem. One more guy after went to hospital with some problem with the brain, that doctor done some experimental treatment as drilling holes above his eyes and etc.. the result was like "he lost some of his memory". This took me to some spells in Harry Potter like "OBLIVIATE". Good. Nice article - worth to go through

Monday 29 October, 2007

Semantic Web

Semantic Web - a nice one. If you allow it, it will collect the information from the places you are visiting and also abt the people taking information from your site and organizes it. It looks to be helpful, isn't it? The product called as Twine. Looks like there is something called as Semantic Web Standards where these type of applications need to follow..
Oh man.. they are using natural language processing algorithms to extract key information from the data you provided. Good Stuff!
And Apple new OS review is here. They are mentioning "Time Machine" as one of its great feature. Is it so? I don't feel. And after that there are some features like parental controls and other junk.. (This is just my impression over that) But, I bet that their UI things might have got improved a lot. One more link related to that is here
Looks like, I keep blogging on the sites I visited, rather than writing some of my own. May be I should have just marked those items as Shared (if possible), right? Is it OK? may be..

Friday 26 October, 2007

sAd mOment :(

Very Sad moment on friday :(
Missed my dance class :(
And wasn't able to fix the issue also.. very bad :(
It was pinching me for a lot of time :(

Interesting links that I came across while browsing:
Order of Birth - shows the research done on how the elder kids and younger kids mentality differs and how they selects and climbs the ladders etc..
Rating Facial Expressions

Wednesday 24 October, 2007

Overcoming tHru

Now-a-days, my heart is heavier than my brain. It keep on increasing its weight. Yesterday, found the way to divert from them and thought of blogging it today. I found myself feel light after reading novels or listening to music or practising dance steps as they keep roaming in my mind. So, I reckon every one to do the work they like, for ex, reading their fav. novels, or blogging or what ever it may be :)

Tuesday 23 October, 2007

Found some interesting link - Binary Patching

For Binary patching, here is the link. Nice idea where you modify the binary files contents. Ofcourse, its not new completely, as already there are ways injecting data into images (I guess this is termed as Watermarking), but, this is useful one.

Saturday 20 October, 2007

tHis cAn be tErmed as BreakThrough in tapping Human's Brain - TEACHING THE TONGUE TO SEE

An awesome article here with brilliant and mindblowing idea. Unable to believe that it is possible to teach a blind person to see with his tounge. Awesome one - connecting electrodes of a camera to the tongue. Here, this electrodes generate a sensation on the toungue with the help of picture captured by camera, and the tongue actually sends the signals to brain making him to see it.
It helps mankind a lot. Its a boon for human kind and specially for blind people who are in depression and can't see and enjoy the beauty of the world. Ofcourse, there are great people who can visualize the things in the better way compared to the things really exists and who are happy and intelligent than the people who can see.
UPDATE:
http://www.technologyreview.com/Biotech/19613/
http://www.technologyreview.com/Biotech/18193/
Looks like image processing plays a big role here

Wednesday 17 October, 2007

hOw Google mAps tHe wOrld?

This was my doubt "How Google Maps the World? What its database? What it do?". Found a nice article on this here. These are from that article:
..These images, which are shared by Google Maps, are actually a combination of aerial photos and satellite ­imagery--and a lot of post­processing...
Looks like nothing database as such. Atleast for the current earth positions, it won't use any database. It uses the combination of aerial photos and the images from DigitalGlobe, the company that supplies Google's satellite photos, and do the image processing on them. May be, it need to use some spatial databases to store these and get them again whenever needed.
Below is the image from that article that explains most of the process

Tuesday 16 October, 2007

Technology Review Young Scientists TR35 - INVISIBILITY CLOAK

Technology Review have very good articles. There is one article on Invisibility Cloak . It made grin on my face from this ear to that ear as its a proof for Harry Potter story to come into reality. This may lead to BreakThrough in technology. Some nice fundu statements from article Shedding Light on how our brain recognizes faces
.. unravel the process by combining two of the most important tools in neuroscience: brain imaging and electrical recordings from single neurons.
Some nice articles:
Securing systems cyptographically
Optimizing Networks

List of Young Scientists is here

This "Invisibility Cloak" made me to remember the invisible car in "Die Another Day" James Bond movie also. Their villain wears some special type of spectacles which can track it. That should be X-Ray ones according to this article.

Monday 1 October, 2007

My Xperiences with nOvels

Thought of reading novels, to increase my vocabulary. But, my first attempt made me a Boring Chemistry Lecturer. Its because my first novel was "Arrow Of Time". It went like a semester course for me. Finally, stopped reading it.
Somehow, I got Harry Potter - 3 from my friend and read few pages of it. I became big fan of that. I bought the first 2 books and completed them within 2 weeks. I liked them very much. All the time, the characters were roaming in my mind. ('m usually of that kind where the things will be there in my mind roaming. May be same case with many). I just LOVED them. I think - it increased my communication skills, increased my vocabulary too. (I will try to use them in my blogs)
I was under impression that how people can read novels instead of reading technical books. Now, I got to know why people read novels - it increases the visualizatin power, vocabulary, thinking capacity and communication skills ofcourse. But, any thing exceeding limits will hurt and cause problems. So, Happy Reading nOvels to All :)
I will put some of my favourite phrases from that book in my next blogs :)

Friday 7 September, 2007

Changing the format of the coredump file name

When any program crashes, it dumps core. File name format of the core that gets created can be controlled using sysctl.
One way is: sysctl -w "kernel.core_name_format=/coredumps/%H-%N-%P.core"
%P The Process ID (current->pid)
%U The UID of the process (current->uid)
%N The command name of the process (current->comm)
%H The nodename of the system (system_utsname.nodename)
%% A "%"
Got this from the link.

Wednesday 29 August, 2007

In the traffic

Today, I missed Novell bus and took the BMTC bus. It was totally fun in the traffic today. I guess - people's problem in the traffic is not only that they are reaching late to their destinations, but there are some more I guess. Some I feel and some I read from their feelings are like
- if the person find that vehicles in his lane are not moving, he will be very much disappointed and will be scolding the driver like why this fellow is driving like this? what happened to this driver's lane only while other lanes moves fast :) And, when his lane is not moving and if driver takes other lane and if the first lane moves naa, gone case, he will be very very disappointed
- more over than this, they feel disappointed that other lanes are moving. and if his lane moves and crosses some other vehicles in other lanes, he will be the happiest.
And, also, he feels down because the vehicle stopped. Its not moving. So, we can have some sort of mechanism where people in vehicles feel that his vehicle is moving and we will close all the windows so that he can't see outside world :)
But, still, we won't solve the problem that he is reaching his destination late. But, he can be made mentally satisfied.
What a JUNK blog naa???? :D :)

Tuesday 14 August, 2007

What the HELL is happening on this Earth? :-(

Series of :-c, :-< and :-|| events

Saturday 21 July, 2007

Online "Operating System"

I came to know abt this Online "Operating System" from my friend. There are many sites that provide you an acct similar in the way of email acct to login and have your own "Online Operating System". Get the sites that provide this facility by googling for the title of this blog and Enjoy:)
This was my idea in 2004. Now, there are many sites implemented this :)

EDUSAT

EDUSAT - A DEDICATED SATELLITE FOR EDUCATION - is the project done with ISRO, MHRD, IGNOU and State Departments of Education. Nice Project. Uses the space technology to share the knowledge. Our Beloved President Kalam made a quote "Democratization of Knowledge". Nice Wording - I liked it :)

Friday 29 June, 2007

Google Bowling

Google looks like trying to improve its page ranking algorithm - by penalizing and awarding some points to sites based on their behaviour. Page ranking usually depends on how many incoming links are there to your page and what's their ranks. Looks like in latest algorithms, people found some loophole and it is properly expalined here. "Kick Your Competitor With Negative SEO?" is shared article related to this.

Wednesday 27 June, 2007

Abt Tomcat and Comparision between that and my project

These two classes (HttpServerRequest and HttpServerResponse) are also called as Servlets (as far as I know) ( Don't bother about terminology :) )
So, the following things happen:
1. You receive a request from browser
2. Handle it using HttpServerRequest API's (Don't worry, that request from browser comes as HttpServerRequest object to you)
a. Here, you can get all the headers from the request
b. You can get the POSTed data also if it is POST request
c. I don't know abt HTTPS related things. For this also, API's should be available
3. Now, analyze the request and make the response using HttpServerResponse API's. This is the data that will be sent to browser
a. Here, you can add the headers that you need to send to browser
b. Can add the data part of the HTTP protocol stack
4. That's it. You implemented one webserver

Just this much is tomcat. My project is atleast double the size of this one.
My project is 'Proxy'. In my project also, we have HttpServerRequest and HttpServerResponse classes. These will be used to handle the request coming from browser and to send the response to browser respectively. As 'm 'proxy', we don't have the data that need to be sent to webserver. So, we need to have similar classes that sends this request to webserver and handles the response that comes from webserver.

So, my project is at least double the size of tomcat, right?
Over this, we have much other work to do. Need to change the request that will be sent to webserver and also need to change the response that will be sent to browser.
So, mine is a nice one to learn.... right?

wikimapia

This site is very cool. It zooms almost every village of India. I was very excited, happy ( and :-( also) to look at this. And, this allows you to mark the places also. Hats off to the creator.... I came to know about this from my colleague.
I just have a doubt - what is the backend database used for these type of sites? how the mapping will be there from this database to the one that we view on browser? I just have a very high level answer for this - Spatial Database

Tuesday 26 June, 2007

Google Custom Search

This blog is not related to the functioning of Google Custom Search at all. I landed at this Google Custom Search after visiting my friend's blog. Formats of the annotations that it supports caught my eye. It allows to upload a file that have the url's in some format and when you give any query, it searches in that url set.
Looks like this is useful in the project which I'm currently working to configure the rewriter profile. This may help me in explaining one of the junk idea I have.

Thursday 21 June, 2007

"We don't view that kind of activity as an appropriate activity for one partner to do to another."

Above are the words said by a eBay spokesman against Google's act of having the Checkout Freedom Party at the same time of eBay's meeting with its users. So, eBay pulled its ads out of Google's Adwords. Google cancelled its party. Its a slap for Google from the online auctioneer giant eBay. Win for eBay and lose for Google.

Sunday 10 June, 2007

Abt Tomcat and Comparision between that and my project

Note: This may not be useful for those who know abt Tomcat.
Had a small discussion in my room with my friends. They are working on jsp's, servlets and tomcat. They were asking qn's like - on what requests, tomcat won't support redirection? how to set that header? and how to do the redirections etc.... I was not knowing abt tomcat previously. By listening at those qns, I got some idea on that. Here is a small update for those who doesn't know what is tomcat.
Its nothing but a server which can be used to implement webservers. It will receives request coming from the browser and allows the following things to be done by programmer on that request:
- to analyze the received request's headers (HttpServerRequest class will help us)
- to make the response for browser based on that (HttpServerResponse class will help us)

<'m not getting time to complete this. I will post remaining after some days>

Thursday 7 June, 2007

Memory Related issues detection tool

Since last 3 to 4 days, I hadn't done even a single defect fix. Time was getting consumed in reviews, meetings and investigations. In the last 3 days, I was getting tired too much. Finally, found the reason for that - I was not hearing to Music last 3 days. Ok, this blog is to explain some tool that I learnt today in detecting memory issues like leaks, corruptions, heap usage etc....
It is MemoryScape. Its a good tool. This can be attached to the running process, or the core that got generated or the new program that to be started.
First, faced problems in attaching this to my binary file - as my binary file not generated using the libraries provided by this tool. Finally was able to do by using LD_PRELOAD environment variable.
But, leaks reporting is not happening. That tool provides some so's. At the time of linking, it makes any fork or malloc or free calls to its functions and then it tracks them. And, then, internally, they call the original functions.
Attached para is copied from its document:
Behind the Scenes

MemoryScape intercepts calls made by your program to heap library functions that allocate and deallocate memory by using the malloc() and free() functions and related functions such as calloc() and realloc(). The technique it uses is called interposition. Our interposition technology uses an agent routine to intercept calls to functions in this library.
Courtesy: www.totalviewtech.com

In the similar way, fork also gets intercepted. Just compiled my code with them and yet to test them. In the mean while compilation is going, thought of putting this here....

Wednesday 6 June, 2007

Finding large files in your linux box

My HD was reaching 100% usage now and then. So, I want to find large files in my box and delete them. I don't know scripting. Google made me to reach here.
find / -type f -size +20000k -exec ls -lh {} \; | awk '{ print $9 ": " $5 }'
In some linux boxes, we may need to change the parameter $9 for print as $8 or something else
Got the above one from this place
Just thought of putting it here

Monday 4 June, 2007

"Street View" in "Google Maps"

New "Street View" in Google Maps is an idea which have both the faces. It frowns people as it peeps into their privacy. And on the other side, we can't stop ourselves admiring its technology and idea.
Google made contract with Immersive for licencing the idea of taking 360-degree street level images.
Vans are there roaming in the streets that captures the photos in different angles (I think somewhere I read it as 11 angles). This link explains about the SICK device used in the vans. The real time challenge is the image processing system where it collects all these images and give a proper images to the viewer. Somewhere, I read that they are using Nikon DLSR cameras.

Friday 1 June, 2007

Split Pannel - Xn for Firefox

I don't know, but, somehow I like these extensions very much (may be becz they are very smart). I got introduced to these by Ramki (my buddy at Novell). Today, while Googling, thought of some extension for browser that splits it like 'vi's split or vsplit' command does, so that, instead of opening every link in new tab and close them again one by one, we can have it in the same screen but divided. Looks like this "Split Pannel" extension will do that work. I installed it but yet to look how it works. For this, I need to close my browser but I rarely do this (ofcourse, I have the "session manager" extension to firefox which will open all my closed tabs at a time).
I guess this "Split Pannel" should work and solve my issue (its not a big issue, but, still an issue) :)
Too much, in a single day, I wrote 2 blogs. Ofcourse, this what usually happens, afterwards, I won't blog for many days. Tomorrow, I will blog on Google Maps.

Microsoft Surface

Looking at the Microsoft Surface, felt very astonished. I was thinking what and all different styles of algorithms - Surface computing, Geometrical algorithms, Ubiquitous computing etc - they should have implemented for this. Thinking of the work that I'm doing now - felt very bad and embarassed. Ofcourse, I'm in networking field - but I don't think I'm implementing latest things in this space also. ('m too bad that I don't have idea wats happening in this field). Still hanging over the (g)old HTTP protocol (ofcourse, https and other network protocols also). But, this is my level and I will improve myself.
Watever it is, this product from Microsoft is good (usually, this is not the case with Microsoft - my personal view). Hats off to Microsoft for this. Let us see what happens in the future - there is long road ahead....

Monday 29 January, 2007

I don't trust these dosha's

I don't trust these dosha's watever there in my last post. I know about myself very much than anyone else. Nowadays, I am accepting negative comments from people. Previously, I was not so. Good improvement :)