In the unanswered section of many sites there are a lot of questions that have 0 answers but when you go and look at them someone has suggested an answer in the comments, this creates unnecessary questions to be put in the unanswered section, thus clogging it up. To fix this would it be possible to put a button next to each comment(A little check mark or something along those lines)that would indicate if that comment solved the askers problem. If this is the case one of two things could happen.  1:     The correctly chosen comment could be converted into an answer and then either be automatically chosen as the right answer or just put up as a answer.  2:     The question still technically will have 0 answers but it will be moved out of the unanswered category, allowing for actual unanswered questions to be in there.
Sometimes, a question is perfectly solved by suggestion or actual resolution given in "comments" under it. In such case, how to mark that answer (comment) as "Accepted Answer"? Due to this, the question remains unanswered even if solution is provided in comment.
Would someone give a thorough explanation of 1.14 Minecraft's /data modify? Weird evaluation order in chained functions Finding value of $S-T$ in $2$ binomial sum. If $\displaystyle S=\sum^{n}_{k=0}(-1)^k\frac{1}{k+m+1}\binom{n}{k}$ and f $\displaystyle T=\sum^{m}_{k=0}(-1)^k\frac{1}{k+n+1}\binom{m}{k}$.Then $S-T$ is   Try:$$S=\sum^{n}_{k=0}(-1)^k\int^{1}_{0}x^{k+n}\binom{n}{k}dx=\int^{1}_{0}x^n\sum^{n}_{k=0}(-x)^k\binom{n}{k}dx$$  Could some help me, thanks How to write the Fibonacci Sequence? I had originally coded the program wrongly. Instead of returning the Fibonacci numbers between a range (ie. startNumber 1, endNumber 20 should = only those numbers between 1 &amp; 20), I have written for the program to display all Fibonacci numbers between a range (ie. startNumber 1, endNumber 20 displays = First 20 Fibonacci numbers). I thought I had a sure-fire code. I also do not see why this is happening.  startNumber = int(raw_input("Enter the start number here ")) endNumber = int(raw_input("Enter the end number here "))  def fib(n):     if n &lt; 2:         return n     return fib(n-2) + fib(n-1)  print map(fib, range(startNumber, endNumber))   Someone pointed out in my Part II (which was closed for being a duplicate - ) that I need to pass the startNumber and endNumber through a generator using a while loop. Can someone please point me in the direction on how to do this? Any help is welcome.    I'm a learning programmer and I've run into a bit of a jumble. I am asked to write a program that will compute and display Fibonacci's Sequence by a user inputted start number and end number (ie. startNumber = 20 endNumber = 100 and it will display only the numbers between that range). The trick is to use it inclusively (which I do not know how to do in Python? - I'm assuming this means to use an inclusive range?).  What I have so far is no actual coding but rather:   Write Fib sequence formula to infinite Display startNumber to endNumber only from Fib sequence.   I have no idea where to start and I am asking for ideas or insight into how to write this. I also have tried to write the Fib sequence forumla but I get lost on that as well. How to align a  to the middle (horizontally/width) of the page How do I restrict my kids' computing time? Access to our computer (not only to the internet) needs to be restricted for the accounts of my kids (7, 8) until they are old enough to manage this by themselves. Until then we need to be able to define the following:   the hours of the day when computing is o.k. (e.g. 5 - 9 pm) the days of the week when computing is not o.k. (e.g. mondays to fridays) the amount of time allowed per day (e.g. 2 hours)   In 11.10 all of the following that used to do the job don't work any more:   : for > 11.10 no more available through the ppa. : command line alternative, but from 11.10 removed from the repositories. : Looks great but repeatedly crashes to force restarting X-server. So we can't use or recommed this program at the moment.   Are there any other alternatives? Asynchronous shell exec in PHP mbstring is missing for phpmyadmin in ubuntu 16.04 When I installed phpmyadmin in Ubuntu 16.04 LTS, it gives me an error mentioned below.     The mbstring extension is missing. Please check your PHP configuration   then I tried to install php-mbstring, it says mbstring is up to date, Can anyone help me to solve this? $(\mathbb R, \oplus)$ is a group. Define a multiplication with which we get a field. Where $a \oplus b = a + b +1$ I have this problem from the book Real Analysis of Miklos Laczkovich ():     Let $\oplus : \mathbb R \times \mathbb R\to \mathbb R $, where $(a,b) \mapsto a + b +1$. Then,  $(\mathbb R, \oplus)$ is a group. Define a multiplication with which we get a field.   But in the exercise there are no hints. Could anyone help me? When I boot Ubuntu 10.04.3 from a live CD, it asks me to enter a username and password. I have not booted before, and I haven't created an account. Is there a quicker way to turn on WiFi Hotspot? is there a way to automate (or at least reduce the number of steps) to turn on or turn off the WiFi hotspot on my Galaxy 3.  I have to    unlock  press the menu button  press settings press More Settings Tethering and portable hotspot Slide portable hotspot on. Can principal component analysis be applied to datasets containing a mix of continuous and categorical variables? I have a dataset that has both continuous and categorical data. I am analyzing by using PCA and am wondering if it is fine to include the categorical variables as a part of the analysis. My understanding is that PCA can only be applied to continuous variables. Is that correct? If it cannot be used for categorical data, what alternatives exist for their analysis? Choosing between LM and GLM for a log-transformed response variable I'm trying to understand the philosophy behind using a Generalized Linear Model (GLM) vs a Linear Model (LM). I've created an example data set below where:  $$\log(y) = x + \varepsilon $$   The example does not have the error $\varepsilon$ as a function of the magnitude of $y$, so I would assume that a linear model of the log-transformed y would be the best. In the example below, this is indeed the case (I think) - since the AIC of the LM on the log-transformed data is lowest. The AIC of the Gamma distribution GLM with a log-link function has a lower sum of squares (SS), but the additional degrees of freedom result in a slightly higher AIC. I was surprised that the Gaussian distribution AIC is so much higher (even though the SS is the lowest of the models).   I am hoping to get some advice on when one should approach GLM models - i.e. is there something I should look for in my LM model fit residuals to tell me that another distribution is more appropriate? Also, how should one proceed in selecting an appropriate distribution family.   Many thanks in advance for your help.  [EDIT]: I have now adjusted the summary statistics so that the SS of the log-transformed linear model is comparable to the GLM models with the log-link function. A graph of the statistics is now shown.  Example  set.seed(1111) n &lt;- 1000 y &lt;- rnorm(n, mean=0, sd=1) y &lt;- exp(y) hist(y, n=20) hist(log(y), n=20)  x &lt;- log(y) - rnorm(n, mean=0, sd=1) hist(x, n=20)  df  &lt;- data.frame(y=y, x=x) df2 &lt;- data.frame(x=seq(from=min(df$x), to=max(df$x),,100))   #models mod.name &lt;- "LM" assign(mod.name, lm(y ~ x, df)) summary(get(mod.name)) plot(y ~ x, df) lines(predict(get(mod.name), newdata=df2) ~ df2$x, col=2)  mod.name &lt;- "LOG.LM" assign(mod.name, lm(log(y) ~ x, df)) summary(get(mod.name)) plot(y ~ x, df) lines(exp(predict(get(mod.name), newdata=df2)) ~ df2$x, col=2)  mod.name &lt;- "LOG.GAUSS.GLM" assign(mod.name, glm(y ~ x, df, family=gaussian(link="log"))) summary(get(mod.name)) plot(y ~ x, df) lines(predict(get(mod.name), newdata=df2, type="response") ~ df2$x, col=2)  mod.name &lt;- "LOG.GAMMA.GLM" assign(mod.name, glm(y ~ x, df, family=Gamma(link="log"))) summary(get(mod.name)) plot(y ~ x, df) lines(predict(get(mod.name), newdata=df2, type="response") ~ df2$x, col=2)  #Results model.names &lt;- list("LM", "LOG.LM", "LOG.GAUSS.GLM", "LOG.GAMMA.GLM")  plot(y ~ x, df, log="y", pch=".", cex=3, col=8) lines(predict(LM, newdata=df2) ~ df2$x, col=1, lwd=2) lines(exp(predict(LOG.LM, newdata=df2)) ~ df2$x, col=2, lwd=2) lines(predict(LOG.GAUSS.GLM, newdata=df2, type="response") ~ df2$x, col=3, lwd=2) lines(predict(LOG.GAMMA.GLM, newdata=df2, type="response") ~ df2$x, col=4, lwd=2) legend("topleft", legend=model.names, col=1:4, lwd=2, bty="n")   res.AIC &lt;- as.matrix(     data.frame(         LM=AIC(LM),         LOG.LM=AIC(LOG.LM),         LOG.GAUSS.GLM=AIC(LOG.GAUSS.GLM),         LOG.GAMMA.GLM=AIC(LOG.GAMMA.GLM)     ) )  res.SS &lt;- as.matrix(     data.frame(         LM=sum((predict(LM)-y)^2),         LOG.LM=sum((exp(predict(LOG.LM))-y)^2),         LOG.GAUSS.GLM=sum((predict(LOG.GAUSS.GLM, type="response")-y)^2),         LOG.GAMMA.GLM=sum((predict(LOG.GAMMA.GLM, type="response")-y)^2)     ) )  res.RMS &lt;- as.matrix(     data.frame(         LM=sqrt(mean((predict(LM)-y)^2)),         LOG.LM=sqrt(mean((exp(predict(LOG.LM))-y)^2)),         LOG.GAUSS.GLM=sqrt(mean((predict(LOG.GAUSS.GLM, type="response")-y)^2)),         LOG.GAMMA.GLM=sqrt(mean((predict(LOG.GAMMA.GLM, type="response")-y)^2))     ) )  png("stats.png", height=7, width=10, units="in", res=300) #x11(height=7, width=10) par(mar=c(10,5,2,1), mfcol=c(1,3), cex=1, ps=12) barplot(res.AIC, main="AIC", las=2) barplot(res.SS, main="SS", las=2) barplot(res.RMS, main="RMS", las=2) dev.off() Singleton: How should it be used Given that every class gets a minimum of 5 ability score improvements each at levels 4, 8, 12, 16, and 19 (Rogue and Fighter get more at other levels), do these ability score improvements occur by character level or by class level?  For example, is it possible to create a character who never once gains a single ability score improvement by reaching level 3 in a class and then switching to a different class repeatedly?  I had originally thought the 5 that every class gets would occur by character level, so for example a sorcerer1/bard3 would earn an ability score improvement for reaching character level 4. But there are others who have expressed the opinion that this is wrong. How to concatenate items in a list to a single string? When should I use "a" vs "an"? In the following example, is it appropriate to use a or an as the indefinite article, and why?     He ate __ green apple.   I know that in the case of just "apple", it would be "an apple," but I've heard conflicting answers for "green apple," where the noun is separated from the article by an adjective.  Also, which is more appropriate in this case:     He ate  __ enormous Pop-Tart. In Uzbekistan I was stopped, searched and questioned six times in one day.  At the border with Tajikistan, one official tried hiding my paperwork to elicit something from me.  In Kyrgyzstan, I was physically harassed and detained by the police, and about US$30 taken while they searched everything on me and a Dutch backpacker I was going to get food with.  I'm not particularly dodgy looking - it's happening to a lot of backpackers I meet.  Tourists are apparently a prime target for corrupt officials.  Any suggestions or tactics for avoiding these occurrences?  Aside from carrying only photocopies of your passport so that they can't hold your passport ransom, I've not heard many successful tips... Add a linebreak in an HTML text area How can i add a line break to the text area in a html page? i use VB.net for server side coding. Why is the voltage across a capacitor and the current across an inductor continuous?