I have this code like this:  $scope.role.object_access_right = {contact:1,group:1,image:1,text:1,email_template:1,email:1,channel:1,campaign:1,invoice:1,user:1,account:1,tenant:1,}   I have empty array here,  $scope.access = [];   How can I push the key to empty array to have result ?   $scope.access = [contact,group,text ...]
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"]
Noun-adjective reversal - was it ever in use in plain speech? If $H$ has maximum vertex degree at most $3$ and is a minor of $G$, then $H$ is a topological minor of $G$. If  $H$ has maximum vertex degree at most $3$ (so $\Delta(H)\leq 3$) and $H$ is a minor of $G$, then $H$ is a topological minor of $G$.   The converse follows by definition. However, most sources state this proposition without a proof. Any help is greatly appreciated. How did the writers not notice that the mailbox of Leela's parents says "Turanga," and not "Leela"?  Turanga Leela is Leela's proper name, with Leela being her surname, so shouldn't it follow that her folks would be the same? Almost universal class I so stuck with a problem of set theory. But first a recursive definition:   Define $R_0=\emptyset$ If $R_\alpha$ is defined, then $R_{\alpha+1}=\mathcal{P}(R_\alpha)$ (the power set). For a limit ordinal $\gamma$, if $R_\alpha$ is defined for all $\alpha&lt;\gamma$, then define $R_\gamma=\displaystyle\bigcup_{\alpha&lt;\gamma} R_\alpha$   We define $\text{BF}=\displaystyle\bigcup_{\alpha\in\text{OR}} R_\alpha$ (the class of well founded sets).  Next, my problem     Take $A\subseteq \text{BF}$ a proper transitive class such that $(A,\in)\models\text{ZF}$. Prove that $A$ is almost universal.    I think that the exercise is false because if it was true, then we could conclude that the strongly inaccessible cardinals doesn't exists. This because if $\kappa$ is strongly inaccessible then $R_\kappa$ satisfies the hypothesis but $R_\kappa$ isn't almost universal. I really appreciate any hint or/and suggestion.   Edit: my counterexample is wrong. But, then, how can I solve the exercise? possessive apostrophe for two things or persons What is the difference between the two sentences below? Are they the same or different in meaning?     Jack and Laura's new house is almost ready.      Jack's and Laura's new house is almost ready.   To my perception, the first says two of them have one house and the second says each one has a (different) house (which is almost ready). Is my perception correct?  EDIT: If I don't use "houses" instead of "house" (for my second interpretation), does it mean the sentence is wrong? Elsevier actions following US sanctions on Iran Bayes' Theorem Intuition I've been trying to develop an intuition based understanding of Bayes' theorem in terms of the prior, posterior, likelihood and marginal probability. For that I use the following equation: $$P(B|A) = \frac{P(A|B)P(B)}{P(A)}$$ where $A$ represents a hypothesis or belief and $B$ represents data or evidence. I've understood the concept of the posterior - it's a unifying entity that combines the prior belief and the likelihood of an event. What I don't understand is what does the likelihood signify? And why is the marginal probability in the denominator? After reviewing a couple of resources I came across this quote:     The likelihood is the weight of event $B$ given by the occurrence of $A$ ... $P(B|A)$ is the posterior probability of event $B$ , given that event $A$ has occurred.   The above 2 statements seem identical to me, just written in different ways. Can anyone please explain the difference between the two? How to Uninstall Blender Software I installed Blender for a project working on and it's way more than I need. I'd like to uninstall it, but can't figure out how to do so. It's not showing up in Programs (using Windows 9) and I can't find instructions on how to remove it in the Blender documentation. Any assistance would be greatly appreciated. Thanks. Big tilde in math mode Split a string with delimiters but keep the delimiters in the result in C# Jquery - change event firing on page load Is it correct to say "I slump/slumped on/onto the stool/barstool?" I wrote this sentence: "I buy a bottle of beer and slump on/onto the last stool."  A native English speaker told me that "slump" doesn't work here. That you can't slump on a bar/barstool.  Is this correct? If so, why? Why does "Size on disk" vary when "Size" does not with the same set of files? How do I use Moq to mock an extension method? I am writing a test that depends on the results of an extension method but I don't want a future failure of that extension method to ever break this test. Mocking that result seemed the obvious choice but Moq doesn't seem to offer a way to override a static method (a requirement for an extension method). There is a similar idea with Moq.Protected and Moq.Stub, but they don't seem to offer anything for this scenario. Am I missing something or should I be going about this a different way?  Here is a trivial example that fails with the usual "Invalid expectation on a non-overridable member". This is a bad example of needing to mock an extension method, but it should do.  public class SomeType {     int Id { get; set; } }  var ListMock = new Mock&lt;List&lt;SomeType&gt;&gt;(); ListMock.Expect(l =&gt; l.FirstOrDefault(st =&gt; st.Id == 5))         .Returns(new SomeType { Id = 5 });   As for any TypeMock junkies that might suggest I use Isolator instead: I appreciate the effort since it looks like TypeMock could do the job blindfolded and inebriated, but our budget isn't increasing any time soon. Group Membership Test for Permutations Misplaced noalign after rowcolor in multicolumn avoid space after commas used as thousands separator in math mode What are the best workarounds for using a SQL IN clause with instances of java.sql.PreparedStatement, which is not supported for multiple values due to SQL injection attack security issues: One ? placeholder represents one value, rather than a list of values.  Consider the following SQL statement:  SELECT my_column FROM my_table where search_column IN (?)   Using preparedStatement.setString( 1, "'A', 'B', 'C'" ); is essentially a non-working attempt at a workaround of the reasons for using ? in the first place.    What workarounds are available? How were bullets able to dent Captain America's Shield? Just after Captain America's shield was introduced in Captain America: The First Avenger, Peggy Carter shot few bullets at it which created few minor distortions on it.                                  From  page of Marvel.Wikia,     Proto-Adamantium   This is the original Adamantium created by Dr. MacLain. Proto-Adamantium is the official name for the metal that makes up Captain America's Shield. It has never been recreated and is the absolute most invulnerable item in all of existence.    From  page of Marvel.Wikia:     The true shield was once slightly dented by an enraged Odinforce empowered Thor, using Mjolnir, but he later reconciled and pounded out the small dent.    How were few bullets able to dent Captain America's shield then? Recently I've noticed more and more sign-in / sign-up workflows defaulting to the sign-up option first and providing a minimal "Sign-In / Login" action somewhere else on the page. What's the reason behind this practice?  Examples where I've seen this recently: