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

On macOS

  ⌥- = en dash
 ⇧⌥- = em dash
where

   ⇧ = shift
   ⌥ = option
   - = hyphen

comment 6y ago · link · parent

That’s a fair point. GitHub Pages from private repos are enabled only if you have a Pro or Team subscription. [1]

[1]: https://github.com/pricing#feature-comparison

comment 6y ago · link · parent

I find your email setup intriguing. Any chance you could share those scripts in a GitHub repo or gist?

comment 6y ago · link · parent

Or GitHub Pages + CloudFlare.

And as another comment mentions, GitHub Pages now offers HTTPS certificates [1] for custom domains, so GitHub Pages alone is sufficient for most static websites.

[1]: https://github.blog/2018-05-01-github-pages-custom-domains-h...

comment 6y ago · link · parent

Agreed with parent to take 1 on 1’s lightly as just an avenue of conversation. If there is an adjustment you’d like to see, try to suggest it constructively and you don’t have to wait for a 1 on 1 to do so.

That said, the “big list” here is directed towards managers and, for a manager, picking out one of these questions now and then as a conversation starter could uncover issues or opportunities that you could address early and make someone just a little happier at work.

comment 6y ago · link · parent

Awesome indeed. Thanks for the link.

The “other” hemisphere illustrates the strikingly vast expanse of the Pacific Ocean.

comment 6y ago · link · parent

This noteworthy point can help our intuition.

     πr² = area of circle
    4πr² = surface area of sphere
Thus a 2,500 mile radius circle covers ~10% of Earth’s surface.

comment 6y ago · link · parent

In practice, if you left a job in the US for an entrepreneurial venture that fails, your former employer or a competitor would gladly welcome you back as an employee.

comment 6y ago · link · parent

Just as electric vehicles can have skeuomorphic “engine” sounds for safety [1] or aesthetics [2], I’d love to see a service that emits “fan” noise to track CPU usage.

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

[2]: https://electrek.co/2018/03/07/jaguar-i-pace-artificial-moto...

comment 6y ago · link · parent

Backups are transient relative to streaming which can continue for hours.

comment 6y ago · link · parent

> you need to plug the device into its bigger brother

This exactly is the challenge. If your first computer is a mobile device, you would not have that “bigger brother” available.

iOS does have Swift Playgrounds [1] and Android has the excellent Termux [2] but access to the built-in JavaScript engine would open a whole new set of possibilities.

[1]: https://www.apple.com/swift/playgrounds/

[2]: https://termux.com/

I was introduced to programming on a dinky little graphing calculator. My hope is that other “first computers” could offer similar opportunities for tinkering.

comment 6y ago · link · parent

> With the web almost everyone has a machine that has a programmable environment by default again. I feel this is a very important and powerful advantage that’s often overlooked.

For this same reason, I’m disappointed that mobile browsers such as iOS Safari have yet to enable DevTools, e.g. a page inspector, network inspector, and JavaScript console. Especially for younger generations, there are many whose first computer will be a mobile device.

comment 6y ago · link · parent

While many of the oldest businesses in Japan are hotels, some of the oldest in Europe are breweries [1], e.g. Weihenstephan (1040) and Franziskaner (1397) which both make excellent hefeweizens.

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

comment 6y ago · link · parent

The answer appears to be: yes you must be a privately held company.

The FAQs for Microsoft for Startups [1] list the following requirements:

- You must be engaged in development of a software-based product or service that will form a core piece of you current or intended business - this software must be owned, not licensed.

- You cannot have received more than $10,000 of free Azure in the past.

- Your headquarters must reside in the countries covered by our Azure global infrastructure.

- You must be a privately held company.

- You must operate a public website on your own domain.

- Your contact email address domain must match your public website.

- Your funding information must be verifiable.

The FAQs also add that:

> The qualified offer is designed to help companies that are focused on growth, so it’s less applicable for consultancies and small businesses. If you are a small business or consultancy you can get started with a free trial.

[1]: https://startups.microsoft.com/en-us/benefits/#faq

Note also that Microsoft’s new offer is for GitHub Enterprise Cloud, not self-hosted GitHub Enterprise. GitLab is probably your best bet for a self-hosted GitHub alternative. [2]

[2]: https://about.gitlab.com/install/

comment 6y ago · link · parent

100% agreed. The tech discussion is always interesting, but especially so when informed by our diverse experience.

comment 6y ago · link · parent

I was wondering the same!

The author appears to be using his own functions written in vanilla JS. The Gears page loads a custom Canvas library base.js [1] plus an page-specific gears.js [2]. iOS graphics appears to be an area of expertise [3] for the author.

[1]: https://ciechanow.ski/js/base.js

[2]: https://ciechanow.ski/js/gears.js

[3]: https://github.com/Ciechan?tab=repositories

(P.S. <canvas> is an interesting choice, I had expected <svg> before opening the page inspector. Separately, I love the creative use of TLD in the domain name.)

comment 6y ago · link · parent

Imagine if we could revamp the textbook industry so articles like this have a fighting chance of being included.

comment 6y ago · link · parent

On the flip side, the ability to look up your past purchases can enable returns without receipts.

The other week a store clerk failed to look up my purchase when using my physical credit card, but succeeded when using the same credit card via Apple Pay. I would have been out of luck if I had rotated my Apple Pay number.

comment 6y ago · link · parent

This article is great for attributing Git’s success to not only Linus Torvald’s core creation but also subsequent contributions from Hamano, King, Schindelin, Pearce, and many others [1] in the community. Git’s core architecture was critical but would not have succeeded without the ecosystem that grew around it.

[1]: https://github.com/git/git/graphs/contributors

One technical error in the article was understating the distributed nature of Git:

> With distributed VCS, a copy of the most current version of the code resides on each developer’s device, making it easier for developers to work independently on changes to the code.

Replacing s/most current version/all versions/ gives us the technically correct statement:

> With distributed VCS, a copy of all versions of the code resides on each developer’s device, making it easier for developers to work independently on changes to the code.

Having all versions of code is what allows local branch, rebase, merge, and conflict resolution before pushing those changes to the shared repo.

comment 6y ago · link · parent

The modern flush toilet. [1]

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

Technically invented in the 1500s but not widely produced until the 1800s.

comment 6y ago · link · parent

I love how:

1. The author treats this topic so seriously and thoroughly.

2. HN comments do the same.

comment 6y ago · link · parent

I too would love to see this for the iPhone and even more so for the iPad. Apple implemented multiuser successfully for Apple TV with tvOS 13 [1] and HomePod with iOS 13.2 [2] but probably has less incentive to implement it for iPad, iPhone, and Apple Watch.

[1]: https://support.apple.com/en-us/HT207936

[2]: https://support.apple.com/en-us/HT208714

comment 6y ago · link · parent

The todo.txt CLI and related tools [1] that grew out of Gina Trapani’s Lifehacker article [2] served me well for years.

[1]: http://todotxt.org/

[2]: https://lifehacker.com/geek-to-live-reader-written-todo-txt-...

comment 6y ago · link · parent

The historical background for those interested…

The ordered dict for Python was originally an implementation detail, part of a more compact dict representation that was first proposed for Python in 2012 [1], implemented for PyPy in 2015 [2], and merged into CPython 3.6 in 2016 [3] [4].

[1]: https://mail.python.org/pipermail/python-dev/2012-December/1...

[2]: https://morepypy.blogspot.com/2015/01/faster-more-memory-eff...

[3]: https://mail.python.org/pipermail/python-dev/2016-September/...

[4]: https://news.ycombinator.com/item?id=12460936

The decision to add it officially to the language spec wasn’t made until Python 3.7 in 2017. [5]

[5]: https://mail.python.org/pipermail/python-dev/2017-December/1... "Guido says ‘Make it so.’"

comment 6y ago · link · parent

First, condolences to Dr. Li’s family. As we speak of epidemiology and statistics, let’s not forget that every single “case” is an individual with family and friends, and behind each individual are doctors, nurses, and caretakers who risk their own health to help another.

Second, as noted by nkurz the contrast between bacterial and viral treatments is striking. Whereas we expect bacterial infections to be treatable and are alarmed when they aren’t (MRSA), we expect viral infections to simply run their course except for the few instances where they’re treatable (HIV, influenza) or even (gasp!) curable (HCV). We explain away the sad state of antivirals by pointing to the inherent biochemical challenges of fighting viruses [1] but maybe what we really need is a breakthrough — perhaps a miraculous fortuitous “penicillin” moment — so 100 years from now antivirals will also be a matter of course.

[1]: https://en.wikipedia.org/wiki/Antiviral_drug#Approaches_by_l...

comment 6y ago · link · parent

Ten years ago Facebook fought this battle and lost. [1] [2] [3]

[1]: https://www.facebook.com/notes/facebook-engineering/using-ht... "Using HTML5 Today"

[2]: https://appleinsider.com/articles/12/09/11/facebook_admits_h... "Facebook admits HTML5 not competitive with Cocoa Touch"

[3]: https://techcrunch.com/2012/12/13/facebook-android-faster/ "Facebook Speeds Up Android App By Ditching HTML5 And Rebuilding It Natively Just Like The iOS Version"

I have always rooted for mobile web apps, but the lack of feature parity and distribution challenge (“Add to Home Screen”) puts them at a constant disadvantage and companies who control mobile OS’s have little incentive to change this.

comment 6y ago · link · parent

In the past the CFAA has been wielded haphazardly and even maliciously [1]. As noted by others these cases are far from over, but hopefully we’re shifting towards a healthier balance between open web and private information.

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

comment 6y ago · link · parent

By “killing background tabs” the parent simply meant that Safari wipes loaded tabs from memory, so the tabs have to reload when selected again.

However, in rare cases if you’re foolish (aka me) you might:

1. Unintentionally open a new Safari window via iPadOS multitasking.

2. Unintentionally close the original Safari window with your 400+ tabs.

3. Lose 400+ tabs permanently.

I’ve learned the hard way to just use the Reading List.

comment 6y ago · link · parent

Interesting. As of 3 hours ago https://del.icio.us/ simply returned:

  Internal Server Error
1
9596979899