TGTGInsighttelegram intelligenceLIVE / telegram public index
← Python Заметки

TGINSIGHT SIMILAR POSTS

Најди сличен содржај

Изворен канал @pythonotes · Post #281 · 18 авг.

Что-то вы гоните насчет "привычного вида формата 755 и 644". Я вот вообще не понял что это!😳 Действительно, что означают цифры которые мы получили в прошлом посте? Это кодировка, заключающая в себе режимы доступа к файлу. Подробней можно почитать в статье про chmod. Там можно увидеть альтернативное обозначение того же самого с помощью символов r w x, что значит чтение, запись, исполнение. Чтобы преобразовать восьмеричное число в такое обозначение в Python есть готовая функция >>> stat.filemode(0o755) '?rwxr-xr-x' Мы видим 3 группы по 3 символа, дающие 3 типа доступа для 3 типов юзеров. А что за знак вопроса в начале? Давайте передадим в эту функцию необрезанное значение от os.stat >>> stat.filemode(os.stat(path).st_mode) 'drwxr-xr-x' Это данные, которые мы безжалостно обрезали в прошлый раз😼 Первый символ обозначает тип объекта. Это может быть файл (-), директория (d) или симлинк (l). Вот простая схема данной кодировки [1][3][3][3] │ │ │ │ │ │ │ └──> Others Permissions │ │ └─────> Group Permissions │ └────────> Owner Permissions └───────────> File Type (разверните экран если вы с телефона) Если вы попробуете получить пермишены для симлинка то получите пермишены для файла >>> path = '.venv/bin/python3' >>> stat.filemode(os.stat(path).st_mode) '-rwxr-xr-x' Чтобы получить свойства именно симлинка, нужно это явно указать >>> stat.filemode(os.stat(path, follow_symlinks=False).st_mode) 'lrwxrwxrwx' #tricks#basic

Резултати

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

Пребарај: #privacyrights

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

@ai_and_law · Post #532 · 24.03.2025 г., 08:04

🇳🇴OpenAI Faces GDPR Complaint Over ChatGPT’s False Accusation of Murder Privacy group Noyb has filed a complaint with the Norwegian Data Protection Authority, alleging OpenAI violated GDPR after ChatGPT falsely claimed a Norwegian man was convicted of murdering his children. The chatbot’s response contained both fabricated details and accurate personal information, raising concerns about AI-generated defamation. Noyb argues that OpenAI is still processing inaccurate personal data within its model, even if the output has been corrected. The complaint cites GDPR’s requirement for accurate data processing and demands OpenAI delete defamatory information, fine-tune its model, and face financial penalties to prevent future violations. This case underscores a growing regulatory challenge: how to enforce data accuracy in AI systems that continuously evolve. #GDPR#AIRegulation#PrivacyRights#ChatGPT

AI & Law

@ai_and_law · Post #230 · 01.02.2024 г., 08:04

US Lawmakers Propose DEFIANCE Act Against Nonconsensual AI-Generated Porn Hello, everyone! US senators, including Dick Durbin and Lindsey Graham, introduced the Disrupt Explicit Forged Images and Non-Consensual Edits (DEFIANCE) Act. The bill aims to combat the rising tide of AI-generated explicit images, providing a civil right of action for victims depicted without consent. It follows the controversy over digitally manipulated explicit images of Taylor Swift. The DEFIANCE Act broadens the scope beyond AI-generated content to encompass any "intimate" sexual image created through various means, targeting those who knowingly produce or possess such content for dissemination. The proposed legislation aligns with President Biden's push for AI regulation. #DEFIANCEAct#PrivacyRights#AIRegulation

AI & Law

@ai_and_law · Post #200 · 26.12.2023 г., 08:04

FTC bans Rite Aid from using AI facial recognition in stores for 5 years Hello everybody! The US Federal Trade Commission (FTC) has barred American drugstore giant Rite Aid from utilizing AI facial recognition technology for surveillance purposes over the next five years. The FTC intervened as Rite Aid allegedly "failed to implement reasonable procedures" in deploying facial recognition across 200 stores over eight years. Rite Aid's facial recognition system, designed to identify past shoplifters, resulted in numerous false positives. Tens of thousands of individuals were included, often with low-quality images from various sources, leading to unwarranted confrontations and police interventions, disproportionately impacting people of color. Rite Aid is mandated to delete collected images, algorithms, and related products, notify consumers, enhance data security measures, and provide clear notices regarding any biometric surveillance technology in stores. Rite Aid, while agreeing to the FTC settlement, expressed fundamental disagreement with the facial recognition allegations. The company halted the technology's use three years prior to the FTC investigation and commits to fortifying information security practices. #AILaw#PrivacyRights#FacialRecognition#FTC#RiteAid#LegalTech

AI & Law

@ai_and_law · Post #628 · 05.08.2025 г., 07:04

🇬🇧UK Parliament Launches Human Rights Inquiry in the AI Era The U.K. Parliament’s Joint Committee on Human Rights has opened a formal inquiry into how artificial intelligence is impacting fundamental rights. Key focus areas include privacy, discrimination, algorithmic bias, and mechanisms for redress when AI systems cause harm. The committee is also evaluating whether current legal frameworks are sufficient, or if new legislation is needed to safeguard human rights in the face of accelerating AI adoption. Public submissions are open until 5 September. #AIandLaw#HumanRights#AIRegulation#UKParliament#AlgorithmicBias#PrivacyRights#Accountability#AIGovernance