@WorldNews · Post #74378 · 26.04.2026 г., 01:29
Poland's Tusk warns Russia could attack NATO in months [Read FullArticle] @WorldNews#PolandNews#RussiaNATO#GlobalSecurity
TGINSIGHT SIMILAR POSTS
Изворен канал @pythonotes · Post #239 · 3 мај
Один из самых удобных способов записать данные это использование готовых форматов, такие как JSON или YAML. Из плюсов такого подхода стоит отметить вот что: 🔸 готовый, повсеместно используемый и поддерживаемый формат 🔸 простой и понятный файл, удобочитаемый для человека 🔸 можно легко редактировать в любом текстовом редакторе без специальных программ и библиотек Но есть и минусы 🔹 затраты времени при записи файла (кодирование данных в нужный формат строки) 🔹 затраты времени при чтении файла (декодирование данных в Python объекты) 🔹 размер файла увеличивается из-за разметки данных (скобки, запятые, переносы, отступы...) 🔹 перед записью все данные должны быть помещены в память в полном объёме (не всегда) 🔹 при чтении необходимо считать весь файл в память и только потом декодировать данные Если нужно писать немного данных в несколько файлов, то затраты по времени не ощутимы. Обычно это файлы конфига или какие-либо метаданные. Это отличный вариант под такие задачи. Есть и другой поход к записи файлов - это бинарные файлы. Используется, когда данных достаточно много и никто их не собирается читать глазками😳. 🔸 очень быстрая запись 🔸 чтение значительно быстрей чем JSON, YAML итд 🔸 размер файла значительно меньше, так как нет разметки 🔸 можно записывать данные по мере поступления не загружая всё в память 🔸 можно извлечь любую часть данных независимо Из минусов 🔹 нужно определить свой формат записи данных (если не используете готовую спецификацию определённого формата) 🔹 не получится открыть файл и визуально понять что там записано, а для чтения файла потребуется знать его спецификацию. 🔹 не так-то просто создать такой файл без специальной библиотеки В таком виде удобно записывать большой массив любых однородных данных. Например, мониторинг валютной биржи или кэшированная анимация 3D геометрии. (Это не означает что нельзя записать данные разного типа, просто это будет не так удобно) Представьте себе JPG-картинку. По сути это немного мета-информации и большой массив пикселей. Тоже самое со звуком или видео файлом. Поэтому, если вы попробуете открыть картинку в текстовом редакторе вы увидите что-то вроде такого f15d cd29 a564 4578 ... 09e2 9bc4 a696 1253 ... 84e9 4de1 3b23 c24a ... 2534 5161 28e0 709d ... ... Это и есть записанные байтики. И для их чтения требуется определённый софт который знает что с ними делать. Под каждый тип файла. К чему это я? Читайте в следующем посте... #tricks#basic
Пребарај: #russianato
@WorldNews · Post #74378 · 26.04.2026 г., 01:29
Poland's Tusk warns Russia could attack NATO in months [Read FullArticle] @WorldNews#PolandNews#RussiaNATO#GlobalSecurity
@rusconsdanang · Post #72 · 05.03.2022 г., 16:35
🇷🇺 Foreign Minister Sergey Lavrov’s #interview with TV channels RT, NBC News, ABC News, ITN, France 24 and the PRC Media Corporation, Moscow, March 3, 2022. ❓#Question: Unprecedented sanctions pressure is being exerted on the Russian Federation due to the recent events, primarily “on the ground.” Has Russia changed its position? Does the world hear what Russia is saying? What do you think about the ongoing talks in Belarus? What should we expect from the next round? 💬 Sergey #Lavrov: This is a comprehensive question. You have touched on many issues. I am sure the world is listening to Russia, but it is difficult to say at this point the extent to which it hears us. The majority may understand what this is about, but they have to obey the toughest dictate. Speaking frankly, it is of course bad when people die: military servicemen and civilians (women and children). This has been happening in #Donbass for eight years and is now happening during Russia’s special military operation. The goal of this operation is to stop any war that could take place on Ukrainian territory or that could start from there. I have no doubt that a solution will be found. Our minimum terms are well known. They are being discussed, in part, at the talks with Ukrainian representatives. Talks were held in Gomel and new talks were supposed to take place today. However, the Kiev team has again found some reason to postpone the talks. There is no doubt whatsoever that #Ukraine receives instructions from Washington; they are not independent at all. Nevertheless, talks must take place. I will not go into the details of the agenda; they are well known. We can no longer tolerate the threat of direct attack on the Russian Federation from the territory of Ukraine. Such threats are fixed in the current doctrinal documents of the Kiev regime. One of the main reasons is Ukraine’s unrelenting desire to join NATO and the reluctance of the Alliance’s members to fulfil their commitments that they do not take any measures that would enhance their security at the expense of the security of others. In the final analysis, this is not just the situation in Ukraine, the efforts to demilitarise and de-Nazify it, to prevent the continuing manifestations of genocide on its territory, putting a stop to any violence and ensuring for the Ukrainians an opportunity to decide their destiny themselves; no, it is the world order that is at stake. This is for a reason that the West is avoiding, in any way it can, giving a response to our implicit, clear-cut proposals on the security system in Europe that rely on existing agreements. I mentioned the core principle endorsed at the top level by the OSCE which underlies #RussiaNATO relations. Each country has the right to choose alliances. However, no country can strengthen its security at the expense of the security of any other country. No organisation can claim dominance in the Euro-Atlantic space, which is exactly what NATO is doing now. The West strengthening its security at the expense of Russia’s security has become proverbial. We are being told “not to worry because Ukraine or any other country joining NATO will not pose a threat to Russia’s security.” Why should the West tell us what our security needs are? Just like the Americans decided for Germany and Europe what was needed for European energy security. They decided that Nord Stream 2 was something that the EU did not need for its energy security, which would be ensured instead by supplies of liquefied natural gas from the United States at multiple times the cost. The fact is that we are being listened to, but not heard. They are trying in every possible way to impose on us their idea of how to continue living in Europe. The comparison suggests itself. In their time, Napoleon and Hitler set out to subjugate Europe. Now, the United States has taken it over. There was no question about #NATO, and the European Union was shown its place. The story of Nord Stream 2 vividly illustrated the EU’s actual place in the international arena.