Hacker Newsnew | past | comments | ask | show | jobs | submit | llimllib's commentslogin

some people don't want to give clicks to X, no we're not done with it. It doesn't harm you does it?

[flagged]


So the question is, what does a commercial website gain from people clicking on links to that website? I’m not even sure where to start to explain that one if one has to ask.

I use a little shell alias that drops me into duckdb with the file loaded into a table for interactive querying:

https://github.com/llimllib/personal_code/blob/c1a74b1b9527f...


For go, it's available in /x/sys/unix: https://pkg.go.dev/golang.org/x/sys/unix#MemfdSecret


the lack of a `gq` equivalent to reflow a paragraph, which julia mentioned, was the nail in the coffin for me when I tried it.

It's a nice project though, I just use that feature constantly


in kakoune, this is `<a-i>p<a-j>|reflow<ret>`. which is obviously not as simple as `gq`, but you can rebind this, add things like auto-reflow as you type, etc., rather trivially, and rebind them (and a lot of these types of tools come preloaded as bindable commands). it's some work to set up this type of thing (and it makes perfect sense to use e.g. vim to not need to do that), but i like the composable design, where i can write some configuration to hook a shell command to a bind, rather than fork and PR changes (e.g. a c++ reflow function), and the config files can be written and PRd into the default distribution as well, so the user experience would be equivalent.


> i can write some configuration to hook a shell command to a bind

is `reflow` a binary that comes with kakoune or something?


apologies, i probably should've written `fmt` there (which does the same thing). `reflow` is a `fmt` clone i wrote, without the knowledge `fmt` existed --- that was a bit embarrassing for a friend to eventually point out, that my idea was already in coreutils :D i use `fmt` now because i figure it's far better tested (i think it's posix), but i still think of the action as a "reflow", and that's also the term helix uses.


'|' is the command to pipe a selection through a shell command and replace it with the output, so I guess it's just a regular command on their system. You could use any other reflow or reformatting program you had handy. Kakoune in particular is really serious about delegating everything possible to the system.


I’m curious about the particular program though! On my Mac it doesn’t exist and I didn’t find it in a quick search


Honestly, it might have just been a placeholder name for an arbitrary formatter. I vaguely remember old-school unix had a command for that, but none of them seem to be named exactly "reflow".


node/npm operations are vastly slower for me on docker with a linux vm, I have tested this before.

APFS does suck though, don't get me wrong

edit: I just tested, 36s for an `npm i` on a decently large project I have locally, 46s with an overlay fs


Can also confirm. We’ve had some client projects that had npm inside of containers and those were horribly slow on macOS.


Not an overlay fs, a VM writing to its own virtual block device.


I should have been more specific, I tested with:

`rm -rf node_modules && docker run --rm -ti -v $PWD:/app node:20.19.0-alpine3.20 sh -c "cd /app && time npm i"`

So an overlay FS (if I'm understanding you/the OP correctly), not the VM's disk


That water's _starchier_ but it's not a myth. Here's Kenji on it: https://www.seriouseats.com/how-to-cook-pasta-salt-water-boi...

(I get what you're saying, spiritually, your pasta water from your giant pot of one box of pasta isn't gonna do much to thicken your sauce. But it's not a myth, just a matter of degree)


link to the zip code data is broken too; https://public.opendatasoft.com/explore/assets/us-zip-code-l... 404s

Even when I worked for Medicare I couldn't get the damned post office to give us accurate zip code data! It's terrible geodata but also almost everybody remembers it and most zip codes map to one county, so it was the best UI we found for getting a general area for where a person lived.


Except when it doesn't. 60447 is in three counties in Illinois. Which causes confusion when laws/regulations are applied at a county level.


yeah! There are like 12 three-county zip codes, some are really fun, like places where a boat delivers the mail and goes to multiple states along the lake. And some zips don't refer to geographical areas at all, and others are military bases.

It was still the best UI option despite that - if you entered a ZIP that corresponded to multiple states/counties we'd pop up a second box that asked you which you lived in, but for 99% of people it was all we needed


This CL documents the switch of UserConfigDir from ~/Library/Preferences to ~/Library/Application Support: https://go-review.googlesource.com/c/go/+/181177

From my perspective it makes sense as a default for go, which may be used to make either apps (things with bundle identifiers that go in /Applications) or CLI applications (which I wish would use ~/.config, but I understand that that's just my preference)


I expect _applications_ to put their config there, as the author says; something that lives in /Applications or ~/Applications and has a bundle specifier.

I wish I expected CLI programs to put their config in ~/.config, but I do actually expect them to just dump them into ~ annoyingly


We have different expectations I guess. I think of CLI as applications, even though they aren't "Mac Apps". I don't see what is gained applications putting their files in different places based on how I interact with them.


Pomax's primer on bézier curves is the reference they used: https://pomax.github.io/bezierinfo/

They do a pretty good job introducing the mathematics gently I think. But maybe work backwards from whatever you don't understand?


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: