Like:
function getKey(o, k){
for(var i in o){
if(o[i] === k){
return i;
}
}
return 'No match was found.';
}
var user = {name:'john', age:26, gender:'male'}
getKey(user, 'male');
Suggested edits have grace period. If the editor changes his/her edit while it's still during review (i.e. not rejected or approved yet) the next reviewer will see only that updated edit without any way to see the previous/original edit. (most likely there's window of 5 minutes or so, didn't chec...
like when I'm in the close queue , it takes a second or two to load the next question, or a second or two to load the fricken close reasons ... anyone else been experiencing this slow down within the last week?
seems like the database isn't running as fast as it use too.. also , a lot of times, if i just click to view the total up and down votes, it takes 4 seconds , like wth
Python, 92 characters
To avoid spoilers, I'm just going to provide this shell snippet:
>>> import hashlib; hashlib.sha256(code).hexdigest()
'60fa293bbe895f752dfe208b7b9e56cae4b0c8e4cdf7c5cf82bf7bab60af3db6'
>>> exec code
d9a6b63356a7954b29b0ac7f2aaa6d19b84b4cf8b62aac95a14b4ea59db3e7c94c4959ec94...
sigh
It would be fun if the answer would be a Troll getting 12 upvotes for free :D
Whenever I'm on SO, I like to do moderationy things. But I can't do very many, because I don't have much rep because I spend all my time doing moderationy things :(
I recall this review:
It was one that I knew could use a bit more spit and polish, but I didn't have the inclination or energy to edit it myself, so I skipped it.
I wander my way over to Suggested Edits Dashboard (10K only), and look at the listing...
...so, when did I approve this again? ...
Say I have the following model:
$$\text{Poisson}(\lambda) \sim \begin{cases}
\lambda_1 & \text{if } t \lt \tau \\
\lambda_2 & \text{if } t \geq \tau
\end{cases}
$$
And I infer the posteriors for $\lambda_1$ and $\lambda_2$ shown below from my data. Is there a Bayesian way of te...
The determined Real Programmer can write Fortran programs in any language.
from Real Programmers Don't Use Pascal
Your task is to write program in your programming language of choice, but you are allowed to use only another language. That is, throw away all coding conventions from one langu...
We are almost ready with our App and we need your help with testing. To set a few expectations: there will be bugs, crashes, and missing features, all of which will be fixed in 1 to 2 weeks.
To register for alpha testing sign up here.
After you register we will send you an e-mail with instructi...
I found following written in third point of this link http://stackoverflow.com/help/on-topic :- Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist.
So I guess that question, we were talking about earlier, was better candidate for off-topic flag.