TGTGInsighttelegram intelligenceLIVE / telegram public index
← Python Заметки

TGINSIGHT SIMILAR POSTS

Најди сличен содржај

Изворен канал @pythonotes · Post #411 · 9 фев.

reload_flag="" if [[ -n "${DEBUG}" ]]; then reload_flag="--reload" fi if [[ -n "${WORKER_COUNT}" ]]; then workers=${WORKER_COUNT} else workers=2 fi gunicorn --workers ${workers} \ --bind 0.0.0.0:8000 \ ${reload_flag} main.wsgi Писали такие конструкции чтобы проверить наличие флага и сформировать команду правильно? На самом деле можно сделать тоже самое проще. Для этого используются операторы условной подстановки, доступные в оболочках семейства POSIX. :- для установки значений по умолчанию ${WORKER_COUNT:-2} Если переменная не объявлена, то будет дефолтное значение 2. :+ подставляет указанный текст, если переменная не пуста ${DEBUG:+--reload} Если что-то есть в переменной то распечатается текст после символа +, в противном случае - ничего. Удобно для опциональных флагов, как в нашем примере. Итого наш скрипт может выглядеть так: gunicorn --workers ${WORKER_COUNT:-2} \ --bind 0.0.0.0:8000 \ ${DEBUG:+--reload} main.wsgi Есть еще два оператора. := не только подставить дефолтное значение, но и присвоить его переменной, если она пуста # никаких переменных еще нет VAL1=${VAL2:=hello} # теперь доступны обе echo $VAL1 $VAL2 # hello hello :? остановить выполнение с ошибкой, если переменной нет. echo ${MISS:?is required} bash: MISS: is required Код выхода будет 1. #tricks#linux

Резултати

Пронајдени 5 слични објави

Пребарај: #fertility

当前筛选 #fertility清除筛选
Irina Kalabikhina

@kalabikhina · Post #1193 · 17.02.2026 г., 17:24

🆕10(1)/2026 🔗Отцы и дети: рождаемость у мужчин в России в первой четверти XXI века Михаил Б. Денисенко 1, Ангелина И. Зинина Пол является обязательным атрибутом изучения всех демографических процессов, кроме рождаемости, которая традиционно измеряется относительно женского населения. В последние десятилетия интерес к исследованиям рождаемости мужчин (мужской рождаемости) заметно повысился, что обусловлено переоценкой их роли в формировании и развитии семьи. Цель статьи заключается в привлечении внимания к изучению мужской рождаемости в России. Для этого на основе данных государственной статистики были рассчитаны показатели рождаемости у мужчин за период с 2000 по 2023 г. Было установлено, что соотношение суммарных коэффициентов рождаемости мужчин и женщин в России менялось неоднозначно: до 2011 г. суммарный коэффициент был выше у мужчин, затем ситуация изменилась в пользу женщин. Подобный феномен, как показано в статье, объясняется особенностями изменения возрастного состава населения. Анализ динамики рассчитанных коэффициентов рождаемости и среднего возраста при рождении у мужчин проводится в международном контексте. Отцы в России моложе, чем в других странах с низкой рождаемостью, но это отличие у отцов меньше, чем у матерей. При этом разница в среднем возрасте родителей в России одна из самых больших в Европе. Исследование показывает, что изучение мужской рождаемости по российским данным возможно, и оно дополняет картину демографического развития новой аналитической информацией. ▫️Публикация в журнале осуществляется бесплатно благодаря поддержке «АКБ «Держава» ПАО» и Экономического факультета МГУ имени М.В.Ломоносова. #population_and_economics#fertility

Amazing Geography 🌍

@amazingeo · Post #141 · 30.08.2025 г., 00:12

🌍 The Nile Delta in Egypt is so fertile that it supports over half of the country's crops, even though it covers less than 2% of Egypt’s land area. This small zone is crucial for food production. ✨ #agriculture⚡#delta⚡#fertility⚡#geography⚡#nature⚡#earth 👉subscribe Amazing Geography🌍 ​

Google Facts™ [ ️@googlefactss🌎]

@googlefactss · Post #40153 · 21.11.2025 г., 18:50

🎙️Science Fact: Women's voices sound more attractive when recorded during their most fertile time of the month. 🎶 Studies show listeners rate these voices higher and even experience a slight testosterone boost. [Read more] @googlefactss #VoiceScience#Fertility#Attraction#FunFact#Biology

American Оbserver

@american_observer · Post #5543 · 02.04.2026 г., 17:59

📰 The Baby Cartel: How God Became the World's Last Functioning Daycare Religion isn't beating the fertility crisis with prayer alone. It's running a shadow welfare state — and winning. A new analysis drops a thesis that's been hiding in plain sight: religious communities aren't having more babies because they believe harder. They're having more babies because they built actual infrastructure — mutual aid networks, internal credit markets, communal childcare, endogamous marriage pools — everything the secular state promised and forgot to deliver. "Fertility requires both motivation and infrastructure," the study argues. "Norms without material support are ineffective." Translation: your government's "have more babies" poster campaign isn't a policy. It's a vibe. The framework identifies six interlocking mechanisms — collective childcare, internal economies, meaning narratives, intergenerational norm transfer, endogamous marriage, and residential clustering — that together turn childbearing from a financial catastrophe into a socially subsidized act. Ultra-Orthodox Jews, the Amish, and Iranian post-revolutionary society all run some version of this playbook. None of them asked Brussels or Washington for permission. Iran is the case study nobody wants to discuss. Post-revolution, the regime pumped the ideological gas on fertility — and it worked, briefly. Then the economy ate the infrastructure. Birth rates cratered. God-talk without grocery money is just noise. The kibbutz story is even darker for secular progressives: when collective support systems eroded, fertility dropped — even in communities still ideologically committed to "the collective." The commune dissolved. The cradles emptied. So here's the question secular liberal democracies won't ask out loud: if your society has atomized people so thoroughly that only cults and tightly-knit religious minorities can afford to reproduce — what exactly did modernization optimize for? The researchers frame religious communities as "analytical models," not anomalies. Read: the rest of you are the control group, and you're losing. No hashtag needed. The data is the punchline. #demographics#fertility#religion#welfare#modernization 📱American Оbserver - Stay up to date on all important events 🇺🇸