C++ getting inaccurate results from decimal multiplication
Is floating point math broken?
How to use a proxy on the command line? I can set my proxy username and password along with proxy settings in the proxy ui but these settings do not work on the command line. How can I use apps such as wget &amp; ping on the command line with a proxy?  Example Details:   username: 1234 pass: linux proxy: proxy port: 8080 Plotting discontinuous functions without spurious vertical segments Build a basic Python iterator How would one create an iterative function (or iterator object) in python? Make 15 lines / ticks with Photoshop, each of them rotated of 20° Another Question in Hatcher We know for a metallic conductor   Current $\frac{I}{enA} = v$ where $v$ is drift velocity , $e$ is the charge of an electron, $n$ is no of electrons per unit volume and $A$ is area of cross section.  Ok my questions that I am struggling with:   Does it depend on length of wire? (let's say if the current is the same and area is also the same but one wire is longer and one wire is shorter then is the drift velocity for both wires the same?) Does it depend on the cross sectional area of the wire? (Yes, according to the relation, if the area is greater, drift velocity is lower, correct?)   I have digged university physics still I couldn't get my answer :( . Copy a large data from sql query result In my sql server 2008, after running the query the data return is very huge say in millions. I tried copying but it gives an exception sql memory error. Can you let us know how can i copy the entire data and paste it into excel.  I don't want to export it to txt file as the data is not getting aligned. So i want to manually copy and paste it into excel. Please let me know the solution for thhis I've got to send a bulk email out to a bunch of people in reply to emails they sent me. I've got all the original emails stored in a single outlook folder. I want to extract all of the reply addresses from the emails in that folder so I can send an email to all of them.  The article  shows you how to export the FROM address of these emails, however a large amount of them came from a web service that sends emails 'on behalf of' the person I'm trying to mail to. So I need the reply-to address, and the export wizard doesn't do that.  Does anyone have a tip on how to do this? This is Outlook 2007 on Exchange 2010. Add days to JavaScript Date Proving any number of the form $2^n$ can't be written as the sum of k consecutive numbers. I think i have proved that any number of the form $2^n$ can't be written as the sum of k consecutive positive integers, but i would be grateful if i could have some clarification as to whether this is a correct and valid proof or not.  Let $g=x+(x+1)+(x+2)+(x+3)+...+(x+(k-1))$, hence g is the sum of k consecutive positive integers.  $g=kx+\sum_{d=1}^{k-1}d$  Hence, $g=kx+\frac{k(k-1)}{2}$  Rearranging for x we find, $x=\frac{g}{k}-\frac{(k-1)}{2}$  So, for certain values of $k$, we can be sure that a positive integer value of $x$ can be found, and hence $g$ can be written as the sum of $k$ consecutive positive integers.There are two cases for $k$ to considor:  Case 1)  $k$ is odd. If $x$ exists, it must be the case $k$ | $g$, as for odd values of $k$, $\frac{(k-1)}{2}$ will alwyas be an integer, and hence $x$ will.  Case 2)  $k$ is even. $k$ does not divide $g$, but $\frac{g}{k}$ must be a multiple of $\frac{1}{2}$, and hence equals $\frac{h}{2}$, for some odd $h$.  Letting $j=2^n$, assume that we can write $j$ as the sum of $k$ consecutive positive integers.  If $k$ is odd, then if a $k$ exists, it must divide $j$, by Case 1. But, $j$ has no odd factors as it is a power of two, hence $k$ could not be odd.  If $k$ is even, by Case 2 it mut be the case $k$ does not divide $j$. Also, $\frac{j}{k}=\frac{h}{2}$, for some odd $h$.  But, this implies $2j$ has an odd factor, $h$. but, as $2j$ is a power of $2$, it can't have odd factors. So, $k$ can't be odd.  Hence, $k$ is neither odd or even, and this is a contradiction to our assumption. Hence no $x$ exists, and hence and number of the form $2^n$ can't be written as the sum of $k$ consecutive positive integers.  Any feedback on this proof would be appreciated. Diffinitive rules for using Android's getBaseContext, getApplicationContext or using an Activity's "this" Why do adult insects have 6 legs? Apparently, there is an advantage to having 6 legs in the insect world. What is that advantage, if anything? Why would such an advantage exist for insects, but not for other, larger land animals?  What do those middle legs do that the front and hind legs cannot, if anything? Are they really essential, or do they just generate more muscle power? Short captions for figures in \listoffigures When I use \listoftables and \listoffigures I get in the list long captions that appear next to the tables/figures.  I would like to use short captions for this list which summarize these captions. Is that common to do? If so, what is one way to do it? Is static HTML the fastest? Sass Interpolation of Mixin, Function, and Variable names How can I get my external IP address in a shell script? How can one show that a möbius transformation maps the unit circle to some axis? Suppose I have the möbius transformation f(z) = $\frac{1+z}{1-z}$ and I want to show that it will map the unit circle (excluding the point 1) to the imaginary axis.  Would it help to express my unit circle in polar form?     Here's what I did: f(e$^{i\theta}$) = $\frac{1+e^{i\theta}}{1-e^{i\theta}}$  But I'm not sure where to go from this step. How to set mount point of boot partition to /boot/efi? Shell command to sum integers, one per line? I am looking for a command that will accept (as input) multiple lines of text, each line containing a single integer, and output the sum of these integers.  As a bit of background, I have a log file which includes timing measurements. Through grepping for the relevant lines and a bit of sed reformatting I can list all of the timings in that file.  I would like to work out the total. I can pipe this intermediate output to any command in order to do the final sum.  I have always used expr in the past, but unless it runs in RPN mode I do not think it is going to cope with this (and even then it would be tricky).  How can I get the summation of integers? Can .exe and .msi files (Windows software) be installed in Ubuntu?