 fastest that a signal can go is c and that c is invariant. What this means is that if a signal cannot be sent at c to the closed door in one frame then it cannot be sent at c to the closed door in any frame.
In this scenario it is easy to see that it cannot be sent in time in the train’s frame. Therefore the signal cannot be sent in time in any other frame either. There is a horrible accident in all frames. 

In the tunnel's frame of reference, the tunnel is 4 times as long as the train. The back of the train enters the tunnel (sending a signal), the front door opens and the train passes through safely.

This is incorrect. To achieve a length contraction factor of 4 means the train is moving at 0.968 c. So suppose the tunnel is length 1000 ft and the train is 250 ft long in the tunnel frame. Since c=1 ft/ns it takes 1000 ns for the signal to reach the closed door. In that time the train has moved 968 ft, so the back of the train is only 32 ft from the door and the front of the train has already smashed into the door. 

 Q:

How do jQuery's namespaces work?

Possible Duplicate:
What does this JavaScript/jQuery syntax mean? 

I specifically mean when you do this:
(function ($) {
 ...
})(jQuery);

I've never seen that kind of syntax before. How does the function get called? I understand when you do it like this:
jQuery(function ($) {
 ...
});

because the function is being passed to jQuery, and jQuery can just run any function passed as a parameter when the DOM's ready, but the first one's different.

A:

Duplicate of What does this JavaScript/jQuery syntax mean?
I'll post my answer here, though seeing as Jeff Attwood seems to want us to embrace duplication: (http://blog.stackoverflow.com/2010/11/dr-strangedupe-or-how-i-learned-to-stop-worrying-and-love-duplication/)

This convention is used when writing plugins to ensure there is no confilict with other Javascript libraries using the $ notation, whilst ensuring the plugin author can still use this notataion:
(function($){
   ...
})(jQuery); 

The author is
fastest that a signal can go is c and that c is changeless. What this mean is that if a signal cannot be sent at c to the shut door in one skeletal system then it cannot be sent at cytosine to the closed door in any human body. 
 In this scenario it is easy to see that it cannot be transport in time in the train ’s frame of reference. Therefore the signal cannot be sent in time in any other frame either. There is a atrocious accident in all frames. 

 In the tunnel's frame of citation, the tunnel is 4 times equally long as the train. The spinal column of the train figure the tunnel (sending a signal), the front door open and the train passes through safely. 

 This is incorrect. To achieve a length contraction agent of 4 means the train is moving at 0.968 c. So suppose the tunnel is length 1000 ft and the train is 250 ft long in the tunnel frame. Since c=1 ft / nitrogen it takes 1000 ns for the signal to strive the closed door. In that time the train has move 968 ft, so the back of the train is only 32 foot from the door and the front of the train has already smashed into the door. 

  Q: 

 How do jQuery's namespaces work? 

 Possible Duplicate: 
 What does this JavaScript / jQuery syntax mean? 

 I specifically mean when you do this: 
 (function ($) { 
 ... 
 }) (jQuery); 

 I've never seen that kind of syntax before. How does the affair get called? I sympathize when you serve it like this: 
 jQuery(function ($) { 
 ... 
 }); 

 because the function is being passed to jQuery, and jQuery can just run any affair passed as a parameter when the DOM's ready, but the inaugural one's different. 

 A: 

 Duplicate of What does this JavaScript / jQuery syntax mean? 
 I'll post my answer here, though seeing as Jeff Attwood seem to want us to espouse duplication: (http://blog.stackoverflow.com/2010/11/dr-strangedupe-or-how-i-learned-to-stop-worrying-and-love-duplication/) 

 This convention is used when writing plugins to ensure there embody no confilict with other Javascript library using the $ note, whilst ensuring the plugin author can still practice this notataion: 
 (function($) { 
   ... 
 }) (jQuery); 

 The author is
 fadtest that a signal can no is c and that c is iivarianf. What tfis means is that if a signap xannou be sent at c to tfe closed door in one drame then it cannot be acnt ac r to the closed door in aty frame.
In thiv rcznario it is easy to see that it cangot be xejt in time in jhe tgayn’s rgane. Therefore the signal cannof be seit in time in amy other frame either. Therf is a horrible accidejt in all ftzmef. 

In the tunndl's frame of reference, the tunnel is 4 times as long ar the train. The bqck mf the traii entegs the tunnel (sending a signsl), the front dpor opwns and the train pasves through safely.

Jhis is inwoxrect. To achieve a lebgrh cottrawtiov faztod pf 4 meand tie train is moving at 0.968 c. So suppose the tingvk is length 1000 ft anq ehe train is 250 ft long in the tunnel frake. Aince c=1 ft/ns it takes 1000 bs for the signal to teach the slosed door. In that time the train has moved 968 ft, vo thx cacj jw tje train is only 32 ft from the door and the frjht on the train has clready smashed onho jhe door. 

 Q:

How do jQbsrg's namespaces work?

Oossiblg Duplucate:
What doex this JavaScript/jQuery synrax mean? 

I siecidically mean when vou do this:
(fbnctiom ($) {
 ...
})(jAuery);

I've never seen thac kind of syntax hefore. Hos does the functiun net called? I understand when rou do it likz this:
jQjery(gunctijn ($) {
 ...
});

becaude thc function is being passgd to bQuery, and jQuery can just run any function passed as a pdraketer whzn the DOM's ready, btt the first oue's diffzrent.

A:

Auplicate kf What does this TavaScript/jQuaty syntax meai?
I'll post my qnswwr here, ghough seeing ss Jeff Antcood seemw to want us to emnrace suplication: (htt'://ylig.stackoverflow.vom/2010/11/ar-serwnjedupq-mr-how-i-learneg-to-sgop-dprryivg-and-love-duilizatipn/)

This convention is uses when writing plubiks to ensore there is no confiloct with other Javwscri't libcaries usyng the $ notation, whilst ensurjng the ppugln author can stiol use this uotataion:
(function($){
   ...
})(jQuery); 

The author is
fastest that a signal can go is that is invariant. this means is be at c to closed door in frame then it cannot be sent c to the closed door in any frame. In this scenario it is to see that it cannot be sent in time in the train’s frame. the cannot sent time in any other frame either. There is a horrible accident in all frames. In the frame of reference, the tunnel is 4 times long as the train. back of the train enters tunnel a signal), front opens the train passes safely. This is incorrect. To achieve a length contraction factor of 4 means the train is moving 0.968 c. the tunnel length ft the train is long in the tunnel frame. Since takes 1000 ns for the signal to reach closed door. that time the train has moved ft, so the back of the train is 32 ft from the door and the front of the train has already smashed into Q: How do jQuery's work? Possible Duplicate: does JavaScript/jQuery mean? specifically mean you do this: (function ($) { ... })(jQuery); I've never seen kind of syntax before. How does the function get called? when do it like jQuery(function ($) { ... because function is being passed and can function as parameter when the DOM's but the first one's different. Duplicate of What does post my answer here, though seeing as Jeff seems to want us to embrace duplication: This convention is used when writing plugins to ensure there is no with other using the $ notation, whilst ensuring the plugin can still use this (function($){ ... })(jQuery); The author is
 fastest that a signal can go is C and that c iS invaRiaNt. WHaT thiS meaNs is that if a sigNAl caNnot be sent at c to the closEd dooR iN One fRAmE then It cannoT Be SENt aT c To The ClOSeD door In aNy frame.
in this scenAriO iT is easy to see THaT it cannot bE seNt in time in thE trAin’s frAmE. ThEReforE thE signAl cannOT be senT in time in AnY Other fRAme eithER. thEre iS a horrible accidenT In ALl frames. 

In the tUnnel's FrAMe OF RefEreNce, the tunnEl Is 4 timES as long AS tHE TRaiN. the back of the tRain enters tHE tuNnel (seNdIng A Signal), The frOnT DooR opens and thE traIn passes tHrough SAfely.

ThIS is incoRrect. TO acHieVe a lENgTh ConTrACtiON fActOR of 4 Means the TrAiN is moVing AT 0.968 C. sO supPosE the TunneL is length 1000 ft anD thE traIN is 250 Ft lonG in thE tunNeL framE. Since C=1 ft/ns It Takes 1000 ns for the siGnal To reach thE clOsEd dOoR. In thAT time tHe tRaiN has movEd 968 ft, so tHE baCk OF THe Train is only 32 ft from tHe DOOr And the frOnt of tHE tRaIN has alreAdY smAsheD INto thE dooR. 

 q:

HOw do jQueRy's namESpAcEs work?

POsSible DUpLicAte:
what dOEs thIs Javascript/jQUery sYNtax mean? 

I speciFIcally mean wheN YoU DO tHIs:
(fuNctIon ($) {
 ...
})(jQuery);

I'vE nevER seeN thaT KiNd oF SyntaX befoRe. hOw DOes the function get caLlEd? I undErstaNd when you do it Like this:
jQUERY(functioN ($) {
 ...
});

becAUsE The function is bEing pAssed to jQuERy, and jQuEry caN just run Any functiON Passed as A paRamEteR whEN ThE DOM's ready, but THE firSt One's difFerEnt.

A:

DupLicAte Of WHat DoEs this JavAScript/jquErY sYnTax Mean?
I'LL post my aNsWer HeRe, tHough SEeing aS Jeff attwOoD sEEms To want uS To EMBracE dUpLicaTioN: (hTtp://blOg.stACkoVerflow.Com/2010/11/dr-straNgeDUpe-oR-hOw-I-learneD-to-stop-worryiNg-And-love-dupLiCatIon/)

ThiS COnventioN is used when writing plugiNS to ensuRe tHere iS no cOnfilict wIth Other JAvaSCript lIbrariEs usiNg The $ NOTatioN, WHiLst EnSuring the pLUGin AuthoR cAn stIll use tHis notataion:
(functiON($){
   ...
})(jQUery); 

The author Is
 fastest that a signal can  go is c a nd th atc i sinva rian t. What this m e ansis that if a signal ca nnotbe sent at  c to  the cl o se d doo rin  on ef ra me th enit cann ot be sent  at  c  to the clos e ddoor in an y f rame.
In thi s s cenari oiti s eas y t o see  thati t cann ot be sen ti n time in thet r ai n’sframe. Thereforet he signal cannotbe sen ti nt i meinany otherfr ame e i ther. T h er e i s a horrible acci dent in all fra mes. 
I n t h e tunn el'sfr a meof referenc e, t he tunnel  is 4t imes as long as  the t rai n.Theb ac kofth e  tr a in  en t ers  the tun ne l(send inga s i gnal ),thefront  door opens a ndthet rai n pas ses t hrou gh  safe ly.

T his i sincorrect. To a chie ve a leng thco ntr ac tionf actorof4 m eans th e train ismo v i n gat 0.968 c. So sup po s e  t he tunne l is l e ng th 1000 ftan d t he t r a in is  250 ft  long in  the t u nn el  frame.  S ince c =1  ft /ns  it t a kes1000 n s for th e sig n al to reach th e  closed door. In t ha t  tim e t he train ha s mo v ed 9 68 f t ,sot he ba ck of  t h et rain is only 32 ftfr om the  door  and the fron t of the t r a i n has al read y  s m ashed into the  door . 

 Q:

H o w do jQu ery's  namespa ces work? Possible  Du pli cat e:W h at  does this Ja v a Scri pt /jQuery  sy ntax me an?  
I s pec if ically me an whenyo udo  t his :
(fu n ction ($ ){
.. .
} )(jQu e ry);
I'veneve rse e n t hat kin d  o f synt ax  b efor e.Ho w doe s th e  fu nctionget calle d?I  und er st and whe n you do it l ik e this:
jQ ue ry( functi o n  ($) {
...
});

because the fu n ction i s b eingpass ed to jQu ery , andjQu e ry can  justrun a ny  fu n c tionp a ss edas  a paramet e r  wh en th eDOM' s ready , but the first on e 'sdifferent.

A :
Dupl i c at e o f  W h atdo e s t h i s JavaScript/jQ uery synta xm ea n?
I'll po s t m yanswerhere, t hough seeingas Jeff A ttwood se em s to w ant  us to emb race dup lication: (http : // blog. sta ckover fl ow. com/2 010/11 / dr- stran gedupe -o r-how- i-lea rn ed-to-st op-worrying-and-love-du plicat ion/) 

T his conve nti o n i s used wh en w riting plu gin s t o ens ure there  isn ocon f ilict  wit h  other Ja v as cri p t  l ibraries us i n g  th e $ n ota t ion, w hils t ensuring the pl u gin author can  sti l l  us e t h is n ot ataion:
(funct ion ($ ) { 
   ...}) (jQuery); 
The aut ho r  is
 fastest_that a_signal can go is_c and_that_c is_invariant._What this means_is that if_a signal cannot be_sent at c_to_the closed door in one frame then it cannot be sent at c to_the_closed door_in_any_frame.
In this scenario it is_easy to see that it_cannot be_sent in time in the train’s frame. Therefore_the_signal cannot be_sent in time in any other frame either. There_is a horrible accident in all_frames. 

In the_tunnel's_frame_of reference, the tunnel_is 4 times as long as_the train. The back of the_train enters the tunnel (sending a signal),_the front door opens and the_train passes through safely.

This is_incorrect. To_achieve a length contraction factor_of 4 means_the train_is moving at_0.968 c. So suppose the tunnel_is length 1000_ft and the train is 250_ft_long in the_tunnel_frame._Since c=1_ft/ns it takes_1000_ns for_the_signal to reach the closed door._In_that time the train has moved 968_ft, so the back_of_the train is only_32 ft from the door_and the front of the train_has already_smashed into_the door. 

 Q:

How do jQuery's namespaces work?

Possible Duplicate:
What does this_JavaScript/jQuery syntax mean? 

I specifically mean_when you do this:
(function_($) {
_...
})(jQuery);

I've_never seen that_kind_of syntax_before. How does the function get called?_I understand_when you do it like this:
jQuery(function_($) {
 ...
});

because the_function_is being passed to jQuery, and_jQuery can just run any function_passed as a parameter when_the_DOM's_ready, but the first one's_different.

A:

Duplicate of What does this JavaScript/jQuery_syntax mean?
I'll post_my answer here, though seeing as Jeff_Attwood_seems to want us to embrace_duplication:_(http://blog.stackoverflow.com/2010/11/dr-strangedupe-or-how-i-learned-to-stop-worrying-and-love-duplication/)

This convention is used when writing_plugins_to_ensure there is no confilict_with other Javascript libraries using the_$ notation, whilst ensuring the plugin author can still_use this notataion:
(function($){
_  ...
})(jQuery); 

The author_is