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

Пребарај: #transactionfees

当前筛选 #transactionfees清除筛选
Crypto M - Crypto News

@CryptoM · Post #65006 · 10.04.2026 г., 13:37

🚀 Bitcoin Transaction Fees Drop Significantly Over the Year Daily Bitcoin transaction fees have decreased to 2.443 BTC as of April 8, marking a 69% decline compared to the same period last year. According to NS3.AI, the average fee per block was approximately $0.33, with fees comprising less than 0.5% of the total miner revenue. #Bitcoin#Cryptocurrency#TransactionFees#Blockchain#CryptoNews#BTC

Crypto M - Crypto News

@CryptoM · Post #65345 · 13.04.2026 г., 01:44

🚀 Ethereum Layer 2 Network Scroll Faces Overcharging Issue Ethereum Layer 2 network Scroll has reportedly overcharged users by more than $50,000 in transaction fees over approximately four days. According to ChainCatcher, this occurred after the Scroll team manually increased two rate multipliers in their gas price oracle six times within six days, each time raising them by 2 to 10 times. This adjustment cumulatively increased the L1 data cost parameter to 1,280 times its original benchmark. Approximately 139,000 transactions were affected, with the total cost originally estimated at around $280, but users were charged over $50,000. The majority of these transactions were automated by bots. L2BEAT clarified that the overcharging was not due to a sequencer issue but resulted from multiplier adjustments executed through a multi-signature wallet by the team. This incident has raised questions about whether Scroll previously subsidized users with below-cost rates to maintain activity. Data from DeFiLlama indicates that Scroll's total value locked (TVL) currently stands at $24 million, a significant decline of 96% from its peak of $585 million in October 2024. As of the time of reporting, Scroll has not publicly responded to the issue. #Ethereum#Layer2#Scroll#Overcharging#GasFees#Blockchain#DeFi#TVL#CryptoNews#TransactionFees#ETH#SCR

Crypto M - Crypto News

@CryptoM · Post #65082 · 10.04.2026 г., 20:38

🚀 Scroll Users Face Excessive Transaction Fees Due to Multiplier Increases Scroll users incurred over $50,000 in additional transaction fees following six manual multiplier increases that elevated Layer 1 data charges to 1,280 times the original baseline. According to NS3.AI, L2BEAT reported that approximately 139,000 transactions were impacted over a span of roughly four days, with the baseline cost estimated at around $280. On April 9, the team reduced both multipliers by 160 times. Etherfi Cash bots contributed approximately $35,000 of the excess fees during etherfi's migration to Optimism. #Scroll#TransactionFees#MultiplierIncrease#Layer1#L2BEAT#NS3AI#Etherfi#Optimism#Crypto#Blockchain#SCR

Crypto M - Crypto News

@CryptoM · Post #64625 · 09.04.2026 г., 11:54

🚀 Independent Miner Achieves Rare Bitcoin Block Discovery An independent Bitcoin miner achieved a rare feat by successfully mining a Bitcoin block with a very low probability. According to BlockBeats, the miner used CKpool's solo mining software to mine block number 944,306, earning a total of 3.128 Bitcoin. Data from block explorer Mempool indicates that the miner received a block subsidy of 3.125 Bitcoin and transaction fees amounting to 0.003 Bitcoin. CKpool developer Con Kolivas noted on the X platform that the miner accomplished this with just 70TH of computing power. The probability of a miner of this scale discovering a block daily is approximately one in 100,000, with an average occurrence of once every 300 years. #Bitcoin#mining#CKpool#blockchain#rarefeat#blockdiscovery#cryptocurrency#soloMining#Mempool#transactionfees#ConKolivas#BTC

Crypto M - Crypto News

@CryptoM · Post #64697 · 09.04.2026 г., 14:44

🚀 Telegram's TON Blockchain Achieves Significant Speed Upgrade Telegram founder Pavel Durov announced a major upgrade to the TON blockchain, significantly enhancing its processing speed. According to Foresight News, the upgrade has increased block generation rates by six times and achieved sub-second transaction confirmations. Durov stated that this is the first of seven steps in his 'Make TON Great Again' (MTONGA) plan. The next step aims to reduce the already relatively low transaction fees by approximately six times to further improve network performance and cost competitiveness. #Telegram#TONBlockchain#PavelDurov#SpeedUpgrade#Blockchain#TransactionSpeed#MTONGA#ForesightNews#SubSecondConfirmations#TransactionFees#NetworkPerformance