Skip to main content

Posts

Showing posts from June, 2008

About thttpd - tiny/turbo/throttling HTTP server Configuration

I am newbie for HTTP servers, so I may miss technical words while writing about thttpd web server. I got simple config file from thttpd site Which is easy for get going, I was in need to put .gif and .jpg images on my pages, which are tested on other webserver boa where all the pages were coming with CSS formating and images. With new installation of thttpd .jpg images and .gif images were not seen and also CSS formating was missing. I discovered about localpat variable from thttpd, one has to give path in configuration file as localpat=**.gif|**.png|**.jpg to appear images. All images should be read only format. one can use $chmod 644 *.* command to make files read only. About CSS, just change the format to read only and keep it in www or html folder it starts appearing. well there is not much documentation on the site, hope you will not spend time in digging the things again. my configuration file looks as below dir=/usr/share/html cgipat=/cgi-bin/*.cgi pidfile=/var/r

Lifestraw Named World-Changing Idea

A revolutionary portable drinking filtration system, that will save thousands of lives. clipped from www.treehugger.com Lifestraw , the portable drinking filtration system, nabbed the top honor in the fifth Saatchi & Saatchi Award for World Changing Ideas last Thursday. Worn around the neck and used like a regular straw, Lifestraw claims to filter 99.9999 percent of bacteria and 98.7 percent of viruses using a halogen-based resin. Saatchi's worldwide creative director Bob Isherwood had nothing but high praise for the company. "I think it's an amazing idea, a world-changing idea," he said. "You have such a huge proportion of the world's population that can't drink safe water; 6,000 children a day dying from polluted water. To have a straw that you wear around your neck that you can put in contaminated water and turn it immediately into totally safe water is incredible; it is world-changing." clipped from www.treehugger.com The Lifestraw is a li

tcp_keepalive and tcp_retries

The Proc entries to change the timeout values for TCP keep alive and TCP retransmissions. 1) TCP Keep-Alive: A) tcp_keepalive_time : The number of seconds a connection needs to be idle before TCP begins sending out keep-alive probes. Keep-alives are only sent when the SO_KEEPALIVE socket option is enabled. The default value is 7200 seconds (2 hours). This default value can be changed by over writing the proc entry. example: echo 20 > /proc/sys/net/ipv4/tcp_keepalive_time . B) tcp_keepalive_probes: The maximum number of TCP keep-alive probes to send before giving up and killing the connection if no response is obtained from the other end. The default value is 9.

Reason for getting less Network performance In Linux-2.6.20.9

Packets can be sent out immediately with out a delay if it falls under below reasons and without violation of Nagle’s rules Ø It is full sized. Ø Or it contains FIN. (Already checked by caller) Ø Or TCP_NODELAY was set. Ø Or TCP_CORK is not set, and all sent packets are ACKed. With Minshall's modification: all sent small packets are ACKed. The reason for getting less Network performance In Linux-2.6.20.9 is as follows. If we have TSO enabled and if we an 8KB of data to be transmitted, In this case what the TCP/IP stack does is as follows. STEP1: 8KB of data will be copied from Application to the Kernel Buffer STEP2: Before forming the TCP segment Nagle’s test will be done, this will be done only if TSO_SEGS is equal to 1. This variable tells the HW to how many chunks this 8kB has to be divided while sending it out on the wire. For Example: IF 8KB of data is to be transmitted and if your MSS is 1448 then your tso_segs

s.s.c result 2008 | ssc Results Mumbai Pune | www.msbshse.ac.in

Well friends Today I don't have Horses to run, you can see lot of rush in google to check SSC results of Maharashtra, well I cant hold myself to publish some information about S.S.C Results 2008. Namaskar Mitarano, Aapal dahvicha Results eathe check kara.. mumbai ssc results, s.s.c results, 2008 results, mahresult MAHARASHTRA EXAMINATION RESULT, 2008 Mumbai: The Maharashtra State Board of Secondary and Higher Secondary Education declared the SSC Examination results on June 26th, 2007 at 11:00 am IST. Check Your Results Now from the links here Check Your Results Now with some links collection. MARCH 2008 S.S.C. Results will be declared on 26th June 2008 The Maharashtra Board SSC 2008 results is scheduled to be declared on 26th June 2008 : 1100 Hours The official websites for the result are: Website of the Maharashtra State Board of Secondary and Higher School Education http://www.msbshse.ac.in Website of National Informatics Center http://mahresult.nic.in Well there is not site call

Bottom half and techniques to implement it

Bottom half and techniques to implement Bottom half" is a generic operating system term referring to the deferred portion of interrupt processing, so named because it represents the second, or bottom, half of the interrupt processing solution. In Linux, the term currently has this meaning, too. All the kernel's mechanisms for deferring work are "bottom halves." Some people also confusingly call all bottom halves "softirqs," but they are just being annoying. "Bottom half" also refers to the original deferred work mechanism in Linux. This mechanism is also known as a "BH," so we call it by that name now and leave the former as a generic description. The BH mechanism was deprecated a while back and fully removed in 2.5. Currently, there are three methods for deferring work: softirqs, tasklets, and work queues. Tasklets are built on softirqs and work queues are entirely different. Using Softirqs Softirqs are reserved for the most timing-crit

Using "cvs add" recursively instead of "cvs import"

You can use "cvs add" command to check-in any big source like linux kernel instead of "cvs import" since the "cvs import" command is creating branches with versions 1.1.1.1 instead of 1.1. ==================================================================== Suppose you want to check-in a large source which is inside a folder name “newfolder”. To add the folder “newfolder” and it sub-directories into CVS first do $ find newfolder –type d –print | xargs cvs add Then to add the files inside the “newfolder” and its subdirectories $ find newfolder –name CVS –prune –o –type f –print | xargs cvs add Then we have to commit these into CVS. The “cvs commit” is recursive, so we can give the following command $ cvs commit –m “comment” newfolder/. NOTE Please verify if everything has been checked in with these steps by checking out and compiling. I found some files (only which are last) didn’t get added whi

Compassion and forgiveness-Speaking Tree-Spirituality-Lifestyle-The Times of India

I would like to share a childhood story which my father ceremoniously told us children every year. The story is about Tom’s mother. Tom has a friend, John. One day, John was being chased by the police and he knocks on Tom’s door. “Please hide me”, he pleads, when Tom’s mother opens the door. Tom’s mother lets him in and gives him refuge. When the police, following close on John’s heels, arrive, Tom’s mother peeps out of the window and asks, “Sergeant, what’s the matter?” The policeman asks: “Did you see John? He came this way”. “No sergeant, I haven’t seen John”, she says. After the police have left, Tom’s mother goes to the backyard, and helps John to escape. She does so, even after the police inform her that John had a massive fight with Tom, in which Tom was killed. John was her son’s killer. I found the story boring and meaningless in those days. Now it strikes me as inspirational and revealing. Look around, TV serials, movies, fictional thrillers are built around the theme of ve

GTalk Translation Bots: Language translation made easy using GTalk language bots

Was chatting with people from other country a problem because you don’t understand their language? Google has the solution, GTalk translates your chat in 24 different languages on he fly with the help of translation bots. It can’t get any better can it? Here is how you do it…. if you want to translate English to Chinese, add "en2zh@bot.talk.google.com" to your GTalk account, where " en2zh " is [ from language - en - English ] 2 [ to language - zh - Chinese ] @bot.talk.google.com , similarly you can translate using 24 different bots. These bots are named using two-letter language abbreviations, click here to see the list of abbreviations and know what each abbreviation means. Following are the available bot addresses: ar2en de2en de2fr el2en en2ar en2de en2el en2es en2fr en2it en2ja en2ko en2nl en2ru en2zh es2en fr2de fr2en it2en ja2en ko2en nl2en ru2en zh2en Start adding the bots of your choice and showoff your multilingual skills… co

New Research On Octopuses Sheds Light On Memory

It is not completely understood how these two systems are interconnected, if at all. However, the organization in the octopus demonstrates a sophistication that was not described yet in other animals. In the octopus, the short-term and long-term systems are working in parallel, but not independently. This is so because the long-term memory area -- in addition to its capacity to store long-term memories -- also regulates the rate at which the short-term memory system acquires short-term memories. This regulatory mechanism is probably useful in cases where faster learning is significant for the octopus' survival in emergency or risky situations. clipped from www.sciencedaily.com Research on octopuses has shed new light on how our brains store and recall memory, Why octopuses? Octopuses and other related creatures, known as cephalopods, are considered to be the most intelligent invertebrates because they have relatively large brains and they can be trained for various learning and me

Quick Note on Set-User-Id (SUID) flag

set-user-id (suid) flag set on file A binary owned by root with set-user-id flag set runs with root privileges, even when an ordinary user invokes it. [2] This is useful for executables (such as pppd and cdrecord) that need to access system hardware. Lacking the suid flag, these binaries could not be invoked by a non-root user. -rwsr-xr-t 1 root 178236 Oct 2 2000 /usr/sbin/pppd Using chmod how to set this flag? A numeric mode is from one to four octal digits (0-7), derived by adding up the bits with values 4, 2, and 1. Omitted digits are assumed to be leading zeros, except that if the first digit is omitted, a directory's set user and group ID bits are not affected. The first digit selects the set user ID (4) and set group ID (2) and restricted deletion or sticky (1) attributes. The second digit selects permissions for the user who owns the file: read (4), write (2), and execute (1); the third selects permissions for other users in the f

Set a Guinness World Record

The official date for the launch of Firefox 3 is June 17, 2008. Join our community and this effort by pledging today . Google has updated their Firefox toolbar to make it compatible with Firefox 3 - the browser that is due tomorrow .

Clean use of rm command

It is very much possible that we delete some useful files by “rm –rf” or rm, One can make use of “alias “command to prevent deleting useful files. Like $ alias rm="rm -iv" Whenever one uses rm it will ask for users permission Ex.$ “rm: remove regular file `test.c'? y” And also it will give information to user that xyz.c file is deleted, Ex. $ removed `test.c' One can add this line alias rm="rm -iv" in .bashrc file so that whenever user login this options will be set as default.

Steel strips Wheels ltd Looks attractive at current levels

S P Tulsian - Looks attractive at current levels

Ans by Bhagavan for Break Thru State

Q - Bhagwan what should we do for an Erect Body Posture, which in turn will help us to be in permanent Break Thru state ? Bhagwan : a) What you must do is, you must not get up late in the morning. You should always get up before Sunrise. That is very very important. b) Most important part is, always the day must begun, with gratitude to ones parents. c) Third is, you should never eat till your full stomach. Always some space should be left empty, while eating. d) Then at night, before you sleep, you must always sit down for a moment and see what all have happened during the day and how was your mind functioning, what all feelings you had, how you did you escape from your thoughts, its ugliness and then, try to confront it for some time and then go to sleep. Then you will find that you are intensly aware of your ugliness and there will be no conflict at all. Then there will be dramatically change and you will be progressing spiritually, as well. If all these is maintained properly, it

Residential phone number lookup

Get the registered name and current address on the phone number. http://www.backgroundrecord.com/reverse-phone-number-lookup.html clipped from www.backgroundrecord.com Reverse Phone Number Lookup Get the registered name and current address on the phone number. This report includes: Full name registered on phone Full Address (when available) Online matches available If no online match found, expert search results within 24 Hrs   Search People by State Alabama Alaska Arizona Arkansas California Colorado Connecticut Delaware District Of Columbia Florida Georgia Hawaii Idaho Illinois Indiana Iowa Kansas Kentucky Louisiana Maine Maryland Massachusetts Michigan Minnesota Mississippi Missouri Montana Nebraska Nevada New Hampshire New Jersey New Mexico New York North Carolina North Dakota Ohio Oklahoma Oregon Pennsylvania Rhode Island South Carolina South Dakota Tennessee Texas Utah Vermont Virginia Washington West Virginia Wis

What Is Android?

On November 5th, 2007 leading technology and wireless companies came together to announce the future development of a truly open platform for all kinds of mobile devices - Android. Leading this development are Google Inc, T-Mobile, Intel, HTC, Qualcomm, Motorola along with many other companies under the umbrella of the Open Handset Alliance - a global alliance between technology and mobile industry leaders. The Open Handset Alliance’s common goal is to foster and develop a new breed of innovation for mobile devices allowing a far better user experience than today’s current mobile platforms. The OHA will provide a far greater degree of openess that will enable developers to work and collaborate in ways never before seen, Android will greatly improve and speed up the process in which new and innovative mobile services are development and made available to the end user. http://www.talkandroid.com/

Dynamic linking and static linking

* A dynamicllay linked executable is smaller than its statically counterpart. It saves disk and virtual memory, as libraries are only mapped in to the process when needed. * All executables dynamically linked to a particular library share a single copy of the library at runtime. The kernel ensures that libraries mapped into memory are shared by all processes using them. This provides better I/O and swap space utilization and in sparing of physical memory, improving overall system throughput. * Dynamic linking permits easy versioning of libraries. New libraries can be shipped; once installed on the system, old programs automatically get the benefit of the new version without needing to be relinked. * Finally (much less common), dynamically linking allows users to select at runtime which library to execute against. It's possible to create library versions that are tuned for speed, or for memory efficiency, or that contains extra debugg

How to Replace a Switch-Statement

// The four arithmetic operations ... one of these functions is selected // at runtime with a swicth or a function pointer float Plus ( float a, float b) { return a+b; } float Minus ( float a, float b) { return a-b; } float Multiply( float a, float b) { return a*b; } float Divide ( float a, float b) { return a/b; } // Solution with a switch-statement - specifies which operation to execute void Switch( float a, float b, char opCode) { float result; // execute operation switch (opCode) { case '+' : result = Plus (a, b); break ; case '-' : result = Minus (a, b); break ; case '*' : result = Multiply (a, b); break ; case '/' : result = Divide (a, b); break ; } cout << "Switch: 2+5=" << color="#000080"> // display result } // Solution with a function pointer - is a function pointer and points to // a function which takes two floats and returns a fl