sjohannes

joined 2 years ago
[–] sjohannes@programming.dev 4 points 1 month ago* (last edited 1 month ago)

The default output itself is pretty definitive, assuming you are indeed using GNU ls and don't have the QUOTING_STYLE environment variable set. https://www.gnu.org/software/coreutils/manual/html_node/Formatting-the-file-names.html explains all this (including your options) and more.

$ touch $'folder\x03'
$ ls --quoting-style shell-escape  # the default
'folder'$'\003'
$ ls --quoting-style c
"folder\003"
$ ls --quoting-style escape
folder\003
[–] sjohannes@programming.dev 5 points 1 month ago (3 children)

Is this homework of some sort?

By default, GNU ls will quote entries containing certain special or unprintable characters. For example, if a file name contains the space character, GNU ls will print e.g. 'hello world'. This quoting is done using Bash syntax.

In Bash, 'folder'$'\003' (or $'folder\003') represents the text folder followed by octal byte 3. Because you use Fish instead of Bash, this doesn't work­—it has a different syntax to specify unprintable/special characters.

I can tell you how to refer to this file in Fish, but I hesitate to do it if it's for homework. What I will do is point you to the part of the Fish documentation where this is (kind of) explained: in Fish for bash users#Quoting.

[–] sjohannes@programming.dev 3 points 9 months ago* (last edited 9 months ago)

What tool or program would you recommend for learning touch typing on Linux?

I don't have a particular recommendation, but in addition to local applications, there are also websites that you can try. The keyword you want to search for is "typing tutor", e.g. on Debian.

For someone whose native language isn’t English, would you recommend learning on their native keyboard layout or switching to the US QWERTY layout for programming purposes?

For programming, the most important thing is that you can type the full set of characters present on US-QWERTY without too much acrobatics, because programming languages tend to use all/most of them.

Other than that it's just down to your preference and comfort. I don't recommend putting stock on any hype related to typing speed.

[–] sjohannes@programming.dev 4 points 9 months ago

I've tried two different setups for Hangul input.

The first combination (GNOME+X11+IBus) just worked—it was trivial to setup from the GNOME Control Center and there were no issues that I could find. Last time I tried this was around a year ago but it had been working for years before that.

The second combination (Plasma+Wayland+IBus) barely worked: I could enter characters but couldn't add space or other symbols between characters, and settings were all over the place and would randomly stop working. Last tested ten minutes ago.

I've heard people getting better results on Plasma+Wayland+Fcitx5 but it's not something I've tried.

[–] sjohannes@programming.dev 3 points 9 months ago (1 children)

I think about:config is enabled on Nightly (possibly Beta as well?), and also the Fennec F-Droid build.

[–] sjohannes@programming.dev 6 points 9 months ago* (last edited 9 months ago)

Do languages that use non-Latin alphabets (Asian, Cyrillic, Greek, Hebrew) have upper and lower case letters?

Greek has upper and lower case. From mathematics/physics you may have come across e.g. the ones for sigma (Σ, σ). Cyrillic also has them; most look the same between the upper & lower case variants, just bigger/smaller (Л, л), but there are some that differ (А, а).

I don't think most Asian scripts have letter cases. Javanese script does have upper case but only for a small subset of letters and they are generally not used anymore.

What about serif or sans-serif?

Cyrillic and Greek, yes. There are also equivalents to the serif and sans-serif typefaces in Chinese, Japanese, and Korean typography.

How do they show emphasis?

On the Web, boldface (but not italics) is very commonly used across various writing systems. Obviously no all caps for those without capital letters.

[–] sjohannes@programming.dev 26 points 10 months ago* (last edited 10 months ago)

I don't think the reason was technical. Firefox has supported WebM (a subset of Matroska) for 11 years, and whatever code they had probably would have been enough for most Matroska files, assuming the codecs are also supported.

However, Matroska itself was only officially standardised last October despite being in use all these years. That was probably what convinced them to add support.

[–] sjohannes@programming.dev 3 points 11 months ago (1 children)

Their blog has regular updates regarding Exchange support, if you're interested.

[–] sjohannes@programming.dev 10 points 1 year ago* (last edited 1 year ago) (1 children)

It doesn't launch the new binary at all. When the current process wants to create a new process, instead of doing fork+exec (which launches the new binary and wreaks havoc because versions now don't match), it simply tells the ForkServer (a different process running the old binary) to fork (split) itself.

Chromium also does this; they call their equivalent to ForkServer the zygote process and this article explains it really well.

[–] sjohannes@programming.dev 1 points 1 year ago* (last edited 1 year ago)

The article mentions "GNU getopt" but as far as I know GNU doesn't have a getopt utility; the version on most Linux OSes comes from util-linux. (Perhaps the author is confusing it with the C function with the same name.)

Note that other getopt implementations have different features and some are simply broken. For example, BSD getopt doesn't support long options and comes with this known bug:

Arguments containing whitespace or embedded shell metacharacters generally will not survive intact; this looks easy to fix but isn't.

For cross-platform scripts it's probably best to use the getopts shell builtin instead, the downside being it only supports fairly basic (POSIX) syntax even on Bash.

[–] sjohannes@programming.dev 9 points 1 year ago* (last edited 1 year ago)

All external links from news.itsfoss.com articles have that ref parameter added. For example, see the links in this article about the Danish ministry that is switching to LibreOffice.

Edit: This is apparently something that the CMS they use, Ghost, does by default.

[–] sjohannes@programming.dev 3 points 1 year ago* (last edited 1 year ago)

They're switching their main repository from Mercurial to Git. Mozilla started using Mercurial before Git became de facto standard, but I imagine these days learning Mercurial is seen as an unnecessary obstacle for new contributors, hence the current switch.

As for why GitHub specifically, it's because that's where the rest of Mozilla's projects already are. They have been using GitHub for a long time (14 years or more), with thousands of repositories there. It's why Rust and Servo are on GitHub, for example.

Edit: See https://glandium.org/blog/?p=4346 for more thorough/accurate info.

view more: next ›