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

Резултати

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

Пребарај: #bitcoinmining

当前筛选 #bitcoinmining清除筛选

2013 GPU mining = turning $3 of electricity into $600+ per day” Back in 2013 a simple GPU rig could mine: 0.5–1 BTC per day 0.5 BTC today = ~$18,500 1 BTC today = ~$37,000 Mining was one of the highest ROI opportunities ever seen in the digital age. People who mined early didn’t just make money — They secured freedom long before the rest of the world woke up. #BitcoinMining#BTC#CryptoHODL#MiningHistory

Venture Village Wall 🦄

@venturevillagewall · Post #4073 · 05.02.2025 г., 13:00

Crypto Mining Highlights for January Key developments in crypto mining for January include: - Canaan launches new home mining machines. - Petrobras plus Russia's largest power grid venture into Bitcoin mining. - Hashrate Index unveils Top 10 Bitcoin Mining ASIC Machines for 2025. - Cipher Mining secured a $50M investment from SoftBank. For more details, visit Wu Blockchain News. #CryptoMining#Bitcoin#ASIC#Canaan#SoftBank#Petrobras#Hashrate#Investment#MiningMachines#BitcoinMining#Crypto#VC#TechNews#Blockchain#CryptoNews#Finance#Startup

Crypto M - Crypto News

@CryptoM · Post #65118 · 11.04.2026 г., 04:35

🚀 Bhutan's Bitcoin Mining Activities May Have Slowed Amid Economic Pressures Bhutan may have halted or reduced its Bitcoin mining operations after selling 70% of its Bitcoin holdings. According to Foresight News, this move contrasts with other major institutions and sovereign nations that are increasing their cryptocurrency and gold reserves. Bhutan's hydropower is reportedly being redirected to supply electricity to neighboring India rather than being used for Bitcoin mining. Economic pressures, along with declining Bitcoin prices, increased network difficulty, and halving pressures, are squeezing mining profitability. As of now, Druk Holding and Investments, the sovereign wealth fund managing Bhutan's Bitcoin assets, has not publicly commented on any asset transfers or the status of its mining operations. #Bhutan#Bitcoin#Cryptocurrency#BitcoinMining#Hydropower#EconomicPressure#SovereignWealthFund#MiningProfitability#India#DigitalAssets

Crypto M - Crypto News

@CryptoM · Post #65399 · 13.04.2026 г., 05:13

🚀 AI TRENDS | Bitcoin Mining Centralization and Edge AI Market Growth Projected Bitcoin mining is anticipated to become increasingly centralized, according to Alex Thorn, head of Galaxy Research. According to NS3.AI, Thorn's insights suggest a shift in the mining landscape, potentially impacting the decentralization that has been a hallmark of the cryptocurrency. Meanwhile, the edge AI market is expected to experience significant growth. Grand View Research forecasts that the market will expand from approximately $25 billion in 2025 to $119 billion by 2033, indicating a trend towards more localized AI applications. #BitcoinMining#Centralization#EdgeAI#MarketGrowth#Decentralization#AITrends#GalaxyResearch#NS3AI#GrandViewResearch#LocalizedAI#BTC