HNHacker News
TopNewBestAskShowJobs

SpaceNugget

286 karma · joined July 24, 2017

submissionscomments
SpaceNugget··on GitMounter: A FUSE filesystem for Git repositories
Somewhat pedantic but relevant. A branch is a single commit. There aren't different commits _in_ a branch to checkout.

Regardless, if you are asking whether you can check out commit that doesn't have a branch pointing at it, yes you can.

You can have a work tree for every commit in your repository if you like.

SpaceNugget··on Show HN: Halloween game to show off my new Terminal
I'm not sure how you are supposed to search with cmd+p, cmd+p just opens the print dialogue? I just got the password from the dev tools. Cool game.
SpaceNugget··on Two photographers captured the same millisecond in time (2018)
That's not an example of a distributed system, so it doesn't really clear up whatever the GP was trying to say about time in distributed systems at small scales.

But even if it was this is nonsensical. The visual content of a photo is generally not what is used to determine the moment in time when it was captured. There's metadata in the image format that specifies when the photo was taken.

There are pictures taken at almost the same moment in time all the time around the world, and there are many pictures taken of the same place, what's special about the situation here is that both of those things happened, and the subject isn't hyper famous, and it isn't a static object, so the chances of it happening were very low.

SpaceNugget··on QtWayland 6.6 Brings Robustness Through Compositor Handoffs
https://flatpak.github.io/xdg-desktop-portal/#gdbus-org.free...

Without knowing much about dbus, or freedesktop I was able to make it work on a lazy afternoon. And it worked for me in wlroots and on gnome, I am assuming kde also implements it. How were you trying to do it that it took so long?

SpaceNugget··on Enhance Rust errors with file and line details
Not the person who posted the snippet. Yea, that should work. It tracks the position of the line that calls from() on the other error to convert it into MyError, which is what the ? operator will expand into.
SpaceNugget··on Auditory illusions with examples from Daft Punk
I don't hear radio stations, you might want to get your antenna checked. But I get the same sounds when I am laying in bed before I fall asleep and they also coincide with twitches or flinches and sometimes visual flashes.
SpaceNugget··on YouTube tests blocking videos unless you disable ad blockers
I almost fell for a scam yesterday from an instagram ad. There was an ad for fun printed workout shorts for only €4. I added a couple different prints and was about to pay when I noticed the URL was neehd dot com and the site title was some other random word. I couldn't find any reference to either name online and went back to instagram. The VERY NEXT AD was for an identical site with a different random 5 letter url. I reported both ads and now neehd com is "no longer available". Very glad I didn't put any payment details into the site. If they employ people to vet ads full time they should have easily been able to catch those ads before it was shown to a user. I have seen ads for those shorts non stop for a few weeks before I finally tapped the ad to see how much they were.
SpaceNugget··on Difftastic, the fantastic diff
I knocked this together because that sounds like a kind of handy thing to have generally. The UX is _pretty rough_ to say the least at the moment. https://github.com/Tacklebox/cursh

You can use it like `cursh difftastic {{1}} {{2}}` and it will prompt you for each {{#}} to hit enter once you have the thing you want in your clipboard and it passes the content to the command as files

SpaceNugget··on Write HTML Right
Likely the author was tying granny knots instead of slipped/bowed reef knots

If your first cross is left over right you need to make your second cross right over left, or vice versa. I found an image showing the difference for the un-slipped version, but it's the same with a bow: http://www.tikalon.com/blog/2020/square_granny_knots.png

Granny knots untie themselves and the bow will end up perpendicular to the knot instead of parallel.

SpaceNugget··on Valve Steam Deck
It's gone way past that. Some anticheat software runs in the kernel now. They are doing crazy things like looking for PCIe devices trying to DMA game memory.

https://github.com/ufrisk/pcileech/blob/master/readme.md#har...

SpaceNugget··on Kolyma highway in Yakutia, also known as the Road of Bones, is on fire
That's not in the US. The Northwest Territories are in Canada. The largest fire in the US on that list is the 2020 California wildfire at ~6,900 square miles.
SpaceNugget··on Why Is It OK to Be Mean to the Ugly?
Most people _know_ that it's "Not OK" to be mean to anyone. Doesn't stop people from being mean unfortunately.
SpaceNugget··on Untapped potential in Rust's type system
That isn't a single line macro. Did you mean a single macro crate? Most crates in rust have more than a single macro/function, but some do. Regardless, it's not at all related to how "robust" or not the language ecosystem is.
SpaceNugget··on Helix: a post-modern modal text editor
You can use the mouse to select things in the terminal. In vim/neovim `:set mouse=a` and you can scroll around, select things and move the cursor just like you can in a regular GUI editor.
SpaceNugget··on Neovim 0.5 is overpowering
Vim uses text objects for that kind of thing, t being the tag text object. `dat` deletes the JSX tag enclosing the cursor, `cit` deletes the contents of the tag and leaves you in insert mode, etc. Matchit (included in neovim) can also be configured to have % match tags as well as the default brackets/parens. LSP text objects are also available for more language specific structural editing.
SpaceNugget··on Let’s fix font size
would that not just be `%`?
SpaceNugget··on Pangolin – Mobile AMD laptop with Ryzen CPU and Radeon graphics
No it doesn't.

USB Type-C is a connector shape, used by both USB and Thunderbolt. So people saying they want thunderbolt and you saying they should want USB Type-C doesn't make much sense.

Imagine someone in 2001 saying they are disappointed with new computers being released without USB 2.0 (i.e. still using USB 1.1), and you replying that things should be based on Type-A. Both USB 1.1 and USB 2.0 used Type-A connectors. The shape is unrelated to the protocol/speed/etc.

SpaceNugget··on A Vim Guide for Advanced Users
A fairly easy way to do it is either

c()^[P or c(^r")

The first leaves you in normal mode the second in insert mode. I recommend vim-surround by tpope though.

SpaceNugget··on The Framework Laptop
Pretty much everything clickable gets tagged. Buttons, text inputs, links, etc. If what you want to click on has a word in it, you can press '/' and type the word then hit enter to click it so that would probably be what I would do if there was ever a missing tag. That's also how you can highlight text. This is for vimium at least.
SpaceNugget··on The Framework Laptop
You just look at the thing you want to click and press F then type the letters that appear on the tag.

EDIT: Here's an extremely low quality screencast of me making this comment

https://imgur.com/qpppveP

SpaceNugget··on Effect of exercise training for five years on all cause mortality
2.9% seems like a significat risk reduction to me. HIIT results in a 1.7% risk REDUCTION and MICT results in a 1.2% risk INCREASE.
SpaceNugget··on Full-Bleed Layout Using CSS Grid
ch is based on the width of a "0" character, em is based on the font size, which is the height of the character. for setting widths of things that contain text ch makes more sense. For padding, spacing, font sizes, inline symbols, and that kind of thing, em makes more sense.
SpaceNugget··on Tell HN: Never search for domains on Godaddy.com
I currently use namecheap. Ironically it's actually one of their biggest mistakes that convinced me to stay with them. When namecheap rolled out its custom 2fa authenticator app thing I started to look for alternatives but stuck it out long enough for them to switch to u2f and reading the 'we took the wrong turn' kind of explanation post they made was enough for me to have a bit of faith that they listen to their users AND act on it.
SpaceNugget··on New inline assembly syntax available in Rust nightly
"don't break the web" type issues are not really applicable to releases of precompiled languages or applications that ship their own interpreters and don't load third party content.

Let's say you are browsing my website. Suddenly, your browser gets an update and prompts you to re-open the window. My site no longer displays correctly due to a backward incompatible change.

My site is the web and your browser broke it.

If you use a native app or service I write in rust 1.35 or whatever and there is a backwards incompatible change in a new version of rust it has no impact on your use of that app at all.

SpaceNugget··on U.S. field hospitals stand down, most without treating any Covid-19 patients
The nyc.gov link magicalist posted reports:

11460 confirmed covid-19 deaths 5213 probable but unconfirmed covid 19 deaths 10964 not know to be probable and not confirmed deaths (all non-covid deaths)

Which adds up to 27637 total deaths.

Your graph shows ~ 20000 total deaths. That's significantly different.

Also, the sources for the graph you posted are:

1. https://gis.cdc.gov/grasp/fluview/mortality.html which as far as I can get it to show, only counts deaths from pneumonia regardless of cause. So I really don't understand why they listed that as a source for the graph as that information isn't displayed.

2. covidtracking.com Which could be the source of their numbers for covid deaths but that leaves no source for their totals.

SpaceNugget··on Twitter Direct Message Caching and Firefox
I am fairly confident that the article is not trying to imply that Chrome/Safari are NOT standards compliant. The author seems to be trying to heavily emphasize that this is not a Firefox bug, and that Firefox can legitimately do this while being standards compliant.

I feel like the author was anticipating a lot of people blaming Firefox for this incident, and is attempting to shut those responses before they get made.

I think that trying to write to the responses you expect from your audience unfortunately ends up with these kinds of miscommunications of intention more often than not.

SpaceNugget··on Problems with TypeScript
Kind of, you can't have your cake and eat it too.

When it comes to typing systems you have to pick 2: Depth, Mutability, Soundness

SpaceNugget··on Adware Is Malicious, and It Uses Advanced Techniques to Infect
No you are not. the "bug" is that the download page has a link to an http mirror.

If there was a bug where the ubuntu website could force your browser to display https:// and serve content over http without a warning you would have most definitely heard about it before now.

As to why most mirrors serve over http, it's for the same reasons presented here: https://whydoesaptnotusehttps.com/

SpaceNugget··on A well-known URL for changing passwords
I'm not sure if I misunderstand what you are getting at but if you are talking about the .well-known/change-password thing that in this post, its just a well known _redirect_ to the regular change password page for that particular website, you cant PUT to it, it requires a human to navigate the page and fill out the password change form.

Unfortunately its not a well-known api endpoint.

SpaceNugget··on Show HN: Serverless boilerplate to get started quickly
I think you should just have your boilerplate set up middy with your middleware, that is the point of a boilerplate project after all.

You are depending on your own 'handly' project 'based on' middy but its really just middy without the option to pick what middlewares you want.

your readme for handly says to

  import handly
  const handler = /* a handler */
  export handly(handler)
where handly is essentially

  import middy
  const handly = handler => middy(handler).use(/*a bunch of middleware*/
  export handly
I don't speak for the middy project and I don't know how long you have been developer so I don't want to discourage you too much, but that seemed a little off.

unrelated: I tried to check out your website and got a certificate error.

← PreviousPage 4 of 5Next →