HNHacker News
TopNewBestAskShowJobs

accoil

202 karma · joined October 10, 2017

submissionscomments
accoil··on Random bit-flip invalidates certificate transparency log – again?
Isn't the restart there because explorer is also the desktop? If it was just killed, you'd have to know how to launch shutdown.exe from the task manager etc.
accoil··on Getting ready to ship 13th Gen and announcing power saving Expansion Cards
Have you tried bumping the sensitivity? I found that the trackpoint made more sense when it was a light touch to move the pointer.
accoil··on Microsoft Edge is leaking the sites you visit to Bing
If you're using Firefox the keyword for controlling that is 'frecency'. Adjusting the values there in about:config will let you boost history and bookmarks.
accoil··on Windows 11’s taskbar is finally getting labels and never combine app icons
Oh, that's nice. explorer.exe crashing and taking out the taskbar is common enough for me to just sigh when it happens (and then launch the task manager via ctrl+shift+esc). I'm not sure if that's a Windows issue, or corporate malware issue, but maybe that'd mitigate it.
accoil··on Show HN: Gat – cat alternative written in Go
What would you expect "wall ~/documents" to do?

I don't really find that command names reliably relate to words. Offhand none of these would do what I expect: curl, top, git, gawk. less is a more featureful more, and who knows what an xxd is. Certainly not a dead four eyed monster with its tongue hanging out.

stab is probably Send To A Buffer, just like grep is Global Regular Expression Print

accoil··on The time when Joshua Bell went busking in the subway, and no-one noticed (2022)
Tenor sax sits between baritone and alto
accoil··on How I Use My Mouse
Interesting, I probably need to learn jedi jump. I do feel like there's a class of nagivation I don't use. What if I wanted to select from your message (with the cursor at the start of it):

> again, another 2-3 key-presses

I guess atm, I would do `/again<enter>nvi(`. That's based off the fact that I don't think "again" shows up much in the text, and I can jump quickly between instances via `n`. Then once I'm there I realise that the rest in in parens, so I go for `vi(`. In retrospect I should have searched for "again," as the comma is even more specific.

It's funny: "Another benefit is precision. I don't need to pay a lot of attention to the mouse pointer's position." is close to an argument I'd make for the mouse. I think that might be because when I'm thinking, I idle with the mouse, higlighting things that look interesting to me etc. So when I want to move forwards, it's pretty close where I want to be. If I had to select something via keyboard I'd have to look for distinct markers to work out if I can do something like `vi(`, whereas the mouse lets me do fuzzy visual matching (acme would. This is only for mouse though, my touchpad/trackpoint is less precise.

My point was not that I think the mouse is better then the keyboard. My point was that I think the mouse tends towards a fuzzier exploratory mode, and the keyboard tends towards more focused execution modes. Even if you like one mode more, there's no reason not to improve the other.

Now after writing all this, I'm not sure that's correct as I can think of other exploratory keyboard UIs that work (e.g Norton Commander style file managers).

I do still think that there is no reason not to improve your mouse experience, a nd that it does have untapped potential. Acme editor has this thing where you can just right click a word, and it'd jump to the next instance of that word. No selection needed. So if you're reading some code and see an interesting variable you could right click to see where it's next used. This of course assumes you have your hand on a mouse already, which in the case of Acme you probably do as it has a heavy mouse focus.

Hover was a terrible example though. I hate having things appear during hover. I was just trying to think through what the least interaction would be, and you're quite right that if you can focus via keyboard easy it'd also be easy to get hover.

----

A weird thought came to me during this: what if the vimperator/vimium/surfingkeys link selector was ported to the mouse? You could hold down the left mouse button, and this would label all the links with numbers, and highlight number 1 (or 0 if you prefer). Then when you spun the mousewheel down it'd move to the next one. Spinning it up would go to the previous link. Finally when you released the left mouse button, it'd open the selected link.

So how it'd play out is you'd hold left, see you want link 11, spin the mousewheel that many times, and then release. I suspect you'd learn how far the numbers feel over time, so it'd get fairly precise (and you can adjust by spinning back).

No idea how practical it'd be.

accoil··on How I Use My Mouse
Surfingkeys looks pretty similar (though I have yet to try it); I'm just describing the experience poorly. You press f, little labels show up on the links (I called this "listing the links"), and you then press the keys on the label (the "select from" part). Probably me using the open in new tab command F (as opposed to open in current tab command f) did not help.

Not saying it's a bad experience. I find it's quite nice if I'm currently looking at the correct link so I can get the letters from the label easily.

It's just a different paradigm. If I didn't know what a link was, I wouldn't know that I could press f to open the link selection. This means I can't select a link unless I had a "select unknown" button, and then use that to inspect it.

Select unknown can be done with the keyboard: Emacs' embark[^1] is a good example of it. You use search/arrows to go to an interesting piece of text (e.g something underlined), run embark, and it lists all the potential things you can do with it (e.g open in external browser, or download an archived copy). It's just that keyboard UIs do not tend to be geared around it.

That though is the sort of thing the mouse is good at: you see something interesting, you prod it to see what you can do with it.

Say you saw a phrase you didn't understand in the browser. Currently, with a mouse you'd highlight it, right click, and then select the search with search engine option. With keyboard you'd open the search engine, and enter the phrase. Both get you to the same place.

Now if we extend the mouse to have a "I would like to know idioms better" option. You could just select the phrase, right click, and a definition could be there waiting for you next to the context menu. It could even be there on hover.

With the keyboard though, you'd generally run an "I would like to know idioms better" command. This would then ask you which idiom on the page would you like to understand. You then select it, and presto. A faster version could potentially have idiom meanings show up the moment you ran the command by a similar hover effect (or just listing all discovered idioms in a popup etc).

One of the differences here though is that from the mouse you still have a list of actions on the text open, so maybe if you liked the definition you could then copy the phrase.

This certainly could be done from the keyboard UI: just have it list other applicable commands that could be run on the selection generated from the command that searched for phrases. No reason why it could not then spawn something asking if you wanted to "(c)opy, c(u)t" etc like the context menu.

But that is only visible because there was a phrase you didn't know. If you didn't know that there was a command to define phrases, you wouldn't have found out. In theory you could have commands register everything they could act on, and then have another command let the user select an interactive thing, and list the commands that registered for it. I think that would be overwhelming though, as something like a dictionary command would register for every word.

Ultimately the mouse is just different then the keyboard, and I think that there is interesting potential in having a tool that can interrogate arbitrary things on your screen.

[1]: https://github.com/oantolin/embark

accoil··on How I Use My Mouse
I dunno. As another person who's also used tiling WMs for years, I find the mouse to operate in a different model, and I wish it was played with more. Like how in Acme you could select arbitary text, press the middle mouse button and it'd be sent off to the appropriate handler.

Keyboard UI tends to be verb first. E.g in Vimium if you want to open a link in a new tab you press F to start the "Open in new tab" command. Then it lists the links you can open in a new tab for you to select from.

Whereas mouse UI tends to be noun first. E.g you see a link, and right click it to list the commands. You then select the "Open in new tab" command.

I think the reason for the difference is that the mouse can reach an arbitrary location easier than a keyboard, but once it's there it has much less options to continue.

For me, this means that the mouse is more exploratory, and the keyboard is more task oriented. If I'm toying around with ideas the mouse works better, but if I have something specific I want to do you can't beat the keyboard.

Writing this I've realised that I could repurpose the underutilised side buttons on my mouse as modifiers :p Hold top thumb button: press left click to go previous window, right to go next; hold bottom thumb: press left to go to previous workspace, right to go to next. Could have top thumb + mouse wheel for volume (and middle click for mute). I guess bottom middle could open a radial menu of commonly used apps/commands :)

accoil··on Show HN: boxxy – Control where Linux programs put files, without symlinks
Oh, it's really not anything impressive. I've just decided to treat %USERPROFILE% as for machine generated files only. I then have a new directory on C: where I put my documents/projects/etc (all in appropriate sub folders).

My config files are a bit more interesting, and are stored in a chezmoi[^1] repo. If I tinker with a program enough, I generally move its config into there so I can keep track of it and the changes (to make this easier I have a bat file in shell:sendto to add files/folders to chezmoi).

Thinking about this, I should probably move the chezmoi repo into my personal directory, and symlink it back to it's normal location.

[1]: https://www.chezmoi.io/

accoil··on Show HN: boxxy – Control where Linux programs put files, without symlinks
Yeah. It annoys me to no end that the new powershell didn't take the opportunity to move the config out of My Documents and into roaming app data which in theory is where that sort of file should be.

It's things like that which have made me give up on %USERPROFILE% (and to a lesser extent $HOME), and I now put my files that I care about into a completely separate folder outside of the normal hierarchy.

accoil··on A patch to enable Windows Subsystem for Android to run on Windows 10
Oh wow, and 7+ Taskbar Tweaker can't fix the grouping either[^1]. I use it in Win 10 to ungroup without labels as that's not a configurable option.

Looks like the dev has moved to Windhawk, and that at least has partial support for ungrouping[^2].

[1]: https://ramensoftware.com/7-taskbar-tweaker-and-a-first-look...

[2]: https://ramensoftware.com/windhawk-mods-for-the-windows-11-t...

accoil··on Polymode: Multiple Major Modes and How to Use SQL and Python in One Buffer
When adding languages you define a function/regex to match the start and end positions of each language block. Polymode then scans the document, and runs the matchers.

e.g this matches markdown code blocks (and also extracts the language from the start to select the mode to run)

    (define-auto-innermode poly-markdown-fenced-code-innermode
      :head-matcher (cons "^[ \t]*\\(```{?[[:alpha:]].*\n\\)" 1)
      :tail-matcher (cons "^[ \t]*\\(```\\)[ \t]*$" 1)
      :mode-matcher (cons "```[ \t]*{?\\(?:lang *= *\\)?\\([^ \t\n;=,}]+\\)" 1)
      :head-mode 'host
      :tail-mode 'host)
( via https://polymode.github.io/defining-polymodes/ )
accoil··on ‘Bionic Nose’ May Help People Experiencing Smell Loss, Researchers Say
I guess that could work if there was a way to make it describe important smells (e.g gas leaks, or rotten food), and also have a way to optionally describe the surroundings as I imagine it would be very annoying to be constantly hearing about things you can just see (e.g a freshly brewed cup of coffee you are currently drinking).

Makes me wonder if you could encode smell to straight audio though. Then every area could have a sort of hum.

accoil··on Just: A Command Runner
You can also run it from any subdirectory as if they were in the root of a project (it searches the parents for the nearest justfile). E.g 'just build' from /proj is the same as when it is executed from /proj/lib1/module1/ without having to think about what the relative path should be.
accoil··on Hacker News Official API
I was actually wondering how I knew about it :p

I'm not sure it's linked anywhere visible, but it does have an entry in the html head....

accoil··on Hacker News Official API
Have you seen https://news.ycombinator.com/rss ?
accoil··on Nvidia to Share New Details on Grace CPU, Hopper GPU, NVLink Switch, Jetson Orin
I don't think KineticLensman is being pedantic. Those look more like examples of her being more than a mere "computer scientist", and expanding on her accomplishments. I know I forget that she was a Rear Admiral.
accoil··on Tell HN: Gitlab.com doesn't allow issue search without signing in
Just hit that myself a few minutes ago.

Was testing a new program, and wanted to search the issues to see if someone had the same sort of UI problems I had (and hopefully a fix). No luck there.

I then googled to see if someone had a workaround for the GitLab search issue, and found your post :p

Decided to not switch to the new app.

accoil··on Get familiar with workspaces
Ah yes! I completely the parent's point. I would actually like something like that.

My current approach is to use a directory.build.props file in the folder where I clone into (i.e. outside of all the repos), and use it to set the package output path to a local folder and timestamp the package version. That way every build creates a new package to test locally, but I still have to update the references in the dependent projects when testing (and build everything separately).

Not particularly happy with it, but I don't have to manage that many shared dependencies either.

I wonder if a precompile target has enough access to tinker with the references? I.e. remove items from the PackageReferences item group, and create corresponding ProjectReference items. Probably will need to also call the MSBuild build task on those projects too so they can have a fresh build in case any changes have been made in them too.

But yes, it would be great if Microsoft supplied something for that.

accoil··on Lagrange Pre-Release – A Gemini client that also supports Gopher and Finger
Yep: https://thelambdalab.xyz/elpher/
accoil··on Get familiar with workspaces
You can use Directory.Build.targets, and Directory.Build.props to have shared build targets/properties—including package references. When building MSBuild will keep checking parent directories until it finds those files and imports them.

See: https://docs.microsoft.com/en-us/visualstudio/msbuild/custom...

I don't use them for package references myself, but this blog post has some information on how you'd do that: https://www.mytechramblings.com/posts/centrally-manage-nuget...

accoil··on Grep one-liners as CI tasks
Two really does seem too many. I worry about these times when any passing coder can ni-gate at will.
accoil··on What NPM should do to stop a new colors attack
I guess I'm thinking more in terms of faker, which I believe was a library for creating test data. Makes me wonder if licenses matter much for tools that are never intended to be included in the final distribution.

Internal changes aren't going to be detectable, so it feels like the best you can hope for is that they don't want the maintenance burden of a patch set on top of your project. At that point it's not much different than MIT.

That said, AGPL would scare off most companies :p

accoil··on What NPM should do to stop a new colors attack
Would GPL help though? It's a library used by tests, not part of the end product distributed to users.
accoil··on Ask HN: Has Google search become quantitatively worse?
Like discussion? https://www.ghacks.net/2014/01/23/search-discussions-blogs-p...

I don't use them enough, but the replacements are interesting: they seem to mostly search for indicators of a forum (e.g the existence of a next page button).

accoil··on Loss of smell could be a 'highly reliable indicator' of Covid-19, research says
> “I can taste strong spices,” she said, “but still no lemon or herbs.”

Hah, that resonated with me. I've had anosmia since birth, and I had a moment this week where I was chewing on rosemary to gauge what its impact on my dish would be, and thought to myself "I really don't get herbs".

accoil··on Using 'this' incorrectly in C#
Doesn't Visual Studio make static/const members bold these days?

I can't find when it started happening, but there is at least someone wanting to turn it off Jan 2019: https://developercommunity.visualstudio.com/idea/437785/allo...

accoil··on New year, same old plans
Acme cords are very simple: http://acme.cat-v.org/mouse

They're basic verbs you use to interact with text; not a full command. E.g instead of executing "format document" from a menu, you select the document with the left mouse button, and then middle click on the word "format". This executes the "format" command on the selected text. Somewhat like running gg=G in vim.

accoil··on To Heil, or Not to Heil, When Traveling in the Third Reich
Why does it look bad?
← PreviousPage 5 of 6Next →