HNHacker News
TopNewBestAskShowJobs

McKayDavis

867 karma · joined June 23, 2014

Happy Hacker
submissionscomments
McKayDavis··on Pillow-SIMD – Fast, production-ready image resize for x86
Even in 1996 there was discussion [1] about the controversy around lenna.jpg and its decline due to its origins and possible copyright issues.

[1] http://www.cs.cmu.edu/~chuck/lennapg/editor.html

McKayDavis··on FlexBox Cheatsheet
Since others are posting their favorite FlexBox resource, I'll post my goto link -- The FlexBox playground by Gabi on Codepen:

https://codepen.io/enxaneta/full/adLPwv/

It was the #1 most hearted pen of 2016:

https://codepen.io/2016/popular/pens/10/

McKayDavis··on Optical illusions that flummox computers
Clever 2 level pun with "Hi" hidden in the Magic Eye <-> Magic-AI.
McKayDavis··on Beyond Floating Point: Next-Generation Computer Arithmetic [pdf]
I didn't dive too deep into the bit-wise implementation details, but overall this looks very promising.

The first big issue I would have with Posits is the lack of a Not-a-Number (NaN) representation (as indicated on slide 16).

NaN values have the property of making any calculation they are used in also result in in a NaN.

I've found this property of NaNs to be invaluable in many contexts, especially as a no-data value regular data.

For example, this is useful when using bllinear filtering of floating point textures on a GPU -- any time a NaN texel is encountered, the entire fragment is discarded. In this manner, NaN values can be used to mask out a region without introducing a separate texture lookup.

I also love the simple, albeit obtuse, check for NaN:

  // Don't remove this if! It's checking if value is a NaN
  if (value != value) {
     // value is NaN...
  }
McKayDavis··on Supersonic plasma jets discovered
Nikola Tesla was supposedly working on the production and wireless transmission of power -- including a "death beam". After his death, many of his papers were claimed to be missing:

http://www.pbs.org/tesla/ll/ll_mispapers.html

Interestingly, one of the main investigators into the incident was Dr. John G. Trump (uncle of President Trump).

McKayDavis··on Employees who decline genetic testing could face penalties under proposed bill
> Just as there's nothing wrong with e.g. age-based discrimination,

Sure there is, are you familiar with the Age Discrimination in Emloyment Act of 1967 [1]?

https://en.m.wikipedia.org/wiki/Age_Discrimination_in_Employ...

McKayDavis··on How is NSA breaking so much crypto? (2015)
There was a lengthy HN discussion when the article was originally published [1]

[1] https://news.ycombinator.com/item?id=10390822

McKayDavis··on Secret Backdoor in Some U.S. Phones Sent Data to China, Analysts Say
From the article: "Kryptowire took its findings to the United States government. It plans to make its report public as early as Tuesday."

Can you share the report yet?

McKayDavis··on Now it’s exploding Samsung washing machines
> there were rumblings of a class action;

Not just rumblings. A recent settlement was reached and consumers who own various models of Whirlpool, Kenmore, or Maytag front-loading washing machines are entitled to numerous clams including a 5% discount on a new purchase, a $50 rebate, or a $500 reimbursement for previous repairs. [1]

[1] http://www.washersettlement.com

McKayDavis··on Show HN: A WebGL visualization to show how global temperature changed since 1850
Nice, but the rotate controls are a way too sensitive and spin the globe too fast. I recommend you look into arcball rotation [1]. It's perfect for a globe.

[1] http://nehe.gamedev.net/tutorial/arcball_rotation/19003/

edit: Love the animated transition between the plate carrée projection and sphere!

McKayDavis··on Coding Challenge for MI5
Code-golf anyone? Here's my bash one-liner:

    pngtopnm puzzle.png | xxd -s14 -p -c3 | uniq -c | awk '{printf "%c", $1}' | xxd -r -p
Explanation:

   pngtopnm converts the image to an uncompressed bytestream format (pnm)
   xxd converts the bytes to hex representation
      -s14 skips the pnm header
      -p gives plain hex output
      -c groups by 3 byte values (RGB pixel values)
   uniq -c counts the run length encoding of the hex triplets
   awk / printf %c converts the RLE count to an ascii value
   xxd -r reverses the hex dump to the final encoded message
McKayDavis··on An account of a serious medical emergency on a transoceanic flight
In the US, before deregulation FAA Rule 240 [1] covered this scenario. Now the specifics between airlines, but the place to look is the 'Conditions of Carriage' contract that each airline is required to abide by.

This Consumerist article [2] is out of date (2007), but it covers every airline's contract and I believe it remains mostly correct.

[1] https://en.wikipedia.org/wiki/Rule_240 [2] https://consumerist.com/2007/04/06/dont-fly-without-a-copy-o...

McKayDavis··on How Spy Tech Firms Let Governments See Everything on a Smartphone
The linked NYTimes article references 3 exploits dubbed the "Trident Exploit Chain" that are detailed in an excellent Lookout / Citizen Lab writeup [1] discussed on HN 8 days ago [2].

The target is sent an SMS containing a link to site that triggers the explot chain to remotely jailbreak the phone and clandestinely install the monitoring software.

Ahmed Mansoor, a UAE journalist, was recently targeted with one of these SMS messages and was immediately suspicious. Instead of clicking the link he contacted Citizen Lab researchers who connected it back to NSO group.

[1] https://citizenlab.org/2016/08/million-dollar-dissident-ipho... [2] https://news.ycombinator.com/item?id=12360662

McKayDavis··on The Utah Teapot: Most Important Object in Computer Graphics History
Yes, 2002 was the last year. Prof. Dave Hanscom ran the HSCI from 1990 to 2002 [1].

I checked the Wayback Machine (archive.org), but unfortunately it doesn't have those pages mirrored. It's very sad that this history seems to be getting lost. At least one prestigious alumni (HSCI '92) that of I'm aware of is Berkeley Prof. Alexei Efros [2].

Awesome model! It's definitely one of the best ones I've seen from that program.

[1] http://www.cs.utah.edu/~hanscom/

[2] http://www.eecs.berkeley.edu/~efros/

McKayDavis··on The Utah Teapot: Most Important Object in Computer Graphics History
Also of note: Around the same time, University of Utah students created the first ever computer graphics generated picture that looks like its physical model: Marsha Sutherland's (Ivan Sutherland's wife) VW Bug [1].

The VW was hand measured by Sutherland's students: Jim Clark (of SGI/Netscape fame), Bui-Tui Phong (of Phong shading fame), Raphel Rom (of Catmull-Rom spline fame), and Robert McDermott (of Vegreville Egg fame). (I just listed some highlights of careers, they all accomplished much more!)

A first hand account of the model creation is preserved by Mr. McDermott on page 7 of the Fall 2003 edition of The Utah Teapot [2] (the aptly named University of Utah School of Computing quarterly newsletter).

The CS Dept. at the U of Utah has such a storied history, especially rich in fundamental computer graphics research [3]. Growing up in proximity to it definitely shaped my career path.

[1] http://jalopnik.com/the-first-real-object-ever-3d-scanned-an...

[2] http://www.cs.utah.edu/docs/misc/Uteapot03.pdf

[3] http://www.cs.utah.edu/about/history

McKayDavis··on The Utah Teapot: Most Important Object in Computer Graphics History
Yes, the UofU High School Ccomputing Institute [1]. I was accepted in '96 but already working a summer job in research park at the time (at a company w/ a commercial NURBS package) and didn't ever build a model. The coolest part is they would 3D print your model long before it being the commodity that it is today.

It'd be interesting to see a follow-up on the HSCI alumni and where they are now.

[1] http://www.cs.utah.edu/~rma/hci/cs/hsci.html

McKayDavis··on SourceForge and Slashdot Have Been Sold
I'd sell my sub-600 user ID in an instant if there were a market.
McKayDavis··on Paul Allen's yacht destroyed 14,000 sq.ft of reef in the West Bay Caymans
I'll take this opportunity to point out that Paul Allen is a strong supporter of research to save the ocean's coral reefs.

Last June he funded [1] a nearly $4 MM USD 5 yr project for researchers at the Hawaii Institute of Marine Biology at the University of Hawaii at Manoa (HIMB) [2] and the Australian Institute of Marine Science (AIMS) to study assisted evolution to increase the resilience of coral species.

[1] http://www.vulcan.com/news/articles/2015/coral-reef-research...

[2] http://www.hawaii.edu/news/2015/08/04/ruth-gates-research-to...

(disclaimer: my wife works at HIMB)

edit: It looks as this comment is viewed by some as excusing the incident -- that's not the intent. I just wanted to point out that Mr. Allen was already helping to save reefs, not destroy them.

McKayDavis··on MRI Scans of a person's brain
OsiriX [1] is a popular OS X/iOS viewer.

3DSlicer [2] is an excellent alternative that runs on Win/OS X/Linux

[1] http://www.osirix-viewer.com

[2] http://www.slicer.org

McKayDavis··on The alarming threat of Zika virus
I live in Hawaii and last week saw the first confirmed case of Zika virus in the United States in a child born with microcephaly on the Big Island. [1]

The mother had recently traveled to Brazil and thankfully neither her nor the baby are infectious -- but, living in the tropics, it seems to be only a matter of time until we see mosquitoes carrying Zika here.

[1] http://www.hawaiinewsnow.com/story/31007233/hawaii-health-of...

McKayDavis··on Maxwell's Equations first published 150 years ago
...and in two days it is the 100th anniversary of Einstein's publication of The Field Equations of Gravitation. (The original paper on General Relativity).

[1] http://einsteinpapers.press.princeton.edu/vol6-trans/129

[2] https://en.wikipedia.org/wiki/History_of_general_relativity#...

[3] http://www-history.mcs.st-and.ac.uk/HistTopics/General_relat...

McKayDavis··on We are barely halfway done
It's sad to see a company go out of business, but I applaud the owners of Manuals Plus [1] for making such a large donation to the Internet Archive.

To provide some more context about what the actual contents of the archive includes, a description is on their about page [2]:

"Manuals Plus buys and sells Electronic Test & Measurement Equipment Manuals. We stock over 400,000 manuals at our Westminster, Maryland location. Our inventory consists of Operator, Service, Calibration, and Programming manuals."

[1] http://www.manualsplus.com/

[2] http://www.manualsplus.com/About.php

McKayDavis··on Solar Power Battle Puts Hawaii at Forefront of Worldwide Changes
NextEra (the energy company that recently bought HECO) is looking to do just this. A Sept. 2013 report by them estimates a capital cost of approximately $600 million for a 200 MW cable connect between Maui and Oahu. (source page 8 of [1])

This is the low end of the scale with other estimates ranging from $553 Million to $1.24 Billion (page 9).

Note that this does not connect the Big Island to the grid either.

The preliminary proposed route can be seen on page 84 of the report.

[1] http://nexteraenergyhawaii.com/pdf/initial_comments.pdf

McKayDavis··on The Thirty Meter Telescope Is Finally Getting Built
Yesterday, Hawaii Gov. David Ige put a temporary hold on construction of the TMT to address concerns by protestors.

http://khon2.com/2015/04/07/ige-puts-temporary-hold-on-const...

McKayDavis··on Google Fiber Is Coming to Salt Lake City
Pete's post today says he'll be getting Google Fiber to his house (and encrypting everything through Xmission):

https://xmission.com/blog/2015/03/24/google-fiber-in-salt-la...

McKayDavis··on Google Fiber Is Coming to Salt Lake City
> I'm wondering if they are partnering with XMission.

Very unlikely, as Pete Ashdown (founder/owner) was recently discussing XMission investigating rolling their own fiber until wind of Google Fiber came up:

http://www.reddit.com/r/SaltLakeCity/comments/2yl51u/does_xm...

McKayDavis··on No Need to Run in Hawaii: The Lava Is Coming, but Very Slowly
There are various factors including the unpredictable nature of the flow as well as the cost and sheer effort involved. But, also very prominently is the cultural sensitivity to not disrupt the will of the volcano goddess Pele.

http://hawaiitribune-herald.com/news/local-news/county-diver...

KHON2 (the local Honolulu Fox Affilate) has a good 5 part series on the ongoing Kilauea eruption -- check part 3 for more discussion on your question.

http://khon2.com/kilauea-facing-the-fire/

McKayDavis··on YouTube puts the final nail in the loudness wars' coffin
In the US, Congress passed the Commercial Advertisement Loudness Mitigation (CALM) Act in 2010 and the FCC began enforcement in 2012.

https://en.wikipedia.org/wiki/Commercial_Advertisement_Loudn...

McKayDavis··on A solar eclipse that takes place every 500000 years
Not directly related to the article, but this is a good opportunity to alert US HN readers that in a little more than two years time a total solar eclipse will cut across the entire conterminous United States on August 21st, 2017.

Major cities in the path of totality include: Salem OR, Idaho Falls ID, Casper WY, Lincoln NE, Kansas City MO, Nashville TN, & Charleston SC.

This will definitely be the most accessible total eclipse for the majority of the US population in my lifetime.

A few links with maps/details: http://www.greatamericaneclipse.com/nation/ http://eclipse.gsfc.nasa.gov/SEgoogle/SEgoogle2001/SE2017Aug...

McKayDavis··on GCC Non-bugs
Are you familiar with the IEEE 754-2008 specification of decimal floating point format?

From Wikipedia's entry on decimal64[1]: "It is intended for applications where it is necessary to emulate decimal rounding exactly, such as financial and tax computations."

[1] http://en.wikipedia.org/wiki/Decimal64_floating-point_format

← PreviousPage 3 of 4Next →