Compare userInput JavaScript
Which equals operator (== vs ===) should be used in JavaScript comparisons?
Pausing a long running program in the terminal? Is there a keyboard key combination that I can use to pause a program running in the terminal? In case it matters, I don't intend to run anything else inside that terminal while the program is paused. I just want to pause the program execution, and resume it later. How can I do this? Story about criminal being "adjusted" which stops a man's commute I'm trying to remember the name of a story, I think the author was Larry Niven, but it might possibly be from Heinlein's "Future History" series (but a check of the stories included in the Future History indicates it's not in there), about a man whose commute is stopped because a criminal has to be 'adjusted'.  In this case, the criminal was a hit-and-run driver who left his victim untreated on the roadside, and was sentenced to suffer in the same manner. So his leg was carefully broken and he was left, untreated and in pain, on the side of the road in the same place for an hour. All the time ambulances were standing by, and every effort was made to ensure that the criminal did not suffer unduly - but that he did suffer, in a manner as close to the suffering he inflicted on his victim. How to repair a broken .EXE file association How is well-ordering in real line possible?  I know that the axiom of choice provides possible well-ordering, but intuitively, this does not seem to make sense.  How can you compare 1.111111.... and 1.111111... when we can never know the full digits of each number? Safely moving and creating new tempdb files Two things I'd like to know:   how do you safely move tempdb with minimal downtime? how many tempdb files do you need?   Is it 1 file per core? So quad-core = 4 tempdb files, creating three new ones? this works in viewport but not in render.  import bpy from math import *  def frame_handler(scene):     z = scene.objects['Lift'].location[2]     scene.objects['Text'].data.body = str(floor(z / 4.0) - 2)  bpy.app.handlers.frame_change_pre.clear() bpy.app.handlers.frame_change_pre.append(frame_handler)   How to get it working in render? I've read  and changed from "bpy.data.objects" to "scene.objects" as already seen in the script. What am I missing? Blender v. 2.81.16  Edit. Tried that depsgraph thing mentioned in comments and changed to frame_change_post:  import bpy from bpy.app.handlers import persistent from math import *  @persistent  # maybe not relevant but doesn't harm anything? def frame_handler(scene, depsgraph):     z = scene.objects['Lift'].evaluated_get(depsgraph).location[2]     scene.objects['Text'].data.body = str(floor(z / 4.0) - 2)  bpy.app.handlers.frame_change_pre.clear() bpy.app.handlers.frame_change_post.clear() bpy.app.handlers.frame_change_post.append(frame_handler)   Now the Text doesn't show up at all in rendered (but works in viewport). Zoom lenses and cameras with superzooms are often sold with a times ("×") zoom number — like a 12x zoom or 30x zoom. The question  explains how this relates to focal length numbers, like 70-200mm or 18-55mm. But how does ×-zoom relate to magnification, when used for macro or just to make something far away look bigger?  How can two 70-200mm lenses have different magnification? How to prove that $\sqrt[3] 2 + \sqrt[3] 4$ is irrational? So while doing all sorts of proving and disproving statements regarding irrational numbers, I ran into this one and it quite stumped me:  Prove that $\sqrt[3]{2} + \sqrt[3]{4}$ is irrational.  I tried all the usual suspects like playing with $\sqrt[3]{2} + \sqrt[3]{4} = \frac{a}{b}$ for $a,b\in \mathbb{Z}$ , but got nowhere.  I also figured maybe I should play with it this way:  $2^\frac{1}{3} + 4^\frac{1}{3}=2^\frac{1}{3} + (2^2)^\frac{1}{3}=2^\frac{1}{3} + 2^\frac{2}{3}=2^\frac{1}{3} + 2^\frac{1}{3}\times 2^\frac{1}{3}=2^\frac{1}{3}(1+2^\frac{1}{3})$  But there I got stumped again, because while $1+2^\frac{1}{3}$ is irrational, nothing promises me that $2^\frac{1}{3} \times (1+2^\frac{1}{3})$ is irrational, and I feel like trying to go further down this road is moot.  So what am I missing (other than sleep and food)? What route should I take to  prove this? Thanks in advance! Dimension of cone of projective variety Stack Exchange- Area 51 Android App I am trying to use Stack Exchange Andoid App to use my accounts in Stack Overflow &amp; Area 51.   For the Area 51, there is only Area 51 Discussion. Even Area 51 Discussion isn't working in the App!   VERSION 1.0.51  When adding this site, it's showing the correct full name as in this screen-shot:     However, when I pin this site to my fav sites in Stack Exchange, it is showing: Unknown Site. When clicking it, it shows black screen then just quit the App!  Here is the screen-shot:       Is the site not yet capable with Android? or is it a bug in the App itself?  PS: this question isn't duplicate:   In the previous versions of the App, the site was opening but with Unknown Site name. However, in this version, it quits the app when pressing the area site! It isn't opening at all! This question is also to track this bug in the App. As it's about the site name issue &amp; the content as well. Often when I mistype a command such as ls (e.g. I hit ENTER before I type 's') there is a long (~2s) delay after the terminal displays:  bash: l: command not found...   I can understand the reasons for a similar delay after an incorrect password is entered, per . But why delay after an unrecognized command? Does FAIL_DELAY in /etc/login.defs affect this also? Why didn't the Seons change? In the book Elantris, the Reod was caused by a giant earthquake opening a chasm which changed the shape of all the Aons. The Seons, which are basically living Aons, were presumably unchanged, since nobody noticed the change, which should have been obvious on the simpler Aons. Why isn't an infinite direct product of copies of $\Bbb Z$ a free module?   Actually I was asked to show that it's not projective, but as $\Bbb{Z}$ is a PID, so it suffices to show it's not free.   I am stuck here. I saw some questions in SE, but there is no satisfactory answer at all. Update a field without changing the node I need to change a field in a node without altering the 'changed' timestamp. I know this was possible in Drupal 7 using field_attach_update(), but that has been removed since then.  I could use an update query and change the field directly in the database, but I was wondering if there is a better way (or a replacement for field_attach_update()). Where can I get images for commercial use? I am running a web site design service for local small business owner. I want avoid legal issues on the images I use. Usually, the images found on Flickr are forbidden for commercial use. Where would be a normal channel to get pictures for commercial use with minimal cost? How can I validate that the picture I used has no legal risk? How can I reconnect to a ssh session after a broken pipe? Let's say I have 1m of 2,5mm² copper wire, insulated with H07V-K. The wire carries 40A and environment temperature is 25°C. The wire is suspended in free air. How hot will the wire get? And how can I calculate it for other values?  The use case is a 12V-230V AC converter I want to hook up to my car and determine the minimum wire thickness required. Because it's only used from time to time and not buried in a wall I suspect I can use thinner wires. This is a temporary thing and doesn't need to be up to code. Lost passport with Schengen visa My passport was stolen in Prague on my way to Vienna. I filed a police report and our embassy swiftly acted by giving me a temporary passport for my onward journey to Munich and Rome. Upon exit from Rome, the immigration ask for the Schengen visa, when I told him that I lost my passport, he did not ask for any document to support my claim, he just stamped my new passport with exit. I am not sure if on record, I am officially out of the Schengen area or not. I am scared that without the lost visa, it appears that I am still in the area and might reach the 90 day limit and will be denied when I re-apply as it would appear I broke the rule. What to do? Careers tag search should only search tags Self-Contained Proof that $\sum\limits_{n=1}^{\infty} \frac1{n^p}$ Converges for $p > 1$ To prove the convergence of the p-series   $$\sum_{n=1}^{\infty} \frac1{n^p}$$  for $p &gt; 1$, one typically appeals to either the Integral Test or the Cauchy Condensation Test.  I am wondering if there is a self-contained proof that this series converges which does not rely on either test.    I suspect that any proof would have to use the ideas behind one of these two tests.