@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 #22 · 19 јан.
Заметка начинающим, которые часто сталкиваются с подобной непоняткой. Ситуация следующая, есть список файлов: names = [ 'image.bmp', 'second.txt.bkp', 'data.db', '.config.cfg', 'file.ext.bkp' ] И мы хотим убрать у них окончание ".bkp". Не знаю зачем, пример довольно надуманный) Но суть он показывает, а это главное. Те, кто еще не очень знаком с библиотекой os.path или pathlib, вероятно решат обработать имена как строки. И тут вполне подойдет метод строки strip(). Что делает этот метод? Он отрезает указанные символы по обеим сторонам строки. Если ничего не указать, то убирает невидимые символы (пробелы, табуляции и переносы строк). В нашем случае будет выглядеть вот так: >>> name.strip('.bkp') То есть просим удалить строку '.bkp' по краям имени файла, если таковая есть. Можно применить аналогичный метод rstrip(), чтобы отрезать только справа, но для этого примера используем обычный. >>> for name in names: >>> print(name.strip('.bkp')) image.bm second.txt data.d config.cfg file.ext Хм, что-то не то с нашими именами! Что случилось??? Видим нежелательное переименование в именах, где и близко не было указанной строки '.bkp' А дело всё в том, что данный метод ищет не указанную строку, а указанные символы, и не важно в каком порядке. Для метода strip() строка '.bkp' это не паттерн для поискаа список символов. Потому он отрезал симовол 'p' от '.bmp' и удалил точку из файла '.config.cfg'. Как тогда правильно заменить именно паттерн? Для начинающего можно посоветовать метод строки replace(), который как раз использует для замены указанную строку целиком. В нашем примере заменим её на пустую строку. >>> for name in names: >>> print(name.replace('.bkp', '')) image.bmp second.txt data.db .config.cfg file.ext Уже лучше, но помните, это лишь пример про strip(). Для работы с именами файлов есть способы и более "правильные", дающие однозначно верный результат. Я взял файлы только в качестве примера. Даже replase() тут может сделать не то что ожидаем. Просто впредь будьте внимательны с этим strip(). #basic
Hashtags
Пребарај: #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