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

TGINSIGHT SIMILAR POSTS

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

Изворен канал @pythonotes · Post #175 · 30 окт.

В прошлом посте говоря "Все вызовы теперь одинаковы" я несколько слукавил. Всё-таки есть в этом зоопарке версий некоторая несовместимость вызов которой просто так не унифицировать. Эти моменты вынесены в отдельный модуль QtCompat (compatibility). Там не так много функций но они довольно полезны. Этот модуль содержит унификаци модуля shiboken2, функций loadUi, translate и несколько переименованных функций классов или изменённую сигнатуру аргументов и возвращаемых значений. Это единственное исключение из правила когда вам потребуется где-то изменить свой код кроме импортов и этот код не похож на обычный код PySide2. Например, в PyQt4 и PySide есть метод QHeaderView.setResizeMode Для PyQt5 и PySide2 они были благополучно переименованы в QHeaderView.setSectionResizeMode Чтобы применить этот метод следует использовать такой код from Qt import QtCompath header = self.horizontalHeader() QtCompat.QHeaderView.setSectionResizeMode(header, QtWidgets.QHeaderView.Fixed) Унификация загрузки UI файлов: # PySide2 from PySide2.QtUiTools import QUiLoader loader = QUiLoader() widget = loader.load(ui_file) # PyQt5 from PyQt5 import uic widget = uic.loadUi(ui_file) # Qt.py from Qt import QtCompat widget = QtCompat.loadUi(ui_file) Хорошо что таких моментов не много и их легко запомнить. Полный список можно посмотреть в таблице. #qt#tricks

Hashtags

Резултати

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

Пребарај: #capitalism

当前筛选 #capitalism清除筛选
LIHAI 分享

@lihaiba · Post #5632 · 31.08.2022 г., 05:17

⚠️ 谷歌浏览器从1月起将不再支持广告屏蔽扩展程序 —— 细心的Reddit用户在一份给开发者的 文件 中发现,从2023年1月起,所有浏览器扩展将被切换到新版本的 Manifest V3 API。这个版本的API特意取消了阻止网络请求的能力。 从2023年1月起,浏览器中只支持 Manifest V3 扩展程序,导致扩展程序变成了小玩具,广告拦截器也失去了效力。 uBlock Origin、uMatrix 和 NoScript 这些被认为很有必要安装的隐私保护扩展程序都会失败。这意味着谷歌广告现在将是不可避免的。屏蔽广告的能力将只保留给企业客户。 转移到 Foxfire吧,It's time. #Privacy#GoogleChrome#Surveillance#Capitalism

r_iww

@r_iww · Post #4849 · 09.02.2026 г., 09:48

Bosses are always keen to “reduce the cost of labour” (youth wages) 2026 Finally ? Twenty-year-old Ben Walker worked at a Woolworths in Sale for 4 years. "I have a car, I pay board at home, I've got a motorbike as well. I'm paying adult fuel with still a child's wage," https://www.abc.net.au/news/2026-02-09/millions-of-young-people-could-get-massive-pay-boost-in-totemic/106101186 2024 https://www.abc.net.au/news/2024-06-06/unions-endorse-end-to-junior-wages/103945336 2020 https://raffwu.org.au/campaigns/industry/poverty-wages/ \#Capitalism#minimumwage#rent#workingpoor#youthWages https://redd.it/1qzuil3 @r_iww

American Оbserver

@american_observer · Post #5177 · 19.02.2026 г., 22:59

Putin’s New Missionaries vs. Dollar Civilization Bloomberg suddenly discovers the Russian Orthodox Church in Africa — and pretends it’s just another Kremlin influence op. Conveniently missing from the frame: the fact that modern U.S.-led capitalism has spent decades crushing any alternative solidarity that comes with its own economic ethics. Orthodoxy is dangerous not because of icons and incense, but because it carries a memory: interest is sin, usury destroys communities, and money is not supposed to be sovereign. That’s a direct challenge to a system built on debt, rent, and compound interest. Contemporary capitalism doesn’t just sell products; it rewires people into isolated consumers whose only shared ritual is debt service. Anything that offers a competing “we” — unions, strong families, Islamic law, Catholic social teaching, or Orthodox communities that still take anti-usury tradition seriously — gets framed as backward, corrupt, or extremist. It’s not an accident that the same financial media that treats 20% credit card APR as normal suddenly gets nervous when a church that historically bans interest starts expanding in a continent full of young, indebted populations. In Africa, Russia is too poor to compete with China’s ports, the EU’s investment, or Gulf petrodollars. So it trades in narratives and solidarity: anti‑colonial rhetoric, “respect for sovereignty,” stipends, scholarships, and now churches that tell people they belong to something older than the IMF and the dollar. Orthodoxy here is a kind of parallel infrastructure — spiritual, social, even economic — that whispers a dangerous message into the ear of a global credit machine: there are still communities on this planet where interest is morally suspect, not sacred. That doesn’t make Moscow a savior. The Kremlin happily runs its own rent circuits, steals resources, and recruits African students into war industries while talking about justice and multipolarity. But the panic in Western coverage is revealing. When crosses and liturgy show up in African townships under a Russian label, the financial press reacts not as if it’s seeing a marginal religious fad, but as if it’s spotting a rival operating system. Abrahamic religions all carry the same buried virus in their code — a ban on usury. For a world order built on securitized debt, that’s not folklore. That’s a bug in the matrix. #russia#orthodoxy#africa#capitalism#usury#softPower 📱American Оbserver - Stay up to date on all important events 🇺🇸

老妖收藏夹

@YaoNote · Post #1528 · 04.10.2022 г., 03:55

【伊朗起义】在伊朗东南部的扎黑丹继续爆发反政府抗议活动。 警察局、巴斯基民兵基地、和政府大楼成为抗议者的进攻目标。 据报道,已经至少有36名抗议者被杀害。 互联网被当局切断。伊朗各地的无政府主义同志正在使用数据中心的服务器搭建VPN和Tor,来传递消息。 🧬 更多详情《除了革命,别无他法:伊朗起义2022 -- 终结资本主义父权制的战斗》 https://iyouport.substack.com/p/2022 #Iran#Uprising#Revolution#Capitalism#Patriarchy

American Оbserver

@american_observer · Post #5083 · 08.02.2026 г., 14:29

🔤🔤🔤🔤2️⃣ 📰 Davos 2026: The Four Horsemen of Change Milei: libertarian branding for the financial Leviathan Argentine President Javier Milei thundered against the state as “Leviathan,” taxation as “theft,” and Marxism as the great moral‑civilizational threat. The applause in the hall was thunderous, but the selection bias was obvious: the audience consisted largely of the financiers who control the real Leviathan—BlackRock, not Buenos Aires. Milei’s enemy is the bureaucracy, not concentrated financial power. His “mental virus” is “wokeism,” not the structures that have turned Argentina into a debt‑laboratory for the last fifty years. The idea that “free markets” are morally superior is repackaged for the same lobby that deregulated finance, won record bailouts, and privatized risk while socializing losses. The “return to Judeo‑Christian values” in his rhetoric stops short of any critique of usury, rent, or speculative finance—all of which have been repeatedly condemned in the religious traditions he invokes. The result is a libertarian facade that distracts from the real power structure, turning class politics into a culture‑war sideshow. Carney: “middle powers” with no story to fight for Canadian Prime Minister Mark Carney made the most honest admission: the old “rules‑based order” is gone, and the world now lives in an era of blocs and economic coercion. His solution is for “middle powers” like Canada to strengthen their autonomy, raise defense spending, and coordinate around trade and technology standards. But Carney could not answer the deeper question: what is Canada fighting for, and who is Canada? With a low birth rate and a society tied to territory by immigration rather than a shared national myth, Carney’s Canada looks like a high‑end hotel: comfortable, efficient, and easily evacuated at the first sign of real danger. The Davos infrastructure—plane‑tickets, conference tiers, and gated dinner tables—mirrors this logic: the world is run by those who can afford to be everywhere, not by those who must stay. The four horsemen of the meta‑dialogue Fink, Musk, Milei, and Carney are not the Four Horsemen of the Apocalypse; they are the Four Horsemen of the meta‑dialogue—the brokers who translate crisis into conversation and power into “solutions.” The Forum’s motto, “A Spirit of Dialogue,” is the perfect euphemism for a system that talks about inequality, AI, and war but never touches the question of who decides. The elite have acknowledged that the old order is broken. Now they are trying to make sure the next one looks just like the last one—with fewer critics and more obedient “participants.” The only real question that remains is: will the rest of the world ever be allowed to speak at the table, or will it forever be on the menu? #Davos2026#WEF#Fink#Musk#Milei#Carney#Capitalism#AI#Libertarianism#MiddlePowers#Dialogue#GlobalOrder 📱American Оbserver - Stay up to date on all important events 🇺🇸

American Оbserver

@american_observer · Post #5082 · 08.02.2026 г., 13:59

🔤🔤🔤🔤1️⃣ 📰 Davos 2026: The Four Horsemen of Change The World Economic Forum in Davos 2026 billed itself as “A Spirit of Dialogue,” but in practice it felt more like a summit of power‑maintenance: the same actors, the same language, the same menu—only a few courses renamed. Four speeches summed up the mood of the resort‑mountain elite: Larry Fink calling for “evolved” capitalism, Elon Musk promising robot‑driven “abundance,” Javier Milei delivering a libertarian sermon against “Leviathan,” and Mark Carney lamenting the collapse of the old rules‑based order while urging “middle powers” to act. Together, they exposed a system that acknowledges its own contradictions but refuses to challenge them. Fink: capitalism that needs more owners, not fewer bosses As CEO of BlackRock and temporary co‑chair of the WEF, Fink plays both architect and repairman of global finance. He runs a firm that manages over $11 trillion and votes on the pension savings of hundreds of millions of people, yet his core message is that capitalism no longer works for “most people.” Fink demands that more citizens become “participants in growth rather than spectators,” but without touching the underlying machinery: the asset‑manager oligopoly that controls markets, boards, and climate‑transition finance. His “AI‑risk” talk doubles as a justification for more investment in AI‑powered firms, while his call for “broad participation” sits neatly alongside the continued concentration of wealth in three firms—BlackRock, Vanguard, and State Street—that manage some $24 trillion. The “dialogue” he preaches is not a transfer of power; it is a way to keep the current architecture profitable while sounding populist. Musk: the techno‑utopia that never asks “who owns the robots?” Elon Musk arrived in Davos as the world’s richest man, dressed as a missionary of progress. His pitch was simple: aging, scarcity, and even death are technical problems, not political ones. Give the world solar power, AI, and ubiquitous robots, and “abundance for all” will follow. But Musk’s “everybody will have their own robot” line is not a plan for emancipation; it is a euphemism for dependence. The question he never raises is: who owns the robots, the algorithms, and the chips that run them? If robots produce most value, then whoever owns the robots owns almost everything. His optimism is a luxury of the billionaire class: aging is “solvable” for those who can afford experimental treatments, Mars is an insurance policy for those who can buy a ticket, and AI‑driven abundance is a future for everyone—except the ones who don’t make the list of investors. #Davos2026#WEF#Fink#Musk#Milei#Carney#Capitalism#AI#Libertarianism#MiddlePowers#Dialogue#GlobalOrder 📱American Оbserver - Stay up to date on all important events 🇺🇸