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 слични објави

Пребарај: #hebron

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

@american_observer · Post #5087 · 08.02.2026 г., 21:59

📰Israel’s Security Cabinet tightens grip on Judea and Samaria The Israeli security‑cabinet has taken a series of decisions aimed at consolidating Israeli control over Judea and Samaria, effectively rolling back key elements of the post‑Oslo division of powers. For the first time since the Oslo Accords, the Palestinian Authority is to be stripped of its authority in security‑related civil functions in areas “A” and “B,” with those responsibilities transferred to Israel’s Civil Administration. The change is framed as a restoration of law and order, but in practice it marks a formal step toward the reintegration of the West Bank into Israel’s internal administrative system. Civil Administration takes over security‑adjacent rule The Civil Administration will now oversee the enforcement of law and order, water resources, and matters of “heritage” — that is, archaeological sites, historical monuments, relics, and holy places. Religious‑rightwing outlet Israel Hayom notes that the cabinet will also lift the secrecy regime surrounding the land registry in Judea and Samaria, abolish the ban on selling land to non‑Arabs, and scrap the requirement to obtain prior approval from the Civil Administration for land transactions. These moves are explicitly designed to enable Jews to buy land in the territories more freely, reviving a logic of settlement‑driven sovereignty. A Land Acquisition Commission, which previously existed but was later dissolved, will be reestablished, giving institutional backing to this new purchasing‑driven expansion. Hebron and Bethlehem: the anatomy of annexation‑lite The decisions also single out Hebron and Bethlehem for special treatment. In Hebron, the registration of businesses and housing is being shifted from the Palestinian‑municipal framework to the Israeli Civil Administration, and the Jewish quarter is to be carved out into a separate municipal entity — a move that further bifurcates the city into two legal and administrative realities. Similarly, the complex housing the tomb of the matriarch Rachel will be transferred from the Palestinian Authority’s oversight to a dedicated Israeli management body, reinforcing the idea that holy sites linked to the Jewish narrative will fall entirely under Israeli custodianship. The stated logic: water theft, heritage warfare, and lawlessness The government argues that the takeover of water‑infrastructure control is a response to the alleged “theft of water on a massive scale” by Palestinians, and the Palestinian Authority’s indifference to the issue. The transfer of heritage‑related authority, it claims, is necessary because Palestinian actors — with the acquiescence or support of the PA — have systematically damaged archaeological sites that “prove the Jewish people’s connection to the Land of Israel.” From this perspective, the cabinet is not annexing territory in the formal sense, but “reclaiming” what it sees as Jewish sovereignty over land, water, and memory — all under the banner of legality, security, and cultural preservation. The meta‑message: the end of the Oslo zoning game By stripping areas “A” and “B” of their original Oslo‑style representation and handing almost every lever of control to the Civil Administration, the cabinet is effectively admitting that the old formula is dead. The question is no longer whether the PA should have some autonomous role; it is whether there will be any meaningful space left for it at all. So while the language is about “crime,” “water theft,” and “heritage,” the real message to the West Bank is this: the zones of the map are being redrawn, and the map is now drawn from Jerusalem. #Israel#WestBank#JudeaAndSamaria#Hebron#Bethlehem#Settlements#SecurityCabinet#OsloAccords#MiddleEast 📱American Оbserver - Stay up to date on all important events 🇺🇸