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 4y ago · link · parent

What would remain 3400 years from now if a modern city like Tokyo, London, or New York were abandoned today?

comment 4y ago · link · parent

  from operator import add, mul
  (add if 1 < 0 else mul)(42, 100)

comment 4y ago · link · parent

What part of the authentication material isn’t optimized for production and what adjustments would you recommend?

comment 4y ago · link · parent

I wish browsers chose better default fonts which would make monospace, sans-serif, and serif more appealing. As an alternative, adopting new CSS keywords like user-monospace, user-sans-serif, user-serif could allow web developers to prioritize user-configured fonts in the browser.

comment 4y ago · link · parent

StackOverflow selected the following font stack [1] after holding an open discussion [2]. Note that their initial proposal included system-ui which they later removed due to concerns about OS and language compatibility.

  @ff-sans:
    -apple-system, BlinkMacSystemFont, // San Francisco on macOS and iOS
    "Segoe UI",                        // Windows
    "Liberation Sans",                 // Linux
    sans-serif;                        // The final fallback for rendering in sans-serif.
  @ff-serif: Georgia, Cambria, "Times New Roman", Times, serif;
  @ff-mono:
    ui-monospace,                     // San Francisco Mono on macOS and iOS
    "Cascadia Mono", "Segoe UI Mono", // Newer Windows monospace fonts that are optionally installed. Most likely to be rendered in Consolas
    "Liberation Mono",                // Linux
    Menlo, Monaco, Consolas,          // A few sensible system font choices
    monospace;                        // The final fallback for rendering in monospace.
[1]: https://github.com/StackExchange/Stacks/pull/642/files

[2]: https://meta.stackexchange.com/questions/364048/we-are-switc...

comment 4y ago · link · parent

Congratulations and thank you for sharing, reading posts like this motivates me to take a second look at some of my back burner projects.

(Remember also to thank that spouse of yours at home!)

comment 4y ago · link · parent

It could also be a matter of perspective. For some an island that is basically a sulfur mine could be a fascinating place to explore.

comment 4y ago · link · parent

  s/GAN/GaN/
GAN [1] happens to be a machine learning construct. 250 W of electrical output would be rather surprising.

[1]: https://en.wikipedia.org/wiki/Generative_adversarial_network

comment 4y ago · link · parent

Earth’s land and water hemispheres [1] were particularly stark in contrast back in the time of the dinosaurs. Are there geological theories as to how the asymmetry formed? Could major impact events from astronomical objects have played a role?

[1]: https://en.wikipedia.org/wiki/Land_and_water_hemispheres

comment 4y ago · link · parent

Are there sci-fi stories with the premise that a character wakes up transported to a different planet except it’s later revealed that it’s actually Earth in a distant time?

1391.

Public inquiry into the shootings at Dunblane Primary School (1996)(gov.uk ↗)

2 points · by divbzero · 4y ago · discuss

comment 4y ago · link · parent

Which major sites still work just fine without JS? Which ones do you have to avoid?

comment 4y ago · link · parent

The number of bots misses the point for advertising too. If a company spends $X on Twitter ads and measures a boost of $Y in sales from Twitter leads, how many humans vs bots viewed the ads is neither here nor there.

That said, the question is certainly worth asking beyond the realm of advertising. Media has a significant impact on people and society beyond its profitability.

comment 4y ago · link · parent

I like that they have not disclosed the exact location. I am always concerned that publicity can lead to visitors and damage to natural preserves like this one.

comment 4y ago · link · parent

For alternative points of reference, ~120 g of sugar is ~140 mL or ~0.60 US cups.

comment 4y ago · link · parent

Yes, Apple has had this for awhile, but apparently there was an underlying change in April when the service shifted from Discover to Visa [1].

[1]: https://en.wikipedia.org/wiki/Apple_Pay#Apple_Cash

comment 4y ago · link · parent

The latest efforts to remove the GIL was presented at the 2022 Python Language Summit and discussed here earlier this month:

https://news.ycombinator.com/item?id=31348097

comment 4y ago · link · parent

I miss Windows 7 too. That was the last version of Windows that I really liked.

comment 4y ago · link · parent

What is the use case for int.bit_count [1] which returns the number of ones in the binary representation of the integer?

[1]: https://docs.python.org/3/library/stdtypes.html#int.bit_coun...

comment 4y ago · link · parent

To be fair with the comparison, we should add error handling for the jQuery example:

  $.getJSON('/my/url')
    .done(data => {
      // success
    })
    .fail((jqxhr, textStatus) => {
      if (textStatus === 'timeout') {
        // connection error
      } else {
        // HTTP status error
      }
    })
And also consider the Fetch API alternative:

  fetch('/my/url')
    .then(response => {
      if (!response.ok) {
        // HTTP status error
      }
      return response.json()
    })
    .then(data => {
      // success
    })
    .catch(error => {
      // connection error
    })

comment 4y ago · link · parent

You Might Not Need jQuery [1] has been my favorite resource for convincing myself and others that it’s OK to forgo jQuery.

[1]: https://youmightnotneedjquery.com/

1402.

The ‘five pandemics’ driving 1M U.S. Covid deaths(statnews.com ↗)

7 points · by divbzero · 4y ago · discuss

comment 4y ago · link · parent

> It's very unfortunate that the US government at the same time promotes a particular standard, but does not provide a service matching that standard and seems to currently have no plans to do so

id.gov could be a great project for the US Digital Service [4] and 18F [5] who are the ones that delivered login.gov [6].

[4]: https://www.usds.gov/

[5]: https://18f.gsa.gov/

[6]: https://digital.gov/2017/08/28/government-launches-login-gov...

comment 4y ago · link · parent

IRS’s use of ID.me [1] is one of the oddest public–private partnerships I’ve seen. Facial recognition aside, why should I provide my personal ID to a private company to verify myself with the government that issued that personal ID in the first place?

[1]: https://www.irs.gov/newsroom/new-online-identity-verificatio...

comment 4y ago · link · parent

Thanks, it was fuzzy at first to me as well.

The official description of $GITHUB_STEP_SUMMARY reveals a bit of the implementation details:

> The path on the runner to the file that contains job summaries from workflow commands. This file is unique to the current step and changes for each step in a job. For example, /home/rob/runner/_layout/_work/_temp/_runner_file_commands/step_summary_1cb22d7f-5663-41a8-9ffc-13472605c76c.

https://docs.github.com/en/actions/learn-github-actions/envi...

comment 4y ago · link · parent

Related:

The US Army's earth-shaking, off-road land trains - https://news.ycombinator.com/item?id=23304788 - May 2020 (118 comments)

comment 4y ago · link · parent

Does McDonald’s exit from Russia count as a partial restoration of the “Golden Arches Theory of Conflict Prevention” [1]?

[1]: https://foreignpolicy.com/2020/11/26/mcdonalds-peace-nagorno...

1
464748
99