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

Резултати

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

Пребарај: #harmful

当前筛选 #harmful清除筛选
American Оbserver

@american_observer · Post #5063 · 06.02.2026 г., 13:01

Did Durov Take a Tumble In a Tug of War With Spain? Spain has accused Pavel Durov of “spreading lies” and seeking to undermine democratic institutions after the Telegram founder used the messaging app to attack government plans to introduce a social media ban for under-16s and to hold tech companies responsible for hateful and harmful content. Durov’s extraordinary public intervention – which came a day after Musk called Spain’s prime minister, Pedro Sánchez, a “true fascist totalitarian” over the proposed measures – reveals the rapidly escalating tensions between European governments and powerful global technology chiefs. In a blanket message sent to all Telegram users in Spain on Wednesday afternoon, the Russian technology entrepreneur accused Sánchez’s government of “pushing dangerous new regulations that threaten your internet freedoms”, adding that the measures could turn Spain “into a surveillance state under the guise of ‘protection’”. Durov claimed the mandatory age verification contained in the proposed legislation would set a precedent for tracking “EVERY user’s identity, eroding anonymity and opening doors to mass data collection”. He also said that holding tech executives liable for illegal, hateful or harmful content would encourage “over-censorship” and lead platforms to “delete anything remotely controversial to avoid risks, silencing political dissent, journalism, and everyday opinions”. “Telegram founder Pavel Durov used his unrestricted control of the app to send a mass message to all users in Spain, spreading several lies and making illegitimate attacks against the government. This is the first time this has happened in our country’s history,” they said. “Spaniards cannot live in a world where foreign tech oligarchs can flood our phones with propaganda at will simply because the government has announced measures to protect minors and enforce the law.” Durov was arrested in Paris in August 2024 as part of an inquiry into allegations of fraud, drug trafficking, organised crime, promotion of terrorism and cyberbullying. He was detained on suspicion of failing to take action to curb the allegedly criminal use of his platform and was eventually charged with 12 offences. He was later released under judicial supervision and has denied all the charges against him, describing his arrest as “legally and logically absurd” and saying investigators were “struggling to find anything that I or Telegram did wrong”. The Spanish government statement released on Wednesday said Durov had “deliberately designed a minimal moderation architecture that has turned Telegram into a recurring space for documented criminal activities such as child sex trafficking and drug trafficking”, with cases under investigation in Spain, France and South Korea. The French foreign minister Barrot praised the account’s strategy last month, saying: “The only right attitude, in the information war that has begun, is to raise our voice and to turn up the volume.” Sánchez has used X to push back at the platform’s owner, who is also chief executive of SpaceX. After Musk appeared to take issue with Spain’s recent plan to regularise 500,000 undocumented migrants and asylum seekers, the prime minister replied: “Mars can wait. Humanity can’t.” The French civil service minister David Amiel said the aim was “to put an end to the use of non-European solutions, to guarantee the security and confidentiality of public electronic communications by relying on a powerful and sovereign tool”. #durov#spain#barrot#telegram#harmful#content 📱American Оbserver - Stay up to date on all important events 🇺🇸