What's the simplest approach to check existence of deeply-nested object property in JavaScript?
Test for existence of nested JavaScript object key
Dimension of cone of projective variety Why are my SVG imports so small? I'm definitely a newbie with blender still, as I've dipped my toe in a bit being a video editor.  My issue is importing .svg saved from illustrator.  Just simple vectors with not too many paths.  Just a thick text company logo.  I want to bring in and extrude, light, etc.  I've done it before in older versions of blender with no problem.  Am I not doing something right? Can someone tell me how to get an eps saved as an svg from illustrator to size correctly? How to get a drive formatted with exfat working? In Ubuntu 13.04 there was an option to use the PPA by Relan in order to get ExFat functionality. Seeing that in Ubuntu this functionality is now available from the repositories without the PPA I tried this but failed to make it work.  So my question is how do I enable exfat support? How can I enable Hardmode? What items do I need to make my world Hard Mode? Easiest way to sort DOM nodes? If I have a list like this:  &lt;ul id="mylist"&gt;     &lt;li id="list-item1"&gt;text 1&lt;/li&gt;     &lt;li id="list-item2"&gt;text 2&lt;/li&gt;     &lt;li id="list-item3"&gt;text 3&lt;/li&gt;     &lt;li id="list-item4"&gt;text 4&lt;/li&gt; &lt;/ul&gt;   What's the easiest way to re-arrange the DOM nodes to my preference? (This needs to happen automatically when the page loads, the list-order preference is gained from a cookie)  E.g.  &lt;ul id="mylist"&gt;     &lt;li id="list-item3"&gt;text 3&lt;/li&gt;     &lt;li id="list-item4"&gt;text 4&lt;/li&gt;     &lt;li id="list-item2"&gt;text 2&lt;/li&gt;     &lt;li id="list-item1"&gt;text 1&lt;/li&gt; &lt;/ul&gt; Open terminal window and execute Python script on startup I have a Python script which I would like to execute at every startup. I can run it by adding this to the startup applications:  python3 /path/to/script.py   That works, but it doesn't open a terminal window, so I can't see the program's output. How could I make it open a terminal window and execute the script in there?  Note: I get the window to stay open with input(' ') at the end of the Python script. Thanks! What will be the trajectory of the given motion If it is given that component of acceleration perpendicular to the velocity of a body has a constant, non-zero magnitude, how can we mathematically prove that the trajectory of the body will be circular?   I have basic knowledge of calculus, vectors and co-ordinate geometry. I can prove that the trajectory of a body in projectile motion is parabolic. I tried to follow a similar method to get an equation of circle but couldn't succeed. I tried forming parametric equations of x and y in terms of time t (the way we proceed when proving the parabolic path of a projectile) but could not reach the conclusion.  Edit: I have edited the question in order to improve it. However I still can not share my work on this question as I had asked the question almost 6 months ago and now I can not find where I tried solving it. Sincerely sorry for that. How to add CC to a webform email? What's the difference between &lt;b&gt; and &lt;strong&gt;, &lt;i&gt; and &lt;em&gt; in HTML/XHTML? When should you use each? Is there a simple way to flatten a list of iterables with a list comprehension, or failing that, what would you all consider to be the best way to flatten a shallow list like this, balancing performance and readability?  I tried to flatten such a list with a nested list comprehension, like this:  [image for image in menuitem for menuitem in list_of_menuitems]   But I get in trouble of the NameError variety there, because the name 'menuitem' is not defined.  After googling and looking around on Stack Overflow, I got the desired results with a reduce statement:  reduce(list.__add__, map(lambda x: list(x), list_of_menuitems))   But this method is fairly unreadable because I need that list(x) call there because x is a Django QuerySet object.  Conclusion:   Thanks to everyone who contributed to this question.  Here is a summary of what I learned.  I'm also making this a community wiki in case others want to add to or correct these observations.  My original reduce statement is redundant and is better written this way:  &gt;&gt;&gt; reduce(list.__add__, (list(mi) for mi in list_of_menuitems))   This is the correct syntax for a nested list comprehension (Brilliant summary !):  &gt;&gt;&gt; [image for mi in list_of_menuitems for image in mi]   But neither of these methods are as efficient as using itertools.chain:  &gt;&gt;&gt; from itertools import chain &gt;&gt;&gt; list(chain(*list_of_menuitems))   And as @cdleary notes, it's probably better style to avoid * operator magic by using chain.from_iterable like so:  &gt;&gt;&gt; chain = itertools.chain.from_iterable([[1,2],[3],[5,89],[],[6]]) &gt;&gt;&gt; print(list(chain)) &gt;&gt;&gt; [1, 2, 3, 5, 89, 6] How do keyboard input and text output work? Suppose I press the A key in a text editor and this inserts the character a in the document and displays it on the screen. I know the editor application isn't directly communicating with the hardware (there's a kernel and stuff in between), so what is going on inside my computer? Determinant of a rank $1$ update of a scalar matrix, or characteristic polynomial of a rank $1$ matrix This question aims to create an &quot;&quot;  of numerous questions that ask about determinants of specific matrices (I may have missed a few):              The general question of this type is  Let $A$ be a square matrix of rank$~1$, let $I$ the identity matrix of the same size, and $\lambda$ a scalar. What is the determinant of $A+\lambda I$?  A clearly very closely related question is  What is the characteristic polynomial of a matrix $A$ of rank$~1$? In the sentence     What’s funny is Cat’s dry humour.   Wouldn’t it be better to put a comma after “funny”:     What’s funny, is Cat’s dry humour.   This question entails a (at the time of writing) heated discussion in the . How to increase ping time/network connection latency on Windows? I need to permanently increase network latency in approximately 100ms, without losing packets.  Reason: On a certain server and internet game my ping is too much lower than the other people playing it. I have 15ms, when average is 150ms which gives me cheater-like advantages.  So also out of curiosity I'm looking for ways to increase my ping while keeping connection stable. What are my options if any?  I thought about VPN services, but it seems like a bad option since games use UDP?  Is there any router/software that would assist me on this?  I'm on windows. Boggle: What is the dice configuration for Boggle in various languages? This is the dice configuration for the English Boggle:  Other variants and discussions concerning letter distributions for English can be found here:  , , ,  (Wikipedia).  I am interested in the 16 dice configurations for also other languages (Spanish in particular) and I am unable to find it anywhere online.  Versions I have managed to find so far:  ,  English 25 dice version:   Spanish 25 dice version:   Italian 25 dice version: Number of equivalence relations on a set If a set has $n$ elements then what are maximum number of equivalence classes and equivalence relations possible on it? I have seen many articles that talk about a star's "habitable zone" as the ring around it which is just the right temperature for planets to have liquid water, which is necessary for life. My question is, why does a planet need to have liquid water in order to sustain life? Who says that extraterrestrial life can't live off of some other kind of sustenance? Is there a way to have Cycles skip rendering alpha? Isomorphism $H_n(D^n, S^{n - 1};A)$ and $A$ The homomorphism $a \mapsto [[a \cdot f]]$ is supposed to be an isomorphism between $A$ and $H_n(D^n, S^{n - 1};A)$ for any homeomorphism $f: \Delta^n \to D^n$. I have proven that it is well defined and injective, but why is it surjective?  The group $H_n(D^n, S^{n - 1};A)$ is generated by elements of the form $a \cdot \sigma + b \cdot \tau + c \cdot \partial(\kappa)$ where $\sigma: \Delta^n \to D^n$, $\tau: \Delta^n \to S^{n - 1}$ and $\kappa: \Delta^{n + 1} \to D^{n + 1}$ and I do not see how an element of this form represents the same equivalence class of $[[m \cdot f]]$ for some $m \in A$. We can write $\sigma$ as $f f^{-1} \sigma$ to get $f$ in there, but I don't see that working out. Any hints? How do I remove an element from a list by index in Python?  I found the list.remove method, but say I want to remove the last element, how do I do this? It seems like the default remove searches the list, but I don't want any search to be performed.