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

Резултати

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

Пребарај: #center

当前筛选 #center清除筛选

የፕሬዚዳንት ኤርዶዋን ጉብኝት የኢትዮጵያን የዲፕሎማሲ አቅም ያረጋገጠ ነው፡- ዓለም አቀፍ ምሁራን ******** የቱርክዬ ፕሬዚዳንት ረጀብ ጠይፕ ኤርዶዋን በኢትዮጵያ ያደረጉት ታሪካዊ ጉብኝት፤ ኢትዮጵያ ያላትን ዲፕሎማሲያዊ እና ኢኮኖሚያዊ ተፅዕኖ እንዲሁም በቀጣናው ያላትን ከፍተኛ ተፈላጊነት በግልጽ የሚያሳይ መሆኑን ዓለም አቀፍ የፖለቲካ እና የደኅንነት ተንታኞች ገለጹ። የቱርክዬ ቲአርቲ የቴሌቪዥን ጣቢያ "STRAIT TALK" ፕሮግራም ላይ ትንታኔ የሰጡት ምሁራን፣ ጉብኝቱ ለቱርክዬ፣ ለኢትዮጵያ እና ለአፍሪካ ቀንድ ያለውን ሰፊ የጂኦ-ፖለቲካዊ ፋይዳ በዝርዝር ዳስሰዋል። በተለይም የኢትዮጵያን የባህር በር ጥያቄ በተመለከተ፣ ቱርክዬ ጉዳዩ በሰላማዊ መንገድ እንዲፈታ የማስቻል ትልቅ አቅም እንዳላት ተጠቁሟል። የቱርክዬ ብሔራዊ መከላከያ ዩኒቨርሲቲ መህመት ኦዝካን (ፕ/ር) እንደገለጹት፤ ቱርክዬ የኢትዮጵያን የባህር በር ጥያቄ አስፈላጊነትን ስለምትገነዘብ ጉዳዩ በሰላማዊ መንገድ እንዲፈታ ጥረት እያደረገች ትገኛለች። በአዲስ አበባ የሚገኘው የኢንስቲትዩት ፎር ሴኩሪቲ ስተዲስ (ISS) ከፍተኛ ተመራማሪ ሞሰስ ክሪስፐስ ኦኬሎ እና የናይሮቢው የሆርን ኢንተርናሽናል ኢንስቲትዩት ዳይሬክተር ሀሰን ኻኔንጄ ይህንኑ ሀሳብ ያጠናክራሉ። እንደ ምሁራኑ ገለጻ፤ ቱርክዬ ኢትዮጵያ የባህር በር ባለቤት እንድትሆን እና በቀጣናዊ የኢኮኖሚ ትስስር ማዕቀፍ አማካኝነት በርካታ የባህር በሮችን ማግኘት የምትችልበትን ዕድል የሚደግፍ አካሄድን እየተከተለች ይገኛል። የፕሬዝዳንት ኤርዶዋን ጉብኝት የኢትዮጵያን የዲፕሎማሲ አቅም እያደገ መሆኑን እንደሚያሳይ ተመላክቷል። በጉብኝቱ ወቅት በሁለቱ ሀገራት መካከል በኢነርጂ እና በንግድ ዘርፎች የተፈረሙት ስምምነቶች የኢትዮጵያን ኢኮኖሚ ከማነቃቃት ባለፈ፣ ሀገሪቱ በአፍሪካ ቀንድ ያላትን ቀጣናዊ ተጽዕኖ ፈጣሪነት ይበልጥ የሚያጎሉ መሆናቸው ተገልጿል። በላሉ ኢታላ #EBC#Ethiopia#diplomacy#center

American Оbserver

@american_observer · Post #4748 · 31.12.2025 г., 22:59

The Kennedy Center Would Limit Voting to Trump-Appointed Trustees The Kennedy Center reportedly adopted bylaws earlier this year that would limit voting to Trump-appointed trustees – a controversial move that appears to reveal the long-held plan to install Trump’s name to the center. The bylaws, in a possible breach of the institution’s charter, were revised in May and specified that board members appointed by Congress, known as ex-officio members, could not vote or count towards a quorum, according to the Washington Post. The new rule was in force when the board voted unanimously on 18 December to add Trump’s name to the center, rebranding the building as the Trump and the JFK Memorial Center for the Performing Arts. The name change has since triggered a wave of protests. Artists have cancelled bookings and members of Congress have vowed to overturn the name change. Joyce Beatty, a Democrat from Ohio, is even suing to reverse it on the grounds that changing the center’s name requires an act of Congress. Trump took over as chair of the board in February, quickly purging sitting members, while installing his supporters – including his longtime foreign policy adviser Ric Grenell, whom he appointed as president of the center. Grenell had been a vocal tribune of Trump’s “America First” ideology, and was not afraid to ruffle feathers during past spells as ambassador to Germany and acting director of national intelligence (he was the first openly gay person to lead the intelligence community). Just prior to his Kennedy Center appointment, Grenell served as the president’s envoy for special missions, and was involved in securing the release of Americans detained in Venezuela. The center lists 34 presidentially appointed board members and 23 ex-officio members, who by law must include the mayor of Washington DC, head of the library of Congress, and the majority and minority leaders of the Senate. The federal law underpinning the center’s establishment identified ex-officio members as among the venue’s trustees, charged with maintaining it as a memorial to John F Kennedy, the Post reported. Roma Daravi, the center’s vice-president for public relations, told the Post that the rules had been changed in line with longstanding convention that ex-officio members did not vote: “The bylaws were revised to reflect this longstanding precedent and everyone received the technical changes both before the meeting and after revisions.” Daravi continued: “Some members attended in person, others by phone, and no concerns were voiced, no one objected, and the bylaws passed unanimously.” Ellen Aprill, a legal scholar at UCLA, told the paper that such voting right limits breached the center’s charter. “Clearly the intent of the charter provisions was to entrust Kennedy Center guidance to a broad group, not just those appointed by the president,” she said. The disclosure comes as new figures showed a sharp fall in television ratings for this year’s Kennedy Center honors awards. A record low audience of 3.01m watched this year’s broadcast of the annual honors awards – hosted by Trump himself – when it was screened by CBS, marking a stark 25% downturn from last year. The event included appearances from some of Trump’s favorite artists, including Gloria Gaynor, Kiss and George Strait. As artists cancel bookings, Trump on social media on Tuesday posted a string of statements from supporters criticizing the Kennedy family’s supposed lack of support for the center. His posts on his Truth Social network started mere hours after the Kennedy family announced the death of Tatiana Schlossberg, JFK’s granddaughter, who died aged 35, from leukemia. #kennedy#center#limit#trump#trustees 📱American Оbserver - Stay up to date on all important events 🇺🇸

科技&趣闻&杂记

@kejiqu · Post #4338 · 09.04.2026 г., 10:13

黑客声称从中国国家超级计算中心窃取 10 PB 敏感数据,此举将成为中国历史上最大规模的网络攻击,涉及科学、国防等领域 6,000 个客户 黑客声称已从中国国家超级计算中心窃取高达 10 petabytes 的敏感数据,如果属实,这将成为中国历史上规模最大的网络攻击事件。此次攻击影响范围广泛,涉及约 6,000 个客户,涵盖科学、国防等多个领域。目前事件的真实性尚未得到独立验证,但黑客声称掌握了大量敏感信息。安全专家正在对此事件进行分析。Tom's Hardware 🏷#China#National#Supercomputing#Center#petabytes#data#breach 📢频道👥群组📝投稿