HN user

jbergknoff

507 karma
Posts23
Comments65
View on HN
old.reddit.com 1y ago

Chromecasts Bricked by Expired Certificate

jbergknoff
6pts1
www.wolframalpha.com 3y ago

Wolfram ChatGPT Plugin Manifest

jbergknoff
9pts0
www.amazon.com 5y ago

Amazon Sidewalk

jbergknoff
2pts0
thosewhowork.com 5y ago

Solving Tom's Data Onion

jbergknoff
2pts0
github.com 6y ago

Show HN: Dockerfiler: declarative management of images built from Dockerfiles

jbergknoff
35pts49
jonathan.bergknoff.com 6y ago

Terraform Pain Points

jbergknoff
2pts0
jonathan.bergknoff.com 6y ago

Terraform Pain Points

jbergknoff
7pts1
jonathan.bergknoff.com 6y ago

Docker is the best medium for distributing and running developer-facing software

jbergknoff
3pts3
jonathan.bergknoff.com 6y ago

Run More Stuff in Docker

jbergknoff
2pts0
jonathan.bergknoff.com 6y ago

Run More Stuff in Docker

jbergknoff
3pts0
aws.amazon.com 7y ago

Amazon CloudWatch Logs Insights

jbergknoff
94pts31
www.hashicorp.com 7y ago

Terraform 0.12 Preview: Rich Value Types

jbergknoff
2pts0
medium.com 8y ago

Event-Driven Architecture with Amazon SQS and AWS Lambda

jbergknoff
1pts0
aws.amazon.com 8y ago

Applying the Twelve-Factor App Methodology to Serverless Applications

jbergknoff
2pts0
jbergknoff.github.io 8y ago

Show HN: Learn Your Letters, a game for toddlers

jbergknoff
4pts2
jonathan.bergknoff.com 8y ago

Always Pin Your Versions

jbergknoff
1pts0
caniuse.com 9y ago

Collapsible webpage element without JavaScript or CSS

jbergknoff
1pts0
jonathan.bergknoff.com 10y ago

JavaScript's Syntax Problem

jbergknoff
1pts0
chrome.google.com 10y ago

Hacker News Unread Comment Highlighter (Chrome Extension)

jbergknoff
2pts0
jonathan.bergknoff.com 11y ago

Building Better Docker Images

jbergknoff
6pts0
www.google.com 11y ago

Google Maps Pacman

jbergknoff
237pts55
jonathan.bergknoff.com 11y ago

Some Obscure JavaScript Pitfalls

jbergknoff
2pts0
jonathan.bergknoff.com 11y ago

Making a Guitar Tuner with HTML5

jbergknoff
55pts5

AM/PM is bad, but I have a GE microwave which requires you to also set _the date_ when you're setting the clock. How could somebody think that was a good idea? :)

The easiest practice to implement for peak Git efficiency is to stick to a subset of commands

This has been my experience as well.

Great article, thanks! I've been using essentially this same subset of commands for many years, and it's worked extremely well for me: does everything I need/my team needs, and avoids complication. I'm glad to have this as a reference I can point people to when they ask for git advice.

Yes, there are threshold cryptography schemes with "distributed key generation" [1] in which the parties end up holding shares but the full secret is never known to any party. Then, to your point about "the only time they key was known was when the parties reached quorum after the fact": in these schemes, some threshold of the parties can cooperate to compute a function of the secret (e.g. a signature, or a ciphertext) without any of them ever knowing the secret.

FROST is one example of such a threshold scheme, for computing Schnorr signatures: https://eprint.iacr.org/2020/852.pdf

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

If I've already reviewed a PR and the author makes further changes, I definitely prefer to review an add-on commit. If the history is rewritten/rebased, then IME the entire PR needs to be re-reviewed from scratch. If we're talking about a <10 line change, then, by all means, rebase to your heart's content. With anything more complicated than that, rebasing a branch that's already been looked at can be disruptive and I'd strongly recommend against it (though squash-and-merge after review is fantastic).

I recently got an external monitor for my work Macbook. I plugged it in and soon found out that closing the laptop doesn't put it to sleep anymore. I can kind of see why somebody would want this behavior in some situations. I can't at all see why this would be the default, or why there would be no way to toggle the behavior.

I continue to be disappointed with Apple's desktop experience.

Same here.

Hi, I'm the author. Thanks for taking a look. This is basically a tool to help manage a "Dockerfile" repo (along the lines of https://github.com/jessfraz/dockerfiles), where you build any tools you want into images that you control. This can be really useful for personal use or within a company.

Why build tools into Docker images? Love it or hate it, there are many senses in which Docker is currently the best medium that we have for distributing and running dev tools. Here's an article making that argument: https://jonathan.bergknoff.com/journal/run-more-stuff-in-doc....

Yeah, I'm seeing the same. The branch reflects the new commit, but the PR open for that branch does not show it.

Many great examples here, and my wife and I do many of the same things, but it's not always this easy. If your child is receptive to these things, like the children in the article, that's great. Our younger one is receptive and our older one is getting there as he ages. If we judged ourselves as parents based on just the younger, we'd think we were amazing parents making all the right choices. If we judged ourselves just on the older, we'd think we were completely ineffective at, e.g., fostering independence.

I just hope nobody's reading this and feeling bad about their parenting. The personality of the child is critical.

Hypermodern Python 6 years ago

In other words, it becomes the concern of the person shipping the code, rather than the concern of the person trying to run the code. That's exactly how it should be.

I have a really hard time parsing `unless`. Whenever I encounter it in Ruby or CoffeeScript code, it takes me 10-30 seconds to stop and understand what's happening with the code.

Generally, postfix conditionals are a bad idea because they are garden-path sentences [1] by design.

Glad you find them valuable, but IMO they epitomize what many other comments in this thread have said about CoffeeScript's poor readability.

[1] https://en.wikipedia.org/wiki/Garden-path_sentence

If I create a file in my project named requests.py, then a sibling file's `import requests` starts importing that file, instead of the library. Maybe name conflicts are "basically fixed" in the sense that there are ways to avoid them, but there is still surprising and magical (in the worse possible sense) behavior to trip over.

Regarding hyphens and such in package names pretty much every language has restrictions on identifier names.

This particular restriction is an artifact of the bad design of treating paths on disk as special language tokens instead of string literals.

This is amazing! I'd be interested in more details about capturing the IR signal, both by the invasive method and the "operate an LED in reverse" method.

At one point I thought about trying to do something similar with my old garage door opener, but ended up not pursuing it.

I think anything that treats paths on disks/library names as string literals would be workable. So, for instance, the stuff from the importlib standard library would probably be good enough if it was a top level/global construct that worked with quoted strings.

from './app/utils.py' import numbers

One of my favorite Python features is the way that the files and directories your application is made of map one-to-one with how you import and use them in code.

Funny to see this stated explicitly in this way. In my opinion, this is one of Python's biggest flaws (I'm a big fan of everything but the module system). Paths to files on disk should be treated as string literals, not magic unquoted strings that look like they're language keywords.

You can easily end up in situations where a directory in your project's tree has a name conflict with some library, and this causes issues, which is mind-bogglingly bad design (incidentally: also not a one-to-one map). If you don't live and breathe Python, and accidentally put a hyphen in a filename, God help you.

ICQ New 6 years ago

I have no idea how, but my 8 digit ICQ user id immediately springs to mind, 20 years later. The mind works in mysterious ways.

Thanks, I misspoke about fanning out to multiple streams. Dedicated stream consumers are still a hack. They're also expensive and have limitations as Lambda event sources. Kinesis is a service that needs to be used very carefully. It's riddled with landmines for cost and performance.

Regarding Dynamo: I'll echo plexicle's experience that switching to on-demand was an immense cost savings (these were tables that were not being used often, many of them in dev environments).