Joe Armstrong has died

Tweet with a locationYou can add location information to your Tweets, such as your city or precise location, from the web and via third-party applications. You always have the option to delete your Tweet location history.

Link  |  View on HN

Canvas-sketch – A framework for making generative artwork

canvas-sketch is a loose collection of tools, modules and resources for creating generative art in JavaScript and the browser. const canvasSketch = require ( ' canvas-sketch ' ); // Sketch parameters const settings = { dimensions : ' a4 ' , pixelsPerInch : 300 , units : ' in ' }; // Artwork function const sketch = () => { return ({ context, width, height }) => { // Margin in inches const margin = 1 / 4 ; // Off-white background context . fillRect ( 0 , 0 , width, height); // Gradient foreground const fill = context . createLinearGradient ( 0 , 0 , width, height); fill . Resulting image looks something like this:Note: The above PNG file has been scaled/optimized for web.

Link  |  View on HN

Luxury Developers Use a Loophole to Build Soaring Towers for Ultrarich in NY

Some of the tallest residential buildings in the world soar above Central Park, including 432 Park Avenue, which rises 1,400 feet and features an array of penthouses and apartments for the ultrarich. But 432 Park also has an increasingly common feature in these new towers: swaths of unoccupied space. About a quarter of its 88 floors will have no homes because they are filled with structural and mechanical equipment. The building and nearby towers are able to push high into the sky because of a loophole in the city’s labyrinthine zoning laws. Many line the blocks around Central Park, some of the most expensive and coveted real estate in the city, and have become second homes for Chinese billionaires, European tycoons and out-of-state hedge fund investors.

Link  |  View on HN

Fh: File history with ed(1), diff(1), Awk(1), sed(1) and sh(1)

fh: file historyfh records changes to a file on a per-file basis, similar to RCS and SCCS. fh uses a chain of ed(1) scripts to construct any version of a file. The -f option produces a similar script, not useful with ed, in the opposite order. In connection with -e, the following shell program may help maintain multiple versions of a file. Only an ancestral file ($1) and a chain of version-to-version ed scripts ($2,$3,...) made by diff need be on hand.

Link  |  View on HN

Vendors must start adding physical on/off switches to devices that can spy on us

Unable to generate summary

Link  |  View on HN

The new features of Fortran 2018 (2018)

Link  |  View on HN

Surprisingly little evidence for usual wisdom about teeth

Researchers found eight randomized controlled trials that were on point, but they were all judged as having a high risk of bias. Previous, nonrandomized controlled trials in children didn’t really show a difference either. What about preventive dental visits themselves? They found that preventive visits were associated with fewer visits for restorative dental care in the future, implying that there was an improvement in oral health. Further work found that it may have been the use of sealants, and not preventive visits in general, that had this protective effect.

Link  |  View on HN

Python overtakes JavaScript as most questioned language on StackOverflow

Stack Overflow has been swooping to the rescue of all types of developers since its founding in 2008. But what are the kinds of problems developers are forced to turn to Stack Overflow for? In terms of raw volume of questions asked, JavaScript has been the most frequently asked about since Stack Overflow was founded. To do this, we:extracted 1,000 of the most upvoted Stack Overflow questions for each of the 11 programming languages listed above. Though perhaps the frequency of “objective-c” mentions (middle-right) in Stack Overflow questions tagged #swift represent the thousands of iOS developers looking to Stack Overflow to update their knowledge.

Link  |  View on HN

OpenCV-Python Cheat Sheet: From Importing Images to Face Detection

Importing an Image & Viewing itimport cv2image = cv2.imread("./Path/To/Image.extension")cv2.imshow("Image", image)cv2.waitKey(0)cv2.destroyAllWindows()Warning 1: On reading images this way via openCV, it isn’t in RGB colorspace—it’s in BGR. Sometime this won’t be an issue with you, you’ll only have trouble if you want to add something colored to your image. Change the colorspace to RGB:rgb_image = cv2.cvtColor(image, cv.COLOR_BGR2RGB)and go on with your code with rgb_image instead of image . Warning 2: To close the window that’s displaying the image, press any button. If you use the close button it may cause freezes (happens to me when I’m on a Jupyter notebook).

Link  |  View on HN

Show HN: Mockit – Open-source app to create and configure HTTP mocked endpoints

Easily Manage Your Mocked APIEasy to use interface to add, edit and delete HTTP end points on the fly. You can manage responses, status codes, http methods and even add delays to each end point you add. The server is always listening for any changes you make. So any change you make in the UI will instantly be shown on your server.

Link  |  View on HN