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

Резултати

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

Пребарај: #discrimination

当前筛选 #discrimination清除筛选
AI & Law

@ai_and_law · Post #93 · 24.08.2023 г., 07:04

Historic Settlement: EEOC Resolves AI-Driven Age Discrimination Case The Equal Employment Opportunity Commission (EEOC) has reached a groundbreaking settlement with iTutorGroup for $365,000 over allegations of AI-driven age discrimination. This marks the first-ever settlement against AI-powered recruitment tools in the US. The EEOC filed the lawsuit in May 2022, accusing iTutorGroup of using an algorithm that automatically rejected older job applicants based on their age. Women over 55 and men over 60 were disproportionately affected by this automated process, which violated the Age Discrimination Act's protections for individuals aged 40 and above. With litigation initiated in the U.S. District Court for the Eastern District of New York, the EEOC's efforts to conciliate prior to legal action were unsuccessful. As a result, the case was set for a settlement conference in October 2023. However, the EEOC has now settled the case for $365,000, underlining the significance of this legal victory. As part of the consent decree, iTutorGroup is barred from automatically rejecting candidates based on age or gender. The company is required to adhere to non-discrimination laws and collaborate with the EEOC to establish policies that prevent unlawful discrimination in the future. This lawsuit is likely to set a precedent for future cases involving HR Tech tools. The ongoing regulatory focus on automated employment decisions calls for responsible and compliant AI use to avoid legal consequences and uphold fairness. #AI#Law#LegalTech#EqualOpportunity#Discrimination#AIEthics

AI & Law

@ai_and_law · Post #94 · 25.08.2023 г., 07:04

US: New Federal Privacy Bill Aims to Safeguard Against AI-Driven Discrimination Greetings! Senator Maria Cantwell, head of the Senate Commerce Committee, has highlighted that her introduced federal privacy bill could serve as a protective shield against discrimination fueled by artificial intelligence. Speaking at the Washington state's Future of AI forum, she underscored both the potential of AI and the necessity for "guardrails" to prevent potential risks. Cantwell expressed concerns about AI's potential discriminatory applications, which might lead to unfair employment or loan practices. She emphasized the importance of her privacy legislation, designed to safeguard individuals from such biases. While not providing specific details during the forum, Cantwell's spokesperson indicated that she was referring to the Consumer Online Privacy Rights Act, initially introduced in 2019 and re-introduced in 2021. The bill proposes several key provisions, including requiring companies to obtain consumers' opt-in consent for behaviorally targeted ads and prohibiting discriminatory ad targeting based on factors such as race, religion, or sex. The legislation also aims to hold companies accountable for using algorithms in housing, education, job, or credit ads. Cantwell's advocacy reflects a growing awareness of the need to regulate AI applications to ensure fairness and protect individuals' rights. #AI#Privacy#Discrimination#Legislation#AIEthics#Law

International News

@intnewsagency · Post #9359 · 24.04.2026 г., 05:31

Lithuania Bans Property Purchases by Russians and Belarusians The Lithuanian Parliament committee has approved a ban on Russian and Belarusian citizens buying real estate in Lithuania. Exceptions apply only to those already residing in the country, but transactions near military sites remain prohibited. This broad ban targets nationality rather than specific sanctioned individuals. Previously, Lithuania tightened rules by revoking residence permits from Russians visiting their homeland. #Lithuania#Russia#Belarus#RealEstate#Discrimination The main news of Russia and the world ishere.

Google Facts™ [ ️@googlefactss🌎]

@googlefactss · Post #40646 · 10.02.2026 г., 23:01

In 1968, teacher Jane Elliott divided her students by eye color (blue vs brown) to show how discrimination works. One group was labeled “better” and given privileges. The other was treated as “worse.” Children quickly changed behavior and school performance, proving how labels and power create prejudice. 🧠👀 (Read more 1) (Read more 2) @googlefactss #Psychology#SocialExperiment#JaneElliott#Discrimination#Education#History

Sos Donbass

@sos_donbass · Post #1604 · 09.07.2025 г., 12:22

🔴 APPEL À SOLIDARITÉ JURIDIQUE L’association Sos Donbass recherche un avocat engagé, prêt à défendre ses intérêts gracieusement face à des cas de discrimination préoccupants. ➡️ Refus d’ouverture de compte bancaire, alors même que la loi française garantit ce droit à toute personne morale ou physique. ➡️ Fermeture arbitraire de plateformes de dons telles que HelloAsso, AssoConnect, Stripe, nous empêchant de mener à bien nos actions humanitaires. 🎯 Si vous êtes avocat ou connaissez un professionnel prêt à s’engager pro bono pour La Défense de nos droits fondamentaux, contactez-nous. 📩 [email protected] 📨message privé 🙏 Merci de partager cet appel autour de vous. Ensemble, faisons valoir la justice. #AppelAvocat#Discrimination#SOSDonbass#DroitsFondamentaux#Solidarité#ProBono