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

Yes, it also puts the ideal of self-reliance in perspective: While some level of self-reliance can be desirable, there is tremendous value in specialization and trade.

comment 2y ago · link · parent

The answer makes sense to me, but I wish we could fix editors to properly handle the ASCII separators (1C, 1D, 1E, 1F) instead of resorting to Unicode control picture characters (241C, 241D, 241E, 241F).

Maybe if editors are fixed up we could adopt ASCII Separated Values (ASV) as the new standard.

comment 2y ago · link · parent

Given the prevalence of TLS, how much SIGINT can actually be done by tapping internet exchanges these days?

comment 2y ago · link · parent

I really like the idea of serializing requests to a Git-friendly text format.

But if we want a Git-friendly text format, why not mimic HTTP/1.1 request syntax as much as possible? Maybe with Jekyll-like YAML front matter for metadata that doesn’t fit?

So for Get Users.bru instead of the current example of:

  meta {
    name: Get Users
    type: http
    seq: 1
  }
  
  get {
    url: https://reqres.in/api/users
    body: none
  }
  
  headers {
    Content-Type: application/json
  }
We could adopt a format like:

  ---
  name: Get Users
  type: http
  scheme: https
  seq: 1
  ---
  
  GET /api/users HTTP/1.1
  Host: reqres.in
  Content-Type: application/json

755.

The Battle to Unseat the Aeron, the Most Coveted Office Chair(bloomberg.com ↗)

3 points · by divbzero · 2y ago · discuss

comment 2y ago · link · parent

Is there a motivation behind having a helicopter join this time? Or more just “Heck, why not?”

comment 2y ago · link · parent

Are there any swaths of land on Earth where old growth forests have not been clear cut? Perhaps parts of northern Canada?

758.

Gusher of gas deep in mine stokes interest in natural hydrogen(science.org ↗)

2 points · by divbzero · 2y ago · discuss

759.

Gabriel García Márquez: Sons publish novel that late author wanted destroyed(bbc.co.uk ↗)

157 points · by divbzero · 2y ago · 273 comments

comment 2y ago · link · parent

Clear (mostly one-way) data binding is definitely one of React’s strengths.

It appears that Puter handles templating with a pattern like:

  let h = ``
  h += `<div>${exampleContent}</div>`
  h += `<div>${moreExampleContent}</div>`
  $(targetEl).append(h)
And handles events in the traditional way:

  $(targetEl).on('click', function () { /* do stuff */ });
Searching for “React” or “jQuery” in this thread, there are several other conversations with thoughtful comments about pros and cons. One curious tidbit that I learned is that Visual Studio Code doesn’t use a framework either and, like Puter, updates the DOM directly.

comment 2y ago · link · parent

I guess “React makes sense for more complex UIs” is not hard-and-fast rule. jQuery, apparently, is more than enough for clean working frontend code.

comment 2y ago · link · parent

A fun one and a dark one from the list:

“Knocker-up” — when alarm clocks were neither cheap nor reliable, knocker-up's job was to rouse sleeping people so they could get to work on time

https://en.wikipedia.org/wiki/Knocker-up

“Nazi concentration camp occupations”

https://en.wikipedia.org/wiki/Category:Nazi_concentration_ca...

763.

What Would Happen If Every American Got a Heat Pump(wired.com ↗)

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

comment 2y ago · link · parent

Oh give me a Nome where the muskoxen roam…

comment 2y ago · link · parent

Looks like they have staging environments set up but probably not live to the public:

https://github.com/weather-gov/weather.gov/tree/main/.github...

comment 2y ago · link · parent

Yes I suppose so :)

That would be faster than the speed of sound at the equator:

https://www.wolframalpha.com/input?i=(Earth's+circumference+...

comment 2y ago · link · parent

> Sixty years ago, timber companies began to grow Radiata Pine in countries like New Zealand and Chile. Grown for quick production, these trees produce very little heartwood and these trees have fewer growth rings per inch.

So is the difference between old growth and new growth primarily in the type of trees? Or are there other factors that contribute to speed of growth?

comment 2y ago · link · parent

If you look in the direction of the Sun, there can also be a “green flash” just as the Sun sets.

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

comment 2y ago · link · parent

You’re right, it isn’t quite the same as piping.

man <(curl ...) ends up working on Linux but for whatever reason still yields an error on macOS:

  No manual entry for /dev/fd/11

comment 2y ago · link · parent

This doesn’t work because it’s equivalent to piping stdout from curl into stdin for man.

comment 2y ago · link · parent

This still doesn’t work for me on macOS, perhaps a difference in how /dev/stdin is implemented?

Fortunately, macOS has ZSH as the default shell so the following does work:

  man =(curl -sL -H "Accept: text/roff" https://jamesg.blog/2024/02/28/programming-projects/)

comment 2y ago · link · parent

Now all we need is a Markdown to roff converter… which apparently already exists.

https://github.com/postmodern/kramdown-man

https://rtomayko.github.io/ronn/ronn.1.html

https://kristaps.bsd.lv/lowdown/

comment 2y ago · link · parent

Reminds me of a similar write-up about hexagonal grids posted to HN 10+ years ago:

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

comment 2y ago · link · parent

10% interest seems like a stretch in today’s environment. 5% interest from US Treasuries would be a more reasonable baseline: yielding $50,000,000 per year total, or $40,000 per year for each of the 1,250 students.

comment 2y ago · link · parent

The wealth came from David “Sandy” Gottesman’s investments, the most prominent of which was an early investment in Berkshire Hathaway. Gottesman was a friend of Warren Buffett, served on the board of Berkshire Hathaway, and also founded his own firm First Manhattan.

comment 2y ago · link · parent

Are there still instances where you would want an Extended Validation (EV) certificate? If so, that’s one case where certificate monitoring could be relevant.

Browsers today no longer provide visual indicators for EV certificates [1] so I don’t know if they’re still in common use.

[1]: https://en.wikipedia.org/wiki/Extended_Validation_Certificat... "Removal of special UI indicators"

comment 2y ago · link · parent

Athill passed away in January 2019 at the age of 101, which means she could have received a 100th birthday card from the Queen.

comment 2y ago · link · parent

If you buy T-bills through a brokerage, you can easily resell them on the secondary market using the same brokerage. The market price climbs as maturity approaches, so you typically capture yield in proportion to how long you held the T-bill.

comment 2y ago · link · parent

Two related, though not quite identical, lists provided by HN are:

https://news.ycombinator.com/best

https://news.ycombinator.com/over?points=500

1
252627
99