Better HN
topnewbestaskshowjobs
Log inSign up

Sharparam

115 karma · joined Feb 9, 2014 (12y ago) · 78 submissions

[ my public key: https://keybase.io/sharparam; my proof: https://keybase.io/sharparam/sigs/LXCEKHsAoCq_rDXo3Dk0dWyFI-VaRTznJsXURtxwpKY ]

https://keyoxide.org/aspe:keyoxide.org:UIIOZM7JBV3XFGM2OVPG4L3B4Q

Submissions

comment 3y ago · link · parent

The thing is that there's a lot of valuable information that I don't think we should just delete like that.

When you search about a Neovim issue for example, often the solution is in an old Reddit thread. When you delete that, it will be gone forever.

comment 3y ago · link · parent

Someone should notify all the websites using Rails that their framework apparently no longer exists.

comment 4y ago · link · parent

I think I might be quite warm naturally but those thinner caps that fit below the helmet work just fine for me when I bike in cold Sweden in the winter. -10 °C and below.

The helmet itself gives some wind protection which helps as well I think.

comment 4y ago · link · parent

Instead of typing the whole path, you can also use `command` or a backslash to bypass aliases

E.g.:

    alias jsonquery='command jq'

comment 4y ago · link · parent

Never transmit onto the internet anything that would ruin your life if it became public, that's my motto. Regardless of how safe the transmission is in theory.

comment 4y ago · link · parent

Not a Mac user, but on my Linux system i require password + yubikey (U2F/WebAuthN) for logging in, but then fingerprint is sufficient for sudo (or U2F alone on my desktop which doesn't have a fingerprint reader).

I typically lock my system when away from it so having fingerprint sufficient for sudo doesn't seem so bad.

comment 4y ago · link · parent

What do you mean by PCGamingWiki being a "copycat site"? Copying who? It's always the go-to site I use to check various technical details on games and any tricks that can be done to improve shortcomings of especially older games.

comment 4y ago · link · parent

How is navigating millions of comments in a paginated thread any better? That's more than 25 000 pages.

comment 4y ago · link · parent

If only there was some kind of international standard for date formatting we could use to get around that issue...

comment 4y ago · link · parent

You can set up an Editorconfig[1] file to automatically fix trailing whitespace and insert the final newline, among other things. Most editors have support for it (either built-in or in a plugin).

It's a lifesaver when you care more about formatting than any of your coworkers and can set up something that handles it for them.

Additionally, configuring editors/IDEs to format code when the file is saved is very useful to enforce formatting rules.

[1]: https://editorconfig.org/

comment 4y ago · link · parent

> Except that the same coworkers are wont to include trailing whitespace or omit the final newline

Editorconfig[1] makes this a non-issue.

[1]: https://editorconfig.org/

comment 4y ago · link · parent

Abusing HTTP methods like this is something ElasticSearch does on some of their APIs. This is annoying because spec-compliant tools don't always play nice with them.

For example: ElasticSearch can take a body on some GET requests, but many tools will not let you do this because a GET request should not have a body.

comment 4y ago · link · parent

That isn't Git installing things though, that is third-party Git distributions bundling things along with Git.

comment 4y ago · link · parent

For me, it's ShareX I miss the most. Flameshot is a good contender, when the Wayland support gets better.

comment 4y ago · link · parent

But then someone with your key just has direct access?

comment 4y ago · link · parent

You also have to remember to choose the correct region, as their free offerings are not available everywhere (and they won't tell you which regions have it available before locking you into one).

comment 4y ago · link · parent

I tried the FIDO2 way of authenticating to SSH when I finally had a Linux system with new enough versions of OpenSSH et.c in the repos.

It works quite nicely, but the PIN has to be entered every time I auth to SSH. This may be a desirable feature to some, but I prefer the GPG way of the PIN being cached until the key is removed from the system.

(This could possibly be a shortcoming of KWallet, as it would pop up the dialog asking for the PIN, but checking the "remember this password" would achieve absolutely nothing, and besides, I wouldn't want to save it permanently, which that checkbox would otherwise do.)

comment 4y ago · link · parent

If anyone else finds themselves in my situation re: Spectacle, I put together this script which may or may not work (I've only tested it by dry-running it so far): https://github.com/Sharparam/dotfiles/blob/master/bin/sharps...

comment 4y ago · link · parent

What WM and screenshot tool are you using?

I'm using Plasma on Wayland and there doesn't seem to be any screenshot tool that works properly.

Grim only works on Sway. Flameshot's GUI mode doesn't recognize the secondary screen. Spectacle fails to copy the screenshot to clipboard when running in background mode. KSnip doesn't have a region select mode. Shutter only works in X.

Out of Spectacle and Flameshot, Spectacle is more responsive and works across both screens. I'm thinking I can work around the clipboard issue by having it save to a temporary file, and use `inotifywait` to monitor that file and copy to clipboard with `wl-copy`. I wish I wouldn't have to use such workarounds though.

comment 4y ago · link · parent

Yeah, before the new DateOnly (and TimeOnly) types, there was no built-in way in C# to specify a plain date. NodaTime[1] (a popular third-party library for datetime operations) did have such types though.

[1]: https://nodatime.org/

comment 4y ago · link · parent

It seems the User-Agent workaround solved it for some people, but not for others. Definitely weird.

comment 4y ago · link · parent

Spoofing the user-agent to look like Chrome made reddit work for me when using Firefox.

comment 4y ago · link · parent

No, updating versions should require an explicit `update` command of some sort. The NPM commands should really just be renamed:

- `npm install` should be renamed to `npm upgrade`

- `npm ci` should be renamed to `npm install`

comment 6y ago · link · parent

You have explicit offline modes in Soulsborne. What are you talking about? There is nothing forced about the online modes of Soulsborne games.

comment 6y ago · link · parent

Viewing this page with Dark Reader enabled makes for quite a harrowing experience...

https://i.imgur.com/AUTXPfW.png

comment 6y ago · link · parent

>But I've seen some hang-to-dry things that could be used over a bathtub.

I have this in my apartment (Sweden). After I've done laundry I hang my clothes to dry over the bathtub, then move them onto a separate drying rack in the morning (so I have space to shower), and by that time the clothes have dried enough so there's no risk of dripping on the floor.

comment 6y ago · link · parent

Why shouldn't you be able to dismiss complaints about breaking changes with "the project uses SemVer"? That's the point of using semantic versioning in the first place.

If there are breaking changes, the major version is increased. Consumers upgrading to a new major version and not expecting breaking changes strikes me as irresponsible.

comment 7y ago · link · parent

The comment it responded to wasn't exactly friendly either.

comment 7y ago · link · parent

Since this is describing the commit and what was done and why, the commit seems like a better place.

In tools like GitHub, if you make a PR with this commit, it will also automatically put the text in the PR description.

I would much prefer this at work over what I usually see with inconsistent commit message styles and not explaining properly what was done, and not following the recommended max length per line.

comment 7y ago · link · parent

And London is the #1 city as well. Is that person just trying to throw shade on Europe?
123