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

Резултати

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

Пребарај: #copyrightlaws

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

@ai_and_law · Post #203 · 29.12.2023 г., 08:04

NY Times Takes On OpenAI and Microsoft Over Copyright Infringement Hello everybody! The New York Times has filed a lawsuit against OpenAI and Microsoft for alleged copyright infringement. This marks the first time a major American media organization has taken legal action against creators of prominent AI platforms, including ChatGPT. The lawsuit, filed in Federal District Court in Manhattan, claims that millions of articles from The Times were used without authorization to train automated chatbots, putting the media giant in direct competition with AI systems. The heart of the matter lies in the contention that the intellectual property of The New York Times was utilized to train AI models, specifically chatbots, that now serve as alternative sources of information. The lawsuit does not specify a monetary demand but emphasizes the responsibility of the defendants to be held accountable for "billions of dollars in statutory and actual damages." The legal action calls for the destruction of any chatbot models and training data incorporating copyrighted material from The Times. The lawsuit reveals that The Times initiated discussions with Microsoft and OpenAI in April to address concerns about the unauthorized use of its intellectual property. These talks, aimed at finding an amicable resolution, including a potential commercial agreement, did not result in a resolution. The legal battle could set a precedent for the legal boundaries surrounding generative AI technologies, particularly regarding the use of copyrighted materials. As concerns about the unlicensed use of intellectual property by AI systems grow, this case joins a series of legal actions within the tech industry. The outcome of such lawsuits may have far-reaching implications, not only for The New York Times but for the broader media landscape. #AILaw#NYTimes#OpenAI#Microsoft#ChatGPT#CopyrightLaws#AIEthics