Security of eval() with sanitized input
When is JavaScript's eval() not evil?
From 8th June there's been a  period for people entering the UK. From 10th July, travellers from  via a travel-corridor. If more countries are added to the list of exemptions then the date for each country will be later than the 10th July. If a traveller entered the UK from a country that is not on the exempt list and that country is added to the exempt list prior to the end of the 14 day self-isolation period does the self-isolation period end early? For example, if an individual entered the UK from France on the 5th July, should they remain in isolation for 14 days or does the isolation end on the 10th when France is added to the list of exempt countries? My tea bags are expired, can I still use them? This box of tea has an expiration date which has passed but I would like to know if I can still use it. What do you think? Finding information on German soldiers from World War I and World War II? Upvoting a downvoted answer will do +2 upvote? I have first downvoted an answer. Then, I decided to leave it the way it was before, meaning to undo my downvote just like it never existed, so I upvote to remove my downvote. Suprise! SO seems to consider it as two upvotes!  Let's say I have an answer with -3, then I decide to downvote it making it -4. After deeper thoughts, I prefer to remove my downvote to let it the way it was before I downvoted, meaning -3, but SO makes it -2 automatically!     Wouldn't it be supposed -3, and not -2? If someone else would have upvoted, it would have made it an upvote +1, not a +2!   Am I missing something here?  In fact, is there a way to tell SO that I only wish to undo my downvote, and not upvote the answer? I may understand why it does behave this way. I only wish to undo my downvote, though. In any finite graph with at least two vertices, there must be two vertices with the same degree Show that, in any finite graph with at least two vertices, there must be two vertices with the same degree.  HINTS ONLY! How do you add tags to blocks so they can only be placed on 1 type of block? What's the origin of the flattened X that appears when of a small (but powerfull enough) light is reflected in our non-powered TV screen? Can Selenium interact with an existing browser session? Annoying flickering in 16.04 LTS - Chrome I've upgraded from 4.4.0 to 4.4.8 and then 4.5.2 on Ubuntu 16.04 LTS 64-bit, and it's still happening.   At 4.5.2 it's even more frequent, and mainly in Chrome (haven't tried firefox or opera just yet). Every time I open a new web page. Any way to fix that, or is it a bug?  00:02.0 VGA compatible controller: Intel Corporation HD Graphics 5500 (rev 09) 04:00.0 Display controller: Advanced Micro Devices, Inc. [AMD/ATI] Venus XTX [Radeon HD 8890M / R9 M275X/M375X] (rev 81)   Cheers. LaTeX Editors/IDEs Where can I find a repository for older unsupported releases? How do I add a non-deformed end cap to a tube? I want to create some parts that I can reuse for models. I was trying to make a steam punkish exhaust pipe. I want to be able to make the pipe of any length, and as curvy as I like but I want to keep the end cap always undeformed. I approximated my results by hand placing the "crown" at the end of this bezier curve.  I tried to make an array modifier that included the crown as the end cap, but that results in the end cap deforming. How do I get %LocalAppData% in c#? How do I prove equality of x and y? If $0\leq x,y\leq\frac{\pi}{2}$ and $\cos x +\cos y -\cos(x+y)=\frac{3}{2}$, then how can I prove that $x=y=\frac{\pi}{3}$? Your help is appreciated.I tried various formulas but nothing is working. BibTeX loses capitals when creating .bbl file Titles of articles I'm about to cite contain upper case letters and when using BibTeX it converts them to lower case ones. This happens only in the title and only the first letter conserves its case. For example, when I cite an article about HF, the reader won't know if it is about Hafnium (Hf) or fluorine acid (HF).  I know that I can fix it manually in the .bbl file but I would like to avoid it, or fix it automatically. Calculating conditional entropy given two random variables I have been reading a bit about conditional entropy, joint entropy, etc but I found this: $H(X|Y,Z)$ which seems to imply the entropy associated to $X$ given $Y$ and $Z$ (although I'm not sure how to describe it). Is it the amount of uncertainty of $X$  given that I know $Y$ and $Z$? Anyway, I'd like to know how to calculate it. I thought this expression means the following:  $$H(X|Y,Z) = -\sum p(x,y,z)log_{2}p(x|y,z)$$  and assuming that $p(x|y,z)$ means $\displaystyle \frac{p(x,y,z)}{p(y)p(z)}$, then  \begin{align} p(x|y,z)&amp;=\displaystyle \frac{p(x,y,z)}{p(x,y)p(z)}\frac{p(x,y)}{p(y)}\\&amp;=\displaystyle \frac{p(x,y,z)}{p(x,y)p(z)}p(x|y) \\&amp;=\displaystyle \frac{p(x,y,z)}{p(x,y)p(x,z)}\frac{p(x,z)}{p(z)}p(x|y)\\&amp;=\displaystyle \frac{p(x,y,z)}{p(x,y)p(x,z)}p(x|z)p(x|y) \end{align} but that doesn't really help.  Basically I wanted to get a nice identity such as $H(X|Y)=H(X,Y)-H(Y)$ for the case of two random variables.  Any help?  Thanks How many Marvel Earths (Universes) are there? I know that there are at least 3 Marvel Universes:  Marvel Cinematic Universe -    Has all of the main ongoing Marvel movies    (1, 2)  (1, 2, 3)  (1, Age of Ultron) etc    Marvel's Ultimate Universe -    Has the other Marvel movies    (1, 2, 3, Origins: Wolverine, First Class, The Wolverine, Days of Future Past)  (1, 2)  etc       Main comic book continuity This is the big one, it contains         etc     Then there are apparently off-shoot Earths, continuities which deviate from the main continuity (Earth 616). How many Marvel Earths (Universes) are there?   Further Reading: var functionName = function() {} vs function functionName() {} I've recently started maintaining someone else's JavaScript code. I'm fixing bugs, adding features and also trying to tidy up the code and make it more consistent.  The previous developer used two ways of declaring functions and I can't work out if there is a reason behind it or not.  The two ways are:  var functionOne = function() {     // Some code };     function functionTwo() {     // Some code }   What are the reasons for using these two different methods and what are the pros and cons of each? Is there anything that can be done with one method that can't be done with the other? Why isn't Higgs coupling considered a fifth fundamental force? When I first learned about the four fundamental forces of nature, I assumed that they were just the only four kind of interactions there were. But after learning a little field theory, there are many other kinds of couplings, even in the standard model. So why isn't the Yukawa Higgs coupling considered a fifth fundamental force? To be a fundamental force, does there need to be a gauge boson mediating it? Given a DateTime object, how do I get an ISO 8601 date in string format?