What is the benefit of the acceptance-function when you have the vote-function?
What does accepting an answer actually convey (2015 edition)?
Convert a number to a string with specified length in C++ Finding the error in this proof that 1=2 I have a "proof" that has an error in it and my goal is to figure out what this error is. The proof:  If $x = y$, then  $$ \begin{eqnarray} x^2 &amp;=&amp; xy \nonumber \\ x^2 - y^2 &amp;=&amp; xy - y^2 \nonumber \\ (x + y)(x - y) &amp;=&amp; y(x-y) \nonumber \\ x + y &amp;=&amp; y \nonumber \\ 2y &amp;=&amp; y \nonumber \\ 2 &amp;=&amp; 1 \end{eqnarray} $$    My best guess is that the error starts with the line $2y = y$. If we accept that $x + y = y$ is true, then   $$ \begin{eqnarray} x + y &amp;=&amp; y \\ x &amp;=&amp; y - y \\ x &amp;=&amp; y = 0 \end{eqnarray} $$  Did I find the error? If not, am I close? How to get the file name from a full path using JavaScript? Is there a way that I can get the last value (based on the '\' symbol) from a full path?  Example:  C:\Documents and Settings\img\recycled log.jpg  With this case, I just want to get recycled log.jpg from the full path in JavaScript. Why do people sometimes use the past perfect form of a verb when the past would suffice? (e.g. "you had mentioned") I noticed that my American friends tend to use the past perfect form when they use the verb mention in its past form, almost despite of the context of the sentence. I hear them say  "you had mentioned" a lot more often even in situations where the use of simple past would have been perfectly fine. Have you noticed it too and is it one of those unwritten rules, or is there a more formal explanation to it?  It seems like there was more verbs like that, but I am having a hard time remembering it now. If I do, I will edit the post and likely change the title to accommodate other verbs. bash dynamic (variable) variable names I don't want to use the Super for that, I want to use Alt+Space instead. A way for "new users" to ask about their post specifically We currently require that new users have 5+ reputation to participate in meta support discussions (bugs, feedback, governance, etc). This is primarily because the use case for meta is not intrinsically obvious, so we require a modicum of "experience" with the site before jumping into it.   But that blocks new users with legitimate questions about their own posts.  Setting aside any arguments about new-users-are-evil-and-suck-the-life-out-of-our-community, I would like to propose a very specific path for new users to ask about their own question provisionally.  Instead of blocking a new user with this message:     You must have at least 5 reputation on &lt;site> to ask a question on meta.   We can change this to:     You must have at least 5 reputation on &lt;site> to post on meta, but you may ask a question about your own post specifically.      Link to your post: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;      ask about this post   cancel    The system will check whether the linked question provided belongs to the author. . The user can then proceed with the post provided they leave the template (below) intact:     Title &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;      &nbsp;         &lt;!--Do not remove-->   &lt;!--Note: Questions not about your post will be deleted-->      I have a question about the post:       &lt;!-- Your question below: -->   &nbsp;     Not only is this a great and gentle introduction to the proper use of meta, but it stands to help new users just when they need it most (learning to use the community).   Of course this doesn't 100% guarantee that someone won't get it wrong on occasion. But this is an awful lot of in-your-face guidance without simply telling people "read our FAQ" (which they never do). And if a user manages to step over all that guidance and still manages to misuse meta, I have no compunction about summarily removing a question they should never have posted.   But this just-in-time learning is a very effective way of learning a new site in a gentle and thoughtful way. If this is abused more often than not, it is easy to disable. But it's better than assuming clueless newbie every time. Using R, I have fitted a linear model for a single response variable from a mix of continuous and discrete predictors. This is uber-basic, but I'm having trouble grasping how a coefficient for a discrete factor works.   Concept: Obviously, the coefficient of the continuous variable 'x' is applied in the form y = coefx(varx) + intercept but how does that work for a factor z if the factor is non-numeric? y = coefx(varx) + coefz(factorz???) + intercept   Specific: I have fitted a model in R as lm(log(c) ~ log(d) + h + a + f + h:a) where h and f are discrete, non-numeric factors. The coefficients are:  Coefficients:               Estimate  (Intercept)  -0.679695  log(d)        1.791294  h1            0.870735   h2           -0.447570   h3            0.542033    a             0.037362   f1           -0.588362   f2            0.816825  f3            0.534440 h1:a         -0.085658 h2:a         -0.034970  h3:a         -0.040637   How do I use these to create the predictive equation:  log(c) =  1.791294(log(d)) + 0.037362(a) + h??? + f???? + h:a???? + -0.679695   Or am I doing it wrong?   I THINK that that concept is if the subject falls in category h1 and f2, the equation becomes:   log(c) =  1.791294(log(d)) + 0.037362(a) +  0.870735  + 0.816825  + h:a???? + -0.679695   But I'm really not clear on how the h:a interactive term gets parsed. Thanks for going easy on me. Use early 2009 20" iMac as external display for 2015 rMBP With regards to  post about  and the part about retaining reputation earned from deleted posts that have a score of 3 or better and were visible on the site for 60 days, does this also apply to self-deleted posts and will it continue to do so? I culled a few of my own answers over the weekend that were less than stellar, and my reputation dropped 1.8k, but the rep is back today after the changes were announced. I thought it would be useful to clarify that this also applies to self-deleted stuff. As i am new to blender i decided to learn by recreating some animations which have some interesting problems, and gain more knowledge about how tv intros are being done, collecting some parody intros to videos. I came across a simple yet troublesome effect , found no answer by googling or getting through tutorials and testing methods on this case led me to nowhere.     I attempted to recreate the animation above, especially  the extending/appearing/drawn white strip with "randomly" placed gaps , strip which travels just above surface , casting shadow.   Tried dynamic paint,( with alpha channel) image sequence texture but although effect was very similar, whole invisible strip was casting shadow being Z transparent, in places where white color haven't reached yet.  I tried bezier curves as well(vector mode) but it appears that taper cant profile part in squary way, or maybe i am missing something here.  Shape keys seem to hard way to go , while keeping whole animation of stripe "unrolling" at constant speed.  I tried as well putting an array of planes on the path but it is completely not what i attempt to achieved.   I will edit post and add some pictures tomorrow. I've installed Ubuntu 16.04 on my Asus X555LJ.  But I don't know how to install drivers or how to enable function keys to controls screen backlight brightness. Recover accidentally removed files on NTFS partition I accidentally removed some files on a NTFS partition  How can I recover them staying inside Linux without rebooting ? Hartshorne Theorem 8.17 I am in doubt as to whether the subject-verb agreement of the second sentence of this paragraph is correct :  Unfortunately, there is no such thing as the ideal home workshop because most people are limited by the space available and by their budget. However, the information and diagram here acts as a guide to help you formulate a sensible workshop layout and a machinery “wish list”.  I suppose if the compound subject is seen as a single unit, then the sentence can be considered as correct. A little further in the same book, another sentence has a singular verb with a compound subject :  Alternatively commandeer a garage, or build yourself a substantial workshop if outdoor space and permission allows – however, do consider the impact of machinery noise on your neighbours.  Can &quot;outdoor space and permission&quot; be seen as one thing, or would this be considered a mistake ? Use 'import module' or 'from module import'? Reading a 5 Band resistor with Gold as a middle band? Can anyone read the resistor that the arrow is pointing to?  From what I know you can not have a gold band as a number and if I am reading it correctly it has a tolerance of 0 which does not seem right. Automatically change é to \'e – most convenient setup for accented letters? I assume this is really basic question, I'm new to LaTeX, I read a first step tutorial to get ready to write some documents but I couldn't answer my own question at this time and I really don't know where to search.  When I try to write é and compile my document, this character is not shown. I know the sequence is \'e to make it happen in the document but that is really disturbing to write.  Is there someway to write a paragraph "normally" and convert all the special chars into the LaTeX syntax? Or is there a way to allow é, à, ... writing so the compilation includes them into the document? Creating centerline from lines using QGIS How do I create a centerline (vector data) from two parallel polylines (vector data) in QGIS? For example, if the distances between two parallel lines are 14m, then I want to create a centerline at 7m from both lines. Time Dilation When In Orbit Imagine a space ship orbiting the sun at near relativistic speeds, when compared to Earth (say from the reference frame of the sun) there would be x amount of time dilation.  This would mean people on the ship could live for 100's of Earth years.  My question is what would happen if a second ship flew directly away from the Sun and back (ignoring acceleration) at the same speed the orbiting ship is travelling, would the time dilation for the ship that travels in a straight line be the same as that moving in a circle?  The reason I ask is that I was imagining a scenario where intergalactic travel is possible as time dilation means even a journey of light years only ages the crew a fraction of that time, with space stations orbiting certain star systems at similar speeds so that people that don't work on ships can live a similar length of time. I understand that time dilation is all linked to a certain reference frame but working with a reference frame of the sun what would the time dilation be for the different objects taking different paths but at the same speed relative to the sun? If the ship docked back with the space station would they both say the same amount of time had passed?