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

The conditional expression

  __name___ == '__main__'
simply tests whether this Python file is being executed from command line.

It’s one of the ubiquitous Python idioms that doesn’t actually follow Python’s zen of “readability”.

comment 6y ago · link · parent

I had to handle action buttons for a PDF once. I swam out from America a long long ways before turning back. Might have spotted you middle of the ocean.

comment 6y ago · link · parent

OK, trying my hardest to view this deprecation in a positive light: The 5% commission was already minimal but by removing payments altogether, Google proves it has no interest in monetizing Chrome extensions as a platform.

comment 6y ago · link · parent

That really sucks. I’m guessing Google aggregates payments so there’s no way of getting individual subscription data?

If you explain the predicament clearly, succinctly, and with as easy a resolution as possible, I think a lot of your customers will understand the situation and appreciate that you’re doing your best for them.

comment 6y ago · link · parent

Todd or Ted was the first to buy Apple shares for Berkshire, but Warren Buffett made the decision for the bulk of Berkshire’s current stake in Apple. The $35 billion Apple investment (worth more now) [1] is larger than what Todd or Ted manage (about $13 billion each as of last year) [2]. Buffett has also commented publicly on the rationale behind his decision to own Apple.

[1]: https://www.cnbc.com/2020/07/16/warren-buffett-reaps-40-bill...

[2]: https://www.cnbc.com/2019/02/25/warren-buffett-says-berkshir...

comment 6y ago · link · parent

You and GP are both right but simply referring to different definitions of value investing.

GP is using “value” in the traditional Benjamin Graham sense of companies that are quantitatively undervalued based on current financial statements. This is the definition used on Wall Street for “value” ETFs or mutual funds.

You’re referring to Warren Buffett’s expanded definition of “value” as any company priced below intrinsic value, which can include qualitative judgment of future growth.

You both make the point that Buffett’s approach deviates from the traditional Wall Street definition of “value”.

comment 6y ago · link · parent

Yes, and in addition to near-zero rates for the foreseeable future, the Fed has also shown a willingness to engage in QE and other unconventional forms of monetary stimulus. This is a key driver of the continued climb in equity and real estate assets that seems to defy economic reality.

comment 6y ago · link · parent

The sensible side of me would deem this blind optimism but… Maybe, just maybe, senators respecting Justice Ginsburg’s last wish will be the first step on a long road towards healing our toxic political polarization.

comment 6y ago · link · parent

Also reported by NPR in the original post:

Just days before her death, as her strength waned, Ginsburg dictated this statement to her granddaughter Clara Spera: “My most fervent wish is that I will not be replaced until a new president is installed.”

comment 6y ago · link · parent

Highlighting the key PSA from the article:

“The safest way to mitigate SQL injections on your databases is prepared statements. These come in most database interaction libraries for most languages. You can find a full list of ways to mitigate SQL injections at [OWASP].”

[OWASP]: https://cheatsheetseries.owasp.org/cheatsheets/SQL_Injection...

comment 6y ago · link · parent

Also amusing is the thought that lowercase "select" is any safer than uppercase "SELECT".

comment 6y ago · link · parent

Great article and looking forward to the rest!

I enjoyed the economic tidbits that remain relevant today — rulers owning and controlling extraction of commodities, locating production based on cost of transporting inputs, and treatment of labor varying according to its scarcity.

comment 6y ago · link · parent

Why is it that the Antarctic ice sheet is currently at median levels while Arctic ice pack has changed so dramatically?

comment 6y ago · link · parent

Let’s hope under the covers things are progressing in the typical prudent manner. Even so, I worry about the extra pressure on phase 3 trials for a vaccine that’s already been announced publicly.

2415.

Oracle Will Review TikTok Source Code to Watch for Chinese Access(wsj.com ↗)

1 points · by divbzero · 6y ago · discuss

comment 6y ago · link · parent

Any Android users have insight into the uptake on Instant Apps [1] over the past three years? I’ll be curious how they and the new App Clips [2] in iOS 14 will evolve versus web apps.

[1]: https://developer.android.com/topic/google-play-instant

[2]: https://developer.apple.com/app-clips/

comment 6y ago · link · parent

One iOS 14 feature I’m really looking forward to is the use of banners instead of full screen notifications for incoming phone calls.

comment 6y ago · link · parent

“What many don't know is that [Mark Benioff] donation was to complete a match of $125M offered by Chuck Feeney (who does not have his name on a building anywhere on the campus, AFAIK).”

“I wonder if I ever will have the strength to do what he has done.”

“I’ve long argued for massive estate tax rates on large estates in order to incentivize behavior like this.”

“This is a role model I can actually appreciate.“

“I humbly encourage everyone to make giving a larger part of your life.”

Those are quotes from the current top 5 comments in this thread — plenty of celebration of Chuck Feeney’s awesomeness.

comment 6y ago · link · parent

The three I would pick are:

1. 1980s – 1990s Mainframe to PC

2. 1990s – 2000s PC to Web

3. 2000s – 2010s Web to Mobile

In each of these transitions the software written for the Old Way was incompatible with the New Way.

(There have also been shifts in data storage and network protocols that others might point to as major transitions.)

comment 6y ago · link · parent

Looks like instant.page at its core uses <link rel=prefetch>: [1]

  const prefetcher = document.createElement('link')
  prefetcher.rel = 'prefetch'
  prefetcher.href = url
  document.head.appendChild(prefetcher)
[1]: https://github.com/instantpage/instant.page/blob/v5.1.0/inst...

comment 6y ago · link · parent

TIL: Intl.DateTimeFormat [1] has good browser support [2] and allows for nifty tricks like

  > new Intl.DateTimeFormat('zh', { hour: 'numeric' }).format(new Date)
  < "下午11时"
[1]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe... "MDN: Intl.DateTimeFormat"

[2]: https://caniuse.com/mdn-javascript_builtins_intl_datetimefor... "Can I Use: Intl.DateTimeFormat"

comment 6y ago · link · parent

The odds are stacked against any specific New Way from taking hold.

But we can also invert our perspective and ask: Will there a dramatic shift to a New Way in the next half century? Since 1970 there have been at least 3 major transitions in how people work with technology, it’s easy to imagine more will come before 2070.

comment 6y ago · link · parent

Yes, it’s the classic “Should we do a complete rewrite?” question blown up to an epic scale. The answer is usually “no” or “rewrite one layer” but their are times when things aren’t modular enough or the fundamental architecture is lacking.

comment 6y ago · link · parent

Current US intelligence officials [1] are among those serious people who seriously believe that social media is being used to influence American elections.

[1]: https://www.foxnews.com/politics/china-election-interference...

1
808182
99