HNHacker News
TopNewBestAskShowJobs

mwpmaybe

907 karma · joined July 27, 2015

[ my public key: https://keybase.io/mwp; my proof: https://keybase.io/mwp/sigs/IgRJbBXIMpIG5ILaErmbmjkyttiEoe4ov_JqABTpuoQ ]
submissionscomments
mwpmaybe··on Regex character "$" doesn't mean "end-of-string"
> I do wonder though what's the highest number of different regex syntaxes I've ever encountered (perhaps written?) within a single line: bash, grep and sed are never not in a "hold my beer" mood!

Your comment is missing a trigger warning, lol. But seriously, this is one of my flags for "this should probably be a script, or an awk or perl one-liner."

mwpmaybe··on Regex character "$" doesn't mean "end-of-string"
As does git grep!
mwpmaybe··on Regex character "$" doesn't mean "end-of-string"
The same way people internalize punching data and instructions into stacks of cards, or internalize advanced mathematical notation. Just because things aren't written in plain english words doesn't mean they can't be internalized.
mwpmaybe··on Tick-killing pill shows promising results in human trial
They've been doing that with ivermectin in some parts of the world.
mwpmaybe··on Your GitHub pull request workflow is slowing everyone down
If you're interested in some of these concepts (i.e. smaller, more incremental PRs and stacked branches) but don't want to jump whole-hog into using a new product or tool, I highly recommend taking a look at `git rebase --update-refs`[0] to grease the wheels so to speak of implementing a similar approach with stock tooling. There's a great write-up on the feature and how it can help you here[1].

[0]: https://git-scm.com/docs/git-rebase#Documentation/git-rebase...

[1]: https://adamj.eu/tech/2022/10/15/how-to-rebase-stacked-git-b...

mwpmaybe··on Atuin – Magical shell history
You can adjust the size of the "window". I have my inline_height set to 20 and it's a bit less jarring when it pops up.
mwpmaybe··on Options for genuine ECC RAM on the desktop in (early) 2024
> I can confirm ECC works on it

"It works" as in it boots, or "it works" as in it checks and reports single-bit errors and reports double-bit errors?

What OS? If Linux, are you using rasdaemon? Does it confirm that the appropriate EDAC drivers are loaded and working?

Or is that data only available in the BMC's event log?

mwpmaybe··on Tell HN: ZFS silent data corruption bugfix – my research results
If my data is in ARC, why would I also want it to be in page cache?

L2ARC isn't typically recommended for many use-cases. Anyway, what's the conflict you're referencing?

mwpmaybe··on Apple M1 Pro Beats M3 Pro with Ableton, Logic and Pro Tools
Not unless you need more storage, or more RAM...
mwpmaybe··on Apple M1 Pro Beats M3 Pro with Ableton, Logic and Pro Tools
Sorry, but that's not correct. The fully-enabled M3 Pro has one more P-core. It's 5p+6e vs 6p+6e.
mwpmaybe··on The Linux kernel has been accidentally hardcoded to a maximum of 8 cores
It makes Ryzen 9 processers great for budget VFIO workstations because you can run an OS (either host and guest or two guests) on each CCD.
mwpmaybe··on The Linux kernel has been accidentally hardcoded to a maximum of 8 cores
It's amazing how much "optimization" you can achieve on modern systems by simply fencing process(es) to run within a cache region, or within a NUMA node. Even my homelab server with a P-core cluster and two E-cores clusters benefits massively from some simple cpusets to keep each process running within a cluster to mitigate context switching. Each P-cores has its own L2 cache, but E-core clusters share L2. Unfortunately all three clusters share a LLC, so there's only so much you can do.
mwpmaybe··on Hetzner has banned crypto mining and Chia farming
If they're just farming, sure, but plotting is extremely I/O intensive.
mwpmaybe··on JetBrains Mono: A free and open-source typeface for developers
Same but Mononoki.
mwpmaybe··on OpenSSH user enumeration
I got a chill up my spine when I read this but fortunately it looks like this is the default on Ubuntu 16.04 and 18.04 (at least).
mwpmaybe··on EmberConf 2018 keynote starting at 9:30 AM PT (or so)
Seems like they're sorting through some AV issues at the moment.
mwpmaybe··on PostgreSQL 10 Released
It only handles indexes, so it's just a start, but have you seen HypoPG[0] and Dexter[1]?

0. https://github.com/dalibo/hypopg

1. https://github.com/ankane/dexter

mwpmaybe··on An easter egg for one user: Luke Skywalker
Bruce Wayne... Bill Cutting... Darth Maul... the possibilities are endless!
mwpmaybe··on GUN 0.7.9 – 15M read/sec, 15K write/sec, 2K sync/sec MIT Licensed Graph Database
Last I checked I don't have access to "fix" how GitHub displays source code, although it looks like the maintainers can add an .editorconfig to their project to address this particular case.
mwpmaybe··on GUN 0.7.9 – 15M read/sec, 15K write/sec, 2K sync/sec MIT Licensed Graph Database
For god's sake, man, run a linter on this thing. The mixing of spaces and tabs alone makes the code embarrassingly difficult to read.

http://imgur.com/a/XlSQD

mwpmaybe··on Why MLB hitters are suddenly obsessed with launch angles
Dead/live ball was probably more consequential.
mwpmaybe··on Connecting Kubernetes services with linkerd
> Requiring long continuations for reasonable image sizes is not simple.

We're just arguing semantics at this point. I mean "simple" like Assembler is simple: rudimentary instructions requiring a certain amount of understanding and sophistication to wield correctly. Not "simple" as in easy, intuitive, and footgun-free.

mwpmaybe··on Connecting Kubernetes services with linkerd
> Are these signed with some sort of crypto and known-good keys, similar to package signing keys attached to a package repo, or are we taking Docker's word for it?

I'm not sure. You can find more information about them here[0].

> Is there a way to filter to "official" repositories only, or tell Docker to only fetch from a whitelist of repositories (so that private ones can be included)?

I'm not sure about this either. It looks like Rancher and OpenShift support whitelisting registries, so this may have to be handled at a higher level. I believe you can always tell whether something being pulled from Docker Hub is official because it won't have a leading path component indicating the contributor (e.g. mwpmaybe/ruby:2.4-alpine is a non-official image whereas ruby:2.4-alpine is official).

> the habit of casually importing images is still rampant

This is just my two cents, but that seems like a policy problem, not a technology problem. Enforce a rule for your project/team/organization that containers have to use an official image, or a private image based on an official image. I do agree that a simple per-registry namespace whitelist would be a nice feature to have in dockerd.

> a) still derived from some other upstream Dockerfile (must this file also be validated by Docker to qualify as an "official repo"?)

I believe official images must be based on other official images.

> b) a good example of the "brilliance" of the Dockerfile format

I don't think it was ever meant to be brilliant, just simple. I'm definitely looking forward to the next generation of Dockerfile formats that ameliorate this issue and many others.

> Is this "transparency" only the case on "official" images? As far as I can see Docker Hub just stores the pushed binary blob and not the Dockerfile required to build it, so if you're not picking your image base carefully, there may not be a way to verify its contents (short of introspecting the image).

I believe so. This is a complaint I have with Docker Hub. I personally feel that the Dockerfiles used to create public images should always be published along with the images.

0. https://docs.docker.com/docker-hub/official_repos/

mwpmaybe··on Connecting Kubernetes services with linkerd
> If you want Ruby, the habit is to go find someone's "pre-configured" alpine-ruby image (for instance)

I think the habit for most folks (and the best practice) is to use one of the "official" Ruby images[0]. Similar official repositories exist for many server daemons, language runtimes, and command-line tools[1].

> My understanding is that most public image repositories are unmoderated.

To the best of my understanding, the official images are maintained by Docker folks, or people associated with the upstream projects, or some mixture of both.

> most Dockerfiles are built on opaque images registered with an image registry

Far from opaque, the official images are typically well-documented, and the source code is available from the various Git repositories linked to from the library.

So yes, while it's true there are a lot of public images out there with questionable provenance, there's usually a solid, well-supported foundation to base your own images on.

0. https://hub.docker.com/_/ruby/

1. https://github.com/docker-library/official-images/tree/maste...

mwpmaybe··on Ask HN: What are pros and cons of PostgreSQL and MySQL?
It's useful for comparing full stacks, but the queries used are very basic, and most of the update benchmarks don't use transactions or locking.
mwpmaybe··on EmberConf 2017: State of the Union
Upgrading from 1.13 to 2.x isn't terribly challenging. (1.12 to 1.13 was much worse.) What's holding you back?
mwpmaybe··on Async JavaScript Generators
To the best of my understanding, yes, it's pretty well tied to Ember. Other options (such as redux-saga mentioned in a sibling comment) may be a better fit.
mwpmaybe··on EmberConf 2017: State of the Union
A great read that recaps the history of Ember, what helped it stand out from the crowd in the past, and what worked and what didn't, segueing into the introduction of Glimmer.js, a standalone UI component library extracted from Ember 2.10. Congrats to Tom, Yehuda, Godfrey, and the rest of the Ember Core Team! Looking forward to another productive year.
mwpmaybe··on One Line of Code That Compromises Your Server
How long would it have taken to crack the secret on that same setup if HMAC-SHA256 had been used instead?

What's the recommended minimum number of bytes for an HMAC secret when using SHA1? SHA256?

mwpmaybe··on One Line of Code That Compromises Your Server
Mine is Staff Sergeant Max Fightmaster, US Army.

I'm also found of Rick Wagoner, former CEO of GM, and I often daydream of US Senator Sheldon Whitehouse becoming President.

← PreviousPage 4 of 12Next →