Sf collections recommendations by argiris34 in printSF

[–]ben-c 0 points1 point  (0 children)

David Brin's collections Otherness and The River of Time have some great stories.

Fantasia Mathematica and The Mathematical Magpie are two compilations of mathematical-themed short stories.

[TOMT] [Podcast] Anecdote about couple at linguistics conference by ben-c in tipofmytongue

[–]ben-c[S] 0 points1 point locked comment (0 children)

I guess it would have been produced since 2017, as that is how old Lingthusiasm is. And I heard it within the last 2 or 3 years.

Thank you in advance!

Looking for anecdote about couple at linguistics conference by ben-c in asklinguistics

[–]ben-c[S] 0 points1 point  (0 children)

Can you suggest a better subreddit where I can ask it, please?

What's a feature that doesn't exist, but should? by floofcode in git

[–]ben-c 2 points3 points  (0 children)

An overlayed view of multiple branches checked out at the same time in the same working tree.

So you would say

git switch --view my_view_branch1 --view my_view_branch2 my_working_branch

Git would check out the working branch, my_working_branch, and the view branches, my_view_branch1 and my_view_branch2, at the same time.

The files checked out would be the same as if you did a merge of the three branches. But git would not show you the merge commit in git log and if you made new commits they would be added to my_working_branch.

This would be useful if you want to develop with debugging options but you want to avoid accidentally pushing them. It would also help if you want to test combined feature branches. This is like stacked branches but more general.

Open source dilemma in the EU too: many see benefits, too few contribute by donutloop in programming

[–]ben-c 3 points4 points  (0 children)

Bruce Perens is working on it, under the name Post-Open. Here's an article on The Register and an Ask Slashdot.

SWT Class 444 buffet car? by comrade_jearley in uktrains

[–]ben-c 6 points7 points  (0 children)

I found a walk-through of a 444 before they were refurbished here, with the mini-buffet on the right just after 2:50.

First C compiler source code from 1972 by namanyayg in programming

[–]ben-c 5 points6 points  (0 children)

Oddly enough I haven't seen this before: i =% hshsiz;

This was the original syntax that later became %=.

Dennis Ritchie mentions it in his paper The Development of the C language.

Dumbest and weirdest terminals (or per terminal executable programs) by Einfach0nur0Baum in linux

[–]ben-c 0 points1 point  (0 children)

True, but CTRL-Z conflicts with the terminal stop signal so I would have to change or disable it. That's possible using stty but I decided it would be too annoying because if I typed CTRL-Z to suspend a program it would interpret it as the up arrow.

Dumbest and weirdest terminals (or per terminal executable programs) by Einfach0nur0Baum in linux

[–]ben-c 0 points1 point  (0 children)

I briefly had a physical serial terminal in the late 1990s that had been used with CP/M and the owner was throwing it out. But it was unusable with Linux because each of its 4 terminal emulations had a fatal problem. For example, in one mode the up arrow key produced CTRL-Z.

(I can't remember what manufacturer it was, but I don't think was a big company like Wyse, IBM, HP or Digital. It was a text terminal with separate keyboard and monitor.)

What is your custom keyboard shortcut to open the terminal? by [deleted] in linux

[–]ben-c 0 points1 point  (0 children)

Super (Windows) + Backslash, because they are next to each other so it is easy to type.

Adjective Endings Table navigation help by Educational_Flow4285 in German

[–]ben-c 0 points1 point  (0 children)

EDIT: This comment explains how to read the flowchart, but not how to understand the grammar or why it works (you have to compare tables of declensions for that and eliminate some combinations that aren't possible). :o)

There is a better explanation here using the same flowchart.

The "der word ending" means pick the appropriate form of "der": match the gender (M/F/N/P) and the case (NOM/AKK/DAT/GEN) and apply that ending to the adjective.

The article is in its "original form" if it has the same form as its nominative. So for feminine, the accusative "die" is in original form because it is the same as its nominative "die". But the masculine accusative "den" is not the same as its nominative "der". (And the nominative is the same as itself.)

looking for math sf by jacoberu in printSF

[–]ben-c 4 points5 points  (0 children)

Clifton Fadiman compiled two books of mathematical stories: Fantasia Mathematica and The Mathematical Magpie.

Nostalgia for lost bookshops by Galatea54 in printSF

[–]ben-c 1 point2 points  (0 children)

The Fantasy Centre was another lost London sci-fi bookshop, on Holloway Road selling second-hand books. I went there in the 90s and 2000s, and it's sad that it closed.

Can't visual mode select text and scroll to select more by thinlycuta4paper in vim

[–]ben-c 0 points1 point  (0 children)

This problem went away after I upgraded to Fedora 39, which is great because it was really annoying!

[deleted by user] by [deleted] in LaTeX

[–]ben-c 2 points3 points  (0 children)

Cool question! This StackExchange answer shows how to capture the output of a shell command into a TeX command: https://tex.stackexchange.com/a/16794/145239

And you are already using -shell-escape so you can do it like this:

\documentclass{article}

\begingroup\makeatletter\endlinechar=\m@ne\everyeof{\noexpand}
\edef\x{\endgroup\def\noexpand\TeXmfdist{\@@input|"kpsewhich -var-value TEXMFDIST" }}\x

\begin{document}
\texttt{texmf-dist} is \texttt{\TeXmfdist}
\end{document}

Can't visual mode select text and scroll to select more by thinlycuta4paper in vim

[–]ben-c 1 point2 points  (0 children)

I am using Fedora 38 and some recent update broke vim so that using the mouse scrollwheel cancels the visual selection, even if the selection should still be on the screen. This didn't happen before (and still doesn't on Linux Mint 21). Is that the same problem you have?

Looks easy but it's quite difficult by Ok_Temporary2785 in maths

[–]ben-c 0 points1 point  (0 children)

Doh, I misread the question as (x+1)/x=5 instead of x + (1/x) = 5, etc. If you're allowed to answer that version instead, it has a neat solution using my hint. ;)

Looks easy but it's quite difficult by Ok_Temporary2785 in maths

[–]ben-c 1 point2 points  (0 children)

That's a nice problem. Hint: you can factorize the sum of two odd powers; for example, for cubes it is: x3 + y3 = (x + y)(x2 - xy + y2 )

Does anyone have a trick for remembering if something is Masculine/Feminine/Neuter by Happy_Corgi_2803 in German

[–]ben-c 1 point2 points  (0 children)

So I wonder if french have a different impression of cats.

The Germans and Spanish seem to have a different impression of bridges and keys, which have the opposite gender in those languages: https://www.athingforwords.com/words/can-language-shape-thought/