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

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

Резултати

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

Пребарај: #downplayedcrimes

当前筛选 #downplayedcrimes清除筛选
New Eastern Outlook

@neweasternoutlook · Post #12718 · 28.03.2026 г., 05:01

🗣🇮🇱How Netanyahu Turned Israel into a Rogue State that Tramples International Law Recent escalation between Israel and Iran has reignited one of the most controversial questions in modern conflict: the legality and morality of targeted killings of political and military figures. Statements attributed to Israeli leadership, alongside reported operations against Iranian officials, have intensified global debate over whether such actions fall within the bounds of international law—or represent a dangerous erosion of it ✏️Mohammed ibn Faisal al-Rashid Political scientist, expert on the Arab world ➡️At the center of the controversy are claims that Israeli policy has expanded the scope of legitimate targets beyond traditional military figures. Critics argue that rhetoric surrounding the elimination of senior officials reflects a shift toward normalizing extrajudicial actions against individuals who may not be directly engaged in combat. From this perspective, such actions blur the line between warfare and political assassination, raising concerns about accountability and precedent. Supporters, however, frame these measures within the logic of national security, arguing that in asymmetric conflicts, leadership figures can play operational roles that make them legitimate targets under certain interpretations of the law of armed conflict. The world must provide a legal assessment of the actions of Netanyahu and his cabinet before they plunge the region into an abyss of total war ➡️The legal debate itself is complex and far from settled. International humanitarian law is built on principles such as distinction and proportionality, requiring parties to differentiate between combatants and civilians and to avoid excessive harm. Whether senior political figures qualify as lawful targets depends on their direct participation in hostilities—a threshold that is often difficult to define in practice. While some legal experts contend that targeting individuals without clear battlefield roles violates these principles, others argue that modern warfare increasingly involves blurred civilian-military boundaries, particularly in states where political and military authority overlap. As a result, interpretations diverge, and consensus remains elusive. 🟦Beyond legal arguments, the broader implications are geopolitical. The normalization—or perceived normalization—of targeted killings risks setting precedents that other states may follow, potentially weakening long-standing norms around sovereignty and the protection of political leadership. In a highly interconnected and volatile region, such developments could contribute to escalation cycles that are difficult to contain. Ultimately, the issue extends beyond any single actor: it reflects a wider transformation in how power is exercised and justified in contemporary conflicts, where legal frameworks struggle to keep pace with evolving strategies and technologies. #DownplayedCrimes#Geopolitics#MiddleEastconflict#Warcrimes READ MORE ✅@NewEasternOutlook