I already know . My question is what's the key sequence while enumerating.Is it by A-Z or time ordered?  code  var a = {            "a":""          ,"b":""          ,"c":""}; for (var k in a) {     console.log(k); }    output  a,b,c   code   var a = {            "b":""          ,"a":""          ,"c":""}; for (var k in a) {     console.log(k); }    output  b,a,c   code   var a = {            "b":""          ,"a":""          ,"c":""}; a.d = ""; for (var k in a) {     console.log(k); }    output  b,a,c,d
Does the "for…in" loop in Javascript loop through the hashtables/elements in the order they are declared? Is there a browser which doesn't do it in order? The object I wish to use will be declared once and will never be modified.  Suppose I have:  var myObject = { A: "Hello", B: "World" };   And I further use them in:  for (var item in myObject) alert(item + " : " + myObject[item]);   Can I expect 'A : "Hello"' to always come before 'B : "World"' in most decent browsers?
'This post has been deleted' appears above the flag bar My random variable $X$ is normally distributed with mean $b$ and variance $p$. I defined a new RV, $Y$, such that $Y=1/X$. Does anyone know how to find the mean of $Y$ and $Y^2$? How to give permissions to specific command? I would like to run fastboot command without sudo. it's working if I put sudo in front of it, otherwise it wont.  like this:  $ sudo fastboot devices 2738006a    fastboot  $ fastboot devices no permissions  fastboot   How do I solve this? A while ago, I had a discussion with a colleague about how to insert values in STL . I preferred map[key] = value; because it feels natural and is clear to read whereas he preferred map.insert(std::make_pair(key, value)). I just asked him and neither of us can remember the reason why insert is better, but I am sure it was not just a style preference rather there was a technical reason such as efficiency. The  simply says: &quot;Strictly speaking, this member function is unnecessary: it exists only for convenience.&quot; Can anybody tell me that reason, or am I just dreaming that there is one? When exactly does combat start and surprise take effect? So say I'm going to ambush an orc. I successfully sneak up on him and I attack. The DM determines that the orc is surprised. The orc happens to get an initiative roll of 19, while I get a 10. How would this work? I can only think of two reasonable resolutions to this.   The orc, having a higher initiative, goes first. Since he's surprised, he does nothing. Then it's my turn. If the orc survives my attack, it is now his turn, and being that the orc has already gone through his round of surprise, he can now attack me or whatever, and combat proceeds as normal. I, having started the combat, go first. If the orc survives my attack, but he is surprised, so he does nothing. It is now my turn again, I attack again. If the orc survives my second attack, it is now his turn, and being that the orc has already gone through his round of surprise, he can now attack me or whatever, and combat proceeds as normal.   Which one of these is correct? neither? Does starting combat secure me a turn/action at the start of initiative order like in option 2? If option 1 is correct, could I ready an action to shoot the orc, effectively granting me a similar first attack as in option 2?  Sorry if this makes no sense. How would you explain covariance to someone who understands only the mean? ...assuming that I'm able to augment their knowledge about variance in an intuitive fashion (  ) or by saying: It's the average distance of the data values from the 'mean' - and since variance is in square units, we take the square root to keep the units same and that is called standard deviation.  Let's assume this much is articulated and (hopefully) understood by the 'receiver'. Now what is covariance and how would one explain it in simple English without the use of any mathematical terms/formulae? (I.e., intuitive explanation. ;)  Please note: I do know the formulae and the math behind the concept. I want to be able to 'explain' the same in an easy to understand fashion, without including the math; i.e., what does 'covariance' even mean? Duplicate questions that use different words to describe the same problem are important for people to find the content via search engines. But the user experience when an anonymous user arrives at a duplicate is less than ideal.  They have to notice the duplicate link and understand that the answer they are looking for is likely behind that link. I don't think this is all that obvious to someone without experience with an SE site.  I propose to just redirect users to the duplicate automatically if the closed duplicate has zero answers. In that case they need to follow the link to the duplicate in any case, so we might as well redirect them to it in the first place.  I could imagine this being problematic with search engines, as we would be displaying different content than what the search engines see. If that is too problematic I would suggest to show a very obvious link to the duplicate in the answers section for anonymous users. No more updates for Google Chrome 32-bit I am using Google Chrome 48.0 32-bit. Today when I launched Google Chrome, I got this message:    This computer will soon stop receiving Google Chrome updates because this Linux system will no longer be supported   I thought Ubuntu 14.04 is supported for five years, what's exactly happening here?  And on 64-bit Ubuntu, I get an error from Update Manager and apt-get update:  Failed to fetch http://dl.google.com/linux/chrome/deb/dists/stable/Release  Unable to find expected entry 'main/binary-i386/Packages' in Release file (Wrong sources.list entry or malformed file)   Some index files failed to download.   They have been ignored, or old ones used instead. Bibliography per chapter with continuous numbering I would like to create a document with two chapters. After the first chapter there should be a bibliography. The next chapter should be able to reference items of the former chapter, but only show the new items in its bibliography, starting with the next number from the first bibliography.  Example:     Chapter 1 - The Fu   Fu has been done by Bar [1]. Early versions ...   Bibliography   [1] Bar et. al., Doning the Fu      Chapter 2 - Compining Fu with Herp   Doning Fu as described in [1]   neglects the advantages of Herp pointed out by Derp [2].   Consequently ....   Bibliography   [2] Derp et. al., The Advantages of Using Herp   Please not too much discussion about if that is a friendly-to-use idea, it is not my own demand :) Maintaining the final state at end of a CSS3 animation Removing OS from Dual Boot computer, and recovering HD space. How can I escape special HTML characters in JSP? Should I sign, watermark or otherwise label a framed print? And if so how? Pluralizing abbreviations where the noun is not the last word For abbreviations - both acronyms and initialisms - where the last word in the abbreviation is the noun, I'm accustomed to adding an 's' with no apostrophe (e.g. ATMs), as described in the answer to this question:   But how do you pluralize abbreviations where the noun is not the last word? E.g. 'Point of Presence' (POP)  I can see how 'POPs' could read 'Point of Presences', when the intention is 'Points of Presence.' How can a question be tagged with a tag synonym? The question  seems to be tagged with , which, last I checked, is a synonym of . How is it possible that a question can be tagged with a synonym? Don't synonyms automatically get replaced on questions? Awaken monit daemon every few hours for all monitored processes Minecraft jar not marked as executable Open subscheme of an irreducible component remains open? Is there a way to disable certain Windows 7 keyboard shortcuts?  Specifically, in this case, I want to disable Alt+Space and WinKey+Space. What Canon lens would one use for Sartorialist-like street photography? You probably know Scott Schuman and his blog (). What kind of lens (that is not expensive) would you recommend for Canon 550D to achieve similar effect (in terms of DoF etc.)? I'm a newbie so I'm not sure how to properly interpret those photos' EXIF info. My guess is, that a similar effect can be achieved using .   PS:   Update: Thank you guys for all the answers, it's much more clear for me right now. I think I'll try the Canon 50mm f/1.4 lens.