I'm learning javascript and have fiddled with this for ages and can't get the desired output   I've searched stack overflow and can not for the life of me adapt any other answer to do what I need it to do, keep getting undefined  var fruit = {apple:"red",graps:"purple"} var vegetable = {cucamber:"green",lettuce:"green"}  var all_food = myFunction(fruit,vegetable);   want to return   {apple:"red",graps:"purple",cucamber:"green",lettuce:"green"}
I need to be able to merge two (very simple) JavaScript objects at runtime.  For example I'd like to:  var obj1 = { food: 'pizza', car: 'ford' } var obj2 = { animal: 'dog' }  obj1.merge(obj2);  //obj1 now has three properties: food, car, and animal   Does anyone have a script for this or know of a built in way to do this?  I do not need recursion, and I do not need to merge functions, just methods on flat objects.
"DataBinding: 'index+NewsItem' does not contain a property with the name 'Link'", but property exists (Not a Typo) Why are integer GCDs positive? [unit normalization of GCDs] The definition in my text reads, An integer $d$ is said to be the greatest common divisor of two non-zero integers $a$ and $b$ iff,  $d|a$ and $d|b$ and if $k$ is any other common divisor of $a$ and $b$ then $k|d$  Now here's the thing, if $d|a$ and $d|b$ then surely $-d|a$ and $-d|b$ as well, also $k|-d$ What I take from this? GCD is not unique! That is if $\mathrm{gcd}(12,8)= 4$ then by the definition, $\mathrm{gcd}(12,8) = -4$ as well. Yet I never ever seen a negative gcd. Someone please explain. Maybe, $4&gt;-4$, and we want the &quot;greatest common factor&quot; so...? But that still doesn't justify the definition. I read that it is a best practice to double quote all of your variable expansions in Bash. I also read that one cannot use a shell glob (wildcard(*)) right after a double quoted variable expansion. These situations conflict when one wants use the value of a regex pattern, expanded out of a variable.   The reason I would sometimes want to combine regex with a wildcard is to keep my regex minimal, neater, in my personal taste.  My particular problem  I downloaded phpmyadmin into my document root directory and unzipped it, but I fail to rename it with mv by a regex pattern I put in a variable, and available when expanding its variable. Here's the exact trace:  userName@compName:/var/www/html# ll total 11336 drwxr-xr-x  3 root root     4096 Feb 14 07:04 ./ drwxr-xr-x  3 root root     4096 Feb 14 06:56 ../ -rw-r--r--  1 root root      612 Feb 14 06:57 index.nginx-debian.html drwxr-xr-x 12 root root     4096 Dec 23 08:50 phpMyAdmin-4.7.7-all-languages/ -rw-r--r--  1 root root 11589684 Dec 23 14:08 phpMyAdmin-latest-all-languages.zip userName@compName:/var/www/html# echo $pma [pP][hH][pP][mM][yY][aA][dD][mM][iI][nN] userName@compName:/var/www/html# mv "$pma"*/ phpmyadmin/ mv: cannot stat '[pP][hH][pP][mM][yY][aA][dD][mM][iI][nN]*/': No such file or directory   If I'll unquote the variable expansion to ${pma} I would indeed be able to combine the variable expansion and the regex, as in ${pma}*, but it is important to me to follow the best practice without exceptions, if I can.  My question  How could I keep the variable expansion double quoted, but still using the extracted value with a wildcard? How do you judge the quality of a journal? According to this , I thought the new recaptcha API was used network-wide. Though today, when going to  (which for whatever reasons never recognized me automatically), I got this message instead of a usable captcha image.   V1 Unsupported Please direct siteowner to   (Doing a second try doesn't show this message anymore, and the recaptcha v1 works as intended.)  According to , the reCAPTCHA v1 API will stop working on March 31, 2018:  What happens to reCAPTCHA v1? Any calls to the v1 API will not work after March 31, 2018. Starting in November 2017, a percentage of reCAPTCHA v1 traffic will begin to show a notice informing users that the old API will soon be retired. Most websites around the world have already switched to reCAPTCHA v2, where humans pass effortlessly. With our advanced risk analysis engine, reCAPTCHA v2 can effectively separate humans from bots and always stay ahead of the attackers. If your site still uses reCAPTCHA v1, please upgrade to reCAPTCHA v2 immediately. We no longer support reCAPTCHA v1. Any calls to the v1 API will not work after March 31, 2018. Please register a new key and upgrade to v2.  I'm really hoping this will not take  to fix, because we've only got three and a half weeks left! I have a module with a page callback handler for the path "products". So if the user navigates to products/apples then the module presents a page about our apples, and if they go to products/oranges then etc. These pages include detail about the various products.  I would like XML Sitemap to be populated from my module. After all, it's my module that knows what products exist, their descriptions etc.  Any hook or anything I can use for that? "All X" vs. "all of X" vs. "all the X" Is there any difference between "all X", "all of the X", "all the X"? E.g.,        all friends   all of the friends   all the friends Wait until all jQuery Ajax requests are done? Intuitive idea of the Lipschitz function I'm trying to understand intuitively the notion of Lipschitz function.   I can't understand why bounded function doesn't imply Lipschitz function.   I need a counterexample or an intuitive idea to clarify my notion of Lipschitz function.  I need help  Thanks a lot Multiple file upload in php Entire function $f$ such that $|f(z)| ≤ K |z|^3$ for $|z|\ge1$ and $f(z) = f(iz)$ for every $z∈C$ Let $f(z)$ be an entire function such that for some constant $K$ , $|f(z)| ≤ K$ $|z|^3&lt;$ for $|z|\ge1$ and $f(z) = f(iz)$ $∀z∈C$ , then which of the following are correct ?  (A)$ f(z) = Kz^3$ $∀ z∈\Bbb{C}$ (B) $f(z)$ is a constant function (C) $f(z)$ is quadratic function (D) No such $f$ exists   My attempt : I can deduce that since $f(z) = f(iz)$ and since $i^4=1 \implies f$ must involve only fourth powers of $z$ . Hence $f(z)=a_1z^4+b_1z^8+c_1z^{16}+ \cdots $-------(1)  Also for $|z| \ge 1 $: let C.   Then $|g(z)| = |f(z)|/|z^3| \le k$ => By the Cauchy estimate theorem we can prove that :  $f(z)/z^3$ is a constant function $= c $   $\implies f(z)=cz^3$ for $|z| &gt; 1$     ...........(2)  From (1) and (2) ; we get  there does not exist a function like this ?  My textbook answer says it's a constant function ? I have asked this question before  The first guy solved it in a way, but  i would like to know is there any efficient way to do so, because i did the same for N = 13 and N = 15  which took long time.  This problem is from a pen and paper test, ZIO-2018 Can i solve it with an efficient algorithm, well i am pretty beginner in algos, so if there is one kindly descibe it how can i do so?  Thank you no wifi in Ubuntu 15.04 Inner product on $C(\mathbb R)$ With axiom of choice it is possible to construct an inner product on $C(\mathbb R)$. My question is, is it possible to explicitly construct an inner product on $C(\mathbb R)$? I.e. to give a closed formula to calculate the inner product? I know it is straight-forward to write down a scalar product using a Hamel basis. This is not the answer I am looking for. This question came to me, when a student asked me in the lecture today 'whether there are vector spaces without inner products'. So I tried to find scalar produces for function spaces. I think I managed to write one down for $L^1((0,1))$. But I failed to construct one for $C(\mathbb R)$. I am trying to understand model vs. interpretation of sentences vs. theories, with respect to a propositional calculus.  Is a model of a wff just a sentence that is true under some interpretation?   Or a set of wffs that are all true under some interpretation?   Or when an interpretation satisfies a wff (or set of wffs)?   Does it make sense to say that an interpretation is a model if all valid propositions are true? Or an interpretation being a model iff all theorems from the theory are still valid under the interpretation? I`m using Firefox Sync on a bunch of computers.   I would like to manage my account, by removing some computers. I can't find the place to do this, it should be on the Firefox Sync page, but the official page only has the privacy and download information. PHP error in .xml file? Rich Wizards, Poor Muggles Why, oh why, don't the Weasleys "conjure" up some diamonds/gold/etc, sell 'em to Muggles, and get rich? They could buy a mansion (like the Malfoys), and live there happily ever after.  I know there's  that prohibits one from conjuring food (which doesn't make much sense to me, either). Even if it applied to gold, what about all the other elements/compounds/materials? Could the law really be 'don't let a wizard conjure something if it'll make them richer'? That's totally nonsensical.  Why does Wizard society still have poor people, especially if they're talented? Do fixtures trigger model callbacks? How to find and compare flights carried out by a specific type of plane?