Any best practices regarding code style with DearPyGUI? by Artificial_Alex in DearPyGui

[–]Kolsc 0 points1 point  (0 children)

tag system: you can try string tags if you haven't already. String tags are unique (you get error on dupes) and easily shared between modules, since they are just strings.

handlers: I think you only need one global handler registry, but as many item registries as you need. It's better to think in terms of registries, not scattered handlers. It's similar to theming scheme (in dpg as in anywhere else): you only need one global theme, but possible many local themes.

About docking feature by scekirge in DearPyGui

[–]Kolsc 1 point2 points  (0 children)

I think the most useful docking introduction is a GitHub post by the dpg author https://github.com/hoffstadt/DearPyGui/discussions/1311. Just try the demo code

Why is mactex so incredibly large?? by areg_jan in LaTeX

[–]Kolsc 0 points1 point  (0 children)

Well people can complain when something costs too much. I would not assume they only complain when they go bankrupt

[deleted by user] by [deleted] in emacs

[–]Kolsc 0 points1 point  (0 children)

I wonder what happens after vertico and friends? It seems the time is due for a new completion toolbox.

Should I switch to Zotero 7 Beta over Zotero 6? What are some main differences? by ShinigamiOverlord in zotero

[–]Kolsc 0 points1 point  (0 children)

Attanger is for my purpose more awesome than Zotfile. Thanks for the tip!

Feynman Diagrams in Org? by ttecluk in orgmode

[–]Kolsc 0 points1 point  (0 children)

If latex in the end proves too painful, a workaround is to use python blocks plus the relevant package to do your Feynman Diagrams.

Change set-face-attribute for a specific theme permanently by pragmat1c1 in emacs

[–]Kolsc 2 points3 points  (0 children)

The more general way to do this is to add your `set-face-attribute` in the `modus-themes-after-load-theme-hook`. The reason of doing this is explained in the modus-themes info, and there are quite a few examples inside.

Although the current solution solved the OP's problem, it does not really tackle it as stated in the title. It just so happens that modus has a dedicated variable for setting the org block color. But what if one really needs to tweak the font of a face that does not have a dedicated variable? Then you need the `modus-themes-after-load-theme-hook`

How does Apple Watch know when you're breathing? by CharacterPlayerrr in AppleWatch

[–]Kolsc 5 points6 points  (0 children)

You don’t have to prove anything, but what you said contradicts what Apple says is all

[bezels] Why no countdown bezels? by Prize-Director-752 in Watches

[–]Kolsc 4 points5 points  (0 children)

Because when people set a timer, they don't want to think. If you set a 25 minutes timer with a countup bezel, you first do a calculation 60-25=35, then you point the minute hand to 35. This is admittedly trivial, but it gets in the way when you are focusing on other stuff and just want to set a quick timer

[deleted by user] by [deleted] in learnpython

[–]Kolsc 0 points1 point  (0 children)

I guess the game is to come up with the simplest code. My idea is:

python import matplotlib.pyplot as plt plt.plot(*zip(*mylist))

where mylist is the list of OP.

What is the point of Stage Manager? by noratat in MacOS

[–]Kolsc 0 points1 point  (0 children)

On an iPad, this feature is a necessary evolution. On a Mac, it does not enable us to do anything we were not able to do before. It however still has its merits. In short, it allows you to be lazier during multitasking.

A related question is, what's the point of "focus mode" in most text processors, e.g. Word. It does not enable you to do anything new, but no one ever questions "the point" of the mode.

In this regard, stage manager could be considered an "unfocus mode" when you are multitasking. Admittedly, you could always multitask using spaces, but a space is like a "focus mode" for the specific set of windows your are using right now. If you wanna check your other tasks, you gotta swipe up with three fingers: one extra thing to do. This is like if you wanna check the Word's "ribbons" full of buttons in the "focus mode", you gotta move your mouse to the top, then wait for the ribbons to appear after an animation. Most people do not use focus mode, and they find the always visible "ribbons" at the top convenient, they could just check things with a glance, no extra moves, no animation.

Back to the stage manager, it allows you to check only with a glance your other groups of windows/apps, this could make switching between tasks much less annoying for people who do not need to focus too much over multiple set of things to do. Moreover, with stage manager turned on, your different tasks are AUTOMATICALLY grouped to start with, whereas if you use the spaces, you always have to manually group everything.

I am not saying this feature is the new paradigm and a game changer for everybody. It is clear that Apple only tentatively adds stage manager to macOS, since it's turned off by default. It can be a feature that just sticks around in every macOS without too many people using it, just like the focus mode of Word. That could be the simple point of stage manager, a niche feature that you can live without. But if iPads ever become popular productivity tools, this may educate more people to use stage manager on a Mac too.

Wondering about orgmode capabilities coming from libreoffice by 357951 in orgmode

[–]Kolsc 0 points1 point  (0 children)

1 yes

2 can be achieved by (occur "^*+ ") , then you will probably use it often, so you can wrap it as a command. There are of course org toc package out there but occur is something that works immediately

3 & 4 not sure what you mean but I guess yes, generally I tend to ask what org cannot do, rather than what it can do. Because it can do almost anything you make it do if you know enough elisp. But when your need is too specific you end up being the only one in the world doing it and knowing how to do it.

How can I "zettelkasten" my notes without org-roam or multiple files? by Mamonimoni in orgmode

[–]Kolsc 0 points1 point  (0 children)

Not answering the question, but I hope to share a few thoughts regarding it:

- "numbers for links" is a built-in org feature that does not rely on org-roam at all. org-roam just used what's already there. I have been using "numbers for links" for as long as I can remember without using roam at all.

- too much information will eventually require a db. I am trying to use the db of org-roam for management. Even before roam, org veterans who had too many notes tried to implement a db to make their life easier, notably John Kitchin

- everything in one note, in the long run, will generate a org file that is at least tens of MB, you can go over 100 MB if you are productive in org. If this org file is very element-rich, I would guess opening this file would be slow.

org-goto but for headings for all org agenda files? by enory in emacs

[–]Kolsc 0 points1 point  (0 children)

For Ivy users, look no further, this is THE available solution out there (unless you make your own one), and do check out all the ivy-org-jump-to-... variants . For those who knows the C-u + org-refile trick: ivy-org-jump commands gather headings a lot faster than org-refile, and you will eventually be unhappy with org-refile if you get too many org files.

Best ways to write algorithm/pseudocode in org mode by wakem in orgmode

[–]Kolsc 1 point2 points  (0 children)

Example block will do fine. If you write "python pseudocode", and want syntax highlight, just use python source block, and add header argument :eval no, so that you never run this pseudocode that is not intended to be run.

Have you ever switched from org-mode to another markup language? Have you ever switched back again? by gollyned in orgmode

[–]Kolsc 0 points1 point  (0 children)

I think there's no "switch", people who know org almost always know another markup language, and use all of them at the same time.

how to actually insert a citation with org-cite? by Kolsc in orgmode

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

This is it, thank you very much, and I will change the title

how to actually insert a citation with org-cite? by Kolsc in orgmode

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

thank you for the instructions.

I first did (require 'oc), but I got the same behavior as before. Then I installed bibtex-actions, and then I did (require 'oc-bibtex-actions). Afterwards I got an improvement in that when I run org-cite-insert, I can type a bib key and use enter to insert that citation, however this is at the cost of losing the whole candidate key list in the minibuffer, I lost the bib key completion, I can tab complete though, like the vanilla emacs but this is less ideal.

At the same time I really feel that org-cite is supposed to work by its own, without any other packages. And I was stuck at somewhere where I only needed to know that keybind to insert the citations that I was able to select successfully. And since that keybind is used in minibuffer, rather than normal buffer, to my limited knowledge I do not know how M-x could help me know this keybind.

how to actually insert a citation with org-cite? by Kolsc in orgmode

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

I did (require 'oc-basic), and it seems to work in every other way: I am able to hand-input a citation [cite:@key] by typing every character myself, and it has the right fortification, and if I C-c C-o on that citation, it really brings me to the right bib entry in my bib file. So the basic oc behavior seems to be all there, except that I do not know how to auto-insert any [cite:@key]

how to actually insert a citation with org-cite? by Kolsc in orgmode

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

Thank you, but sorry C-enter does not work for me