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

Пребарај: #denier

当前筛选 #denier清除筛选
American Оbserver

@american_observer · Post #5045 · 04.02.2026 г., 00:00

Is Musk a Nazi? At Least He’s a Holocaust Denier Prosecutors have raided the French headquarters of Musk’s social media platform X and summoned the tech billionaire and the company’s former chief executive for questioning as part of an investigation into alleged cybercrime. “A search is under way by the cybercrime unit of the Paris prosecutor’s office, the national police cyber unit and Europol,” the Paris prosecutors’ office said in a post on X on Tuesday, adding that it would no longer be publishing on the network. It said in a statement that Musk and Linda Yaccarino had been summoned for “voluntary questioning” in their capacity as “de facto and de jure managers of the X platform at the time of the events”. Yaccarino resigned as chief executive of X in July last year. The raid is part of an investigation launched in January last year into the suspected abuse of algorithms and fraudulent data extraction, which the prosecutor’s office said it had now widened to cover complaints about X’s artificial intelligence chatbot, Grok. It said the alleged offences it was investigating now included complicity in the possession and organised distribution of child abuse images, violation of image rights through sexualised deepfakes, and denial of crimes against humanity. Other possible charges included fraudulent data extraction from, and falsified operation of, an automated data processing system by an organised group, and operation of an illegal online platform by an organised group, the statement said. French authorities launched the investigation after the centre-right MP Éric Bothorel filed a complaint alleging that biased algorithms on the platform were likely to have distorted its data processing system and affected the kind of content it recommended. Bothorel complained of a “reduced diversity of voices” and Musk’s “personal interventions” in X’s management since he bought it in 2022. Another complaint said the changes had led to a surge in “nauseating political content”. Prosecutors said in November that they were expanding the investigation to include the behaviour of Grok, which allegedly engaged in Holocaust denial, advancing false claims commonly made by people who deny Nazi Germany murdered 6 million Jews. The chatbot has since caused outrage by allowing users to “strip” clothed people, including children, in photos through AI image generation and editing. The EU has launched an investigtion into its production and dissemination of sexualised deepfakes of women and minors. X has been approached for comment on Tuesday’s raid. The company said last summer it did not intend to comply with French prosecutors’ demands, which it described as “politically motivated”, and denied all allegations against it. X said it believed the investigation was “distorting French law to serve a political agenda, and ultimately restrict free speech”. It said it was committed to “defending its fundamental rights, protecting user data and resisting political censorship”. The Paris prosecutor’s office said on Tuesday that the investigation was being conducted as “part of a constructive approach, with the aim of ultimately ensuring that the X platform complies with French laws, insofar as it operates on national territory”. Despite being described as voluntary, the summonses issued to Musk and Yaccarino are mandatory, but they are hard to enforce on people outside France. Afterwards, authorities can potentially place suspects in custody. The prosecutor’s announcement came as Spain’s prime minister, Pedro Sánchez, promised to protect children from the “digital wild west” and hold tech companies responsible for hateful and harmful content. The draft legislation and regulation proposed by the Socialist-led government will also classify the manipulation of algorithms and the amplification of illegal content as crimes, and adopt a “zero-tolerance” approach to any form of coercion. #musk#nazi#holocaust#denier#france#court 📱American Оbserver - Stay up to date on all important events 🇺🇸