@besnow_cloud · Post #3204 · 02.06.2025 г., 08:40
🔥 Elon Musk 宣布新产品 #XChat:Rust 架构 + “比特币风格”端到端加密⚡️ 支持自毁消息、任意文件传输、音视频通话——向「超应用」再迈一步。 #互联网自由#加密#RustLang
TGINSIGHT SIMILAR POSTS
Изворен канал @pythonotes · Post #214 · 12 фев.
Как правильно проверить атрибуты доступа файла? То есть доступна ли запись в файл или является ли он исполняемым? Для этого в Python есть функция os.access() Проверять так: os.access(path, flag) Функция вернёт bool в зависимости от наличия указанного флага. Всего есть 4 флага проверки: os.F_OK - наличие файла на диске os.R_OK - доступ на чтение os.W_OK - доступ на запись os.X_OK - доступ на исполнение Например, вместо try-except лучше делать так (пример из документации): if os.access("myfile", os.R_OK): with open("myfile") as fp: return fp.read() #basic#libs
Пребарај: #rustlang
@besnow_cloud · Post #3204 · 02.06.2025 г., 08:40
🔥 Elon Musk 宣布新产品 #XChat:Rust 架构 + “比特币风格”端到端加密⚡️ 支持自毁消息、任意文件传输、音视频通话——向「超应用」再迈一步。 #互联网自由#加密#RustLang
@githubtrending · Post #14986 · 22.07.2025 г., 12:00
#rust#cli#command_line_interface#command_line_tool#dns#icmp#linux#macos#mtr#netbsd#network#networking#ping#ratatui#rust#rustlang#tool#traceroute#tui#tui_rs#windows Trippy is a powerful tool that combines traceroute and ping functions to help you analyze network problems easily. It works on Linux, BSD, macOS, and Windows, and you can install it through many package managers or directly with commands like `cargo install trippy`. Running a simple trace is as easy as typing `sudo trip example.com`. Trippy offers detailed network tracing with features like multipath strategies and unprivileged modes, making it flexible for different needs. Using Trippy helps you quickly find where network issues occur, saving time and improving troubleshooting efficiency. Full guides and documentation are available online to get you started smoothly. https://github.com/fujiapple852/trippy