Один из самых удобных способов записать данные это использование готовых форматов, такие как JSON или YAML.
Из плюсов такого подхода стоит отметить вот что:
🔸 готовый, повсеместно используемый и поддерживаемый формат
🔸 простой и понятный файл, удобочитаемый для человека
🔸 можно легко редактировать в любом текстовом редакторе без специальных программ и библиотек
Но есть и минусы
🔹 затраты времени при записи файла (кодирование данных в нужный формат строки)
🔹 затраты времени при чтении файла (декодирование данных в Python объекты)
🔹 размер файла увеличивается из-за разметки данных (скобки, запятые, переносы, отступы...)
🔹 перед записью все данные должны быть помещены в память в полном объёме (не всегда)
🔹 при чтении необходимо считать весь файл в память и только потом декодировать данные
Если нужно писать немного данных в несколько файлов, то затраты по времени не ощутимы. Обычно это файлы конфига или какие-либо метаданные. Это отличный вариант под такие задачи.
Есть и другой поход к записи файлов - это бинарные файлы. Используется, когда данных достаточно много и никто их не собирается читать глазками😳.
🔸 очень быстрая запись
🔸 чтение значительно быстрей чем JSON, YAML итд
🔸 размер файла значительно меньше, так как нет разметки
🔸 можно записывать данные по мере поступления не загружая всё в память
🔸 можно извлечь любую часть данных независимо
Из минусов
🔹 нужно определить свой формат записи данных (если не используете готовую спецификацию определённого формата)
🔹 не получится открыть файл и визуально понять что там записано, а для чтения файла потребуется знать его спецификацию.
🔹 не так-то просто создать такой файл без специальной библиотеки
В таком виде удобно записывать большой массив любых однородных данных. Например, мониторинг валютной биржи или кэшированная анимация 3D геометрии.
(Это не означает что нельзя записать данные разного типа, просто это будет не так удобно)
Представьте себе JPG-картинку. По сути это немного мета-информации и большой массив пикселей. Тоже самое со звуком или видео файлом. Поэтому, если вы попробуете открыть картинку в текстовом редакторе вы увидите что-то вроде такого
f15d cd29 a564 4578 ...
09e2 9bc4 a696 1253 ...
84e9 4de1 3b23 c24a ...
2534 5161 28e0 709d ...
...
Это и есть записанные байтики. И для их чтения требуется определённый софт который знает что с ними делать. Под каждый тип файла.
К чему это я? Читайте в следующем посте...
#tricks#basic
NOX Energy Secures $1M Funding
NOX Energy has successfully raised $1 million in funding, with the round scheduled for December 18, 2024. For more details, visit NOX Energy.
#NOXEnergy#Funding#Investment#RenewableEnergy
Turning Renewables into Reusables — Green University Partners with EURECA
✅Green University met with the representative of the EURECA – Renewable Energy in Central Asia project to discuss cooperation in circular economy, waste management, and renewable energy recycling.
🔵During the meeting, Ms. Bettina Löwentraut-Duran, Energy Advisor at the GIZ Office in Uzbekistan and expert under the EURECA project, proposed establishing a Knowledge Hub at Green University — a platform to connect academia, industry, and international partners for sustainable solutions.
✅Both sides expressed interest in promoting innovation, research, and green transformation in Uzbekistan and across Central Asia.
#EURECA#Sustainability#CircularEconomy#RenewableEnergy
✉️[email protected]
☎️ +998 55 512 00 77
📍Location
🌐Website | 📱Telegram | 📱Instagram | 📱LinkedIn | 🟥YouTube
🌞🇿🇦 South Africa’s Solar Breakthrough
In 2005, Prof. Vivian Alberts (pictured) of the University of Johannesburg developed a groundbreaking thin-film solar technology that could transform renewable energy.
Instead of thick, costly silicon panels, his design uses a metal-based semiconductor alloy only 3 microns thick (vs. ~300 microns for standard silicon panels) — dramatically reducing material costs.
Through his company PTiP (Photovoltaic Technology Intellectual Property), and in partnership with German engineering firm Singulus Technologies, a semi-commercial facility was launched in Stellenbosch to produce these next-gen panels.
🔋Why it matters:
⚡️ Far cheaper to manufacture
🌥 Generates power even in cloudy weather
🌍 A major step toward clean, affordable energy
#SouthAfrica#Innovation#Solar#RenewableEnergy#CleanEnergy#Sustainability
“Yangi Oʻzbekiston” universiteti va Xitoy xalq respublikasining nufuzli oliygohlari oʻrtasida hamkorlik aloqalari kengaymoqda
🌐 Bugun O‘zbekiston Respublikasi va Xitoy Xalq Respublikasi Ikkinchi ta’lim forumi boʻlib oʻtdi. Tadbir doirasida “Yangi Oʻzbekiston” universiteti Xitoyning bir qancha oliygohlari bilan aloqalarni yanada mustahkamladi.
Jumladan, dunyo reytingida 201–250 oʻrinda turuvchi Xi’an Jiaotong universiteti bilan anglashinuv memorandumi imzolandi.
✅ Kelishuvga koʻra qoʻshma ta’lim dasturlarini tashkil qilish, professor-oʻqituvchilar almashinuvini amalga oshirish va hamkorlikda laboratoriya xonalarini ochish kabi yoʻnalishlarda hamkorlik olib boriladi.
💡 “Yangi O‘zbekiston” universiteti — bu bilim, ijod va xalqaro hamkorlik uyg‘unlashgan muhit. Ilmiy g‘oyangizni hayotga tatbiq etish uchun eng yaxshi joy shu yerda!
🔁English
➖➖➖➖➖➖➖➖➖➖
#memorandum#Xitoy
#LetsDoResearchForNewUU#Engineering#Biotech#RenewableEnergy
⬇️Biz ijtimoiy tarmoqlarda:
Veb-sayt | Telegram | Instagram | Facebook
⚡ ETHIOPIA: AFRICA'S ENERGY POWERHOUSE
ኢትዮጵያ፡ የአፍሪካ የኃይል ማዕከል
Not just surviving - POWERING the future! 🌍💪
━━━━━━━━━━━━━━━━
⚡ GRAND ETHIOPIAN RENAISSANCE DAM (GERD)
ታላቁ የኢትዮጵያ ህዳሴ ግድብ
🏗️AFRICA'S LARGEST DAM:
• 74 BILLION m³ capacity
• 5,150 MW power
• 175m high (57 floors!)
• $5 billion - 100% Ethiopian-funded! 🇪🇹
• Status: OPERATIONAL ⚡
"የኢትዮጵያ ህዳሴ በኢትዮጵያውያን"
(Ethiopian Renaissance by Ethiopians)
━━━━━━━━━━━━━━━━
💡 WHAT IT MEANS
✅ Powers all Ethiopia + exports
✅ Sudan: flood control + steady flow
✅ Egypt: regulated water supply
✅ 100% renewable - ZERO emissions
✅ Lights millions of homes across East Africa
"One dam lighting half of Africa"⚡🌍
━━━━━━━━━━━━━━━
🌱 100% GREEN ENERGY NATION
Ethiopia's mix:
• Hydropower: 95%+
• Wind: Growing fast
• Solar: Huge potential
• Coal & gas: ZERO ✅
World's cleanest energy grid!🌿
━━━━━━━━━━━━━━━
🔌 ENERGY EXPORT - "AFRICA'S BATTERY"
Currently powering:
• 🇸🇩 Sudan: 100+ MW
• 🇩🇯 Djibouti: 60+ MW
• 🇰🇪 Kenya: Ready!
Future: South Sudan, Somalia, Eritrea, Egypt
💰 Billions in export income + regional peace
"የኢትዮጵያ ኃይል የአፍሪካን ያበራል"
(Ethiopian power lights Africa)
━━━━━━━━━━━━━━━
👷 OPPORTUNITIES FOR YOUTH
⚡CAREERS:
• የኤሌክትሪክ ምህንዲሶች (Engineers)
• Dam operators
• Renewable specialists
• Grid managers
🎓 Training at Ethiopian Electric Power, universities, GERD site
💼 Thousands of jobs, high salaries, build the future!
━━━━━━━━━━━━━━━
💚💛❤️ FUNDED BY ETHIOPIANS
Every citizen contributed:
• Salary donations
• Diaspora bonds
• Personal savings
More than infrastructure - это символ единства и гордости!
"ህዳሴ - የኢትዮጵያውያን ኩራት"
(Renaissance - Ethiopian Pride)
━━━━━━━━━━━━━━━
🌍 GLOBAL IMPACT
Ethiopia proves:
✅ Renewable energy works at scale
✅ Africa can self-fund development
✅ Green growth possible
✅ Cooperation beats conflict
The world watches - Ethiopia delivers!🌟
━━━━━━━━━━━━━━━
⚡ MORE COMING
🚀 Next projects:
• Koysha Dam (2,160 MW)
• Wind & solar expansion
• Geothermal (Rift Valley)
Ethiopia's energy future = UNLIMITED!💡
━━━━━━━━━━━━━━━
💡 MIND-BLOWING FACTS:
🤯 Reservoir takes 3 years to fill
🤯 Could power 300+ million people
🤯 12,000+ workers built it
🤯 10+ million m³ concrete
🤯 Already generating power!
━━━━━━━━━━━━━━━
⚡ FROM WATER TO POWER
🌊 Part 1: Water = Life source
⚡ Part 2: Power = Future engine
Ethiopian Renaissance by Ethiopians, for Africa!🇪🇹💪
The future is POWERED BY ETHIOPIA! 💡🌟
━━━━━━━━━━━━━━━
🌍 ETHIOPIA | ЭФИОПИЯ | ኢትዮጵያ
📱@ethiopia telegram
#GERD#EthiopiaEnergy#GreenEnergy#AfricaPower#EthiopianPride#RenewableEnergy#PoweringAfrica
Tesla's Bitcoin Commitment in Question Again
Over 60 public companies now hold #Bitcoin as a treasury reserve asset. Michael Saylor reminds Elon Musk of his promise regarding Tesla's acceptance of Bitcoin, noting that Bitcoin's mining is now over 56% powered by renewable energy. Tesla paused accepting Bitcoin payments in May 2021 due to concerns over mining's carbon footprint.
#Bitcoin#Tesla#Crypto#ElonMusk#Mining#RenewableEnergy#PublicCompanies#Treasury#CarbonFootprint#Saylor
🚀 France Shifts Focus to Electric Power Amid Rising Oil Prices
French Prime Minister Sebastien Lecornu announced a strategic shift in government policy, emphasizing investment in electric power over short-term fuel aid. Bloomberg posted on X that this decision comes in response to the recent surge in oil prices triggered by the conflict in Iran. Lecornu highlighted the importance of supporting households and businesses in transitioning to electric power as a sustainable solution to the energy crisis. The government aims to reduce dependency on fossil fuels and promote cleaner energy alternatives. This move is part of a broader effort to address the economic impact of rising oil prices and ensure long-term energy security for the nation.
#France#ElectricPower#OilPrices#EnergyTransition#RenewableEnergy#EnergyPolicy#SustainableEnergy#FossilFuelReduction#EnergySecurity#EconomicImpact