TGTGInsighttelegram intelligenceLIVE / telegram public index
← Python Заметки

TGINSIGHT SIMILAR POSTS

Најди сличен содржај

Изворен канал @pythonotes · Post #45 · 2 мар.

В фреймворке PyQt (и PySide тоже) часто встречается настройка чего-либо с помощью так называемых флагов. widget.setWindowFlags(Qt.Window) Взаимодействие нескольких флагов делается с помощью бинарных (или побитовых) операторов. Несколько флагов можно указать с помощью оператора "|" list_item.setFlags(Qt.ItemIsSelectable | Qt.ItemIsEnabled) исключить флаг из уже имеющегося набора можно так list_item.setFlags(list_item.flags() ^ Qt.ItemIsEnabled) Добавить новый флаг к имеющимся можно так list_item.setFlags(list_item.flags() | Qt.ItemIsEnabled) А проверка наличия делается так is_enabled = item.flags() & Qt.ItemIsEnabled > 0 Почему именно так? Всё дело в том как именно работают побитовые операторы. Но об этом в следующем посте. #qt

Hashtags

Резултати

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

Пребарај: #h2nomics

当前筛选 #h2nomics清除筛选
Decarbonization in Asia

@decarbanization_asia · Post #2141 · 21.04.2026 г., 11:57

Repost of the publication 🇨🇳Hydrogen notes from China: hydrogen is everywhere #H2nomics#international A final travel note from Igor Chausov and Pavel Melnikov from China — on the role of hydrogen in the country’s energy strategy. 🚌 At a bus stop on the outskirts of Shanghai, a bus with green plates and the words “Fuel Cell” on its side pulls up as part of everyday routine, passengers getting on and off. We observed this not only in megacities but also in many county-level cities across China: hydrogen buses, together with the more widespread electric buses, have largely displaced diesel vehicles. 🚜Beyond buses, a wide range of hydrogen-powered equipment is already operating — either in pilot mode or commercially — on Chinese roads: trucks and trailers mining dump trucks bulldozers water trucks street sweepers garbage trucks warehouse forklifts shunting locomotives 👉 This diversity is supported by the rapid development of hydrogen fuel cells and the expansion of industrial-scale production of these next-generation power systems. 🔌Hydrogen is also used in stationary applications: power supply for remote mining and infrastructure sites autonomous ultra-fast EV charging hubs telecom infrastructure off-grid settlements 🏭 While the chemical industry still largely supplies “grey” hydrogen to transport and other sectors, it is simultaneously launching numerous projects to switch from coal and scarce natural gas to green hydrogen — with expectations of cost reductions driven by cheaper renewables and electrolyzers. 🎯Key takeaway China’s energy strategy avoids binary choices and instead follows a “middle path” (中道, Zhong Dao). 👉 It does not choose between electrification and hydrogen. Instead, it treats hydrogen: as a tool for electrifying industry and transport and as a bridge between the world of “molecules” (chemicals, fuels) and the world of “electrons” (powering transport, industry, and utilities) 📌Bottom line: In China, hydrogen is not an alternative to electrification — it is an integral part of a broader, system-level energy transition.