Why does  int((1 - 0.1)*100)   result in 90, while  int((1 - 0.05 - 0.05)*100)   result in 89?
Consider the following code:   0.1 + 0.2 == 0.3  -&gt;  false   0.1 + 0.2         -&gt;  0.30000000000000004   Why do these inaccuracies happen?
How accessible are the Stack Exchange sites for users of screen reader software? There are some plans to put more information on  which is a Stack Exchange site. I am concerned it may not be as readable to everyone as it could be on a plain wiki.  Is there any information on how to use Stack Exchange with a screen reader? How to create csv files in controller method from list Discrepency in unanswered questions counts On , I notice that if I use the lower &quot;unanswered&quot; tab (the one in line with &quot;All Questions&quot;), the count is 1,432 questions. If I use the upper &quot;Unanswered&quot; tab (in line with the site title), I get 1,383 &quot;questions with no upvoted or accepted answers&quot;.  This changes the options in the lower tab, one of which is &quot;no answers&quot;.  Clicking here, I now get 1,083 &quot;questions with no answers&quot;. If I run select Id from Posts where PostTypeId=1 and AnswerCount=0;  in the , I get 1158 rows back. Which of these is correct, and why is the first one (1,432) so much higher than the others?  I understand that the numbers may only be updated periodically, but that difference in particular seems much too great for this to be the reason. To clarify:  1,432 is the number of &quot;unanswered questions&quot;. 1,383 is the number of &quot;questions with no upvoted or accepted answers&quot;. 1,083 is the number of &quot;questions with no answer&quot; 1,158 is the number of questions with no answer in the data explorer.  This is not live data, but that means it should be smaller, not larger, than 1,083.  I promise we did not offset this with answers to the tune of 80 questions this week.  The first three are obviously live because they fluctuate. The difference between the first two is ~50, implying they actually don't refer to the same thing, and the difference between the last two seems too great (and in the wrong direction) to be explained by the a live vs. data explorer source. When Frodo put on the One Ring, both the Nazgul and Sauron himself found Frodo. However when Bilbo had the ring and possibly used it many times, Sauron sought Gollum to get a hint on where to look for the ring and send the Nazgul after it.   Sauron sought Gollum before Bilbo wore the ring at his birthday party, slightly after that time, he was very effective at locating Frodo when Frodo put on the ring. So I guess it's not a matter of Sauron gaining any extra powers with time.  Also Bilbo seemed to use the ring without it bothering him at any point, unlike Frodo who seemed to be very troubled when using the ring. How is that possible? Recently I have opted for broadband connection which is coming directly cat5 cable with RJ45 port to my laptop. They have provided me with IP address, default Gateway, subnet mask, preferred DNS and alternate DNS server information. Also the username and password.  The Modem model is Beetel 450TC1 which is actually an ADSL+2 Router. The modem has 4 lan port and one RJ11 port (for internet).   Can I use this modem as a wireless hotspot without connecting the RJ45 cable directly to my laptop?  If yes, can anybody help me with that? Mach-O 64-bit format does not support 32-bit absolute addresses. NASM Accessing Array pain of browser back button How to make traces on an universal PCB? I hope this question won't be closed as too subjective. I'd like to know best practice - how to make traces on universal PCB's with individual holes without traces (like the following image). My idea is to bend the ends of discrete components and use them to make traces to other components. Is this approach acceptable, or nasty? Although this is called "prototype" PCB, I'd like to use it for my simple final circuits (low frequency, low current applications), because I hope it will save time. What should a rational person accept as a miracle? "Examine whether the given progressions converge (eventually improperly) and determine their limits where applicable.  (a) $$(a_n)_{n\in\mathbb{N}}:=\frac{n^n}{n!}$$  [...]"  I am having problems getting this homework done as I have no clue about convergency at all. Through Mathematica I know that $\lim\limits_{n\to\infty}a_n=+\infty$ however I don't know how to proove it! During my research I found out that for sufficient big $n$ the inequality $x^n\leq n!\leq n^n$ for $x\in\mathbb{R}$ and $n\in\mathbb{N}$ is true. However this doesn't help me at all. Having a look at our lecture notes I developed the following statement: every $x^n$ with $|x| \geq 1$ diverges as $x^n$ is unbounded and therefore has the improper limit $\lim\limits_{n\to\infty}x^n=+\infty$. Furthermore it seems obvious to me that I need to express the terms in a simpler way, like fractions converging to 0 etc, but I don't know how. Neither some work with the $\varepsilon$-definition of limits in combination with the triangle inequality helped me out. Any suggestions or hints?  Information: This is "Analysis for computer scientist" and therefore we haven't "officially" learned any fancy tricks like L'Hôpital's rule etc. just basic properties of $\mathbb{R}$ and some inequalities as this is an introductory lecture. This integral is very closely related to the sophmores dream that states  $$ \int_0^1 x^{-x}\mathrm{d}x = \sum_{n=1}^\infty n^{-n} = 1.27\ldots $$  For example here   Now I want to bound the integral, and showing that is less that 2.  For the interval $[0,1]$ a good bound is rewriting it to $\exp(x\log x)$ and using the expansion   $$ 1 - x \log(x) + \frac12 (-x \log(x))^2$$  but how does one handle $[1,\infty)$ ? In this answer here     gives bounds to the integral, but they are not tight enough.. So to taste my question again, how does one prove that   $$ \int_0^\infty \frac{\mathrm{d}x}{x^x} \leq 2 $$ Is there an "exists" function for jQuery? How can I check the existence of an element in jQuery?  The current code that I have is this:  if ($(selector).length &gt; 0) {     // Do something }   Is there a more elegant way to approach this? Perhaps a plugin or a function? Including sections of source code as a listing, while being robust to source code edits How to find all files with the same extension within a directory I want to search for all .conf files in /etc/. I tried grep -r *.conf /etc, but the result isn't right. What am I doing wrong? How are the best director award winners chosen? I do not understand how the best director awards are determined each year. It seems impossible to assess the method of a movie director unless you are part of the crew.  So, how do the nominators/judges assess the directors' performance each year? How is it possible that Dumbledore worked on the Philosopher's stone with Flamel? I apologize in advance if this is a common question, I searched for "flamel" here first and couldn't find the answer.  If Nicolas Flamel is several hundreds of years old, how did Dumbledore work on the Philosopher's Stone with him? Did he use it a bit himself?  To clarify, Flamel would've died without the PS, at a reasonable age -- so it can be assumed he made it about ~500 years ago. But I seem to recall the book saying that Dumbledore helped him make it. So either Dumbledore used the stone as well (unlikely it seems) or Flamel had already artificially extended his life, or Dumbledore is somehow hundreds of years old.  Am I remembering this incorrectly?  Thank you! How can I stop Nautilus from dereferencing symlinks? I use symbolic links to tidy my home folder. This works well in the terminal, since the links create the illusion of normal folders:    In Nautilus, however, the links behave more like , immediately teleporting me to their target:    This is particularly troubling when¹ I later want to navigate "up" to the parent folder, as it strands me somewhere outside of the tree I've carefully tidied.  How can I make Nautilus show symbolic links as normal folders, like the terminal does?  Details   Nautilus did not dereference symlinks in Ubuntu 12.10:   Maybe this new behavior is just a bug? I'm not sure how to tell. Here's what I know:   It's not on the . I've skimmed the  and didn't see anything related. The Nautilus mailing list archive . I received no response from about 120 idlers when posing the question on the GNOME IRC channel. A change was made in Nautilus 3.6 to .  ¹ This is an example. A workaround for this particular scenario does not constitute an answer to my question. Since people seem to be interested in discussing it, though:   Using the Back button is not a suitable workaround; it does not always take me to the parent folder. You can navigate up by pressing Alt+Up. The desired behavior in this example is for "up" to navigate to the parent folder of the symbolic link. The current behavior is to navigate to the parent folder of the target of the symbolic link. FrameLabel and OverTilde How can I generate irregular grid containing minimum n points? Given a large (~ 1 million) sample of unevenly distributed points - is it possible to generate irregular grid (in size, but could also be irregular in shape if that is possible?) that will contain specified minimum amount of n points?   It is of less importance for me if genereted 'cells' of such grid contain exactly n number of points or at least n points.  I'm aware of solutions like  in ArcGIS or  in QGIS/mmgis however they will all create regular grids which will result in an output with empty cells (smaller problem - I could simply discard them) or cells with count of points less than n (bigger problem since I'd need a solution to aggregate those cells, probably using some tools from ?).  I've been googling around to no avail and am open to both commercial (ArcGIS &amp; extensions) or free (Python, PostGIS, R) solutions. Should student or supervisor be corresponding author for publications based on student research? Papers published from an academic project (MSc or PhD) usually have two authors; the first author is the student who mainly conducted the research, and the second author is the professor who supervised the projects.  The corresponding author is the one who take the responsibility of a paper, and thus, some believe that students are not yet prepared to take this responsibility.  Ideally, who should be corresponding author for papers published by MSc or PhD projects?  I understand that it mainly depends on personal agreements and preferences, but I want to know which case is more reasonable from academic logic?