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.
Friday, 7 September 2007
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 :)
- 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
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 :)
This was my idea in 2004. Now, there are many sites implemented this :)
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?
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?
Subscribe to:
Posts (Atom)