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

TGINSIGHT SIMILAR POSTS

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

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

🙄Разминка для ума! Треугольник Серпинского, интересная фигура которую построить достаточно просто. Алгоритм такой: 1. создаём любые 3 точки на плоскости 2. из этих точек случайно выбираем любую, как начальную 3. случайно выбираем любую точку из этих же трёх точек как цель 4. перемещаемся в сторону цели на половину расстояния 5. повторяем бесконечно с пункта 3 Если сделать достаточно много итераций то вырисовывается интересная фигура. Треугольник, в который вписаны более мелкие треугольники. Это самый настоящий фрактал! Я собрал пример построения такой фигуры на базе Qt. 🌎 Код можно посмотреть здесь. С помощью paintEvent я рисую точки по озвученному алгоритму. Каждые 10 секунд либо по клику на виджете строится следующий треугольник. Особенности примера: 🔸 Атрибут Qt.WA_OpaquePaintEvent позволяет сохранить то, что было нарисовано в прошлой итерации. Таким образом мы видим постепенное наполнение точек а не мелькающую одну точку. 🔸QTimer позволяет создавать отложенные вызовы один раз или с повторением через интервал. 🔸QColor.fromHsv() позволяет создать рандомный но предсказуемый цвет с помощью HSV схемы. Не слишком светлый и не слишком тёмный но всегда с разный. Рандомизации подвергается только смещение по цветовому кругу (Hue), яркость (Value) и насыщенность (Saturation) можно контролировать отдельно в своих пределах или оставить статичными. Обычный рандом цвета по RGB не даёт такой предсказуемый результат. 🔸 Каждый новый цикл с новым треугольником предварительно затемняет предыдущие через этот вызов painter.fillRect(rec, QColor(0, 0, 0, 100)) То есть полупрозрачный цвет. Таким образом, чем старше треугольник, тем он темней. Если сделать виджет фулскрин, то у нас получится некий ScreenSaver))) 🔸 Да, я знаю, что рисование в Qt не самый лучший способ сделать этот пример) Скорее всего самый НЕподходящий. Попробуйте сделать тоже самое но другими средствами. #qt#source#tricks

Резултати

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

Пребарај: #techleadership

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

@ai_and_law · Post #336 · 21.06.2024 г., 07:04

Appian CEO Challenges AI Industry to Prioritize Trust Matt Calkins, CEO of Appian, has called on the AI industry to prioritize responsible development and trust. At a critical moment for AI, Calkins unveiled guidelines promoting data transparency, user consent, and respect for intellectual property. "We must ensure AI flourishes by building trust," Calkins stated. His four principles include disclosing data sources, using private data with consent, anonymizing personally identifiable data, and compensating for copyrighted information. These steps aim to shift AI development from a data race to a trust race. As AI faces increasing scrutiny, Calkins positions Appian as a leader in responsible AI, encouraging others to join this movement. Trust, he argues, will unlock AI's full potential and redefine industry success. #AI#ResponsibleAI#DataPrivacy#Appian#TechLeadership

INHA University in Tashkent

@inha_uz · Post #10083 · 13.02.2026 г., 09:44

🚀 ICT WEEK UZBEKISTAN 2026 The future isn’t coming. It’s being built — right here, right now. This September, Tashkent becomes the meeting point of global innovation. Visionary leaders, fast-growing startups, top tech companies, policymakers, and international partners will gather to shape the next era of digital transformation in Central Asia and beyond. 🌍 Discover breakthrough technologies 🤝 Meet decision-makers and global partners 💡 Turn bold ideas into real projects 📈 Unlock new markets and opportunities This is not just an event. Whether you are a government leader, investor, entrepreneur, tech professional, or innovator — ICT Week Uzbekistan is where you need to be. ✨ Why attend? ✔️ High-level networking with global tech leaders ✔️ Startup & innovation showcases ✔️ Strategic forums and policy dialogues ✔️ Investment and partnership opportunities ✔️ Access to the fast-growing Central Asian tech market 📍 Tashkent, Uzbekistan 📅 September 22–25, 2026 Be part of the conversations that will define your tomorrow. Join ICT Week Uzbekistan 2026. Let’s connect. Let’s collaborate. Let’s build the future — together. #ICTWeekUzbekistan2026#ICTWeek#DigitalTransformation#Innovation#TechLeadership#CentralAsia#FutureIsNow#Uzbekistan

IT Ladies Uzbekistan

@itladiesuzbekistan · Post #257 · 09.02.2026 г., 14:44

🚀 ICT WEEK UZBEKISTAN 2026 The future isn’t coming. It’s being built — right here, right now. This September, Tashkent becomes the meeting point of global innovation. Visionary leaders, fast-growing startups, top tech companies, policymakers, and international partners will gather to shape the next era of digital transformation in Central Asia and beyond. 🌍 Discover breakthrough technologies 🤝 Meet decision-makers and global partners 💡 Turn bold ideas into real projects 📈 Unlock new markets and opportunities This is not just an event. Whether you are a government leader, investor, entrepreneur, tech professional, or innovator — ICT Week Uzbekistan is where you need to be. ✨ Why attend? ✔️ High-level networking with global tech leaders ✔️ Startup & innovation showcases ✔️ Strategic forums and policy dialogues ✔️ Investment and partnership opportunities ✔️ Access to the fast-growing Central Asian tech market 📍 Tashkent, Uzbekistan 📅 September 22–25, 2026 Be part of the conversations that will define your tomorrow. Join ICT Week Uzbekistan 2026. Let’s connect. Let’s collaborate. Let’s build the future — together. #ICTWeekUzbekistan2026#ICTWeek#DigitalTransformation#Innovation#TechLeadership#CentralAsia#FutureIsNow#Uzbekistan

Venture Village Wall 🦄

@venturevillagewall · Post #3969 · 24.01.2025 г., 10:00

Trump Signs AI Development Plan President Trump has signed an executive order to establish the U.S. as the world leader in AI. A 180-day deadline is set for creating an AI Action Plan aimed at strengthening America's global dominance in this field. Additionally, Trump has tasked his AI advisor to eliminate policies from the previous administration. This announcement was made during his speech at the World Economic Forum, affirming plans for leadership in AI and cryptocurrency. For more details, check the full articles: Forklog News #AI#Crypto#Policy#TechLeadership #AI#Crypto#Policy#TechLeadership#Trump#Innovation#Economy#NationalSecurity#ExecutiveOrder#Davos#ActionPlan#America#FutureTech#Leadership#GlobalDominance

Venture Village Wall 🦄

@venturevillagewall · Post #3903 · 17.01.2025 г., 13:00

Market Trends Impact Developer Salaries Developers face salary stagnation as the job market grows competitive. With more candidates than job openings, mid-senior professionals find job switches yield minimal salary increases. Becoming a tech lead is rare and corporations limit hiring senior candidates. Stability may lie in entrepreneurship or pet projects instead. Consider exploring these options for long-term financial health. #JobMarket#DeveloperSalaries#Entrepreneurship#PetProject#IT#CareerGrowth#TechIndustry#EmploymentTrends#SalaryTrends#BusinessModel#Stability#Competition#JobSwitch#MidCareer#SeniorDevelopers#MarketAnalysis#ITCareers#FinancialPlanning#TechJobs#Startup#TechLeadership