Lurker News
A command line trick, a random factoid, anything that’s interesting to you.

Comments (762) 128 threads

Earlier comments
causality03 replies#
Put your non-dominant thumb in the palm of your dominant hand and squeeze it as hard as you can for thirty seconds. Afterwards your gag reflex will be suppressed for about a minute. Enjoy touching your own uvula.
mikelevins#
Weird. Seems to have worked.
jonwest#
Some of these posts have been incredibly interesting but this is the first one to be both bizarre but also immediately permanently learned. What the hell? What else is this weird body capable of haha
oshirisuki#
thought this was a prank, but it's real
pxeger17 replies#
Double-clicking on text selects the whole word.

Double-clicking and dragging selects text word-by-word.
Triple-clicking selects the whole paragraph.
Middle-clicking a link opens it in a new tab.
Middle-clicking a tab closes it.
Middle-clicking in general often has useful functionality!

exikyut#
And X11 on Linux (if you're not using Wayland) supports middle-click emulation, where pressing the left and right mouse buttons simultaneously (debounced to within a couple milliseconds) will be interpreted as a middle-click.

I may or may not use this with my laptop dozens of times a day (it's how I copy/paste out of xterm).
(Fun bit of trivia, my old EliteBook 8470p has a trackpad+trackpoint setup with two independent sets of buttons, and while I don't seem to be able to middle-click with the trackpoint buttons, I can send a middle-click by pressing both trackpad buttons, keep them held down, and then independently send left and right clicks (press-release) using the trackpoint buttons as much as I want. I somehow doubt that was an accident. Engineering archaeology is fun :D)

clort#
Double-clicking the title bar of a window toggles between sized-window and full-size-window mode
Jowsey1 reply#
Shift+Arrow keys can be used to select text as you navigate through it

Ctrl+Arrow keys navigates through whole words at a time
Ctrl+Shift+Arrow keys can be combined to select whole words
Ctrl+Backspace can be used to delete whole words

Jowsey#
Oh, and most code editors I'm aware of will switch out the whole-word functionality of Ctrl/Double-click with whole-syntax-element, if that's more your thing
someweirdperson1 reply#
When holding the last click of the sequence multiple words/paragraphs can be selected. In some editors quad-click selects all.

In code-editors tripple selects a line (hold to select multiple). When moving/deleting lines this is much more semantically clean (and faster) than manually dragging from the previous line's line end to the next lines last character before the line end.

pxeger1#
> When holding the last click of the sequence multiple words/paragraphs can be selected.

When I wrote about the double-click-drag thing, I thought triple-click-drag might logically also be a thing, but it doesn't work for me. (Firefox, KDE, Linux)

wonderbore#
> Middle-clicking a tab closes it.

Ahh I used a Magic Mouse and trackpad for so long I forgot about this. It makes me a little sad. On the other hand panning and gestures are worth the loss.

gnubison#
In Emacs, right click adjusts the closest side of the selection, and double right-click cuts that region. (And it obeys the mode of selection if you started with a double- or triple-left-click.) Double-left click also selects s-expressions.
sanketpatrikar#
Triple-clicking and dragging selects text paragraph-by-paragraph.
bluejay22 replies#
The Spanish language uses the same word to signify "wife" and "handcuffs" (la esposa/las esposas).
ggambetta#
Can confirm. "Las esposas" also means "the wives", so it really is the same word.
leobg#
“wedlock”
leephillips3 replies#
By far the most important martial arts skill is the ability to function effectively after receiving a powerful blow to the face, solar plexus, etc. The only way to develop this skill is by practicing it; very few people do, for obvious reasons. If your martial arts training does not include this, it may have many benefits, but is severely lacking as training for actual fighting.
vasco3 replies#
My teacher used to say the most important martial arts skill for real life is predicting a fight and turning around and running away.
leephillips#
Absolutely. And functioning effectively includes retaining the ability to run away, rather than falling to the ground in a heap, which will be followed by your opponent kicking you in the head.
Engineering-MD1 reply#
I always thought this, but only works if you are alone, or the person you want to protect can run too. Fighting is most useful to defend someone else who can’t run or fight.
legends2k#
I think the advice is more meta than actually about fighting. It’s about being aware of one’s circumstances/environment and choosing your battles.
theonething#
"Everybody has a plan until they get punched in the mouth." -Mike Tyson
exikyut2 replies#
I guess the two questions that come to mind after I read this are

1. How can I OW objectively OW tell oww the difference ow where being seriously jarred (ow) ends and being significantly injured begins?
2. As a person ages, is it possible to train in this way without ending up seriously banged up with long-term ramifications? Or is this more of a "don't use a skateboard" type of thing with no leeway?

leephillips#
2.: I desisted after about age 45.
mikelevins1 reply#
1. Practice getting hit. (Preferably with a partner who has enough knowledge and skill to avoid injuring you.)

2. You can practice at low risk of being seriously injured. Again, you need a partner who is sufficiently knowledgeable and skilled to help you without hurting you.
Grappling arts that emphasize groundfighting give you more practical experience of fighting usefully with lower risk of injury. Because you more often start out on the ground, you're much less likely to be injured in a fall. Because you strike less, you're less likely to injure yourself either by striking something or by being struck.
If you want to get past the non-useful reactions to being struck, though, then you probably also want to do some striking artor sport with contact--boxing, kickboxing, muay thai, et. al. Just be sure to use safety equipment and work with someone who has both skill and empathy.

leephillips#
All good points.

Load more comments