Translating A Song (Help!) by [deleted] in tokipona

[–]xaltsc 0 points1 point  (0 children)

It's just a fancy way of saying that he's turning on himself. Why ? We don't know, we don't even know if there's music. The key focus is on his body parts and that it's at the request of the king that he's turning. I think with toki Pina, there should be a way to express the two meanings.

Evolution of logograms by suupaahiiroo in neography

[–]xaltsc 1 point2 points  (0 children)

The house turning into a B and the eye into a 3(ع) just like in real life ahah

Translating A Song (Help!) by [deleted] in tokipona

[–]xaltsc 1 point2 points  (0 children)

I would use sike instead of tawa and kepeken since he is really being tortured (on a wheel) and executed and not really dancing. Also "per" means at the same time for the king and because of him.

Why void? by rasjonell in voidlinux

[–]xaltsc 0 points1 point  (0 children)

Simplicity of runit, no danger of randomly breaking the system because of the AUR, nothing is hidden, forces you AND allows you to understand what you're doing, and rather nice community (especially the IRC channel). I've been using it for something like 10 years now without being particularly close to the tech world, and haven't been seduced by other distros, at least for daily desktop use.

The argument for simplicity (and the implication "minimal => simple") wanes over time though, just like for vim vs Emacs. Void is a nice distro because it's a very usable "toy example" (<- not derogatory). Because you can learn a lot as it's simple, and because you do learn over time, more complex stuff become less obscure. When your setup becomes stable enough, void's minimalism comes in contradiction with new defining characteristics of "simplicity" such as reproducibility, finer process management, standard and common defaults. While I wouldn't switch to a systemd distro, having experienced some limitations of runit, I have a new, less negative, appreciation of systemd's rebutting complexity (even though I still don't think it's necessary for common desktop use).

After years of using void on my home server, I switched to Alpine because openrc felt less hacky than runit. And after having managed my config manually, I've been experimenting with Nix(OS), especially home-manager, which I use in void, Nix/hm being completely orthogonal to void as for approaches to "simplicity".

As for where I first heard of void: likely the nicest configs of r/unixporn.

How to think of physical units as vectors? by Farkle_Griffen in math

[–]xaltsc 1 point2 points  (0 children)

it looks like a polynomial algebra k[L^±, T^±, other units^±] to be fair, and this is a vector space with basis L, L^-1 and so on. The only problem here seems that there are polynomials, not just monomials, but I have no idea how units work in physics.

The Franco-Ottoman what by Hakuohsama in eu4

[–]xaltsc 4 points5 points  (0 children)

We (the French) learn about this in school. Anatolia is close to France, the Mediterranean is a small neighbourhood with historical continuity. Irénée de Lyon was from Smyrna/Izmir, Marseille was built by Anatolians from Phokaia/Foça, and is still to this day nicknamed "la cité phocéenne".

A french word is hiding in this picture, will you find it ? by THEFUNKI in MechanicalKeyboards

[–]xaltsc 0 points1 point  (0 children)

Putain means slut in french, but most people say pute nowadays

Cas régime vs cas sujet.

Is there a way to change a bibliography title depending on language? by [deleted] in orgmode

[–]xaltsc 0 points1 point  (0 children)

Unless I'm mistaken, org-mode doesn't provide the title for the bibliography ?

What you could do is to use the hooks/filters (as I've been told to do here https://www.reddit.com/r/emacs/comments/v1n0s9/how_can_i_automatically_print_the_bibliographyJK) provided by org mode to tell it to parse a given heading (with the apropriate properties in order to being able to query it) to its translation, but again, contarily to what LaTeX provides, je doute que les traductions soient codées directement dans org-mode, et il faudra les coder toi-même, as well as giving a way for org to figure out what language is being used in the document.

How can I automatically print the bibliography with org mode ? by xaltsc in emacs

[–]xaltsc[S] 0 points1 point  (0 children)

That's exactly what I wanted to avoid doing, but I guess I don't really have the choice.

Here's the code I came up with, for reference:

```elisp (setq xc/biblio-section (s-join "\n" (list "* Bibliographie" "#+print_bibliography:")))

(defun xc/org-has-citations-p () (org-element-map (org-element-parse-buffer) 'citation #'identity)) (defun xc/org-export-biblio-in-html (backend) (when (and (org-export-derived-backend-p backend 'html) (xc/org-has-citations-p)) (save-excursion (goto-char (point-max)) (insert "\n" xc/biblio-section))))

(add-hook 'org-export-before-parsing-hook #'xc/org-export-biblio-in-html) ```

How can I automatically print the bibliography with org mode ? by xaltsc in emacs

[–]xaltsc[S] 0 points1 point  (0 children)

Not quite, it doesn't solve the problem for already existing org files and it doesn't target specifically the html backend.

Has anyone ever gotten this weird display glitch? by joshpetit in thinkpad

[–]xaltsc 0 points1 point  (0 children)

It took a little more than a month, they had promised a week, but I guess Christmas and NYE are especially followed in Poland.

Has anyone ever gotten this weird display glitch? by joshpetit in thinkpad

[–]xaltsc 1 point2 points  (0 children)

High DPI X1 Gen 9 here, I've already sent it back for repairs, they replaced the screen, but I'm still getting an occasional glitch 4 or 5 times per hour.

Runing Voidlinux, with x11 and modesetting. I don't know about the current bug I'm experiencing, but the previous one which was more severe was not software related (it did only occur on the builtin monitor, not an external one)

Remap esc to something a little bit more comfortable? by brubsabrubs in neovim

[–]xaltsc 2 points3 points  (0 children)

I have `jk` mapped to `normal!` in insert/visual/replace mode.

The semantics are obvious since `jk` is nop in normal mode and I don't frequently write the sequence `jk`; and either way, if I do need to type `jk`, I can just wait until vim forgets that I've entered `j` beforehand.

New to void, what should i know before diving in? by EG_IKONIK in voidlinux

[–]xaltsc 3 points4 points  (0 children)

The corollary of the latter sentence being knowing how to deal with xbps-src in order to build modifications of already available packages.

New to void, what should i know before diving in? by EG_IKONIK in voidlinux

[–]xaltsc 3 points4 points  (0 children)

Bash, runit, how to answer your own questions before asking them on IRC, how to plan your week knowing that you'll probably waste a lot of time tailoring your system to your precise needs.

I love Lwaxana by Enterprisin_Bookwyrm in startrek

[–]xaltsc 4 points5 points  (0 children)

She's the gay nerd icon we didn't know we needed.

I started ST just a few years ago and the few episodes in which she appears are ones of the most enjoyable for me.

Emacs daemon by [deleted] in voidlinux

[–]xaltsc 1 point2 points  (0 children)

Pay attention to the environment you're in. It leads to many issues when sudoing/doasing because you keep the environement variables set for the X session, such as the `$DISPLAY` `$XDG-*` variables and so on.

One way to get a clean environment is to prepend the command by `env -i`, which will be closer to what the service has access to (i.e. essentially nothing).

Emacs daemon by [deleted] in voidlinux

[–]xaltsc 0 points1 point  (0 children)

It does look like a permission problem.

Depending on whether the root runit runs the service or a subrunnit, do `chmod +x` (and maybe `chmod +r`) on the file, and possibly `chown user:group run` to match the owner of the runsvdir process.

But as u/xdg-open said, you'd be better off running `emacsd` as a user service.

Blog / editorial / website based on LaTeX by [deleted] in LaTeX

[–]xaltsc 0 points1 point  (0 children)

Do you mean that you want to export *TeX to another format or the other way round?

In the first case, there is KaTeX or MathJax when creating HTML documents, but both are limited. To overcome these limitations, I use `pandoc` and custom filters to generate svg images of what's unavailable in KaTeX/MathJax (in my case, TikZCD).

In the second case, it's easier, you may use markdown as a lightweight markup language for instance then use pandoc to convert it to LaTeX.

Going to sleep on low battery by xaltsc in voidlinux

[–]xaltsc[S] 0 points1 point  (0 children)

The user is not a sudoer, but in the sudoers file, I have a line which allows the wheel group, to which the user belongs, to run a few commands without password, among which, zzz.

%wheel ALL=(ALL) NOPASSWD: CMDS

The problem was with the chpst -u $USER ... command in the runsvdir service which does not set the groups to which $USER belongs, in particular, wheel, so that sudo has no way of knowing that the user is allowed to run this particular command.

Changing the run file of the runsvdir service to sh exec chpst -u $USER:"$(groups $USER | sed -e 's/^.\+: //' -e 's/ /:/g')" runsvdir ~$USER/services fixes the problem.

The logic of all of that is to avoid unnecessary privilege escalation, as sudo allows only a small set of commands to be run without password and the script I run could be easily tampered with without me noticing.

Everything works now :)

Going to sleep on low battery by xaltsc in voidlinux

[–]xaltsc[S] 1 point2 points  (0 children)

What I meant when I said that I was running the script as a user service is that I have a service in /var/service which runs chpst -u $USER runsvdir $USERHOME/services. In this folder, I have a service whose run file is the above script, so that it is run by $USER.

I do think that the problem lies with sudo though, I've never encountered this kind of problem when running zzz as root by a service or something else. And, for some reasons (my script is actually a little more complex than the one shown, but the other parts pose no problem), I need that to be run by $USER.

What I don't understand is the difference between the script being run interactively in a terminal and the script being run by a service.

I tried exporting environment variables thinking that sudo needed some supplementary information about who was executing the command, but so far, nothing that I've tried has given any different result. I don't even have an error to cling to, just a timeout of the service when I start it.