@TFGames · Post #1837 · 05.01.2024 г., 15:35
#NSO#BASIC#OFFICIAL#GAMES https://testflight.apple.com/join/23GmpwW3
TGINSIGHT SIMILAR POSTS
Изворен канал @pythonotes · Post #210 · 3 фев.
Что делать если нужно поставить какую-то Python-библиотеку а root-прав нет? То есть в систему библиотеку никак и ничего не поставить. Есть как минимум два способа это решить правильно! 🔸 Сделать виртуальное окружение и ставить там что угодно. Это позволит создать полностью независимое исполняемое окружение для ваших приложений. Все библиотеки будут храниться в домашней директории юзера а значит доступ на запись имеется. Создать очень просто: python3 -m venv ~/venvs/myenvname Теперь активируем окружение # Linux source ~/venvs/myenvname/bin/activate # Windows %userprofile%\venvs\myenvname\Scripts\activate.bat Можно ставить любые библиотеки и запускать приложение. Это стандартный метод работы с любым проектом. Если еще не используете его, то пора начинать. Даже при наличии root доступа! 🔸 Бывает, что нет возможности запустить приложение из своего виртуального окружения. Например, его запускает какой-то сервис от вашего юзера и вставить активацию окружения вы не можете. В этом случае можно установить библиотеки для Python не глобально в систему, а только для юзера. Выполните этот код в консоли: python3 -m site Вы получите что-то такое: sys.path = [ '/home/user', '/usr/lib/python37.zip', '/usr/lib/python3.7', '/usr/lib/python3.7/lib-dynload', '/home/user/.local/lib/python3.7/site-packages', ... ] USER_BASE: '/home/user/.local' USER_SITE: '/home/user/.local/lib/python3.7/site-packages' ENABLE_USER_SITE: True Нас интересует параметр USER_SITE. Это путь к пользовательским библиотекам, которые доступны по умолчанию, если они есть. Именно сюда будут устанавливаться модули если добавить флаг --user при установке чего-либо через pip pip install --user requests Для этой команды не нужны root-права. После неё можно запускать системный интерпретатор без виртуальных окружений и установленная библиотека будет доступна для текущего юзера. Параметр USER_BASE показывает корневую директорию для хранения user-библиотек. Её можно изменить с помощью переменной окружения PYTHONUSERBASE export PYTHONUSERBASE=~/pylibs python3 -m site ... USER_BASE: '/home/user/pylibs' USER_SITE: '/home/user/pylibs/lib/python3.7/site-packages' Получается некоторое подобие виртуального окружения для бедных 😁 которое можно менять через эту переменную (не делайте так!Лучше venv!) 🔸 Дописывание пути в PYTHONPATH Этот способ не входит в список "двух правильных", но тоже рабочий. Здесь придётся сделать всё несколько сложней. Сначала ставим библиотеку в любое место указывая путь установки pip3 install -t ~/mylibs modulename Библиотека установится без привязки к какому-либо интерпретатору. То есть по умолчанию не будет видна. Теперь в нужный момент добавляем этот путь в sys.path или в PYTHONPATH. Не буду советовать так делать. Единственный раз когда этот способ мне пригодился и решил поставленную задачу, это при создании общей библиотеки для кластера компьютеров. Модули лежат в сети и подгружаются для всех из одного и того же места. То есть обновлять файлы требуется только один раз а не на всех хосты отдельно. Минусы такого подхода: ▫️Нужно всем хостам пробить нужный путь в .bashrc или ещё куда-то чтобы он сетапился на старте. ▫️Чем больше хостов тем больше нагрузка на сеть. Иногда такой способ не подходит именно по этой причине. Тогда Ansible вам в помощь. ▫️Не очень подходит если хосты с разными операционками. Некоторые библиотеки различаются для Linux и Windows (там, где есть бинарники) и приходится мудрить более сложные схемы. #tricks#basic
Глобално пребарување
@TFGames · Post #1837 · 05.01.2024 г., 15:35
#NSO#BASIC#OFFICIAL#GAMES https://testflight.apple.com/join/23GmpwW3
@sudo_recast · Post #918 · 17.04.2025 г., 09:47
A useful command when you encounter conflicts while cherry-picking: tig HEAD $(git rev-parse CHERRY_PICK_HEAD 2>/dev/null) -- $(git diff --name-only --diff-filter=U | head -1) #tricks@sudo_recast
Hashtags
@mdcuzbekistan · Post #50 · 26.06.2021 г., 05:52
List Qishloqdan kelganlar list nimaligini uncha tushunmaydi, o'zi list ham shu qo'yxonaga o'xshagan narsa (Xojiboy Tojiboyev) 😂 List - elementlarni va obyektlarni saqlashga moslashgan to'plam. Bu to'plamga List deb nom berilishiga sabab, ro'yxatlar bilan qulay ishlash mumkin (tarjimasidan bilib olsa bo'ladi). Ro'yxatda nima qilishimiz mumkin, elementlarni ixtiyoriy joyga qo'shish yoki ixtiyoriy joyidan o'chirib tashlash va tartiblash (sort) funksiyasi borligi bilan boshqa to'plamlardan ajralib turadi. 👉Batafsil 👨🏫 Mentor: Tolibjonov Abdulloh #csharp#collection#list#basic .NET Uzbekistan Community ______ Telegram | Instagram | Youtube
Hashtags
@mdcuzbekistan · Post #133 · 20.09.2021 г., 08:30
MVC nima? MVC bu - Model (Model) View (Ko'rinish) Controller (Kontroller) so'zlarning bosh harflari qisqartmasidan olingan bo'lib Architectural design pattern (Arxitekturaviy dizayn paterni) hisoblanadi. 👉Batafsil 👨🏫 Mentor: Temur G'aniyev #csharp#mvc#basic#dotnet .NET Uzbekistan Community __________ Telegram | Instagram | Youtube
@WangZhuanZhan · Post #34641 · 31.10.2024 г., 14:33
A-a爱a情q故g事s - 爱情故事 愛情故事 (2009) (普通话) 直达链接:https://pan.quark.cn/s/b1b575eba83a #爱情故事 #愛情故事 #Basic Love 链接:https://link3.cc/sf_com #电影#爱情#内地#00年代
@WangZhuanZhan · Post #34640 · 31.10.2024 г., 14:30
A-a爱a情q故g事s- 爱情故事 愛情故事 (2009) (粤语) 直达链接:https://pan.quark.cn/s/837f77d0ded7 #爱情故事 #愛情故事 #Basic Love 链接:https://link3.cc/sf_com #电影#爱情#内地#00年代
@american_observer · Post #4905 · 20.01.2026 г., 16:59
The Inhuman World of Ours: Millions of Pregnant Women Without the Basic Care A global shortage of nearly a million midwives is leaving pregnant women without the basic care needed to prevent harm, including the deaths of mothers and babies, according to new research. Almost half the shortage was in Africa, where nine in 10 women lived in a country without enough midwives, the researchers said. Anna af Ugglas, chief executive of the International Confederation of Midwives (ICM) and one of the study’s authors, said: “Nearly 1 million missing midwives means health systems are stretched beyond capacity, midwives are overworked and underpaid, and care becomes rushed and fragmented. “Intervention rates rise, and women are more likely to experience poor-quality care or mistreatment,” she said. “This is not only a workforce issue, it is a quality and safety issue for women and babies.” For all women to receive safe, good-quality care before, during and after pregnancy, an additional 980,000 midwives would be needed across 181 countries, the study found. According to previous research, universal access to midwife-delivered care could prevent two-thirds of maternal and newborn deaths and stillbirths, saving 4.3 million lives annually by 2035. The ICM said the issue was not only a lack of training places for midwives, but also a failure in many countries to employ trained midwives where they were needed and to retain those who were working in health services. Prof Jacqueline Dunkley-Bent, ICM’s chief midwife and another of the report’s authors, said: “In many settings, midwives are educated but not absorbed into the workforce or not enabled to practise fully, compounding this already serious and universal shortage of midwives, and still leaving women without access to the care that midwives are trained to provide.” More than 90% of the global midwife shortage was in low- and middle-income countries. Africa has only 40% of the midwives it needs, the eastern Mediterranean only 31%, and the Americas just 15%, researchers found. Shortfalls were much smaller, although still present, in other regions including south-east Asia and Europe. The study, published in the journal Women and Birth, estimated the number of midwives who would be needed to carry out a list of basic midwifery tasks for all eligible women and babies in 181 countries. The tasks included counselling on contraception, antenatal care and screening, and care during childbirth. Although midwife numbers were increasing, the gap between what was needed and the available workforce looked likely to “persist well into the next decade”, the researchers said – beyond the 2030 deadline set by global sustainable development. #millions#pregnant#women#basic#care 📱American Оbserver - Stay up to date on all important events 🇺🇸
@notguide · Post #21 · 28.05.2024 г., 16:00
Not Guide Navigation Our goal is to make the process of learning web3 understandable, interactive, and beneficial for everyone. We've collected all the necessary guides and instructions in one place. Current campaigns: ⁃ Basics of web3 ⁃ NFTs. Pictures worth millions ⁃ Everything about the TON blockchain ⁃ How to buy cryptocurrency Hashtags: ⁃ #basic / #intern / #advanced ⁃ #earnings ⁃ #update Reflect, doubt, explore. 💎