Ещё немного про base64.
Собрал пример со встроенной в код картинкой. Это иконка для окна на PySide2. Файл кодирован в base64 и просто сохранён в переменной.
Для использования этих данных даже не пришлось сохранять их в новый файл. Иконка создаётся на лету с помощью метода QPixmap.loadFromData()
...
raw_data = base64.decodebytes(ico_encoded)
ico = QPixmap()
ico.loadFromData(raw_data, "PNG")
...
🌎 Полный пример смотрите в gists.
#libs#tricks#qt
🔈Most Common Smart Speaker Usage
People are doing plenty of things with voice commands on their #SmartSpeakers, but shopping isn’t really one of them. Only about a quarter to a third of U.S. smart speaker owners have ever purchased something using voice. Very few do so on a regular basis. An Information article this summer said just 2 percent of #Alexa owners had made a purchase via Alexa in 2018.
🚀@PerspectiveIX via Recode.
❓Do you own a Smart Speaker, like Apple HomePod, Google Home, Amazon Echo, etc?
🗣The State of Chinese Voice Assistants
China is the second-largest consumer market in the world, hitting $4.3T in consumer expenditure in 2016 alone (for reference, the US ranked first with $12.5T, and Japan third with $2.7T).
The Chinese smart home market will reach nearly $23B in 2018, according to Juniper Research. #SmartSpeakers and #AI voice assistants are becoming an integral part of that.
Now that smart speakers are becoming commonplace, the early entrant, #Amazon, is losing its market share — and not just to its rival #Google, but to newer players emerging in China.
🚀@PerspectiveIX via CBInsights.
❓ Do you own a smart speaker?