Profile cover photo
Profile photo
Michael Rothwell
Neuronal weather pattern
Neuronal weather pattern
About
Michael's posts

Post has attachment
Photo

Post has attachment

Post has attachment

Post has attachment

Post has attachment

Post has attachment

Post has attachment
Use the web? Even better -- develop for the web? Read this. Prepare to laugh, and maybe cry.

https://www.usenix.org/system/files/1403_02-08_mickens.pdf

Post has shared content
I've been writing some JS code that does a lot of I/O.  I keep writing things in terms of simple callbacks (just because that's how all the underlying APIs work) and then getting horribly confused.  I then refactor the code to wrap everything in promises and it all becomes so much clearer -- especially the error handling.

It really makes me wonder how the callback style ever took off in the first place.  Luckily, JS promises are finally getting standardized (see link).

+Mark Miller is 15 years ahead of everyone else, as usual.

Post has shared content
Bezier Curve Generation

This shows graphically how a Bezier curve connecting two points is generated.

P1 is called the control point, and its location determines the shape of the generated curve.  Beziers are used extensively in computer graphics and in font generation.

Each of the three dots slides along a straight line. At any instant in time, each dot has moved some fraction of the total length of its line, and this fraction is same for each dot.

This is a quadratic Bezier – it has one control point, and one “bend” in the curve. Higher order Beziers have more control points, and more bends. 
Animated Photo

Post has attachment
+Google Drive, I'm not sure how disconnecting my account will fix a null-object reference in the python code.
Photo
Wait while more posts are being loaded