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

Serverless would work but my initial idea was more basic, simply a combination of something like:

A. DNS record (foo.example.com CNAME api.darksky.net)

B. TLS forward proxy (e.g. Cloudflare Full SSL https://www.cloudflare.com/ssl/)

C. Host header rewrite (e.g. Cloudflare Page Rules https://support.cloudflare.com/hc/en-us/articles/206652947-U...)

comment 6y ago · link · parent

Could you have bypassed DarkSky’s TLS version requirements by proxying the API requests through Cloudflare or some other TLS forward proxy?

comment 6y ago · link · parent

  What I’d love to see
  is this for HTTP —
  status code haikus

2704.

US government turned down offer to manufacture millions of N95 masks in America(washingtonpost.com ↗)

8 points · by divbzero · 6y ago · discuss

comment 6y ago · link · parent

[sh.py]: https://amoffat.github.io/sh/

comment 6y ago · link · parent

> Use relative URLs when possible

Protocol relative URLs can also be used for different domains as long as protocol remains the same, which is often the case with https: so widespread, e.g.:

  <script
    src=//code.jquery.com/jquery-3.5.1.slim.min.js
    integrity="sha256-4+XzXVhsDmqanXGHaHvgh1gMQKX40OUvDEBTu8JcmNs="
    crossorigin=anonymous>
  </script>

comment 6y ago · link · parent

From my own notes on minimal HTML5…

Closing tags are optional for the following tags:

  html
  head
  body
  p
  dt
  dd
  li
  option
  thead
  th
  tbody
  tr
  td
  tfoot
  colgroup
The following tags are self-closing and should not have closing tags:

  meta
  img
  input
  hr
  br
Attributes can be left unquoted if the following characters don’t appear in the attribute value:

- Single quote (')

- Double quote (")

- Space ( )

- Equal sign (=)

- Greater-than sign (>)

comment 6y ago · link · parent

Work only on things that really matter.

comment 6y ago · link · parent

This sounds tough.

A common solution, which qualifies as “janky”, is to render sticky rows in a <div> element, completely separate from the <table> itself. If I remember correctly, DataTables [1] takes this approach for its sticky headers. React Table [2] takes a similar approach, and actually abandons <table> altogether by using <div> elements for table body, rows, and cells.

[1]: https://www.datatables.net

[2]: https://react-table.js.org

I haven’t seen many solutions for sticky columns, but the least bad solution might also be a “janky” separate <div>.

comment 6y ago · link · parent

Agreed that the font change seems like a wash. At first I thought OP was trolling the reader with two identical screenshots :)

I suppose the real benefit is having a font available across all platforms. Inter appears to be a high quality typeface, and I appreciate its author for releasing it under an open license. [1] [2]

[1]: https://rsms.me/inter/#free

[2]: https://github.com/rsms/inter

comment 6y ago · link · parent

+1 on tabular figures [1] but it appears to me that OP is already using them? It’s hard to tell for sure but the 1 and 2 in 1,000.00 and 2,000.00 seem to be aligned. The misalignment in decimals and thousands separators could instead by caused by normal vs. bold font weight.

[1]: https://practicaltypography.com/alternate-figures.html#tabul...

2712.

Interactive React lifecycle methods diagram(github.com ↗)

2 points · by divbzero · 6y ago · discuss

comment 6y ago · link · parent

The Keybase acquisition is a reminder of the potential fragility of using centralized services (root servers, GitHub, CAs) to support decentralized tools (DNS, Git, TLS).

> ideally either FOSS or at least not run by a for-profit company

I agree with these aims, but ideally I’d hope for the alternatives to be decentralized as well.

comment 6y ago · link · parent

HN discussion about https://keys.pub from two weeks ago:

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

comment 6y ago · link · parent

To me this is completely okay and a heartwarming success story.

Sure there is the alternate history where you stayed in touch and he still remembers you and cherishes the relationship…

But it’s also wonderful that he impacted you so strongly and positively, yet has taught so many students that he doesn’t remember you specifically. If he did this for you he likely did it for other students too and we are lucky that we have him as a teacher in our world.

It also reminds us that though we know ourselves to be human with very human limits, we can still pay forward the kindness and guidance we received to the next generation.

comment 6y ago · link · parent

A small inline graph! Popularized and named by Edward Tufte. [1]

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

comment 6y ago · link · parent

> the portion of white students who are legacy admits

I’m curious to learn more about this. Do you have a good source for this data?

comment 6y ago · link · parent

Among the good things, George W. Bush contributed more to the fight against HIV/AIDS than any other president. [1]

[1]: https://en.wikipedia.org/wiki/President%27s_Emergency_Plan_f...

comment 6y ago · link · parent

In addition to all the above, there is money in the “long tails” of search. At scale, even the 0.01% use case will have thousands of hits per day. This is already true at DuckDuckGo’s current scale of ~50M daily traffic [1] and even more so for giants like Google or Baidu.

[1]: https://duckduckgo.com/traffic

comment 6y ago · link · parent

I recall Amaranth was recruiting on campus that week, and cancelled all interviews the very next week.

comment 6y ago · link · parent

What resource(s) would you recommend for identifying compatible parts?

comment 6y ago · link · parent

Maybe in addition to a one-time purchase you could offer “sponsorship” subscriptions for app users who want to provide extra support.

comment 6y ago · link · parent

For NYC the answer is “no”.

4,500 ≈ average deaths per month in 2017 [1]

6,125 = confirmed COVID-19 deaths from 2020-04-01 through 2020-04-15 [2]

[1]: https://www.health.ny.gov/statistics/vital_statistics/2017/t...

[2]: https://github.com/nychealth/coronavirus-data/blob/master/ca...

Note that 6,125 doesn’t include COVID-19 deaths or non COVID-19 deaths, and is for the first half of April only.

comment 6y ago · link · parent

Are there other industries like supersonic and space flight where a competent startup could attract top engineers in the field from government and academic jobs? (This question is partly rhetorical. If you have a good answer… Go do it!)

comment 6y ago · link · parent

Top militaries can be several years ahead in secret capabilities. Curious how much of what’s described is actually operational today.

comment 6y ago · link · parent

The original million dollar home page was just as much of a “scam” until the publicity made it worthwhile marketing. I would reserve judgment.

comment 6y ago · link · parent

This is the best news I’ve heard all week.

I had thought that Apple and Google are in the best position to distribute contact tracing widely [1] but couldn’t figure out if they were working on it. It turns out they were.

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

Big tech can do good and we should applaud their efforts when they do it right.

comment 6y ago · link · parent

> It explains that we naturally trust people who sound smart, well-informed, and CONFIDENT. We don't want to hear uncertainty, probabilities, or the other signs of someone who thinks in a careful quantitative way. We want to accept a cognitively simple answer, then move on. This is what we find comfortable.

Almost any interview with Robert Shiller is a striking counter example to these smart confident sounding people who aren’t actually good at making predictions. When speaking Shiller does not sound very confident at all and you need to know his background and history and remind yourself to pay attention to what he’s saying.

comment 6y ago · link · parent

I have a renewed appreciation of so much that we usually take for granted, chief among those are the contributions of our teachers and child care professionals.
1
909192
99