@sticker_freehk · Post #38 · 16.04.2022 г., 16:47
金色のガッシュ!! (#A14) Zatch Bell! https://t.me/addstickers/Konjiki_No_Gasshu
Hashtags
TGINSIGHT SIMILAR POSTS
Изворен канал @pythonotes · Post #241 · 5 мај
Можно ли в Python создавать бинарные файлы? Конечно можно. Для этого в Python есть следующие инструменты: ▫️ тип данных bytes и bytearray ▫️ открытие файла в режиме wb (write binary) или rb (read binary) ▫️ модуль struct Про модуль struct поговорим в первую очередь. Файл в формате JSON или Yaml внутри себя содержит разметку данных. Всегда можно определить где список начался а где закончился. Где записана строка а где словарь. То есть формат записи данных содержит в себе элементы разметки данных. В binary-файле данные не имеют визуальной разметки. Это просто байты, записанные один за другим. Правила записи и чтения находятся вне файла. Модуль struct как раз и помогает с организацией данных в таком файле с помощью определения форматов записи для разных частей файла. Модуль struct преобразует Python-объекты в массив байт, готовый к записи в файл и имеющий определённый вид. Для этого всегда следует указывать формат преобразования (или, как оно здесь называется - запаковки). Формат нужен для того, чтобы выделить достаточное количество байт для записи конкретного типа объекта. В последствии с помощью того же формата будет производиться чтение. При этом следует помнить что мы говорим о типах языка С а не Python. Именно формат определяет, что записано в конкретном месте файла, число, строка или что-то еще. Вот какие токены формата у нас есть. Помимо этого, первым символом можно указать порядок байтов. На разных системах одни и те же типы данных могут записываться по-разному, поэтому желательно указать конкретный способ из доступных. Если этого не сделать, то используется символ '@', то есть нативный для текущей системы. В строке формата мы пишем в каком порядке и какие типы собираемся преобразовать в байты. Запакуем в байты простое число, токен "i". >>> import struct >>> struct.pack('=i', 10) b'\n\x00\x00\x00' Теперь несколько float, при этом нужно передавать элементы не массивом а последовательностью аргументов. >>> struct.pack('=fff', 1.0, 2.5, 4.1) b'\x00\x00\x80?\x00\x00 @33\x83@' Вместо нескольких токенов можно просто указать нужное количество элементов перед одним токеном, результат будет тот же. >>> struct.pack('=3f', 1.0, 2.5, 4.1) b'\x00\x00\x80?\x00\x00 @33\x83@' Теперь запакуем разные типы >>> data = struct.pack('=fiQ', 1.0, 4, 100500) я запаковал типы float, int и unsigned long long (очень большой int, на 8 байт) b'\x00\x00\x80?\x04\x00\x00...' Распаковка происходит аналогично, но нужно указать тот же формат, который использовался при запаковке. Результат возвращается всегда в виде кортежа. >>> struct.unpack('=fiQ', data) (1.0, 4, 100500) Как видите, ничего страшного! #lib#basic
Пребарај: #a14
@sticker_freehk · Post #38 · 16.04.2022 г., 16:47
金色のガッシュ!! (#A14) Zatch Bell! https://t.me/addstickers/Konjiki_No_Gasshu
Hashtags
@NothingPhone2Updates · Post #211 · 15.12.2023 г., 10:44
Nothing OS 2.5.1 for Phone (2) based on Android 14 is Rolling Out 🚀 "It is to be noted that the update is rolling out in stages. This approach allows the team to monitor for any issues and ensure a smooth and stable deployment. Users on open beta 2 are much likely to get it first followed by those on 2.0.4. Don't worry if you haven't received it yet; it's on its way to you gradually." Update: (25/12/23) 2.0.4 users are finally getting the 2.5.1 stable update via OTA ⬇️ Downloads: Incremental from [ 2.0.4 | OB 2 2.5 ] > 2.5.1 | Full Ota Package has been uploaded to the Community Archive (Type #downloads in group chat. Can be found in Stock roms > full ota folder) ⚙️Offline Sideload Guide : Here 📺Official Intro : Here 🏷Tags: #NOS#A14#Official ————————————————- » VIDEO TUTORIAL : By Techticks « ————————————————- 🗒Detailed Changelogs: Customisation ✨ Redesigned a joint Home Screen and Lock Screen customisation page and improved the edit wallpaper flow for a more comprehensive view of options. 🌌 New Atmosphere wallpaper effect: Transform your background photo into a dynamic wallpaper that brings motion to colours on your home screen. A seamless transition between your lock and home screens. 🔮 New Glass wallpaper effect: Add a Glass filter to give your favourite wallpaper a unique appearance. 🎨 Introduced solid colour wallpapers for a cleaner Home Screen appearance. ⚪️ Added a monochrome colour theme in the basic colour section. Glyph Interface 📅 Glyph Progress integration for Google Calendar. Keep track of your upcoming events with a 5-minute countdown on the Glyph Interface. ⏲ Glyph Timer now supports time presets, allowing you to quickly set your desired duration. 🔓 You can now access Glyph Timer directly from the lock screen without unlocking the device. 🚀 Added an option to open the Glyph Timer popup by tapping instead of holding to accommodate for the Quick Settings widget. 💫 Added a new Glyph animation for when NFC is being used. 🔄 Improved the experience of Flip to Glyph. Gesture 💡Customisable double-press power button to quickly access a chosen feature. Just head to Settings > System > Gestures. 🤖 More Lock Screen shortcut options like: Do Not Disturb, Mute, QR code scanner, video camera. 📸 Capture screenshots quickly with a three-finger swipe gesture. ✏️ New screenshot editor and menu, allowing for more advanced editing features and quick deletions. More improvements 🌥 Optimised the experience of the Weather app and improved the notification of weather alerts. ⬅️ Refreshed the back gesture arrow visual to be more in line with Nothing’s style. 🔔 Made it possible to set ringtone and notification sound volumes separately, with an updated volume control interface. ⚙️ Updated Quick Settings layout and support to show more devices icons. 📷 Improved the stability of the camera. 👾 Enhanced overall system stability for a more reliable and smooth experience. New Widgets 🚶 Pedometer Widget: Track your daily steps directly from your home screen. Set goals and monitor your progress to stay motivated. 🎵 Media Player Widget: Displays the currently playing song. Control your music easily while on-the-move. ⏳ Screen Time Widget: Monitor and manage your daily screen time to maintain a healthy digital lifestyle. ✍️Note: - To use these new widgets, please update your Nothing Launcher and Nothing Widgets app to the latest versions available on the Play Store. - Data loss is not expected, whether you update from 2.0.4 / Open Beta 2 to 2.5.1 stable. But always keep backups if something wrong happens in rare scenarios! 🔔 Updates : @NothingPhone2Updates 🐙 Chat : @NothingPhone2
@asus_on_russian · Post #2987 · 24.01.2025 г., 08:05
💻 ASUS Zenbook A14 — ваш идеальный спутник. Легкий, компактный и стильный, он всегда будет под рукой. #Zenbook#A14#AIPC
@xiaomi_12tpro_updates · Post #159 · 27.09.2024 г., 20:01
#Matrixx#diting#A14 Matrixx 10.8.1 - UNOFFICIAL | Android 14 Build Date: 27/09/24 ▪️Download: SF ▪️Screenshots ▪️Source: Changelog Notes: • Sync last source • Latest yuki kernel changes added • To fix CTS download any pif.json • Passes strong integrity Credits: Thanks to @Mohammadnt96 and @TeamMEX_XDA for the tree and fixing all the bugs. By@Jezzay97 | Donate Follow@xiaomi_12tpro_updates Join@xiaomi12tpro_chat
@xiaomi_12tpro_updates · Post #151 · 09.09.2024 г., 23:07
#Matrixx#diting#A14 Matrixx 10.8.0 - UNOFFICIAL | Android 14 Build Date: 9/09/24 ▪️Download: SF ▪️Screenshots ▪️Source: Changelog Notes: • Sync last source • Latest yuki kernel changes added • To fix CTS download any pif.json • Passes strong integrity Credits: Thanks to @Mohammadnt96 and @TeamMEX_XDA for the tree and fixing all the bugs. By@JessePF | Donate Follow@xiaomi_12tpro_updates Join@xiaomi12tpro_chat
@xiaomi_12tpro_updates · Post #149 · 05.09.2024 г., 21:44
#Matrixx#diting#A14 Matrixx 10.7.3 - UNOFFICIAL | Android 14 Build Date: 5/09/24 ▪️Download: SF | Gdrive ▪️Screenshots ▪️Changelog Notes: • Sync last source • Latest yuki kernel changes added • To fix CTS download any pif.json • Passes strong integrity Credits: Thanks to @Mohammadnt96 and @TeamMEX_XDA for the tree and fixing all the bugs. By@Jezzay97 | Donate Follow@xiaomi_12tpro_updates Join@xiaomi12tpro_chat
@xiaomi_12tpro_updates · Post #146 · 28.08.2024 г., 00:29
#Matrixx#diting#A14 Matrixx 10.7.3 - UNOFFICIAL | Android 14 Build Date: 28/08/24 ▪️Download: SF | Gdrive ▪️Screenshots ▪️Changelog Notes: • Sync last source • To fix CTS download any pif.json • Passes strong integrity Credits: Thanks to @Mohammadnt96 and @TeamMEX_XDA for the tree and fixing all the bugs. By@Jezzay97 | Donate Follow@xiaomi_12tpro_updates Join@xiaomi12tpro_chat
@xiaomi_12tpro_updates · Post #144 · 27.08.2024 г., 02:09
#Matrixx#diting#A14 Matrixx 10.7.2 - UNOFFICIAL | Android 14 Build Date: 23/08/24 ▪️Download: SF | Gdrive ▪️Screenshots ▪️Changelog Notes: • Initial release • HyperOS camera by default • Dolby Audio by default • Latest Yuki kernel changes added • To fix CTS download any pif.json Credits: Thanks to @Mohammadnt96 and @TeamMEX_XDA for the tree and fixing all the bugs. By@Jezzay97 | Donate Follow@xiaomi_12tpro_updates Join@xiaomi12tpro_chat
@xiaomi_12tpro_updates · Post #140 · 24.08.2024 г., 16:12
¡New build available! #A14#CLO#diting Code Name:diting Device:Xiaomi 12T Pro / Redmi K50 Ultra File Name:xperience-18.0.0-20240824-NIGHTLY-diting.zip File Size:3.2G sha256sum:217fbeb035f79890abb3e054fdda9b01ff7aa7fa8ca162243a38a29020d16d28 Downloads: SourceForge | Pling Required Firmware Maintainer:@TeamMEX_XDA (Kισżż) Install steps: Changelog: - System - ◦ Merge tag 'LA.QSSI.14.0.r1-16600-qssi.0' ◦ Introduce triluminous on xreality engine ◦ New vrr from AOSPA ◦ Address some missing sepolicy ◦ FlashlightControllerImpl: Fix crash when camera IDs list is null ◦ Update our wallpaper Note: FW not included If you like my work and want to support it please consider making a donation this helps with server costs. Donate PayPal
@xiaomi_12tpro_updates · Post #130 · 13.08.2024 г., 15:35
¡New build available! #A14#CLO#diting Code Name:diting Device:Xiaomi 12T Pro / Redmi K50 Ultra File Name:xperience-18.0.0-20240813-NIGHTLY-diting.zip File Size:3.2G sha256sum:3b555a8102a6a7fe4842f966a9149ef3ac4d9fba7bd89043253a32ebbda199bc Downloads: SourceForge | Pling Required Firmware Maintainer:@TeamMEX_XDA (Kισżż) Install steps: Changelog: - System - ◦ Merge tag 'LA.QSSI.14.0.r1-16400-qssi.0' ◦ Fix security vulnerability allowing apps to start from background ◦ Address some missing sepolicy ◦ Fix Xreality issues ◦ Fix updater and new desing - Device - ◦ Update Yuki kernel 5.10.210-qgki-Yuki-android12-9-01956-geb046ddc2f7a ◦ Upgrade kernel modules from V816.0.5.0.ULFMIXM ◦ Update dolby atmos app ◦ Bug fixes Note: FW not included If you like my work and want to support it please consider making a donation this helps with server costs. Donate PayPal Follow@xiaomi_12tpro_updates Join@xiaomi12tpro_chat
@xiaomi_12tpro_updates · Post #117 · 08.07.2024 г., 16:23
¡New build available! #A14#CLO#diting Code Name:diting Device:Xiaomi 12T Pro / Redmi K50 Ultra File Name:xperience-18.0.0-20240708-NIGHTLY-diting.zip File Size:3.2G sha256sum:8285df7f7da3cd4af17da90705b95fa8e9c86a70731ed981564db1548f51fa33 Downloads: SourceForge | Pling Required Firmware Maintainer:@TeamMEX_XDA (Kισżż) Changelog: - System - ◦ Merge tag 'LA.QSSI.14.0.r1-15700-qssi.0' ◦ Introduce x-reality engine (on display settngs) ◦ perf: Update to LA.VENDOR.14.3.0.r1-11500-lanai.0 ◦ Address some missing sepolicy ◦ Fix an issue where GameSpace crash on landscape on some games ◦ Update some blobs to LA.QSSI.14.0.r1-15100-qssi.0 Note: FW not included If you like my work and want to support it please consider making a donation this helps with server costs. Donate PayPal
@xiaomi_12tpro_updates · Post #115 · 23.06.2024 г., 03:44
¡New build available! #A14#CLO#diting Code Name:diting Device:Xiaomi 12T Pro / Redmi K50 Ultra File Name:xperience-18.0.0-20240623-NIGHTLY-diting.zip File Size:3.2G sha256sum:725a741761598d0b6dc74573f1b5f61d4dad82b7902a10eb410125741e40ea8e Downloads: SourceForge | Pling Required Firmware Maintainer:@TeamMEX_XDA (Kισżż) Changelog: - System - ◦ Bring back battery Styles ◦ Update translations ◦ Fix lockscreen clock spacing ◦ Support per-app volume ◦ Fix GameSpace ◦ Add option to enable AOD on charging only ◦ Add capability to allow tethering to use VPN upstreams ◦ Add firewall support ◦ Remove restrictions for system audio record Note: FW not included If you like my work and want to support it please consider making a donation this helps with server costs. Donate PayPal