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

Резултати

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

Пребарај: #discrimination

当前筛选 #discrimination清除筛选
AI & Law

@ai_and_law · Post #93 · 24.08.2023 г., 07:04

Historic Settlement: EEOC Resolves AI-Driven Age Discrimination Case The Equal Employment Opportunity Commission (EEOC) has reached a groundbreaking settlement with iTutorGroup for $365,000 over allegations of AI-driven age discrimination. This marks the first-ever settlement against AI-powered recruitment tools in the US. The EEOC filed the lawsuit in May 2022, accusing iTutorGroup of using an algorithm that automatically rejected older job applicants based on their age. Women over 55 and men over 60 were disproportionately affected by this automated process, which violated the Age Discrimination Act's protections for individuals aged 40 and above. With litigation initiated in the U.S. District Court for the Eastern District of New York, the EEOC's efforts to conciliate prior to legal action were unsuccessful. As a result, the case was set for a settlement conference in October 2023. However, the EEOC has now settled the case for $365,000, underlining the significance of this legal victory. As part of the consent decree, iTutorGroup is barred from automatically rejecting candidates based on age or gender. The company is required to adhere to non-discrimination laws and collaborate with the EEOC to establish policies that prevent unlawful discrimination in the future. This lawsuit is likely to set a precedent for future cases involving HR Tech tools. The ongoing regulatory focus on automated employment decisions calls for responsible and compliant AI use to avoid legal consequences and uphold fairness. #AI#Law#LegalTech#EqualOpportunity#Discrimination#AIEthics

AI & Law

@ai_and_law · Post #94 · 25.08.2023 г., 07:04

US: New Federal Privacy Bill Aims to Safeguard Against AI-Driven Discrimination Greetings! Senator Maria Cantwell, head of the Senate Commerce Committee, has highlighted that her introduced federal privacy bill could serve as a protective shield against discrimination fueled by artificial intelligence. Speaking at the Washington state's Future of AI forum, she underscored both the potential of AI and the necessity for "guardrails" to prevent potential risks. Cantwell expressed concerns about AI's potential discriminatory applications, which might lead to unfair employment or loan practices. She emphasized the importance of her privacy legislation, designed to safeguard individuals from such biases. While not providing specific details during the forum, Cantwell's spokesperson indicated that she was referring to the Consumer Online Privacy Rights Act, initially introduced in 2019 and re-introduced in 2021. The bill proposes several key provisions, including requiring companies to obtain consumers' opt-in consent for behaviorally targeted ads and prohibiting discriminatory ad targeting based on factors such as race, religion, or sex. The legislation also aims to hold companies accountable for using algorithms in housing, education, job, or credit ads. Cantwell's advocacy reflects a growing awareness of the need to regulate AI applications to ensure fairness and protect individuals' rights. #AI#Privacy#Discrimination#Legislation#AIEthics#Law

International News

@intnewsagency · Post #9359 · 24.04.2026 г., 05:31

Lithuania Bans Property Purchases by Russians and Belarusians The Lithuanian Parliament committee has approved a ban on Russian and Belarusian citizens buying real estate in Lithuania. Exceptions apply only to those already residing in the country, but transactions near military sites remain prohibited. This broad ban targets nationality rather than specific sanctioned individuals. Previously, Lithuania tightened rules by revoking residence permits from Russians visiting their homeland. #Lithuania#Russia#Belarus#RealEstate#Discrimination The main news of Russia and the world ishere.

Google Facts™ [ ️@googlefactss🌎]

@googlefactss · Post #40646 · 10.02.2026 г., 23:01

In 1968, teacher Jane Elliott divided her students by eye color (blue vs brown) to show how discrimination works. One group was labeled “better” and given privileges. The other was treated as “worse.” Children quickly changed behavior and school performance, proving how labels and power create prejudice. 🧠👀 (Read more 1) (Read more 2) @googlefactss #Psychology#SocialExperiment#JaneElliott#Discrimination#Education#History

Sos Donbass

@sos_donbass · Post #1604 · 09.07.2025 г., 12:22

🔴 APPEL À SOLIDARITÉ JURIDIQUE L’association Sos Donbass recherche un avocat engagé, prêt à défendre ses intérêts gracieusement face à des cas de discrimination préoccupants. ➡️ Refus d’ouverture de compte bancaire, alors même que la loi française garantit ce droit à toute personne morale ou physique. ➡️ Fermeture arbitraire de plateformes de dons telles que HelloAsso, AssoConnect, Stripe, nous empêchant de mener à bien nos actions humanitaires. 🎯 Si vous êtes avocat ou connaissez un professionnel prêt à s’engager pro bono pour La Défense de nos droits fondamentaux, contactez-nous. 📩 [email protected] 📨message privé 🙏 Merci de partager cet appel autour de vous. Ensemble, faisons valoir la justice. #AppelAvocat#Discrimination#SOSDonbass#DroitsFondamentaux#Solidarité#ProBono