HNHacker News
TopNewBestAskShowJobs

Sharparam

115 karma · joined February 9, 2014

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

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

submissionscomments
Sharparam··on PhpBB 3.3.10
Someone should notify all the websites using Rails that their framework apparently no longer exists.
Sharparam··on Mandatory helmet laws make cyclists less safe
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.

Sharparam··on JC – JSONifies the output of many CLI tools
Instead of typing the whole path, you can also use `command` or a backslash to bypass aliases

E.g.:

    alias jsonquery='command jq'
Sharparam··on The Framework Laptop Chromebook Edition
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.
Sharparam··on Use TouchID to Authenticate Sudo on macOS
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.

Sharparam··on Slack’s free plan change is causing an exodus
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.
Sharparam··on Slack’s free plan change is causing an exodus
How is navigating millions of comments in a paginated thread any better? That's more than 25 000 pages.
Sharparam··on How to Store an SSH Key on a Yubikey
If only there was some kind of international standard for date formatting we could use to get around that issue...
Sharparam··on Intelligent Indentation, Seriously
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/

Sharparam··on Intelligent Indentation, Seriously
> 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/

Sharparam··on What Is JSON Patch?
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.

Sharparam··on Git security vulnerability announced
That isn't Git installing things though, that is third-party Git distributions bundling things along with Git.
Sharparam··on NotepadNext: A cross-platform reimplementation of Notepad++
For me, it's ShareX I miss the most. Flameshot is a good contender, when the Wayland support gets better.
Sharparam··on If you’re not using SSH certificates you’re doing SSH wrong (2019)
But then someone with your key just has direct access?
Sharparam··on I don't need a VPS anymore
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).
Sharparam··on If you’re not using SSH certificates you’re doing SSH wrong (2019)
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.)

Sharparam··on Tell HN: Gnome on Wayland Is Amazing
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...
Sharparam··on Tell HN: Gnome on Wayland Is Amazing
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.

Sharparam··on Please put units in names
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/

Sharparam··on Tell HN: Reddit was showing “Blocked” when accessed with Firefox
It seems the User-Agent workaround solved it for some people, but not for others. Definitely weird.
Sharparam··on Tell HN: Reddit was showing “Blocked” when accessed with Firefox
Spoofing the user-agent to look like Chrome made reddit work for me when using Firefox.
Sharparam··on Dev corrupts NPM libs 'colors' and 'faker', breaking thousands of apps
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`

Sharparam··on We need more video games that are social platforms first, games second
You have explicit offline modes in Soulsborne. What are you talking about? There is nothing forced about the online modes of Soulsborne games.
Sharparam··on The Simpsons in CSS
Viewing this page with Dark Reader enabled makes for quite a harrowing experience...

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

Sharparam··on Why Germans won’t heat their homes even with free electricity?
>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.

Sharparam··on The Next Decade of .NET Open Source
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.

Sharparam··on My Favourite Git Commit
The comment it responded to wasn't exactly friendly either.
Sharparam··on My Favourite Git Commit
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.

Sharparam··on A rise in vegetarian options leads customers to embrace meat-free meals
And London is the #1 city as well. Is that person just trying to throw shade on Europe?
Sharparam··on A rise in vegetarian options leads customers to embrace meat-free meals
What countries? Remember that Europe consists of many countries and the cultures/cuisine differ greatly.

In Sweden we have a pretty good selection of vegetarian options, at least according to my vegetarian friend.

← PreviousPage 2 of 3Next →