I've discovered an excellent tool in asciiflow.com . The website makes it really easy to create ASCII box diagrams like this They put these things in fruit machines you know! This is ideal for source code banners, which I think should contain helpful documentation - but most programmers think it's a good place for the COPYRIGHT information and nothing else. But wait! we can make it beautifuller... and easier to read... by replacing some of the ASCII characters with ones available in UTF-8: There! Isn't that better? (Although some purists may object to non-ASCII characters in your code base.) SOURCE CODE: #!/usr/bin/python2 # coding: utf-8 # + gets converted in different ways depending on it's 4 neighbours # # . N . { nsew(N,S,E,W) has bit 3 set if N in "+|<>" # W + E { nsew(N,S,E,W) has bit 2 set if S in "+|<>" # . S . { nsew(N,S,E,W) has bit 1 set if W in "+-^v" # { nsew(N,S,E,W) has bit 0 set if E ...
In 1964 John Stewart Bell proposed an experiment to determine whether the results of quantum measurements were truly random, or governed by hidden variables, i.e. state that exists prior to the measurement, but which we don’t have access to. The experiment involved creating a large number of EPR pairs, and firing them at two observers, Alice and Bob, who measure their photon’s polarisation, choosing the \updownarrow direction or the \nearrow\llap\swarrow direction at random. Determining the result of the experiment involves doing a complex statistical calculation to see if something called Bell’s inequality is satisfied or violated. The Bell experiment was first performed by in 1982 by Alain Aspect, and the result, as most commonly interpreted, is that hidden variables can only exist if Quantum Mechanics is non-local, i.e. if it supports faster-than-light causality! Some time after Bell proposed his experiment, Greenberger, Horne, and Zeilinger suggested an alternativ...
Why is it tides are semi-diurnal ? That is, why do they occur every 12 hours when they are caused by the gravitational pull of a moon that we turn to face once a day? The straightforward answer is that water bulges out on both the side nearest and the side furthest from the moon. (We'll ignore the Sun for simplicity, but adding it in doesn't change anything.) The Earth rotates while the bulges remain in place, causing tides 12 hours apart. However, this doesn't explain why there should be two bulges. The reason becomes clear when you change the frame of reference. Instead of thinking about a frame in which both the moon and the Earth rotate, set the origin to be the centre of mass of the two objects, and choose a rotating frame in which the moon is stationary. In this frame there is a "fictional" centrifugal force of \omega^2 r which combines with the gravitational force from the moon, GM_{\text{moon}}/(r-r_{\text{moon}})^2 The two forces match a...
Comments
Post a Comment