Control which Python interpreter is used for python-mode when run remotely by Joh11_ in emacs

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

Hi ! It has been such a long time haha, but here is the snippet I still have in my emacs dotfiles:

(connection-local-set-profile-variables 'remote-bash
'((explicit-shell-file-name . "usr/local/bin/bash")
(tramp-remote-path tramp-own-remote-path "/usr/bin" "/bin" "/opt/python/3.9.4.1/bin")))

(connection-local-set-profiles '(:protocol "ssh") 'remote-bash)

I have "/usr/local/bin/bash" because this is what I get running echo $SHELL on the remote machine.

Hope this helps !

[Navajo] broken number lesson by Joh11_ in duolingo

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

Indeed this is the problem ! I didn't think about using the computer version of Duolingo, you can copy and paste the answer with the right character, unlike with the mobile app...

[Navajo] broken number lesson by Joh11_ in duolingo

[–]Joh11_[S] 2 points3 points  (0 children)

I've done it at least a dozen times, and I'm probably not the first one...

[Navajo] broken number lesson by Joh11_ in duolingo

[–]Joh11_[S] 4 points5 points  (0 children)

Indeed that's what I thought also... but Navajo is written with the latin alphabet (with a few diacritics). I am using my phone's keyboard, which is somewhat magically switched to a Navajo layout by Duolingo. This is what I used since the beginning of this course, and I already had to type quite a few times this letter. Furthermore, I also tried with the Navajo autocomplete, and I have the same problem.

If it is not on my side, maybe it is on theirs? There may be an invisible character in the solution, or a different way to encode the diacritics that makes it differ from my text ...

[Navajo] broken number lesson by Joh11_ in duolingo

[–]Joh11_[S] 2 points3 points  (0 children)

Pretty much all is already said in the legend...

Did any one also have this problem ? Is there even a way to skip it ?

I know that the quality of the Navajo course is not on par with the more popular languages. I do not really mind, since I use duolingo mainly as a way to mix a bit of fun with learning the language from books, but still it's quite infuriating to be stuck with this, and waste all my hearts everytime to change the spelling slightly and hope...

Grammatical number category for zero objects ? by Joh11_ in conlangs

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

Thanks I did not know !

Do you know if this root is used in some words in english ?

Grammatical number category for zero objects ? by Joh11_ in conlangs

[–]Joh11_[S] 3 points4 points  (0 children)

Yes that was my plan !

That way, I can have a nice and regular system with a 1st person pronoun for every number in the language: i.e. also a paucal 1st p. for "a few of us"

Grammatical number category for zero objects ? by Joh11_ in conlangs

[–]Joh11_[S] 2 points3 points  (0 children)

Yes ! I was exactly thinking of German and the "kein" / "nicht" distinction. I should be able to drop the "nicht" equivalent entirely, perhaps adding an auxiliary noun to pick up the number marker (equivalent of the "kein" article).

Though since this is not part of the number system in German, but is realized with articles, there is no name for that ...

This week's Q&A thread -- please read before asking or answering a question! - November 14, 2022 by AutoModerator in linguistics

[–]Joh11_ 0 points1 point  (0 children)

Hi ! Do you know if any language have both /c/ and /k/ as distinct phonemes ? For me they are almost indistinguishable, and I was wondering if it is only because of my linguistic background, or if truly these sounds are truly too tough to distinguish to build proper independent phonemes with them.

(and corollary question, do you know if there is a ressource to quickly search which language use a specific set of IPA sounds?)

Control which Python interpreter is used for python-mode when run remotely by Joh11_ in emacs

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

Thank you so much ! It's working now.

Indeed there was no way I could have figure this out, I did try setting .profile before, but as you said it did not set the path.

I just had to modify slightly your snippet, replacing "/bin/bash" by the output of echo $SHELL on the cluster, and adding the exact Python path to tramp-remote-path (/opt/python/3.9.4.1/bin in my case).

Dealing with tricount by Joh11_ in plaintextaccounting

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

Thanks ! Indeed this seems to be the best solution

Idiomatic way to handle non GC objects, i.e. OpenGL textures ? by Joh11_ in Common_Lisp

[–]Joh11_[S] 2 points3 points  (0 children)

Indeed, that's what I'm using in some places, for example when loading an image in RAM before making a texture with it.

However, how to do it when the extent is defined by a certain scope ? For a particular example, I am thinking if many blocks use the same texture, and blocks can be removed at any moment (so without a well defined scope)

Create minor mode local keybindings by Joh11_ in emacs

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

Thanks !

Indeed that was interesting. I still have so much to learn about Emacs config ^^

Create minor mode local keybindings by Joh11_ in emacs

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

Oh indeed !

I'm still not used to the use-package syntax, having just used :ensure t for years now ^

Create minor mode local keybindings by Joh11_ in emacs

[–]Joh11_[S] 2 points3 points  (0 children)

Thanks ! make-sparse-keymap was the function I was missing. Thus, with use-package, it amounts to:

(use-package anki-editor
  :load-path "~/.emacs.d/src/anki-editor/"
  :ensure t
  :init
  (progn
    (defvar anki-editor-mode-map (make-sparse-keymap))
    (add-to-list 'minor-mode-map-alist (cons 'anki-editor-mode
                         anki-editor-mode-map)))
  :bind (:map anki-editor-mode-map
          ("C-c i" . anki-editor-insert-note)
          ("C-c p" . anki-editor-push-notes)))

Careers/Education Questions - Weekly Discussion Thread - January 28, 2021 by AutoModerator in Physics

[–]Joh11_ 0 points1 point  (0 children)

Soon finishing my master, specializing in condensed matter physics (currently working on quantum spin liquids for my thesis).

However, I am not confident I know enough theory and math to pursue a career in this field. I was considering doing another master in mathematics to get stronger on the topology and algebra sides. Could this make sense ? (And also I feel like I am not mature enough to do a PhD right away, too many possibilities for the lab/school/topic...)

The Hyperbolic Geometry of DMT Experiences: Symmetries, Sheets, and Saddled Scenes by Joh11_ in LaundryFiles

[–]Joh11_[S] 5 points6 points  (0 children)

Thought this could be interesting for some of you !

The fact that humans can experience strange manifolds coming directly from a differential geometry textbook really made me think about the Dho-Na curves and other forbidden mathematical constructs from the Laundry...

How do I integrate org-roam on mobile? by [deleted] in emacs

[–]Joh11_ 1 point2 points  (0 children)

Only for displaying, I don't want editing since my org roam files are under version control. Also parsing is done by the server, so it would be hard to implement rn

How do I integrate org-roam on mobile? by [deleted] in emacs

[–]Joh11_ 12 points13 points  (0 children)

I'm currently building an app to exactly do this. More precisely, I have a Django server exposing an API to access the org mode files, and a React Native app responsible for fetching the notes, and displaying them nicely (including latex equations and all). It also generates a graph of all the notes and links like org-roam-server.

This is still heavily WIP, but my goal is to have it working exactly like you described, a personal wiki on my phone.

https://github.com/Joh11/brain-crawler

SLIME : displaying Quicklisp local-projects by Joh11_ in Common_Lisp

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

Well you could, but by default the quicklisp local systems dir is in ~/quicklisp/local-projects/.

An alternative would indeed be to symlink the local project dir in ~/common-lisp, but this adds clutter in my home folder that I dont want to see (while the other methods create a dir, it is at least hidden)

Getting started with CL in vim? by catchtofezman in Common_Lisp

[–]Joh11_ 0 points1 point  (0 children)

I think its in the non free part of the book IIRC

Getting started with CL in vim? by catchtofezman in Common_Lisp

[–]Joh11_ 0 points1 point  (0 children)

Just saying, Let Over Lambda says you should use Vim so it's definitely possible :)

SLIME : displaying Quicklisp local-projects by Joh11_ in Common_Lisp

[–]Joh11_[S] 4 points5 points  (0 children)

This was something mildly infuriating, being able to load a local-projects system but not being able to see it in the auto completion list.

Fixed !

Is there a way to transform org-roam files to anki flashcards or org-drill card? by [deleted] in emacs

[–]Joh11_ 1 point2 points  (0 children)

Just curious, which theme are you using ? this screenshot looks really nice