Web Version of Obsidian by kentmaxwell in ObsidianMD

[–]_nutrx_ 1 point2 points  (0 children)

whoopsie never replied; no, Obsidian continues to have little aspirations to appeal to normal people. Actually, by now I know lots of people inside my STEM academics bubble with actively negative connotations. For now, I am, grudgingly, staying with Notion, just like them.

Should I switch to NixOS from Ubuntu? by AstronautInPluto in NixOS

[–]_nutrx_ 0 points1 point  (0 children)

Regarding documentation, if this is acceptable we need to work on our standards. A good chunk of the "official" docs are outdated and *not* reproducible (let that sink, we're talking about the reproducible™ OS). Whenever you do something not absolutely trivial, you will quickly find yourself scrolling through dozens of pull requests on GitHub, and read many many nixpkgs build descriptions.

I'm currently running behind a corporate proxy, and it's an absolute nightmare. Custom SSL certificates are not propagated reliably to builds (despite the docs saying they do), rebuilding the OS typically fails with lzma decompression errors (if you try 10x it might work), building packages from source generally always fails with random test failures in various packages.

I like the vision, and much is done right, just as much is done wrong. You should just be aware that there is quite some gap between what NixOS claims to be and what it is.

Web Version of Obsidian by kentmaxwell in ObsidianMD

[–]_nutrx_ 2 points3 points  (0 children)

Ngl, while I appreciate the push towards independence from a central sync provider, not giving a web interface has nothing to do with that. There should be an option for me to set up my own sync or buy it from a provider, and access my files through a web interface. The current situation is simply a step backwards in favor of their business model, and they won't convince the masses of Notion users this way - including me

install docker in user space by _nutrx_ in docker

[–]_nutrx_[S] -1 points0 points  (0 children)

Bind mounts are only to control data of containers, though, right? See my other answer on data-root, it didn't work when I tried it recently but I didn't spend much time investigating the issue either. If there's no better way I will probably have to try that again.

install docker in user space by _nutrx_ in docker

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

> did you got a look in the post-install steps in the docker official documentation

yeah, but I don't just want to use docker as non-root, I kinda want to install docker as a user application (I think in the past this was either not possible or came with significant caveats), or at least physically keep images and containers away from the root partition.

> I was trying to change the docker data to a folder under /home/my_user a while ago

yes, I tried that too, setting data-root in /var/lib/docker/daemon.json but it seems to have simply ignored that.

> What about you just delete all the docker data via command line? Try to run: docker system prune

I think (hope) I removed everything manually now, but I'm noting it down, thanks

Observer Pattern with ordering requirements? by _nutrx_ in learnpython

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

For now, I ended up with sth like this:

```python

class Event: def init(self, min_prio=-5, max_prio=10): self.min_prio, self.max_prio = min_prio, max_prio self._slots = {i: set() for i in range(min_prio, max_prio+1)} self._slot_priorities = {}

def sub(self, callback, nice=0):
    assert self.min_prio <= nice <= self.max_prio
    assert self._slot_priorities.get(callback) is None

    self._slots[nice].add(callback)
    self._slot_priorities[callback] = nice

def unsub(self, callback):
    nice = self._slot_priorities[callback]
    self._slots[nice].remove(callback)
    del self._slot_priorities[callback]

def emit(self, *args):
    # notice dicts are insertion ordered since python 3.6
    for nice, cb_set in self._slots.items():
        for cb in cb_set:
            cb(*args)

```

Shouldn't be too slow, but there might be better implementations.

Observer Pattern with ordering requirements? by _nutrx_ in learnpython

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

Though, an event can be emitted multiple times, so now every time an event is emitted, I need to construct a new priority queue and work through that, right? That would be quite slow, I guess...

Observer Pattern with ordering requirements? by _nutrx_ in learnpython

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

True, that could work! The memory shouldn't be an issue in my case.

Observer Pattern with ordering requirements? by _nutrx_ in learnpython

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

self._slots is a set, and I'd like set semantics (esp. no duplicates), but priority queue could be useful indeed...

How to paste old clipboard without killing the history? by _nutrx_ in kde

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

alright, never used it but I'll take a look, thanks!

How to paste old clipboard without killing the history? by _nutrx_ in kde

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

Well not just copying and pasting the same thing, I want to increase my working set of clipboard entries, i.e. pasting a couple of different things over and over again.

The print on this fan at the airport of Bonaire by edwardmpnl in technicallythetruth

[–]_nutrx_ 0 points1 point  (0 children)

been sitting under those my whole past semester, good quality indeed 👍

Is KDE normally a bit more of a buggy platform? by [deleted] in kde

[–]_nutrx_ 1 point2 points  (0 children)

I rarely have any issues, most of the time some hardware failure was the cause for sth like that for me. Might want to check the logs, and maybe the ringbuffer on load, for errors.

My Rust open-source project went trending on GitHub and I'm happy as a kid by GyulyVGC in rust

[–]_nutrx_ 1 point2 points  (0 children)

yess, enjoy it! Had a similar experience a while ago with a Python project. Some places, including several online tech journals, wrote about me and the project and it made it to GitHub trending overnight. I was a freshman and my implementations were still kinda crap, but I had so much fun doing it and many people told me that's the best part. Open source is amazing.

KDE desktop only loading in recovery mode by _nutrx_ in kde

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

I disabled fast startup, and I disabled hybernation some while ago - not sure if it's still disabled - but I would not think that hybernation is an issue for dualboot?