limited precision of floats in Python
Is floating point math broken?
Shiny locked Legendaries in ORAS Proof that $\frac{a^2}{b} + \frac{b^2}{c} + \frac{c^2}{a} \geq a+b+c$ I've tried getting everything on the left side and transforming it into something squared so that I can prove it's bigger or equals to 0 but I've been unsuccessful. Why was Sam Wilson chosen for this, but not Bucky? At the end of the Avengers: Endgame movie,      old Steve Rogers passed down his mantle of Captain America   to Sam Wilson.  Why didn't he choose Bucky for this? Bucky seems more fit for the job as he is a super soldier. I didn't know how to solve this problem.  How to prove $$\sum_{n=0}^{\infty}\sin(e\pi n!)$$ converges? I'd like to output hello world over 20 characters.  printf "%-20s :\n\n" 'hello world!!'  # Actual output hello world!!        :  # Wanted output hello world!!========:   However, I don't want to complete with spaces but with "=" instead. How do I do that? Convert quaternion to a different coordinate system OSVR has a right-handed system: x is right, y is up, z is near.  I need to convert orientation data from a sensor in OSVR to a different right-handed system in which x is forward, y is left, and z is up.  I need to calculate the transformation that will convert a quaternion from one system to the other.  I naively tried:  void osvrPoseCallback(const geometry_msgs::PoseStampedConstPtr &amp;msg) { // osvr to ros     geometry_msgs::PoseStamped outputMsg;      outputMsg.header = msg-&gt;header;     outputMsg.pose.orientation.x = msg-&gt;pose.orientation.y;     outputMsg.pose.orientation.y = msg-&gt;pose.orientation.z;     outputMsg.pose.orientation.z = msg-&gt;pose.orientation.x;     outputMsg.pose.orientation.w = msg-&gt;pose.orientation.w;      osvrPosePub.publish(outputMsg);     ros::spinOnce(); }   But that made things really weird. Facing north pitch is pitch, facing west, pitch is yaw, facing south, pitch is negative pitch...  How can I convert my OSVR quaternion to the a corresponding quaternion in the new coordinate system? $\mathbb{Q}[x,y]/\langle x^2+y^2-1 \rangle$ is an integral domain, and its field of fractions is isomorphic to $\mathbb Q(t)$ There are several ideas on hard determinism, but the core seems to be that in an interconnected existence, there can be no "actions" (free will), but only "reactions" (determinism). An action of free will would have to be a separate entity outside of existence, so we'd say it can't occur.   Now fast forward to Joe Schmo the robbing/murdering/rapist.  Joe wasn't born in some infinite bliss utopia, then decided one day to invent the concept of scumbaggery.  He's a product of an incomprehensible number of variables - maybe some are apparent like his dad was a violent alcoholic or whatever, but most likely it's far more complicated than that.    So that's fine - I get all that - but if that's the case, then how can you ethically deal with people like that?  You can't hardly let them do what they please at the expense of society, but then how can you get medieval on them when they're basically riding a wave?  I think that's a big reason why people fight concepts of determinism that mitigate or eradicate the concept of free will - now everyone has a license to do what they want and how can you punish them, it's not their fault!  How would/could/should you consolidate hard determinism with responding to criminal acts? When should I use Inline vs. External Javascript? I would like to know when I should include external scripts or write them inline with the html code, in terms of performance and ease of maintenance.  What is the general practice for this?  Real-world-scenario - I have several html pages that need client-side form validation. For this I use a jQuery plugin that I include on all these pages. But the question is, do I:   write the bits of code that configure this script inline? include all bits in one file that's share among all these html pages? include each bit in a separate external file, one for each html page?   Thanks. How can I simulate a slow machine in a VM? Insert result of a parallellized select query into a table, in Postgresql According to ,      "Even when it is in general possible for parallel query plans to be   generated, the planner will not generate them for a given query if any   of the following are true:       The query writes any data or locks any database rows. If a query contains a data-modifying operation either at the top level or within   a CTE, no parallel plans for that query will be generated. This is a   limitation of the current implementation which could be lifted in a   future release."   Indeed, when I try to insert result of a parallel SELECT query into a table (either by SELECT.. INTO either by WITH..SELECT..INTO, the query is not executed as parallel query.  My question is: Is there any way to trick the Postgresql so that a SELECT query is executed as parallel query and then its result inserted into a table? My understanding of the Stern–Gerlach experiment is that neutral (0 total charge) particles are sent through a non-homogeneous magnetic field, with the expectation that the field will push that particle's path higher or lower on a detector because of the collective spin of that particle. While the detector can detect particles in a two-dimensional surface, the results of the experiment are that particles appear in only two localized areas directly above the path of the particle stream, or directly below the path of the particle stream - spin up or spin down. The conclusions from these measurements are that the particle, when measured, will always have about the same magnitude.  Why does this not follow from classical mechanical theory related to magnetism? If you shot a magnet through a similar apparatus, I would expect the magnet to be rotated to align with the magnetic field in some way which, at high enough field strengths relative to the mass of the magnet, would cause us to measure basically the same magnitude as if the magnet entered the apparatus pre-aligned with the field.  How is my explanation incorrect? I have a valid US passport. I will fly Jet Airways to Delhi airport with 9 hours of layover to change to another Jet Airways Flight to Abu Dhabi. Do I need a transit visa? Why did they make another prequel? Star Trek: Discovery, the first new Star Trek television series in 12 years, debuted last week.  As with a number of recent Star Trek efforts, this is a prequel to the Original Series, occurring roughly one decade prior chronologically.    The Original Series, the Next Generation, Deep Space Nine, and Voyager occur in a chronological sequence that, generally speaking, moves forward (although TNG, DS9, and Voyager overlap to various degrees).  The linear trajectory of Star Trek productions took a sudden shift with the television series Enterprise, which was set just over 100 years before TOS. This was followed by J.J. Abrams' 2009 film Star Trek, which created a new timeline and which followed the characters from TOS, but at a time that is also chronologically one decade before TOS.  Given that the last few interpretations of Star Trek were prequels in one sense or another, I was disappointed that Discovery was yet another prequel.  I'd like to know why the showrunners decided to take this direction.  I haven't been able to find any statements about the rationale.    That being said, I find it interesting that Star Trek (2009) was set in 2255-2258 and Discovery is currently set in 2256, even though they are ostensibly in different timelines &mdash; the former in the reboot timeline and the latter supposedly in the original timeline.  Also, one of the showrunners for Discovery, Alex Kurtzman, was one of the principal members of the creative team behind the Abrams films.  Why did the creative staff behind Discovery decide to make another prequel?  Does it have anything to do with the fact that Star Trek (2009) and Discovery are set in roughly the same years? Madurai to Germany via Dubai - SpiceJet I am an Indian citizen with a German residency permit. I am travelling from Germany to Dubai by Pegasus Airlines and then from Dubai to Madurai by SpiceJet separately, in both directions. I need to transfer myself in Dubai. I have found that transit is possible in Dubai airport via transit desk without UAE transit visa.  But, I have read on SpiceJet's website that Indian citizens travelling from India to Dubai need "Ok to Go" stamp in their passports. It is not clearly explained for transit people like me with Schengen visa.  Q1: Will SpiceJet in Madurai check "Ok to Go" and reject me (Indian citizen with Schengen residence permit) in Madurai airport during my return journey?  If yes; Q2: Is there is any other possibility to solve the above problem?  If "Ok to Go" is ultimately needed for SpiceJet in Madurai; Q3: How can I get it from Germany and how much does it cost? Slope layer with false results in QGIS? After the DEM creation, I wanted to create slope layer.   However, the result has not satisfied me. I don't think the slope map is correct. Have you ever encountered false calculated terrain map?  This is the DEM:    And this is the slope layer. How to pluralize an acronym which ends in 'S' correctly? When using the acronym package, how can you  an acronym which ends on 'S'?  Take the acronym: OS - operating system  It should be pluralized as OS's, but is pluralized as OSs when using \acp. Possible to bake texture to new UV map? Is there a printf converter to print in binary format? I can print with printf as a hex or octal number.  Is there a format tag to print as binary, or arbitrary base? I am running gcc. printf(&quot;%d %x %o\n&quot;, 10, 10, 10); //prints &quot;10 A 12\n&quot; print(&quot;%b\n&quot;, 10); // prints &quot;%b\n&quot; Mouse acceleration seems to be on by default, and I can't find anywhere in the launcher settings or the in game settings to turn it off.  It's very annoying as it makes it feel as if the mouse is lagging. Is there any way to turn it off?