Search The World

Custom Search

Monday, August 18, 2008

Kontera




Saturday, August 16, 2008

Partial lunar eclipse coming Aug. 16

Eclipses of the sun and moon usually come in pairs. A solar eclipse is almost always accompanied by a lunar eclipse two weeks before or after it, since in two weeks the moon travels halfway around its orbit and is likely to form another almost-straight line with the Earth and sun.

This month will be no exception. Just over two weeks after casting its shadow across the Arctic, Russia, Mongolia and China, the moon will swing around to slide deep through the northern edge of the Earth's own shadow on the night of Aug. 16-17.

This partial lunar eclipse will favor much of Europe, Africa and Asia. The moon will pass through the northern part of the Earth's dark umbral shadow between 3:36 p.m. and 6:44 p.m. EDT (19:36 and 22:44 GMT) on Aug. 16.

source :http://www.msnbc.msn.com/id/26225047/

Monday, July 21, 2008

This is What Bill Gates said

Bill Gates recently gave a speech at a High School

about 11 things they did not and will not learn in school

. He talks about how feel-good, politically correct teachings created a generation of kids with no concept of reality and how this concept set them up for failure in the real world.



Rule 1

: Life is not fair - get used to it!



Rule 2

: The world won't care about your self-esteem. The world will expect you to accomplish something BEFORE you feel good about yourself.



Rule 3

: You will NOT make $60,000 a year right out of high school. You won't be a vice-president with a car phone until you earn both.



Rule 4

: If you think your teacher is tough, wait till you get a boss.



Rule 5

: Flipping burgers is not beneath your dignity. Your Grandparents had a different word for burger flipping: they called it opportunity.



Rule 6

: If you mess up, it's not your parents' fault, so don't whine about your mistakes, learn from them.



Rule 7

: Before you were born, your parents weren't as boring as they are now. They got that way from paying your bills, cleaning your clothes and listening to you talk about how cool you thought you were. So before you save the rain forest from the parasites of your parent's generation, try delousing the closet in your own room.



Rule 8

: Your school may have done away with winners and losers, but life HAS NOT. In some schools, they have abolished failing grades and they'll give you as MANY TIMES as you want to get the right answer. This doesn't bear the slightest resemblance to ANYTHING in real life.



Rule 9

: Life is not divided into semesters. You don't get summers off and very few employers are interested in helping you FIND YOURSELF. Do that on your own time.







Rule 10

: Television is NOT real life. In real life people actually have to leave the coffee shop and go to jobs.



Rule 11

: Be nice to nerds. Chances are you'll end up working for one.

Monday, July 7, 2008

Mouse Events

We’ll go through all mouse events: mousedown, mouseup and click, dblclick, mousemove and finally mouseover and mouseout. Then I explain the relatedTarget, fromElement and toElement event properties. Finally the Microsoft proprietary mouseenter and mouseleave events.

For browser compatibility, see the Event Compatibility Tables page.
Example

Here’s a small example. Try it to better understand the explanations below.
Mousedown, mouseup, click and dblclick are registered to the link. You’ll see the events that take place in the textarea, or in an alert, if you so choose.

The event handlers are registered on this link.
Clear textarea.

Show alert instead of writing to textarea
Mousedown, mouseup, click

If the user clicks on an element no less than three mouse events fire, in this order:

1. mousedown, user depresses the mouse button on this element
2. mouseup, user releases the mouse button on this element
3. click, one mousedown and one mouseup detected on this element

In general mousedown and mouseup are more useful than click. Some browsers don’t allow you to read out mouse button information onclick. Furthermore, sometimes the user does something with his mouse but no click event follows.

Suppose the user depresses the mouse button on a link, then moves his mouse off the link and then releases the mouse button. Now the link only registers a mousedown event. Similarly, if the user depresses the mouse button, then moves the mouse over a link and then releases the mouse button, the link only registers a mouseup. In neither case does a click event fire.

Whether or not this is a problem depends on the user interaction you want. But you should generally register your script onmousedown/up, unless you’re completely sure you want the click event and nothing else.

If you use alerts in handling these events, the browser may lose track of which event took place on which element and how many times it took place, messing up your scripts. So it’s best not to use alerts.
Dblclick

The dblclick event is rarely used. Even when you use it, you should be sure never to register both an onclick and an ondblclick event handler on the same HTML element. Finding out what the user has actually done is nearly impossible if you register both.

After all, when the user double–clicks on an element one click event takes place before the dblclick. Besides, in Netscape the second click event is also separately handled before the dblclick. Finally, alerts are dangerous here, too.

So keep your clicks and dblclicks well separated to avoid complications.
Mousemove

The mousemove event works fine, but you should be aware that it may take quite some system time to process all mousemove events. If the user moves the mouse one pixel, the mousemove event fires. Even when nothing actually happens, long and complicated functions take time and this may affect the usability of the site: everything goes very slowly, especially on old computers.

Therefore it’s best to register an onmousemove event handler only when you need it and to remove it as soon as it’s not needed any more:

element.onmousemove = doSomething;
// later
element.onmousemove = null;

Mouseover and mouseout

Take another look at the example, switch the mouseovers on and try them. The example adds an onmouseover event handler to ev3 only. However, you’ll notice that a mouseover event takes place not only when the mouse enters ev3's area, but also when it enters the area of ev4 or the span. In Mozilla before 1.3, the event even fires when the mouse enters the area of a text!

The reason for this is of course event bubbling. The user causes a mouseover event on ev4. There is no onmouseover event handler on this element, but there is one on ev3. As soon as the event has bubbled up to this element, the event handler is executed.

Now this setup, though completely correct, gives us some problems. Our first problem is targeting. Suppose the mouse enters ev4:

-----------------------------------------
| This is div id="ev3" |
| ----------------------------- |
| | This is div id="ev4" | |
| | -------- <-------- |
| | | span | | |
| | | | | |
| | -------- | |
| ----------------------------- |
-----------------------------------------

<--------: mouse movement

Now the target/srcElement of this event is ev4: it’s the element the event took place on, since the user mouses over it. But when this happens:

-----------------------------------------
| This is div id="ev3" |
| ----------------------------- |
| | This is div id="ev4" | |
| | -------- | |
| | | span | | |
| | | --------> | |
| | -------- | |
| ----------------------------- |
-----------------------------------------

-------->: mouse movement

the event has exactly the same target/srcElement. Here, too, the mouse enters ev4. Nonetheless you might want do one thing when the mouse comes from ev3 and another thing when it comes from the SPAN. So we need to know where the mouse comes from.
relatedTarget, fromElement, toElement

W3C added the relatedTarget property to mouseover and mouseout events. This contains the element the mouse came from in case of mouseover, or the element it goes to in case of mouseout.

Microsoft created two properties to contain this information:

* fromElement refers to the element the mouse comes from. This is interesting to know in case of mouseover.
* toElement refers to the element the mouse goes to. This is interesting to know in case of mouseout.

In our first example, relatedTarget/fromElement contains a reference to ev4, in our second example to the SPAN. Now you know where the mouse came from.
Cross–browser scripts

So if you want to know where the mouse comes from in case of mouseover, do:

function doSomething(e) {
if (!e) var e = window.event;
var relTarg = e.relatedTarget || e.fromElement;
}

If you want to know where the mouse goes to in case of mouseout, do:

function doSomething(e) {
if (!e) var e = window.event;
var relTarg = e.relatedTarget || e.toElement;
}

Mousing out of a layer

In a layer-based navigation you may need to know when the mouse leaves a layer so that it can be closed. Therefore you register an onmouseout event handler to the layer. However, event bubbling causes this event handler to fire when the mouse leaves any element inside the layer, too.

--------------
| Layer |.onmouseout = doSomething;
| -------- |
| | Link | ----> We want to know about this mouseout
| | | |
| -------- |
| -------- |
| | Link | |
| | ----> | but not about this one
| -------- |
--------------
---->: mouse movement

Another show stopper is that when you move the mouse into the layer, and then onto a link, browsers register a mouseout event on the layer! It doesn't make much sense to me (the mouse is still in the layer), but all browsers agree on this one.

So how do we reject any mouseout that does not take place when the mouse actually leaves the layer?

function doSomething(e) {
if (!e) var e = window.event;
var tg = (window.event) ? e.srcElement : e.target;
if (tg.nodeName != 'DIV') return;
var reltg = (e.relatedTarget) ? e.relatedTarget : e.toElement;
while (reltg != tg && reltg.nodeName != 'BODY')
reltg= reltg.parentNode
if (reltg== tg) return;
// Mouseout took place when mouse actually left layer
// Handle event
}

First get the event target, ie. the element the mouse moved out of. If the target is not the DIV (layer), end the function immediately, since the mouse has certainly not left the layer.

If the target is the layer, we're still not sure if the mouse left the layer or entered a link within the layer. Therefore we're going to check the relatedTarget/toElement of the event, ie. the element the mouse moved to.

We read out this element, and then we're going to move upwards through the DOM tree until we either encounter the target of the event (ie. the DIV), or the body element.

If we encounter the target the mouse moves towards a child element of the layer, so the mouse has not actually left the layer. We stop the function.

When the function has survived all these checks we're certain that the mouse has actually left the layer and we can take appropriate action (usually making the layer invisible).
Mouseenter and mouseleave

Microsoft has another solution. It has created two new events mouseenter and mouseleave. They are almost the same as mouseover and mouseout except that they don’t react to event bubbling. Therefore they see the entire HTML element they’re registered to as one solid block and don’t react to mouseovers and –outs taking place inside the block.

So using these events solves our problem too: they react only to mouseovers/outs on the element they’re registered to.

At the moment these events are only supported by Explorer 5.5 on Windows and higher. Maybe the other browser vendors will copy these events.
End

You have now reached the end of my Introduction to Events. Good luck in writing your own event handling scripts.


source:: http://www.quirksmode.org/js/events_mouse.html

Wednesday, June 18, 2008

History of Mobile Telephone

History of Mobile Telephone

AT A GLANCE:
Today's communications industry would not be what it is without the contributions made by Richard H. Frenkiel and Joel S. Engel. The big breakthrough came when AT&T Labs researchers Frenkiel and Engel divided wireless communications into a series of cells, then automatically switched callers as they moved so that each cell could be reused. This led to the development of cellular phones and made today’s mobile communications possible.

Invention: mobile telephone

Function: noun / mo·bile tele·phone
Definition: A mobile radiotelephone, often in an automobile, that uses a network of short-range transmitters located in overlapping cells throughout a region, with a central station making connections to regular telephone lines. Also called cellular telephone
Inventor: Joel Engel and Richard Frenkiel
Criteria: First practical cellular telephone system.
Birth: Richard Frenkiel, March 4, 1943 in Brooklyn, New York
Joel Engel, February 4, 1936 in New York City
Nationality: American

Milestones:
1921 The Detroit Police Department, began experimentation with one-way vehicular mobile service.
1928 Detroit Police commenced regular one-way radio communication with all its patrol cars.
1933 Bayonne, NJ Police Department initiated regular two-way communications with its patrol cars
1936 Alton Dickieson, H.I. Romnes and D. Mitchell begin design of AT&T's mobile phone system
1940 Connecticut State Police began statewide two-way, on the frequency modulated (FM)
1941 FM mobile radio became standard throughout the country following the success in Connecticut
1946 A driver in St. Louis, Mo., placed a phone call,it was the first AT&T mobile telephone call.
1948 wireless telephone service was available in almost 100 cities and highway corridors.
1947 cellular telephone service conceived by D.H. Ring at Bell Labs, but the technology didn't exist
1971 Richard Frenkiel and Joel Engel of AT&T applied computers and electronics to make it work.
1973 Martin Cooper of Motorola made the first cellphone call to his rival Joe Engel of AT&T Bell Labs
1978 AT&T conducted FCC-authorized field trials in Chicago and Newark, N.J.
1979 the first cellular network was launched in Japan.
1982 FCC granted commercial licenses to an AT&T subsidiary, Advanced Mobile Phone Service
1983 AMPS was then divided among the local companies as part of the planning for divestiture
1983 Illinois Bell opened the first commercial cellular system in October
CAPs: Joel Engel, Richard Frenkiel, Alton Dickieson, H.I. Romnes, D. Mitchell, D.H. Ring, William (Bill) C. Jakes, Martin Cooper, ARY, mobile phone, mobile telephone, cell phone, cellular phone, cellphone, wireless phone, SIP, history, biography, inventor, invention.
The Story:
Today's communications industry would not be what it is without the contributions made by Richard H. Frenkiel and Joel S. Engel. The big breakthrough came when AT&T Labs researchers Frenkiel and Engel divided wireless communications into a series of cells, then automatically switched callers as they moved so that each cell could be reused. This led to the development of cellular phones and made today’s mobile communications possible.

On June 17, 1946 a driver in St. Louis, Missouri., pulled out a handset from under his car's dashboard, placed a phone call and made history. It was the first mobile telephone call. A team including Alton Dickieson, H.I. Romnesand D. Mitchell from Bell Labs, worked more than a decade to achieve this feat. By 1948, wireless telephone service was available in almost 100 cities and highway corridors. Customers included utilities, truck fleet operators and reporters. However, with only 5,000 customers making 30,000 weekly calls, the service was far from commonplace.

That "primitive" wireless network could not handle large call volumes. A single transmitter on a central tower provided a handful of channels for an entire metropolitan area. Between one and eight receiver towers handled the call return signals. At most, three subscribers could make calls at one time in any city. It was, in effect, a massive party line, where subscribers would have to listen first for someone else on the line before making a call.

Expensive and far from "mobile", the service cost $15 per month, plus 30 to 40 cents per local call, and the equipment weighed 80 pounds. Just as they would use a CB microphone, users depressed a button on the handset to talk and released it to listen.

Improved technology after 1965 brought a few more channels, customer dialing and eliminated the cumbersome handset. But capacity remained so limited that Bell System officials rationed the service to 40,000 subscribers guided by agreements with state regulatory agencies. For example, 2,000 subscribers in New York City shared just 12 channels, and typically waited 30 minutes to place a call. It was wireless, but with "strings" attached.

Something better — cellular telephone service — had been conceived in 1947 by D.H. Ring at Bell Labs, but the idea was not ready for prime time. The system comprised multiple low-power transmitters spread throughout a city in a hexagonal grid, with automatic call handoff from one hexagon to another and reuse of frequencies within a city. The technology to implement it didn't exist, and the frequencies needed were not available. The cellular concept lay barron until the 1960s, when Richard Frenkiel and Joel Engel of Bell Labs applied computers and electronics to make it work.

AT&T turned their work into a proposal to the Federal Communications Commission (FCC) in December 1971. After years of hearings, the FCC approved the overall concept, but licensed two competing systems in each city.

Modern mobile telephony took a giant leap forward on April 3, 1973, when Motorola employee Martin Cooper placed a call to rival AT&T's Bell Labs while walking the streets of New York City talking on the first mobile telephone, a Motorola DynaTAC.

In 1978, AT&T conducted FCC-authorized field trials in Chicago and Newark, N.J. Four years later, the FCC granted commercial licenses to an AT&T subsidiary, Advanced Mobile Phone Service Inc. (AMPS). AMPS was then divided among the local companies as part of the planning for divestiture. Illinois Bell opened the first commercial cellular system in October 1983.

For their pioneering work in cellular telephony, AT&T Labs researchers Richard Frenkiel and Joel Engel earned the National Medal of Technology. Cellular telephony has spawned a Multi-billion dollar industry and has freed tens of millions of people, both at home and at work, to communicate anywhere, any time.

article source: http://www.ideafinder.com/history/inventions/mobilephone.htm

Sunday, June 15, 2008

go

click and go