I have this array: const myArray: [{phone: &quot;&quot;}, {message: &quot;&quot;}]  I want to destructure this array and obtain something like this: const result = {phone: &quot;&quot;, message: &quot;&quot;}  But I can't find a way.
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.
A (highfalutin) word for a highfalutin word? To illustrate the question, badroit used the word "meretricious" meretriciously.   Is there an English word that describes highfalutin words like "meretricious" that are (gratuitously) used in place of better-understood words like "garish"?  The word may or may not be self-describing. Everybody who is using Lightroom probably has seen this. After importing RAW files, Lightroom shows a preview, but contrast and color of the preview change after a few short seconds to a slightly different view.  For some users the change is small, for others the change is huge. Colors are different (read: wrong), contrast is off.  Rumor says this is happening only (more?) for Nikon users.  What is Lightroom doing here?  I'd guess that for the first preview, LR is showing the JPG preview file, which is embedded in the RAW file. Then after a moment, LR renders the RAW file itself to show it's own interpretation.  But why is this interpretation so different from the embedded JPG? Alright, I'm toying around with converting a PIL image object back and forth to a numpy array so I can do some faster pixel by pixel transformations than PIL's PixelAccess object would allow.  I've figured out how to place the pixel information in a useful 3D numpy array by way of:  pic = Image.open("foo.jpg") pix = numpy.array(pic.getdata()).reshape(pic.size[0], pic.size[1], 3)   But I can't seem to figure out how to load it back into the PIL object after I've done all my awesome transforms.  I'm aware of the putdata() method, but can't quite seem to get it to behave. How to draw tangent vectors and component vectors on a curve I am searching for a way to have a figure drawn using LaTeX. I am aware of some packages TikZ and PSTricks that could accomplish this, and have been tinkering around with them recently but do not have enough skill set at the moment to accomplish this drawing. Is there a way someone can accomplish the drawing, preferably with TikZ but could be any package your most comfortable with in a reduced amount of coding (non-advanced) to where I could understand what is happening from the code to the picture. If this is not possible, then I will have to study the package more and work with it until I understand the method (code) to create the graphic. The drawing is below.  Note: This is a rough sketch. The optimal output would have smooth quadratic curves and all quantities are vectors. If I take a sponge and place it in a shallow dish of water (i.e. water level is lower than height of sponge), it absorbs water until the sponge is wet, including a portion of the sponge above the water level. In other words, it seems the sponge pulls some water from the bath up into itself, doing work, and the water gains some gravitational potential energy.  Where does the energy required to do this work come from? My suspicion is that the answer involves physical and/or chemical bonds between the water and the sponge, or possibly the change in the surface area to volume ratio of the water. Spartan 6 DCM unstable clock output The link here refers to the clocking resources of spartan-6 FPGA. I am using the DCM-CLKGEN primitive described in the link, to generate a 8x clock based on an input clock. It works fine as long as the input clock is stable.  But now i sweep the input clock at every 90 us by ±5%. I see that although the DCM does not lose lock, it takes very long (15 to 20 us) to change the output freq after changing the input frequency. This is for me undesirable. Any suggestions?  This question was posted on the xilinx forum and the suggestion was to reset the DCM everytime it loses lock. But the problem is that the DCM is not losing lock  Also, this was earlier posted on stackoverflow and now has been reposted here. Is there a word for four times as much, analogous to once, twice, and thrice? Is there a word for 'four times as much', analogous to once, twice, and thrice? I have problem with CRS Bosnia and Herzegovina?  MGI 1901 / Balkans zone 6  EPSG:3908 MGI 31276 / Balkans zone 6  EPSG:31276  Which of these two is OK? When I open google sattelite image with openlayers plugin, MGI 1901 match an image, when I change to MGI 31276 vector layer mismatch about 300m. When I import my layers to Global Mapper, datum of vector is "MGI Austria"   I need this projection: Variation of the Kempner series – convergence of series $\sum\frac{1}{n}$ where $9$ is not a digit of $1/n$. It is easy to argue that the  converges:  $$  \sum\limits_{\substack{n \text{ s.t. 9 is}\\\text{ not a digit} \\\text{ of } n}}  \frac{1}{n} &lt; \infty$$  Let $E \subset \Bbb N_{&gt;0}$  the subset of the positive integers  such that $9$ is not a digit of the decimal expansion of $1/n$ (the decimal expansion is not allowed to have a trailing infinite sequence of "$9$"s. For instance $0.24999...$ is not allowed).  Here are the  that don't belong to $E$ : $11,13,17,19,21,23,29,31,34,38,41,…$ (not known by the OEIS, by the way).  My question is:     Does the series    $$ \sum\limits_{n \in E} \frac{1}{n} \tag 1$$ converge?   My attempt is :   Let $1/n = 0,a_1 a_2 \dots a_k \overline{b_1 b_2 \dots b_m}$ with $n \in E$. Since $1/n$ has no digit "9", we have at most $9^{k+m}$ possibilities for the $a_i$'s and $b_j$'s. Moreover, $1/n ≥ 0,00...0\overline{00...01}≥1/10^{k+m}$. But then I can only bound my series $(1)$ from below, by some real number. So, this is not a clue for the divergence of the series. Apparently, the numbers of the form $n=10k+1$ don't belong to $E$. Maybe we can find sufficiently many numbers that have $9$ in the decimal representation of their reciprocals, so that $(1)$ could converge...   Any comment will be appreciated ! Partition of circumference into $3k$ arcs The following problem is from 1982 Russian Mathematical Olympiad. If you go to this , and scroll down to the section Russian Math Olympiad, then this is Problem 333 in that text-file.     Let $k$ be a positive integer. There are $3k$ points marked on the circumference. They divide the circumference onto $3k$ arcs. Some $k$ of arcs have length 1, other $k$ of them have length 2, the rest $k$ of them have length 3. Prove that some two of the marked points are the ends of one diameter.   I haven't given too much thought into the problem yet (I probably wouldn't get anywhere), but I thought I would share this awesome problem.   Added. Trivial Observation: The length of the circumference is $k+2k+3k=6k$. Standard error of a ratio I have a linear regression and two estimates, say A and B and their standard errors. I need to find the standard error of a ratio A/B [or A/(1-B)].  I guess the main problem is that I don't know the correlation between A and B. I also guess that makes this unsolvable, since the correlation plays a major role. Is this correct?  If I knew it, what would be the way to calculate the standard error? Most of us have heard of Einstein's amazing equations which describe the universe around us, yet only some of us understand what the equations are actually saying.      What are these equations actually saying, and is there a simple (relatively) way to derive them?   Here they are, from :  $$R_{\mu\nu}-\dfrac{1}{2}g_{\mu\nu}R+g_{\mu\nu}\Lambda=\dfrac{8\pi G}{c^4}T_{\mu\nu}$$  I have a vague notion of what a tensor is (it describes things as an array and higher orders define more complex transformations), but I don't understand what all of these tensors are doing. And why is there a $c^{4}$  in the equation!? Why do return flight costs vary depending on the country of origin? I want to remove the URL that gets printed on the bottom of the page.   like:  yomari.com/.../main.php?sen_n   How can it be omitted or prevent from getting printed?  To be more specific, is there any way I can prevent the page URL, date and the page title being printed along, while printing the web page? In an hydrogen-like atoms the orbitals are solutions to the Schrodinger equation suitable for the problem.  They describe the regions where an electron can be found.  So, why don't they have spherical symmetric?  As in this picture:    Why, in a certain distance from the nucleus, are there points where an electron can be found, and points where it can't?  EDIT: Is there any intuation about the symmetry breaking? What are the eigenvalues of $\operatorname{ad}x$? Let $x\in \operatorname{gl}(n,F)$ have $n$ distinct eigenvalues $a_1,\ldots,a_n$ in $F$. Prove that the eigenvalues of $\text{ad }x$ are precisely the $n^2$ scalars $a_i-a_j$ ($1\leq i,j\leq n$), which of course need not be distinct.   So we can represent $x$ by an $n\times n$ matrix $X$. We have $Xv_1=a_1v_1,\ldots, Xv_n=a_nv_n$ for eigenvectors $v_1,\ldots,v_n$.   Now, $\operatorname{ad}x$ takes $y\in \operatorname{gl}(n,F)$ to $xy-yx$. I need to show that some $y$ is taken to a scalar multiple of itself, where that scalar is $a_i-a_j$. What could be that $y$? Why did Slytherin House not get disbanded? Changing geometry types from kml points Z to just points in QGIS How do I change geometry types from pointZ to point in QGIS from a kmz file? Locally bounded additive function is linear Let $T:\mathbb{R}^k\to\mathbb{R}^m$ is additive, i.e. $T(X_1+X_2)=T(X_1)+T(X_2)$. $T$ is locally bounded. Prove that $T$ is a linear transformation.  I know there is a relation between boundedness, convexity and scalar multiplicity. But not sure where to start or how to tie things together. Show $||Tx||_2 \leq ||(v_n)||_2 \cdot ||x||_{\infty}$ Let $(v_n)_{n \geq 1} \in \ell ^2$ be a fixed bounded sequence of real numbers. Define a mapping $T$ on $\ell ^{\infty}$ using the formula $$T(a_1, a_2,...)=(v_1a_1,v_2a_2,...), \, \, \, \, \, x=(a_1,a_2,...) \in \ell^{\infty}$$  We can use the fact that, $Tx \in \ell^2 $ for every $x \in \ell^{\infty}$ and $T: (\ell^{\infty},||\cdot ||_{\infty}) \rightarrow (\ell^{2},||\cdot ||_{2})$ is a linear operator.  Show $||Tx||_2 \leq ||(v_n)||_2 \cdot ||x||_{\infty}$ for all $x \in \ell^{\infty}$    Here is what I tried:  $||Tx||_2 = \bigg( \sum v_k^2 a_k^2 \bigg)^{1/2} \leq (||x||_{\infty}^2 \sum v_k^2 )^{1/2}= (||x||_{\infty}^2 ||(v_k)||_2^2 )^{1/2} = ||(v_k)||_2 \cdot ||x||_{\infty}$  Is this OK?