i have just learned labels in JS for loops. it works correctly but with that warning.     Unexpected':'.   mainLoop://label   var count = 0; mainLoop:   //label for (i = 0; i &lt; 5; i++) {     childLoop:   //label     for (x = 0; x &lt; 5; x++) {         if (x === 2 &amp;&amp; count === 0){             count++;             continue childLoop;//will not print 2 and continue in the same loop            }         else if (x === 2 &amp;&amp; count === 1){             count++;             continue mainLoop;//will not print 2 and continue in the parent loop         }         else if (x === 2 &amp;&amp; count === 2){             count++;             break childLoop;//will not print 2 and break the same loop            }         else if (x === 2 &amp;&amp; count === 3){             count++;             break mainLoop;//will not print 2 and break the parent loop         }         console.log(i + "-&gt;" + x)     } }   How Can I make JSLint expect that ':' XD ??  and thanks
In my javascript I have this      loopDeLoop:         while (foo !== bar) {             switch (fubar) {                 case reallyFubar:                     if (anotherFoo == anotherBar) {                         break loopDeLoop;                     }                     break;                 default:                     break;             }         }   But JSLint says... lint warning: use of label  Here's the notes from        Labels   JavaScript allows any statement to have a label, and labels have a separate name space. JSLint is more strict.      JSLint expects labels only on statements that interact with break: switch, while, do, and for. JSLint expects that labels will be distinct from vars and parameters.   How do I construct the above to get rid of the warning?  Thanks, Greg
How much time is too much time playing educational computer games? I recently bought an iPad primarily for my 3-year-old daughter. I put nothing on it but educational apps and children's books. No YouTube, no Internet, no (non-educational) games. I've decided to let her use it as much as she wants, for now, and see how it goes. That was a few weeks ago.  So far she's been using the iPad maybe 2 to 5 hours each day. She still enjoys other activities -- playing outside, playing with dolls and blocks, interacting with friends, being read to, etc. And I think she might be learning a thing or two from the apps. Still, several hours a day seems like a lot. How do I know if it's too much?  I've searched the web, and there's lots of info on limiting TV time and video games, but I can't find any recommendations on limiting use if it's only educational games.  Relevant: Eigenvalues of Householder matrix What would be the eigenvalues for a Householder matrix defined as: $H = I - 2 u u^T$? Can someone explain it  to me intuitively or with a simple proof? This applies to all d20 systems, but with an example from the from the Pathfinder  (emphasis mine):  Stonecunning: Dwarves receive a +2 bonus on Perception checks to potentially notice unusual stonework, such as traps and hidden doors located in stone walls or floors. They receive a check to notice such features whenever they pass within 10 feet of them, whether or not they are actively looking.  In this case, does the GM roll the check in secret or ask the player roll the check? If the GM asks the player to roll for the check, what stops situations like:  GM: (interrupting) &quot;Gimli, Roll a perception check.&quot; Dwarf player: &quot;Oh, it's a natural one, I guess I don't see anything.&quot; Human player: &quot;Okay, I'll roll a perception check for anything unusual in this room. Nice! 19. How about 19, does 19 work for you?&quot; GM: &quot;Gimli, everything looks kosher to you. Aragon, you notice a rock coloured tarp on the ground here, covering what looks like a pit trap.&quot;  In this case, by telling the dwarf to roll his &quot;free&quot; perception check, he's telegraphed to the players that there is something to notice. How can this be fixed, without bluffing checks for nothing in particular to throw off the signal to noise ratio of similar checks? "She will be visiting" vs. "she will visit" When she goes to Mexico, she will be visiting Chichen Itza. When she goes to Mexico, she will visit Chichen Itza.  Is there a particular difference in meaning, or it is just the matter of style? $\operatorname{rank}(T^3) + \operatorname{rank}(T) \geq 2\operatorname{rank}(T^2)$ for finite-dimensional $V$ Why couldn't Ellie's experience be corroborated by simply re-using the machine? Animated movie that had black robots that turned people into stone late 1960s to 1970s It was a weird sci-fi animated movie I saw only a little bit of it. This is what I recall:   It was old but had color, so I assume it was late 1960s to early 1970s. The animation and style reminded me of  but it wasn't as psychedelic. The setting was an alien planet with all sorts of bizarre creatures. The tech was advanced but not a dominant aspect of the planet's culture. The people lived simple and peaceful. The protagonist is a man with bluish skin like the others. The antagonists were humanoid shaped black robots that shot a beam that would turn people into stone. We know that the needle that is used in a compass is a permanently magnetized ferromagnetic material and commonly steel is used.  If we used an unmagnetized iron needle instead, would it still align with Earth's magnetic field lines? If yes, how? How do I draw ovals in TikZ? How can I draw this graph in the pic via tikz. Possible to do a MySQL foreign key to one of two possible tables? How do I make animations a steady speed? How long will it take for Google's disavow tool to work? I had updated the disavow list on March 18th  with spammy domains which were linked to my site. Those links still show up in Google Search Console.  I Wanna know how long does it need to take effect? What is the function represented by the power series $$ \sum_{k=2}^\infty\frac{x^k}{k(k-1)}\quad? $$  It looks like $\dfrac1{1-x}$ but I don't know. How to sort Wrapper list? I have a wrapper class which contains a list of sobjects, i want to have th sorting on the fields of these objects in the wrapper list: The apex code is as follows:  Class jobsWrapper {     public JobSuite__Job__c job { get; set; }     public JobSuite__Job_Task__c jobTasks { get; set; }      public JobsWrapper(JobSuite__Job__c objjobs, JobSuite__Job_Task__c objjobTasks) {         // if(jobTasks== NULL){jobTasks = new List&lt;Job_Task__c&gt;();}         job = objjobs;         jobTasks = objjobTasks;      }      public JobsWrapper() {         if(jobTasks== NULL) {             jobTasks = new JobSuite__Job_Task__c();         }          if(job == NULL) {             job = new JobSuite__Job__c();         }             } }   I want to allow sorting the wrapper list by the fields in the job - like client, jobname, jobnumber etc and fields from the task object as taskname, reviseddue dateetc.  How can I do this? Please help, thanks in advance. Getting a vector into a function that expects a vector So, if $\gcd(a,b)=1$, then $\gcd(a^2,b^2)=1$ means $1=ax+by$, and want to show $a^2x+b^2y=1$. By squaring $1=ax+by$ both sides, I get, $1=(ax)^2+b(2axby+by^2)$. It doesn't help my proof. Please help me with this proof. Making hats (and other accents) bold I've been typesetting some equations, and I've found that the default behavior accents like \hat, \bar, \tilde, etc. makes a rather small and easily-missed mark. Is there some way to make the accents stand out more? In particular, is there any way to make them appear in bold (without affecting the letter they are over)? GCD of the already GCD Adding arrows in curves How to use mirror ball to light a scene?