taaz

joined 1 year ago
[–] taaz@biglemmowski.win 4 points 5 months ago (1 children)

What/who wrote this article? There seem to be extra words here and there

[–] taaz@biglemmowski.win 43 points 5 months ago

Matter of time, good while it lasted

[–] taaz@biglemmowski.win 6 points 5 months ago (1 children)

Oh interesting I will have to look how tessaract does it

[–] taaz@biglemmowski.win 5 points 5 months ago* (last edited 5 months ago) (4 children)

What a dumb way to do image proxying.

This is about proxying external images, URL rewrite won't work unless the image is also downloaded and hosted by the instance (which seems even worse for many reasons).
Or am I missing something here?

[–] taaz@biglemmowski.win 1 points 5 months ago* (last edited 5 months ago)

Afaik constant use of paracetamol has most impact on stomach, it does something to the lining.
Or maybe that was ibuprofen?

Not a medical professional either way so

Edit: Root cause aside as people have already told you here, I would try CBD it might help and shouldn't strain the body as much.

[–] taaz@biglemmowski.win 4 points 5 months ago (2 children)

Long Earth was good, lots of classics here as well

[–] taaz@biglemmowski.win 2 points 5 months ago

Yeah kinda, unix socket does count as ipc

[–] taaz@biglemmowski.win 4 points 5 months ago* (last edited 5 months ago) (2 children)
  1. Is the usual solution, but instead of file use unix socket and user/group permissions as auth - the running user has to be part of some group so that the control client (A) can access the control socket of (B) daemon.

Alternatively you could use capabilities:

https://stackoverflow.com/a/414258

https://man7.org/linux/man-pages/man7/capabilities.7.html

[–] taaz@biglemmowski.win 4 points 5 months ago* (last edited 5 months ago)

I have been pretty content with just zsh with fzf - extends the ctrl+R with interactive fuzzy search across the history.

In theory some session like behaviour should be easy to make with a little script that changes $HISTFILE

[–] taaz@biglemmowski.win 3 points 5 months ago* (last edited 5 months ago) (1 children)

Using pip to install packages outside of venv was always a risk, (newer) pip now has this mechanism to really drive the point home that this can break stuff.

Do I have to do this everytime I start the script via console?

Yes, one way to get rid of this requirement is to package the script as binary/executable package (add pyproject.toml with some sane defaults and with proper [project.scripts]) and then install the project using pipx - pipx install -e path/to/the/project/, the -e flag stands for editable and is nice to have here as you won't have to reinstall everytime you change the script.
What pipx does is that it creates the local virtualenv, installs everything the package declares as needed and adds a special executable script into location like ~/.local/bin/ that first sources the venv and then starts the entry script - keeping everything isolated.

[–] taaz@biglemmowski.win 7 points 5 months ago (3 children)

You will want to use virtualenv, it creates isolated "workspace" so that system (python) packages do not conflict or mix.

https://docs.python.org/3/tutorial/venv.html

[–] taaz@biglemmowski.win 6 points 5 months ago* (last edited 5 months ago) (5 children)

pipx won't work for that, it's a library.

If you are working on your own project/script, you should use virtualenv for development and install all required libraries there.
If you need it because some system installed application or part of your system does not work without it then... you are in bad place - pip is python package manager primarily used for general python development (installing depending packages, and in theory also for packaging python projects) but it should never be used as system wide package manager - you will break stuff (especially when used with sudo).

view more: ‹ prev next ›