In the book "Beginning JavaScript" by Jeremy McPeak and Paul Wilton  there's a do-while loop example.   var userAge; do {    userAge = prompt("Please enter your age","") } while (isNaN(userAge) == true);   and below the author repeats one more time:     userAge = prompt ("Please enter your age","")   There's no semicolon at the end of the statement inside the do {} block.  As far as I can remember the author stated that it's considered best to always end any statement with a semicolon although it's not a must in most cases.   Was the omission of ; intentional? It seems so considering that in both the 4th and 5th editions there's no semicolon.  And there's also a repetition of that line below which doesn't contain a semicolon either.  Of course, one might say that it's not even a mistake. What I want to understand is whether the omission of a semicolon is more likely to be a typo or (which is worse) rather was done intentionally. If the latter is true, isn't that a sign of inconsistency?
In many situations, JavaScript parsers will insert semicolons for you if you leave them out. My question is, do you leave them out?  If you're unfamiliar with the rules, there's a description of semicolon insertion on the . Here's the key point:     If the first through the nth tokens of a JavaScript program form are grammatically valid but the first through the n+1st tokens are not and there is a line break between the nth tokens and the n+1st tokens, then the parser tries to parse the program again after inserting a virtual semicolon token between the nth and the n+1st tokens.   That description may be incomplete, because it doesn't explain @Dreas's example. Anybody have a link to the complete rules, or see why the example gets a semicolon? (I tried it in JScript.NET.)   is related, but only talks about a specific scenario.
"Who wants ice-cream?" — Should I say "(not) I" or "(not) me"? I was wondering on the following and I probably know the answer already: NO. Is there another number with similar properties as $e$? So that the derivative of $\exp(x)$ is the same as the function itself. I can guess that it's probably not, because otherwise $e$ wouldn't be that special, but is there any proof of it? ecommerce item deleted by user, 301 redirect to HOME PAGE or 404 not found? Family in GLM - how to choose the right one? When modeling data sampled in the field, I often come across the problem of determining the Family of the dependent variable for GLM (or GLMM). An example: in an ecological study, I have ~ 60 patches.  I have sampled territories of an animal species within these patches as well as a set of explanatory variables.  The number of territories per patch (NTP) is the dependent variable in a GLM.   NTP is integer with values between 0 and 14:      How can I test for the family of NTP?  Any help appreciated as this is an issue many ecologists come across each time they conduct statistical analysis. How can I increase the JVM memory? Check if element found in array c++ Here's my MWE (this is an actual bibliography item, the draft option is there to show the overfull hbox):  \documentclass[draft]{article}  \usepackage{filecontents} \begin{filecontents*}{x.bib} @BOOK{LV12,   title = {Algebraic operads},   publisher = {Springer},   year = {2012},   author = {Loday, Jean-Louis and Vallette, Bruno},   volume = {346},   pages = {xxiv+634},   series = {Grundlehren der Mathematischen Wissenschaften [Fundamental Principles     of Mathematical Sciences]},   address = {Heidelberg},   doi = {10.1007/978-3-642-30362-3},   isbn = {978-3-642-30361-6}, } \end{filecontents*}  \usepackage{biblatex} \addbibresource{x.bib}  \begin{document} \nocite{*} \printbibliography \end{document}   This produces:     Overfull \hbox (15.12822pt too wide) in paragraph at lines 27--27   I'm generally aware of how to fix overfull hbox from text I wrote myself, but not when the text is produced by a package. What is the best course of action here? Altering the entry is not an option. Apparently,     the Fisher analysis aims at simultaneously maximising the   between-class separation, while minimising the within-class   dispersion. A useful measure of the discrimination power of a variable   is hence given by the diagonal quantity: $B_{ii}/W_{ii}$.     I understand that the size (p x p) of the Between (B) and Within-Class (W) matrices are given by the number of input variables, p. Given this, how can $B_{ii}/W_{ii}$ be a "useful measure of the discrimination power" of a single variable? At least two variables are required to construct the matrices B and W, so the respective traces would represent more than one variable.  Update: Am I right in thinking that $B_{ii}/W_{ii}$ is not a trace over a trace, where the sum is implied, but the matrix element $B_{ii}$ divided by $W_{ii}$? Currently that is the only way I can reconcile the expression with the concept. macOS Sierra restarting download instead of resuming gnome-desktop-item-edit: command not found on Ubuntu 19.10 and later even with the 'gnome-panel' package installed Edited photos have reverted to originals on iphone How to make a VGA monitor display a white screen at all time? Moving SQL Server to different domain Find a file when you know its checksum? So I'm at that step where I am finally ready to Render my first big project. Aaaaaand it's been stuck on the first 4 tiles for the last 2 hours?   I am using a MacBook Pro Processor: 2.5 GHz Intel Core i5 Memory: 4 GB 1600 MHz DDR3 Graphics: intel HD Graphics 4000 1024 MB  (I include these because I have no idea what affects a computers ability to render but I assume it's one of them, most liekly the graphics card).  So anyways here are the pictures, as you can see I played with changing the resolution, the sample size and the max steps to see if I got different results but it just keeps getting stuck at those 1st four tiles. I've rendered a few other small projects successfully but this was my first time changing some values. I assume i've managed to accidentally change the wrong values and thats causing some conflict thats either stopping the render itself or is making it just too much for my computer.  My goal was the render this particular picture at a good enough resolution and clarity that it could then be made into a poster. So i wanted the resolution to be good and the sampling to be high.       Since writing this there has been no change to any of the numbers at the top of the render result (the time left, etc) Which browsers are officially supported, and what else do I need? Which browsers are officially supported by Stack Exchange?  Also, what else is needed in order to use every feature of the site? Placing nodes midway on paths using |- or -| in tikz I make frequent use of |- and -| with computed points in diagrams, like so:  \coordinate (a) at (0,0); \foreach \x in (1,...,10) {     \coordinate (b) at ({whateverFunction(\x)},{whateverOtherFunction(\x)});     \draw (a) |- (b); %Straight line segment     \draw (b) -| (a); %Another straight line segment     \coordinate (a) at (b); }   To get plots like:   I would like to be able to label the midpoint of each line segment, but doing something like node[midway,above] {a} does not act like expected:    I want something like:    Why does midway not work, and what is a good workaround here? Trouble with batch conversion of .png to .pdf using convert convert /home/bill/TempScan/*.png  myfile.pdf   gives error message:  convert-im6.q16: not authorized `myfile.pdf' @ error/constitute.c/WriteImage/1037.   Any help would be appreciated! Is the collapse of the wave function inherently time asymmetric? Centos recently updated to 7.3 and there's been problems with sshd sftp group permissions. I have one user that is chrooted to it's home directory, and that user is in group sftponly. Then i have the /var/www directory, which has 775 permissions and owner is apache and owner group is sftponly. I have a bind link pointing from /home/user/files/web --> /var/www, so the user can access /var/www even though being chrooted to it's home directory. I can view files in /var/www with that user, but impossible to edit or add anything. This worked fine before the big Centos 7.3 update, and now it's stopped working. Any ideas?