@AloneSnowflake · Post #396 · 16.06.2024 г., 21:31
𝐀dd 𝐒ticker ˓ 🔴 ˒ ༅ 𝐉oin 𝐂hannel ⋅•⋅ #Sticker#Boo#MonsterInc
Hashtags
TGINSIGHT SIMILAR POSTS
Изворен канал @pythonotes · Post #9 · 7 јан.
Иногда бывает ситуация когда dev-сервер по какой-либо причине не закрылся и висит в процессах, занимая порт. Это может быть из-за падения IDE или просто сам забыл погасить и закрыл терминал. Для таких случаев я набросал простую функцию с командой: kill_on_port() { port=$(lsof -t -i:$1) echo "KILL PROCESS:" $port sudo kill -9 $port } alias killonport="kill_on_port $@" Код поместить в ~/.bashrc и рестартнуть систему. Если во время старта dev-сервера получаете ошибку что порт уже занят, просто выполните команду, подставив свой порт. Bash kill_on_port 8000 Скорее всего бесполезно, если другой процесс назначен на перезапуск вашего dev-сервера в случае падения. Имя команды можете изменить на любое другое. #linux
Hashtags
Пребарај: #boo
@AloneSnowflake · Post #396 · 16.06.2024 г., 21:31
𝐀dd 𝐒ticker ˓ 🔴 ˒ ༅ 𝐉oin 𝐂hannel ⋅•⋅ #Sticker#Boo#MonsterInc
Hashtags
@djangoproject · Post #195 · 08.11.2016 г., 03:18
http://stackoverflow.com/questions/29269370/how-to-properly-create-and-run-concurrent-tasks-using-pythons-asyncio-module In the case of trying to concurrently run two looping Tasks, I've noticed that unless the Task has an internal await expression, it will get stuck in the while loop, effectively blocking other tasks from running (much like a normal while loop). However, as soon the Tasks have to wait--even for just a fraction of a second--they seem to run concurrently without an issue. Thus, the await statements seem to provide the event loop with a foothold for switching back and forth between the tasks, giving the effect of #concurrency. Example output with internal await: running async test ...#boo 0 ...#baa 0 ...boo 1 ...baa 1 ...boo 2 ...baa 2
Hashtags
@CosineGallery · Post #3741 · 15.11.2025 г., 12:23
無題 Source by pixiv 彰メロ 原始标签:#StellaSora#Boo#Teresa#テレサステラソラ#肚脐 自定义标签:#甜妹#兽耳#可爱 尺寸: 1680x2520 @CosineGallery | 网站 | 3717
@cosplayuploadtest2 · Post #102722 · 23.03.2025 г., 03:37
Title: Natsumi_Ikema_池間夏海,_デジタル限定_YJ_PHOTO_BOO_「なつみ」 Authors: #None Tags: #None#Natsumi_Ikema_池間夏海#デジタル限定_YJ_PHOTO_BOOK#Natsumi#Ikema#池間夏海#デジタル限定 #YJ#PHOTO#BOO #「なつみ」 recommendation: None TelegraphLinks:page-0-33