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

Резултати

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

Пребарај: #internationallaw

当前筛选 #internationallaw清除筛选
Venezuelanalysis

@venanalysis · Post #2235 · 08.01.2026 г., 22:07

🖊🗞OPINION | Four Observations on the US Kidnapping of Nicolás Maduro Jonathan Cook exposes the West's pliancy and subordination to US dictates in the wake of Venezuelan President Nicolás Maduro's kidnapping. "Difficult as it is for westerners to hear, we don’t need a stronger West, we need a weaker one. Harder still, Trump is teaching us that the very concept of 'the West' is an illusion." Read the article: https://venezuelanalysis.com/analysis/four-observations-on-the-us-kidnapping-of-nicolas-maduro/ #TrumpAdministration#InternationalLaw#NicolasMaduro#Imperialism

Freedom Flotilla Coalition

@FFC_official_channel · Post #308 · 29.05.2025 г., 20:58

As Gaza endures relentless bombing and deliberate starvation, world governments remain complicit through their silence. Ordinary people are stepping up where states have failed. The Freedom Flotilla Coalition is setting sail once again—despite repeated efforts to block it—to break the siege and open a sea corridor to Gaza. International lawyer Luigi Daniele lays out the legal basis for this mission and exposes the shameful inaction of EU states in the face of clear and urgent humanitarian obligations. #FreedomFlotilla#Gaza#BreakTheSiege#InternationalLaw#HumanRights

🇷🇺@RusEmbMalta Press Release On the EU’s Continued Support for the Kiev Regime 21 October 2025 The Russian Federation reaffirms its firm and consistent opposition to the course pursued by the European Union toward the continued military and financial support of the Kiev regime. Such actions are viewed in Moscow as short-sighted and counterproductive, serving neither the interests of peace nor the long-term stability of the European continent. The ongoing supply of weapons, financial resources, and political backing to Kiev only deepens the confrontation, prolongs hostilities, and increases the suffering of civilians. Russia stresses that the current policy of the EU effectively transforms Europe into a participant in the conflict, undermining its role as an independent center of diplomacy and stability. The growing militarization of the European space, the deployment of NATO infrastructure near Russian borders, and the escalation of sanctions pressure have all contributed to a dangerous erosion of Europe’s security architecture. Attempts to justify these steps under the pretext of “supporting democracy” in Kiev ignore the reality of widespread corruption, human rights violations, and the suppression of dissent by the current authorities. The continued allocation of billions of euros to maintain the Kiev regime, at the expense of the social and economic needs of EU citizens themselves, is increasingly questioned within Europe. The Russian Federation once again emphasizes that the path to peace lies not through escalation, coercion, or economic blackmail, but through responsible diplomacy and mutual respect. Sustainable European security must be built on the principles of equality, indivisibility, and the rejection of bloc confrontation. 🕊️ Russia remains open to constructive dialogue with all who are genuinely interested in achieving peace and restoring stability on the European continent. #Russia#EuropeanSecurity#InternationalLaw

Venezuelanalysis

@venanalysis · Post #2230 · 05.01.2026 г., 07:16

📰 NEWS | Venezuela: Latin American Countries Jointly Condemn US Attacks as Interim Gov’t Backs Maduro The governments of Brazil, Chile, Colombia, Mexico, Uruguay, and Spain issued a joint statement Sunday rejecting “unilateral US actions in Venezuelan territory.” In Caracas, the Supreme Court ruled that Vice President Delcy Rodríguez will take over the presidency on an interim basis. The armed forces issued a statement demanding the release of kidnapped President Nicolás Maduro. Read the report: https://venezuelanalysis.com/news/venezuela-latin-american-countries-jointly-condemn-us-attacks-as-interim-govt-backs-maduro/ #InternationalLaw#Venezuela#Sovereignty#FANB

Venezuelanalysis

@venanalysis · Post #2243 · 14.01.2026 г., 04:02

🖊OPINION | The Kidnapping of Venezuela’s Sovereignty "The kidnapping of Nicolás Maduro and National Assembly deputy Cilia Flores should compel a fundamental reassessment of the state of the international order." Tricontinental Institute researchers Atul Chandra and Tings Chak look at the recent US attacks and their implications for multilateralism and international law. Follow the link to read the article: https://venezuelanalysis.com/analysis/the-kidnapping-of-venezuelas-sovereignty/ #InternationalLaw#Multilateralism#Sovereignty#NicolasMaduro

MessageInABottle

@mib_messageinabottle · Post #6952 · 26.05.2024 г., 12:50

So much for "The 'Rules-Based' Order" 🤷‍♂ THE #USA NOW REJECTS THE VERY CONCEPT OF INTERNATIONAL LAW ITSELF. Speaker for the US House of #Congress Mike #Johnson (R - Israel): "We don't put any international body above our #sovereignty" " "International body above sovereignty" is the very definition of #InternationalLaw.😂

@RusEmbMalta Press release: 🇷🇺 Russia’s Foreign Ministry Statement on Gaza On August 8, Israel’s security cabinet approved plans to expand military operations in the Gaza Strip – targeting the once most populous central area. 📢Reports indicate that all Palestinian civilians will be forcibly evacuated, with plans for full military occupation. ⚠️These actions – already widely condemned – risk deepening the humanitarian catastrophe in Gaza and destabilising the entire Middle East. 🇷🇺 Russia’s position is clear: 🔹 Immediate ceasefire. 🔹Release of all hostages and detainees. 🔹 Unhindered humanitarian access. Moscow reaffirms: the only path forward is within international law – the two-state solution, creating an independent Palestinian state within the 1967 borders, with East Jerusalem as its capital, living in peace and security alongside Israel. #Russia#Gaza#MiddleEast#TwoStateSolution#HumanRights#InternationalLaw

Uzbekistan condemned Israel’s strikes on a residential area in Doha, calling them a breach of sovereignty and a threat to Qatar’s security. Read more on our website. https://yep.uz/en/2025/09/uzbekistan-condemns-israel-strikes-doha/ #uzbekistan#doha#israel#qatar#internationalLaw#middleEast

American Оbserver

@american_observer · Post #5478 · 26.03.2026 г., 20:59

📰 Germany’s President Calls Out Trump’s Iran War Germany’s head of state just said out loud what most European leaders only hint at behind closed doors. President Frank-Walter Steinmeier called the U.S.–Israeli war on Iran a “politically disastrous mistake” and “a violation of international law,” in one of the bluntest rebukes of an American president from Berlin in decades. Speaking at the Foreign Ministry, he warned that Trump’s second term has created a rupture in transatlantic relations as deep as Russia’s full-scale invasion of Ukraine — a break he says cannot simply be reversed later. Steinmeier’s point cuts through the spin: Washington claims “imminent threat” and “self‑defense”; Berlin’s own former foreign minister says that justification “does not hold water” and that this war was avoidable, unnecessary, and chosen over a working nuclear deal that had pushed Iran further from the bomb. Coming from a traditionally cautious, ceremonial president, this isn’t activist rhetoric — it’s a diplomatic siren. The result: Trump hasn't just isolated Iran. He's burning something harder to restore than deterrence: the assumption that Washington's allies will follow the next time it calls something self-defense. For a president convinced that American leverage is endless, that erosion of trust is the one resource he can’t bomb his way back into existence. #germany#usa#iran#trump#steinmeier#internationalLaw#war#geopolitics 📱American Оbserver - Stay up to date on all important events 🇺🇸

@RusEmbMalta: 🇷🇺 Comment by the Russian Ambassador to Malta, Andrey Lopukhov on the article by Edward Zammit Lewis, Chairperson of the Foreign and European Affairs Parliamentary Standing Committee, Malta, published in Times of Malta. Key points: 🔹 Any “tribunals” or “funds” without UN Security Council mandate are legally null and void. 🔹 Malta’s neutrality cannot mean one-sided support for Ukraine alone. 🔹 Root causes of the crisis: Kiev’s refusal to implement the Minsk agreements, discrimination of Russian speakers, and NATO’s expansionist course. 🔹 Ignoring Kiev’s violations is not neutrality, but bias. 🔹 Confiscation of Russian assets in Europe = violation of the principle of property inviolability. 🔹 History shows: pressure and force against Russia have never worked. 👉 Full text: read #RussiaMalta#RussiaEU#UkraineCrisis#InternationalLaw

Marwa Osman/MidEaStream

@Marwa_OsmanLB · Post #3646 · 14.11.2024 г., 10:31

#Israel is bombarding residential areas just meters from #Beirut International Airport, where civilian flights are landing in real time. The strikes put thousands of innocent lives at immediate risk, blatantly violating international law by targeting civilian infrastructure and densely populated areas. Yet where is the international outrage? Why does the world remain silent while Israel commits these acts with complete impunity? This isn’t just a tragedy for Lebanon—it’s a catastrophic precedent for global justice, human rights, and the rule of law. #BeirutUnderAttack#InternationalLaw#StandWithLebanon

12
ПретходнаСтраница 1 од 2Следна