In Java it's called the keyset.    how come there is no method to return a list of all the keys?
Say I create an object thus:  var myObject =         {"ircEvent": "PRIVMSG", "method": "newURI", "regex": "^http://.*"};   What is the best way to retrieve a list of the property names? i.e. I would like to end up with some variable 'keys' such that:  keys == ["ircEvent", "method", "regex"]
How to use custom icons with mapKit framework? In which cases is a word, or a group of words written in italics? Is italics used in specific contexts, or it is quite normal to write words in italics? What is the equivalent of Persian idiom "When the reed blooms"? In Persian, we say "When the  blooms" when we want to  express that an event:   Never happens. (This is only the opinion of the speaker so it's not a fact) It's very unlikely to happen. It's going to take so long to actually happen. (It's so long that you'd be better off giving up expecting it)  3.1. We also use it when someone is always postponing something they have to do so you never actually see it happen.   For example:      Kyle: When are you going to pay my money back?      Cartman: When the  blooms.   Now I don't know if I got the plant's name right because there are some other versions like:        In any event, they have mentioned this plant in the idiom because apparently some versions of it actually never bloom. Others believe it's because farmers harvest them before they get the chance to bloom (e.g to make music instruments), so it never happens. I'd love to know the equivalent idioms or expressions for this.  PS: I only know "When pigs fly" but I'm not a fan of it because the word pig sounds a bit rude to me and partly because it implies a strong impossibility which doesn't work for the #3 use. If time standard clocks and any memories about the time standard are destroyed, can we recover the time standard again? Assume the time standard clocks and any memories about the time standard are destroyed. Can we recover the time standard again exactly?  Recovering the time standard again means we can determine the date  and time that are exactly the same as the destroyed time standard clocks will show (if they are not destroyed). How to find the index of an element in an array in Java? bash script – for i in {x..y} i am writing a script in bash and I would like to give the two numbers in the brackets, x and y to be precise, as variables.  I wrote the script this way:  echo "x?" read x echo "y" read y  for i in {$x..$y}   but it does not work.  How could I set it up to make it function?  Thanks a lot in advance. Matrix Multiplication in context of row and column vectors Sum of First $n$ Squares Equals $\frac{n(n+1)(2n+1)}{6}$ I am just starting into calculus and I have a question about the following statement I encountered while learning about definite integrals:  $$\sum_{k=1}^n k^2 = \frac{n(n+1)(2n+1)}{6}$$  I really have no idea why this statement is true. Can someone please explain why this is true and if possible show how to arrive at one given the other? How do you return from 'gf' in Vim I am using Vim for windows installed in Unix mode. Thanks to this site I now use the gf command to go to a file under the cursor.  I'm looking for a command to either:   return to the previous file (similar to Ctrl+T for ctags), or   remap gf to automatically launch the new file in a new window. If $A$ is compact, is then $f(A)$ compact? Are there any advanced options for Google Chrome's history search? Ppening an HTML file on localhost in XAMMP/apache 2.2 using subdirectories under htdocs I have a site directory for html (dreamweaver CSS3) with lots of subdirectories that contain HTML files for a number of drop down menus. They work fine where they are, but they all have menus that are JavaScript and could be kept in a separate file. So, I want to use Include. I don't want to have to FTP my files to HostGator every time I want to test the includes. I want to have this on my local machine. So, I am attempting for the first time to setup XAMMP and then run my html files (site) on localhost, so I can see what they look like before ftping everything to HostGator and putting it live.  I tried copying the main site folder to htdocs, and then copying the path to the file I want to run in front of the localhost in Firefox, but it gave me file not found:   Do I have too many subdirectories? Why isn't the file being found? It is there.  Tried this too:   No go. How should we handle a question which was deleted and reasked? A user has asked  which did not receive much attention, and thus the user deleted the post. After some time, the user asked the  (with just slight changes to the title and a tag change), so that it could receive a bit more attention. The strange thing is that the question was not downvoted or poorly written, and yet the user deleted the original post. Now, since the original question was deleted, I could not mark the new one as a duplicate (it threw an error). My question is, how do we handle such questions? Just let them be as such or let the user know about it or is there another way to handle such situations? Why did Itachi say that he needs to get someone's MS to get EMS while Sasuke only had a normal Sharingan? How do the Treasure Goblins work? Every once in a while I'll come across the sneaky devils and they always flee.  What determines when they flee (time, distance, etc.) and do I get better loot by killing them faster?  Is there anything else I should know in order to get the most out of the encounter?  EDIT: What I mean is: Is the final drop better based on how effectively I defeat them? 1N5819-E3/73  1N5819-E3/53 1N5819-E3/54   the first one is 4x cheaper than the last, why ?  aren't they all the same ? How can I force a program to open in a specific desktop? I've created an environment where I use 3 different desktop configurations, but every time I reboot, I have to manually open each program in that target desktop to make it look like it did before.   So, I'd like to write a .bat file that can get all my programs running in their appropriate desktops. I'm wondering if something like this is possible:  "C:\Program Files (x86)\Mozilla Firefox\firefox.exe" -desktop:2 "C:\Program Files\My\Other\Software.exe" -desktop:3 ...etc.   Obviously, this example is not real, but I hope there's something similar. I don't care if it's hacky :) This is trigonometry from double angles and compound angles. Thus far I've simplified it up to this point. $$2 \sin^2θ – 3\sinθ +1 = 0$$  I'm trying to factorize this to solve for General Solution. I tried taking out a common but that +1 is giving me a problem. I used the quadratic equation to get 1 and 0.5 as an answer, but i don't know how to write it in terms of 2sin(squared)θ and -3sinθ.  Any help will be appreciated. Prove that $n=\dfrac{5^{125}-1}{5^{25}-1}$ is a composite number   My attempt,  Let $x=5^{25}$, so that $5^{125}-1=x^5-1=(x-1)(x^4+x^3+x^2+x+1)$  $=(x^4+9x^2+1+6x^3+6x+2x^2-5x^3-10x^2-5x)(x-1)$  $=((x^2+3x+1)^2-5x(x+1)^2)(x-1)$  I'm stuck at this point and don't know how to continue anymore. Hope someone can provide a detailed solution. Thanks a lot. Number Theory: Find all solutions of $\phi(n)=16$ and $\phi(n)=24$