Hi this is surely simple but i cant find the answer to why this doesn't quit the loop after 0.9      #include &lt;stdio.h&gt;      int main()     {             float x;             for(x=.1;x!=1.0;x+=.1)             printf("%f\n", x);             return 0;     }
Consider the following code:   0.1 + 0.2 == 0.3  -&gt;  false   0.1 + 0.2         -&gt;  0.30000000000000004   Why do these inaccuracies happen?
I've got a recipe that calls for some buttermilk, but none on-hand. Is there some way I could use some common ingredient(s) as a substitute? I am trying to under stand how to build a barrel shifter using multiplexers. I understand how the barrel shifter works but I don't get how you decide the number of multiplexers to use, and how the shifting is done with the multiplexer basically.  So far wikipedia doen't help much. And the best I have so far is   But it does not really answer my question. Buying a "blender" that can purée a potato My wife had a "smoothie" made by a co-worker that is based on green apples and raw red potatos.  Our smoothie maker can't do that and leaves unchopped bits and a gritty feel.  Her friend uses a Vitamix blender, and looking up the model number not only induced sticker shock, but reviews raised concerns with the item leaving bits of teflon in the food etc. And the price for just a replacement pitcher is so high that it appears overpriced.  What is it about a blender that allows it to make a good purée rather than just mixing things easily?  I think it might be the design of the blade and base, not just raw power: even a modest powered blender doesn't stall or run out of power; but it doesn't chop any finer no matter how long it is left running.  It might also involve speed vs torque usage of power.  Does anybody know what makes a machine capable of making a good purée as opposed to just blending, especially when both kinds are sold as “blenders”.  Should I be looking for ones with different options for blades like a food processor, to make it well suited to different purposes? E.g. I have seen blades just for milkshakes.  In general, how do you shop for one when the only information a seems to be total power and the number of presets? Why does the zoom sometimes stop at a point? Is there a way to have a 64 bit enum in C++?  Whilst refactoring some code I came across bunch of #defines which would be better as an enum, but being greater than 32 bit causes the compiler to error.  For some reason I thought the following might work:  enum MY_ENUM : unsigned __int64   {       LARGE_VALUE = 0x1000000000000000,   }; How to match all words of one column against words in another column? Is it feasible to transform each variable differently while doing multiple regression How do I make an Bootable Ubuntu USB containing the the latest version of Ubuntu?  For completeness, how would I be able to do this on Ubuntu, Windows, OS X or another Linux distro? How do you handle "that that"? The double "that" problem Have you ever had a case where you felt compelled to include strange things like a double that in a sentence? If so, then what did you do to resolve this?  For me, I never knew whether it was acceptable grammar. However, what I did learn was that it was a logic distractor, could lead to confusion, and therefore should be reworded to avoid this. $\operatorname{rank}(T^3) + \operatorname{rank}(T) \geq 2\operatorname{rank}(T^2)$ for finite-dimensional $V$ Consider a finite-dimensional vector space $V$ over the field $\mathbb{F}$ with a linear operator $T.$ Prove that we have $\operatorname{rank}(T^3) + \operatorname{rank}(T) \geq 2 \operatorname{rank}(T^2).$   First, let us assume that $\dim_{\mathbb{F}}(V) = n.$ Our immediate observations include that $T^3(V) \subseteq T^2(V) \subseteq T(V)$ so that $\operatorname{rank}(T^3) \leq \operatorname{rank}(T^2) \leq \operatorname{rank}(T)$ and $\operatorname{rank}(T^3) \geq \operatorname{rank}(T) + \operatorname{rank}(T^2) - n$ by Sylvester's Rank Inequality. Can we do some manipulations with what we have to get the desired inequality, or do we require something else? How to write in bibliography (package natbib) letter "a" with two dots above? Specially, I mean the word Birkhäuser.  Is there a general rule or way how to write such umlauts or other accented letters in bibliographies? I am looking at some code and it has this statement:    ~ConnectionManager() {     Dispose(false); }   The class implements the IDisposable interface, but I do not know if that is part of that the tilde(~) is used for. Add optional box for spam flags letting you say why you think it's spam , where a user had taken the time to look at the link on a post and realized that the post wasn't just off-topic, it was actually half-decently-disguised spam. So he flagged it as spam, and an overworked mod declined it, giving the questioner the benefit of the doubt. And we probably want mods to be giving the questioner the benefit of the doubt.  We also want to get rid of spam ASAP, and make the lives of mods easier. I'd like to suggest a feature the mod in question mused might be useful: An optional textbox where you can add a note saying why you think it's spam, so the mod can see it easily. In this case, the helpful user who went the extra mile could have written "Site linked doesn't relate at all to the question, instead solicits BitCoins" or similar.  One can leave a comment on the question, but:   People sometimes leave...unhelpful...comments on spam questions, and we don't want mods to have to take the time to read through them hoping for something useful It allows the user flagging the spam to do so and say why without calling attention to themselves publicly     Update: We may well want this for all flags, but in particular I had reason to want it for an NAA flag, so I've posted . Original file claudio antonio claudio michele  I  want to change only the first occurrence of &quot;claudio&quot; with &quot;claudia&quot; so that I would get the following: claudia antonio claudio michele  I have tried the following: sed -e '1,/claudio/s/claudio/claudia/' nomi  The above command performs global substitution (it replaces all occurrences of 'claudio') . Why? I run windows 7. I run a Minecraft server, but I can only host around 9 players before lag appears.   I heard that Ubuntu can run a server with much better performance than Windows 7. I kind of like the whole idea of Ubuntu, but I don't want to change my OS to Unix or anything else.  Basically, my question is, does running a server (specifically and Minecraft server) run easier and faster on a Ubuntu server? On top of that, how would one set that up? Ubuntu 12.04 boots to TTY1 Alrighty, I have perused the threads already in existence and am finding none of them seem to have the exact combination of variables I've got going.  I'm working on a computer using Ubuntu 12.04. Currently, it boots straight into tty1  Ubuntu 12.04.4 LTS [computer name] tty1  [computer name] login: Password:   Login leads to:  Last login: Wed Mar 19 13:47:11MDT 2014 on tty1  Welcome to Ubuntu 12.04.4 LTS (GNU/Linux 3.2.0-32generic-pae i686   The owner of the computer stated that this issue happened after a recent update, if that gives anyone a hint as to the specific location of the graphics failure.   I'm capable of booting into the GUI utilizing startx, but am frankly at a loss of where to go from here. Years of Windows has molded me into a GUI heavy kinda person, so, if possible, work off the assumption that I've no idea what you're talking about and break it down to the simplest of steps.  Thanks! OpenLayers 3 WMS GetFeatureInfo popup I have a map a at the link below:    I added one of my GeoServer WMS layers to the map, now I try to add the attributes window pop up on click. I found to examples on the OpenLayers 3 homepage, but I cannot put together a working code...      Is there any chance to have a working sample somewhere? Export Track Markers to csv I am trying to export markers from the Blender motion tracker and found the following script that will do exactly that:  for clip in D.movieclips:     for track in clip.tracking.tracks:         fn = 'data/tr_{0}_{1}.csv'.format(clip.name.split('.')[0], track.name)         with open(fn, 'w') as f:             frameno = 0             while True:                 markerAtFrame = track.markers.find_frame(frameno)                 if not markerAtFrame:                     break                 frameno += 1                 coords = markerAtFrame.co.xy                 f.write('{0} {1}\n'.format(coords[0], coords[1]))   It works but I have two questions:   How can I save the data on my Desktop rather than in folder in MacOS blender content where it saved right now. The following won't work:   fn = '/User/me/Desktop/data/tr_{0}_{1}.csv'.format(clip.name.split('.')[0], track.name) The resulting values I get do not represent the more user friendly marker values in den Blender GUI. Instead of x/y coordinates in screen coordinates, I get a value between 0/1. How can I convert them to those screen coordinates ?    Thanks for your help Are aerosol cans allowed and safe, in checked luggage? How to use downloaded fonts with pdfLaTeX on Ubuntu I want to use the  font in my pdfLatex document.  What steps should I do for using a downloaded font   Should I download the TTF or the OpenType version? Where should I store the font? Should any font processing be done? How can pdfLatex find this font?   I am using TexLive 2011 installed in a custom location (/somepath/texlive/2011) on Ubuntu