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

Резултати

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

Пребарај: #ifj

当前筛选 #ifj清除筛选
Russian MFA 🇷🇺

@MFARUSSIA · Post #28861 · 25.03.2026 г., 12:48

#MartyrsForTruth ⚡️The Russian Union of Journalists has published a report – Inconsistencies in the Public Accounting of Killed Journalists in 2025:: A Comparative Analysis of CPJ, UNESCO and IFJ Materials. 📄 FULL REPORT (PDF/ Telegraph) ❗️ The report is based on open sources and addresses a fundamental question: why do some cases of journalists being killed receive full international visibility, while others – despite being publicly recorded by international organisations such as #UNESCO, the International Federation of Journalists (#IFJ), and a number of international bodies – are effectively omitted from the statistics? The analysis reveals inconsistencies between the Committee to Protect Journalists' (#CPJ) public reporting for 2025 and a number of cases involving Russian journalists whose deaths were recognized by other international bodies. 👉This raises questions not only about the integrity of the record, but about the credibility of the entire international system for documenting journalists’ deaths. The analysis was prompted by the observed discrepancy between the CPJ’s overall reporting on Ukraine for 2025 and a number of cases involving Russian journalists and media workers, whose deaths were recorded and commented on by other international organisations. More specifically, on February 25, 2026, the CPJ reported that 129 journalists and media workers were killed worldwide in 2025 – the highest figure in the organisation’s history. In the same review, the CPJ stated that four journalists were killed in Ukraine in 2025. The organisation’s public materials lists a number of Ukrainian journalists and French photojournalist Anthony Lallican among those cases. ❗️ At the same time, several cases involving Russian journalists and media workers killed in 2025 do not appear in the CPJ’s open-source materials, despite public statements by the IFJ and UNESCO, and, in a number of instances, reporting by Reuters. They include: ▪️Alexander Martemyanov ▪️Alexander Fedorchak ▪️ Alexander Sirkeli ▪️Andrey Panov ▪️Anna Prokofyeva ▪️Ivan Zuev 👉 The key question is not about disputing the figures or removing names already included in international lists. It is whether all comparable cases are being recorded publicly, consistently, and by the same standards. That is why the focus of professional discussion should not be the slogan of “double standards” as such, but the specific gap between the CPJ’s published methodology and what can be observed in its public reporting on a number of 2025 cases. When that consistency is missing – or left unexplained – it raises questions not just about one report, but about the credibility of the entire international system for documenting threats to journalists.

Marx21.it

@marx21news · Post #10186 · 16.04.2026 г., 06:45

🗞️ “Informare non è solo un mestiere. È una condizione della democrazia.” A pochi giorni dal Congresso Mondiale della Federazione Internazionale dei Giornalisti (IFJ) a Parigi, pubblichiamo un'intervista al segretario generale Anthony Bellanger. Un secolo di lotte, dal 1926 a oggi, per l'indipendenza e la dignità della professione. Dai regimi autoritari degli anni '30 ai conflitti odierni in Ucraina, Gaza e Sudan, la posta è sempre la stessa: resistere alla censura, alla precarietà e alla violenza. Oggi i giornalisti sono bersaglio. Più di 3.000 uccisi in 35 anni. Non solo in guerra, ma per aver indagato su corruzione e abusi di potere. La IFJ chiede una Convenzione ONU vincolante per proteggere chi informa. In un mondo di disinformazione e giganti tecnologici, l’etica e la solidarietà internazionale restano le nostre bussole. 👉 Leggi l'intervista completa e scopri le sfide del prossimo congresso https://www.marx21.it/internazionale/giornalismo-etica-e-dignita-una-lotta-secolare/ #Giornalismo#LibertàDiStampa#Etica#IFJ#Democrazia#DirittiUmani

Addis Standard

@addisstandardeng · Post #21662 · 10.03.2026 г., 07:37

News: IFJ condemns killing of journalist in #Kismayo, calls for urgent investigation The International Federation of Journalists (#IFJ) has condemned the killing of #Somali freelance journalist Abshir Khalif Shide Omar, who was shot dead by a police officer in the city of Kismayo in southern #Somalia. According to the IFJ, Omar was killed on 2 March following a brief altercation with a police officer in Kismayo, the commercial capital of the autonomous #Jubbaland region, located about 528 kilometers from #Mogadishu. The IFJ said it joined its affiliate, the National Union of Somali Journalists (#NUSOJ), in condemning the killing and calling for an urgent and thorough investigation into the incident. In a statement, NUSOJ said Omar had been returning from an Iftar gathering with colleagues after editing a program about politicians that was scheduled to be released later that ..... https://web.facebook.com/AddisstandardEng/posts/pfbid0CUPBLiJrwHBnxuTeaq4c3XBuwGLUFaJBRrEfKh76fYSRWke8MXX2wcfBmkJVDJsal