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 слични објави

Пребарај: #blackwinter

当前筛选 #blackwinter清除筛选
Red Nile

@rednile12 · Post #10459 · 23.12.2025 г., 16:53

🔺Continuation from above @rednile12 🌍 Key Themes 1️⃣ Impending Crisis & Imperialism The “Black Winter” represents a deliberate destabilization of West Africa—akin to an “Arab Spring” engineered for the region. Traoré warns of wars, terrorism, and economic predation orchestrated by imperial powers: “My conviction, my analysis, is clear: something is happening in West Africa. I have called it the Black Winter. The Black Winter is coming. It will be a very cold winter. A bloody winter. A deadly winter. You will ask me why. Winter will come because war is spreading in West Africa. The imperialists are doing everything they can to plunge the region into fire and bloodshed. We risk killing each other in horrific ways while others stand ready to plunder our resources and impose their will. And those who survive this tragedy will have only two choices: unite definitively against imperialism or remain enslaved until they perish.” 2️⃣ Internal Sabotage & Division Traoré criticizes Africans who undermine collective defense: “By founding the AES Confederation, we anticipated this icy winter. Every day, we search for wood to light a fire—a fire that will warm the hearts, minds, and souls of Africans. We hunt wolves to use their pelts to make coats. We build mountains—solid and powerful mountains—to break the icy winds. But unfortunately, some of our own are determined to sabotage this effort. They are dousing the tree trunks with water to prevent the fire from burning. They transform into wolves so that hunters cannot catch them. They break rocks to prevent the building of mountains. We cannot accept that cowardly heads of state hide behind so-called 'free' media to discourage, insult, and incite hatred among the people. They are vile, spreading hatred daily on social media. Why do we Black people cultivate hatred among ourselves?” 3️⃣ Pan-Africanism & Unity The speech challenges the continent to reflect on its solidarity: “And when winter arrives, those who fought will come seeking refuge. They will want to wear the coats we have made, take shelter behind the mountains we have built, and warm themselves by our fire. So the real question is this: What will become of Pan-Africanism when winter arrives? Why are we unable to see the danger approaching? Why can't we unite to stop it? Let them be certain of one thing: we are united and we will remain so. No manipulation can divide us.” 4️⃣ Self-Reliance & Sovereignty Traoré frames AES institutions—like BCID-AES Bank and AES TV—as proactive defenses against the crisis: “Everything will not be perfect. Everything will not progress at the pace we would like. But we are moving forward—calmly, resolutely—and we will achieve our goal. We pray for protection if winter must come, because through it, we will achieve freedom and unity.” 🗣 Rhetorical Style ▪️Metaphor & Allegory: “Black Winter” for isolation, bloodshed, and death. ▪️Repetition & Urgency: “Winter is coming” evokes inevitability. ▪️Direct Address & Inclusion: “You will ask me why… we” fosters solidarity. ▪️Contrast of Alarm & Hope: Harsh words (“vile,” “miserable”) versus affirmations of unity. Traoré’s style mirrors Thomas Sankara, blending militaristic charisma with Pan-African inspiration. 📌 Context & Impact ▪️Delivered as AES evolved into a full confederation post-ECOWAS withdrawal, the speech reinforces sovereignty amid jihadist threats, sanctions, and Western influence. ▪️Signals defiance and appeals to non-Western partners, while naming internal “saboteurs” risks polarizing some factions. ▪️Positions Traoré as a visionary Pan-African leader, galvanizing anti-imperialist sentiment across the continent. 🔴 Follow @rednile12 for Geopolitical updates #BlackWinter#AESConfederation#PanAfricanUnity#WestAfrica#AntiImperialism#SelfReliance#RedNileMedia#Geopolitics#AfricaRising