Better HN
topnewbestaskshowjobs
Log inSign up

divbzero

11,264 karma · joined Oct 8, 2017 (9y ago) · 2,949 submissions

Hello, world.

  #!/bin/bash
  name=chris
  user=divbzero
  email=${name}@${user}.com
  code=https://github.com/${user}
  website=https://${user}.com
[ my public key: https://keybase.io/divbzero; my proof: https://keybase.io/divbzero/sigs/o74zfvmaYGlCRV0hSUGRNdI1y03rbNP65tL072qROtg ]

[ my kismet code: ef956b ]

Submissions

comment 2y ago · link · parent

The original blog post alleging falsified data was published by Sholto David earlier this month: https://forbetterscience.com/2024/01/02/dana-farberications-...

812.

Organic Syntheses (2023)(science.org ↗)

42 points · by divbzero · 2y ago · 4 comments

813.

A closer look at the IRS Direct File pilot (2023)(irs.gov ↗)

1 points · by divbzero · 2y ago · discuss

comment 2y ago · link · parent

Is there a connection between Sam Leffler the BSD contributor at Lucasfilm/Pixar and BSD as the basis for NeXTSTEP/OS X at NeXT/Apple?

As far as I can tell, there is no direct connection. Sam Leffler contributed most to the 4.1BSD and 4.2BSD while at Berkeley [1], while NeXTSTEP was based on Mach which was based on 4.2BSD and developed by Richard Rashid and Avie Tevanian at Carnegie Mellon [2].

Perhaps the indirect connection is that, before Linux, BSD was the natural choice for an open-source UNIX derivative, and Steve Jobs had an instinct for seeking out the leading edges of computing at the time.

[1]: https://en.wikipedia.org/wiki/Samuel_J._Leffler

[2]: https://en.wikipedia.org/wiki/Mach_(kernel)#Development

comment 2y ago · link · parent

It’s quite fitting that this paper on yeast from the Guiness Brewery uses the t-test from the Guinness Brewery: https://en.wikipedia.org/wiki/Student's_t-test#History

816.

Elemental Haiku (2017)(vis.sciencemag.org ↗)

1 points · by divbzero · 2y ago · discuss

817.

Preemptive Lava Barriers Proposed in Grindavík Town Hall (2022)(icelandreview.com ↗)

1 points · by divbzero · 2y ago · discuss

comment 2y ago · link · parent

I love the description in the draft PR:

  'Twas the night before Christmas, when all through the code
  Not a core dev was merging, not even Guido;
  The CI was spun on the PRs with care
  In hopes that green check-markings soon would be there;
  
  ...
  
  ...
  
  ...
  
  --enable-experimental-jit, then made it,
  And away the JIT flew as their "+1"s okay'ed it.
  But they heard it exclaim, as it traced out of sight,
  "Happy JIT-mas to all, and to all a good night!"
https://github.com/python/cpython/pull/113465

comment 2y ago · link · parent

GitUI could be also named GiTUI.

820.

New images reveal what Neptune and Uranus really look like(phys.org ↗)

2 points · by divbzero · 2y ago · discuss

comment 2y ago · link · parent

The “rotate-to-undo” gesture is so cool. It reminds me of the main character in Doctor Strange rotating his hand to turn time backward and forward.

comment 2y ago · link · parent

I suspect Java is not the fastest language for this. I’d love to see unofficial contenders tackle this challenge using different languages.

823.

Space shuttle Endeavour's giant orange external tank begins final journey(latimes.com ↗)

68 points · by divbzero · 2y ago · 61 comments

comment 2y ago · link · parent

“The US population isn’t 100% indicative of the whole planet” is an excellent point to keep in mind. The US economy has trended towards exporting services and importing goods, and the electricity used to produce imported goods does not contribute to domestic usage.

comment 2y ago · link · parent

Looking at the trend since 1950, I’m struck by two details:

1. We reached peak coal in 2007. Coal generation has declined since.

2. We reached a consumption plateau also in 2007. Electricity use has been more or less level since.

https://www.eia.gov/energyexplained/electricity/electricity-...

The neighboring chart that tracks renewables since 1950 is also interesting. Growth in renewables really started around 2007 with growth in wind being the primary contributor. Growth in solar has made a smaller but significant contribution in the past decade or so.

https://www.eia.gov/energyexplained/electricity/electricity-...

comment 2y ago · link · parent

3×3 pixels is almost certainly the smallest legible font.

You need at least 6 pixels to encode 27 letters + 10 digits because:

  2⁵ < 37
  2⁶ > 37
But 2×3 pixels seems unlikely to be legible. From 2×3 pixels, you can increment the height to 2×4 pixels or the width to 3×3 pixels. The latter feels more feasible.

827.

Windows 3.1: Twenty-five years later, it's still a Microsoft milestone (2017)(pcworld.com ↗)

1 points · by divbzero · 2y ago · 1 comment

comment 2y ago · link · parent

NPM doesn’t capture the full benefit of an open registry of functions because, while anyone can fork and create an alternative @christophilis/is-even or @divbzero/is-even, there is no good way for developers to pick the best version of is-even.

Maybe if NPM required all package maintainers to use a namespace, the global is-even package name could resolve to the most-used fork.

So for an import like:

  import isEven from 'is-even'
You could install a specific fork:

  npm install --save @christophilus/is-even
Or default to the most-used fork:

  npm install --save is-even
In both cases, package.json would only contain namespaced dependencies and npm outdated could flag if a different fork is more commonly used.

comment 2y ago · link · parent

I did learn one new thing from browsing the is-odd source code: Number.isSafeInteger(n) checks that n falls within the [Number.MIN_SAFE_INTEGER, Number.MAX_SAFE_INTEGER] interval.

  ...
  if (!Number.isSafeInteger(n)) {
    throw new Error('value exceeds maximum safe integer');
  }
  ...

comment 2y ago · link · parent

Amazingly, following “don’t repeat yourself” in its purest form, is-even depends on is-odd:

  /*!
   * is-even <https://github.com/jonschlinkert/is-even>
   *
   * Copyright (c) 2015, 2017, Jon Schlinkert.
   * Released under the MIT License.
   */

  'use strict';
  
  var isOdd = require('is-odd');
  
  module.exports = function isEven(i) {
    return !isOdd(i);
  };

comment 2y ago · link · parent

I ran a web search to figure out if “Ross van der Gussom” was some sort of inside joke. The top two search results were OP and the parent comment.

comment 2y ago · link · parent

Boston Light can sometimes be seen from the air as you approach Logan International over Boston Harbor.

comment 2y ago · link · parent

I like the tidbit about how <IMG> came to be:

  Date: Thu, 25 Feb 93 21:09:02 -0800
  From: Marc Andreessen (marca@ncsa.uiuc.edu)
  Subject: proposed new tag: IMG
  
  I'd like to propose a new, optional HTML tag:
  
  IMG
  
  Required argument is SRC="url".
  
  ...
http://1997.webhistory.org/www.lists/www-talk.1993q1/0182.ht...

The same www-talk mailing list also included emails from Tim Berners-Lee and Guido van Rossum:

http://1997.webhistory.org/www.lists/www-talk.1993q1/

comment 2y ago · link · parent

I usually take it as suggestive code that you don’t have to use verbatim.

For example, You might not need jQuery offers the following suggestions:

  // toggle visibility
  function toggle(el) {
    if (el.style.display == 'none') {
      el.style.display = '';
    } else {
      el.style.display = 'none';
    }
  }

  // remove multiple elements
  for (const el of document.querySelectorAll(selector)) {
    el.remove();
  }
While the following would be more concise:

  // toggle visibility
  function toggle(el) {
    el.style.display = el.style.display === 'none' ? '' : 'none;
  }

  // remove multiple elements
  document.querySelectorAll(selector).forEach(el => el.remove());

835.

NY Times sues OpenAI, Microsoft for infringing copyrighted works(reuters.com ↗)

7 points · by divbzero · 2y ago · 1 comment

comment 2y ago · link · parent

You might not need jQuery (https://youmightnotneedjquery.com/) shows pure JS implementations of common jQuery methods. Someone should create an analogous You might not need SASS to help developers move to pure CSS.
1
272829
99