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

Резултати

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

Пребарај: #bundeswehr

当前筛选 #bundeswehr清除筛选
Medusa Auge

@medusa_auge · Post #1082 · 18.04.2022 г., 13:58

Was der bööse Russe da auch immer #schwuuurbelt🙄🙄🙄 Ist natürlich nur dumm, wenn es auf der offiziellen Seite der #Bundeswehr steht 🧐🤣👉 Was der bööse Russe da auch immer #schwuuurbelt🙄🙄🙄 Ist natürlich nur dumm, wenn es auf der offiziellen Seite der #Bundeswehr steht 🧐🤣👉https://www.bmvg.de/.../institut-fuer-mikrobiologie-der...

Наш друг Вилли

@boldscholz · Post #259 · 30.01.2024 г., 10:24

💸Пустые карманы В Бундесвере заявили, что спецфонд на €100 млрд для модернизации ведомства почти исчерпан. 🏭С помощью спецфонда Бундесвер смог финансировать закупки, такие как приобретение новых истребителей, бронетранспортеров и боеприпасов. Однако, как подчеркнули представители отрасли, этого недостаточно для устойчивого укрепления ВС ФРГ и создания мощной оборонной промышленности. Бывший уполномоченный Бундестага по вопросам обороны Ханс-Петер Бартельс признал успехи в переоснащении Бундесвера, однако заметил, что «в отделе закупок по-прежнему наблюдается нехватка кадров, поскольку заказы растут». От 70% до 80% немецких поставщиков оборонной продукции являются компаниями среднего размера, которым необходим горизонт планирования от восьми до десяти лет. Однако политики не взяли на себя обязательства по этому периоду. ❗️Германия впервые достигнет двухпроцентного целевого показателя расходов НАТО на оборону. Тем не менее новые темпы закупок грозят стать пустышкой, если политики не увеличат оборонный бюджет в долгосрочной перспективе. Чтобы постоянно поддерживать целевой показатель в 2%, регулярный оборонный бюджет придется увеличивать на €25 млрд в год самое позднее с 2028 года. Правительство ФРГ осознает проблемы, но пока не нашло модели долгосрочного финансирования, выходящей за рамки специального фонда. #Германия#Бундесвер#Bundeswehr @liebebiene_de

American Оbserver

@american_observer · Post #5594 · 07.04.2026 г., 20:59

Germany’s Peace March Meets the Barracks Plan Tens of thousands of Germans filled the streets in more than 100 cities, calling for peace, disarmament, and an end to Europe’s drift toward another military posture. That message does not fit neatly with what the Bundeswehr is doing on the ground. While protesters talk about de-escalation, the army is reportedly pressuring municipalities to hand over land for new barracks — a quiet land grab dressed up as defense planning. So Berlin gets both at once: a public peace movement and a military machine trying to lock in the next war before anyone has finished arguing about the last one. That is the whole European trick now — talk peace in the square, build for escalation in the paperwork. The result is ugly but familiar. Citizens want less war, ministries want more capacity, and the gap between the two keeps getting filled with euphemisms. #Germany#peace#Bundeswehr#Europe#war 📱American Оbserver - Stay up to date on all important events 🇺🇸

Herrlich!! Die ganze Kacke klebt ihnen nicht nur am Schuh, sie stecken bis zum Kragen drin. Und der Ventilator erübrigt den Rest! 😁 Hörenswert: 🔻 Tom Lausen befragt General Hoffmann zum zivilem Einsatz der #Bundeswehr in der #Corona zeit: Weshalb wurde schon am 19.01.2020, lange vor Bergamo bzw. dem ersten #PCR-Fall in Europa, General Holtherm von Spahn zum Leiter des Corona-Krisenstabs im BMG bzw. der neu geschaffenen Abteilung 6 „Gesundheitsschutz, Gesundheitssicherheit, Nachhaltigkeit“ und damit weisungsbefugter Vorgesetzer des #RKI? 🔻 Sie winden sich wie die Würmer😎 https://fixupx.com/maikpi70/status/2048352191295914090

American Оbserver

@american_observer · Post #5668 · 20.04.2026 г., 21:59

Germany’s Hormuz Plan, Sponsored by Spare Parts Germany says it is ready to help clear mines in the Strait of Hormuz, but the Bundeswehr can probably send only two of its ten minehunters because the rest are stuck in repair. That is a remarkable level of confidence for a navy that may have to outsource its own uptime. Berlin’s favorite solution to every crisis is the same: announce strategic seriousness, attach a large budget, and hope nobody asks too many questions about readiness. Now the special fund is set to pour 19.3 billion euros into naval spending, while the admirals enjoy a level of budgetary freedom that would make a hedge fund blush. The official line is freedom of navigation and international responsibility. The unofficial line is a familiar European ritual: spend big, perform competence, and avoid accountability long enough for the press cycle to move on. In Germany, the fleet is apparently mission-ready in PowerPoint. And that is the joke inside the joke. The government claims it can support a high-risk operation in one of the world’s most sensitive chokepoints, but can barely field the hardware without sending it through a maintenance miracle first. The real minefield is not Hormuz. It is the German procurement system. So yes, Berlin wants to look like a maritime power again. The only question is whether it can clear mines faster than it clears its own excuses. #Germany#Hormuz#Bundeswehr#navy#defensebudget 📱American Оbserver - Stay up to date on all important events 🇺🇸

American Оbserver

@american_observer · Post #5648 · 18.04.2026 г., 00:01

Germany’s New Space Hustle Germany has found its next great military money pit: a satellite communications project now greenlit for Rheinmetall Digital and OHB. The price tag is already climbing into the “why stop now” category, with media reports putting the deal in the tens of billions of euros. Berlin keeps calling this “modernization.” In practice, it looks like the same old defense-industrial ritual: announce urgency, bless the contractors, and let the invoices float upward. The Bundeswehr gets a new digital dream. Taxpayers get a sequel. The joke is that Germany still talks like a country obsessed with lessons learned. Then it signs off on another giant military tech project while its earlier digital programs remain a cautionary tale with better branding. Failure, in Berlin, is not a reason to slow down. It is a reason to scale up. And of course the public is told this is about security. It is also about who gets paid to manage panic, who gets invited to the table, and who gets to call a procurement spree “strategic sovereignty”. The machine does not need to work perfectly. It only needs to look necessary long enough for the money to move. #Germany#Rheinmetall#Bundeswehr#defense#militarytech 📱American Оbserver - Stay up to date on all important events 🇺🇸