Sponsorship Open: “Run Your Own Mail Server” - Michael Lucas: https://mwl.io/archives/22665
@mo ок, у меня тоже дела
@mo это загадка для меня. Тут надо код смотреть
@mo интересно, но не понятно, почему он видит старое значение.
Я стараюсь такие ситуации избегать или созданием объекта, который хранит состояние и передается кому надо, или избежанием присваивания
Вместо
def f():
global x = 1
Что-то типа
x = []
def f();
x.append(1)
Список это просто пример мутабельной структуры.
@mo
Если первый вариант был таким
from main import rmq_connection
То новые значения rmq_connection не будут видны.
import main
....
print(main.rmq_connection)
Должен видеть новое значение.
I use Wireguard to setup a private network and selfhost apps on a server at home with running a reverse proxy in the cloud. This setup works great.
Today I'll give https://github.com/juanfont/headscale a try to see whether it simplifies client management
I got my personal instance of @forgejo running with @WoodpeckerCI and now I’ve really got no reason to miss GitHub or Docker Hub for my personal projects. Recommend this setup highly to others who are trying to reduce their dependence on proprietary providers.
Can anyone tell me how I can stove Chromium-based browser for babysitting me when I connect through a portal?
Yes, thank you, I know hackers (my IT department) is using insecure methods (http) but that's what I have to use until I jump on a VPN.
How do I just make it open the portal and shut up? I tired turning off https only and allowing the site through a whitelist on the security tab, doesn't work.
Pro tip: use nmcli(1) to turn your computer into a Wi-Fi hotspot from a command line, then scan QR code to connect your phone!
#NetworkManager #Linux #WiFi #nmcli
@aral it looks great. I'll give it a try and might migrate from tmux.
On a related note, fewonths ago I gave fish a try and never looked back.
This is another song that sounds different now than it sounded back then.
When I was in highschool, there was a New Year show that invited pop and rock artists to sing together and have fun. That was a neat, fresh and fun to watch alternative to established Russian mainstream shows in mid 2000s.
Back then this video of a Russian, a Ukrainian and a Latvian was just a performance. I could not imagine that there would be time that this would be impossible. Now I'm not even sure that I'll see something similar in my lifespan.
I'm looking for an offline tool to locally review Git commits/PR
My need is to regularly look for updates in a repository, and mark commits I reviewed myself. This can't be plugged in into an existing repo / tool.
Any idea if something exists?
Let imagine I want to review changes in a package repository after it has been merged upstream, but I want to keep track of my work (and ideally publish it)
@aliceschwarze It's a tiny C++ binary that's good at creating and updating environments.
I use both conda and micromamba.
```
micromamba create -p .venv/ -f environment.yml
```
and
```
micromamba update -f environment.yml -p .venv/
```
to create and update the env. When a new dependency is added, I need to run `micromamba install`.
After that usual `conda activate .venv/` activates the env.
@aliceschwarze I've noticed that conda became much slower, especially if cuda is among the dependencies.
Now I use micromamba to manage the environments.
https://mamba.readthedocs.io/en/latest/installation.html#micromamba
The documentation is a bit all over the place. You basically need to get the micromamba binary in your path and you are ready to use.
Starting today you can order free COVID tests from the US Government again. Keep you and your family safe by testing this holiday season. https://www.covid.gov/tests
Computer science, computational linguistics, running, swimming, photography.