TGTGInsightтелеграм анализLIVE / telegram public index
← Такты, стеки, два колеса

TGINSIGHT SIMILAR POSTS

Намери подобно съдържание

Изходен канал @clockstackwheels · Post #884 · 5.10

Роскосмос пару дней назад опубликовал отчёт о том, почему упала "Луна-25". Там конечно канцелярит, но можно примерно понять, что двигатель коррекции получил неверные данные от акселерометра: из-за возможного попадания в один массив данных команд с различными приоритетами их исполнения прибором Это очень похоже на программную ошибку, а это моя сфера, и я решил над ситуацией поразмыслить. Хейтеры сразу стали строчить комментарии в стиле "Ололо, наняли каких-то идиотов, которые простейшие тесты не провели". Тут обычно справедливо вспоминают аварию с европейской ракетой Ариан-5 в 1996 году. Там буквально из-за пары строчек кода в результате неправильного приведения числовых типов ракета за 7 млрд баксов развалилась на куски в воздухе. Бывает. Что касается Роскосмоса, при всей его сомнительной репутации, объяснение "Дураки не провели тесты" звучит лично для меня неправдоподобно. На мой личный взгляд возможны два варианта: 1. Если в описании ошибки слово "приоритет" обозначает какой-то признак внутри объекта команды, значит, на входе в приёмный модуль эти команды не были отфильтрованы. Выглядит как грубая ошибка, целый логический блок упущен. Вряд ли этот блок вообще не написан, скорее всего он не выполнился. Такое бывает, если в тестовой среде есть какое-то условие, которого нет в рабочей, и именно это условие отвечает за выполнение участка кода. Сталкивался с таким миллион раз. Самое дикое из последнего: код парсит эксель-таблицу с числами. Разработчик написал, запустил проверил, прогнал тесты, всё ок. Отправляем в прод — все числа будто бы рандомно меняются на другие. Запускаем снова — у всех разработчиков функционирует нормально, а в проде на сервере нет. Таблица одна и та же. Можете подумать, почему так. Ответ: у разработчиков стоит русская локаль и десятичный разделитесь это запятая, а на проде в докере точка. При парсинге на проде запятая уже интерпретируется как разделитель тысячных разрядов. 2. Куда вероятнее, что слово "приоритет" в описании ошибки обозначает время, а, значит, список команд просто не был отсортирован, и в обработчик уже после актуальных значений попали какие-нибудь начальные нулевые данные, сбившие логику. По косвенному описанию проблемы очень похоже именно на это. Значит, на тестах всегда порядок возникновения команд соответствовал порядку их прихода, а в реальности перестал соответствовать. Вообще, работать с железом очень сложно. Какую-нибудь схемку заглючило от холода, она задержала ответ от датчика на миллисекунду, и всё. Никто не знал, что такая проблема возможна, пока она не возникла. Мне рассказывали о таком случае: юзер логинится на сайт и иногда логин проходит, а иногда нет. Логин и пароль те же самые. Просто в случайные моменты времени ему возвращают токен авторизации, а в другие моменты времени ошибку 403. Никакой закономерности нет вообще. Нет зависимости от времени суток и даты. Сервер точно работает стабильно и не падает все 100% времени. Почему так может быть? Ответ: у сервиса авторизации два инстанса, перед которыми балансировщик нагрузки. В одном инстансе данные для авторизации есть, в другом нет. Балансировщик при примерно одинаковой нагрузке включает просто случайный выбор между ними. В общем, программисты иногда допускают такие косяки, что какая-то мелочь может привести к серьёзной аварии. Это я вам говорю как программист, который пишет для атомных станций :) #dev

Hashtags

Резултати

Намерени 11 подобни публикации

Търсене: #state

当前筛选 #state清除筛选
ПроКадры_27

@prokadry_27 · Post #709 · 16.03.2023 г., 01:00

В данный момент проходит ежегодный Санкт-Петербургский международный форум труда, в рамках которого 17 марта 2023 года состоится серия дискуссионных обсуждений, посвященных вопросам развития государственной гражданской службы👏 Для желающих принять участие в мероприятии и повысить уровень своих знаний в сфере современных кадровых технологий организована онлайн-трансляция мероприятия на сайте Форума, которая доступна по ссылке. Актуальная программа размещена на сайте Форума, доступна по ссылке, трек #state👍

Hashtags

AREA

@area_eng · Post #21 · 26.07.2024 г., 15:05

Morocco plans to implement energy projects In the State Duma, at the "Strategic Session on legislative support for economic cooperation with African countries in the energy sector", Chairman of the Russian-Moroccan Business Council Yuri Sharov spoke about promising energy projects in Morocco. Among those: 🔹 Projects in the field of renewable energy and energy efficiency, such as solar and wind power plants, as well as biomass and geothermal energy. 🔹 The creation of a coal hub in Morocco, which will become a key element of the region's energy infrastructure. 🔹 Seawater desalination projects. Morocco is interested in companies with their own know-how, as well as the supply of equipment. 🔹 Resumption and development of cooperation with the National Electricity and Water Supply Authority of Morocco on projects for the construction of new power plants. #Africa#Russia#energy#State Duma

AREA

@area_eng · Post #23 · 26.07.2024 г., 18:13

Russian business in Africa needs official support During the "Strategic session on legislative support for economic cooperation with African countries in the energy sector" in the State Duma, Chairman of the Russian-Moroccan Business Council Yuri Sharov said that Russian businesses wishing to work on the continent do not have the necessary support from Russian official structures for new economic projects. According to him, the projects have not formed a comprehensive ecosystem. Preparatory work on a number of initiatives is scattered, many have not reached practical implementation. "Only the personal inclusion of each of us and the consolidation of efforts, not only of government agencies, but also of business and civil society, will allow us to solve this critically important global geopolitical task. The AREA Association is the right initiative. The problems of Africa and entrepreneurs working on the continent need to be solved with a united front," he said. #Africa#Russia#energy#State#Duma

AREA

@area_eng · Post #22 · 26.07.2024 г., 15:15

There is a demand in Africa for creation of a sustainable energy infrastructure – Babakov At the "Strategic session on legislative support for economic cooperation with African countries in the energy sector", which was held in the State Duma, Deputy Chairman of the State Duma Alexander Babakov said that according to forecasts by 2050, the population of the continent could range from 2 to 2.5 billion people. "This suggests that the potential of the African continent's energy market is very high. Key indicators indicate that both population growth and strong economic growth will continue. Due to the fact that the basis of GDP in many countries, especially in West and Central Africa, is agriculture and exports of raw materials, there is a significant demand for industrial development, requiring the creation of a sustainable energy infrastructure," he said. Babakov noted that Russian energy solutions, which have shown their effectiveness and sustainability even in difficult climatic conditions, could become a reliable basis for industrial growth in Africa and ensure a new quality of life for the population of the countries. #Africa#Russia#energy#State#Duma

djangoproject

@djangoproject · Post #84 · 08.07.2016 г., 10:32

https://github.com/python-telegram-bot/python-telegram-bot/pull/331 To hold a conversation with users, the #bot has to implement a #state machine to keep track of the different paths in the #conversation. This is a pretty common pattern and we don't have a good way to deal with it right now. The #state_machine_bot.py example is far from perfect. This PR introduces a new Handler subclass called ConversationHandler to take care of this. Instead of re-inventing the wheel, this handler acts only as "management" for the existing handler classes. Copied from documentation: A handler to hold a conversation with a user by managing four collections of other handlers. The first collection, a list named entry_points, is used to initiate the conversation, for example with a CommandHandler or RegexHandler.

Venture Village Wall 🦄

@venturevillagewall · Post #4230 · 24.02.2025 г., 13:00

Georgia Considers Bitcoin Investment Bill A new bill in Georgia aims to enable the state treasurer to invest in #Bitcoin. This move could open new avenues for state-level cryptocurrency investment. Stay updated on this potential legislation! Read more #Bitcoin#Crypto#VC#Georgia#Legislation#Investment#Blockchain#Finance#CryptoNews#Treasury#State#Economy

Trump's Ear

@trumpsear_tg · Post #2158 · 17.02.2026 г., 13:00

In the Indian state of Kerala, the sculptor carved the statue of Trump and Melania as the embodiment of the Indian gods Shiva and Kali. Thus Trump has entered the Pantheon of Hindu gods. #indian#state#kerala#trump#pantheon 👂More on Trump's Ear ⚠️

DEPO - #STATISTICS CHANGES IN STRUCTURE OF STATE-OWNED SHARE The number of JSCs with state-owned share totaled 226 JSCs or 35.8% in aggregated number of JSCs as of 01.11.2022. The volume of state-owned share totaled UZS 133 690.4 billion or 80.7 % in total volume of shares issues. The share owned by Ministry of Finance amounted to 69.9%, Reconstruction and Development Fund - to 22.6%, State Assets Management Agency – to 6.8%, and other state organizations – to 0.7%. #structure#state#share#shares#SAMA#MinistryofFinance deponet.uz|Tg|Fb|Inst|Youtube

DEPO - #STATISTICS CHANGES IN STRUCTURE OF STATE-OWNED SHARE The number of JSCs with state-owned share totaled 225 JSCs or 35.7% in aggregated number of JSCs as of 01.10.2022. The volume of state-owned share totaled UZS 133 665.4 billion or 81.2% in total volume of shares issues. The share owned by Ministry of Finance amounted to 69.9%, Reconstruction and Development Fund - to 22.7%, State Assets Management Agency – to 6.8%, and other state organizations – to 0.6%. #structure#state#share#shares#SAMA#MinistryofFinance deponet.uz|Tg|Fb|Inst|Youtube

DEPO - #STATISTICS CHANGES IN STRUCTURE OF STATE-OWNED SHARE The number of JSCs with state-owned share totaled 226 JSCs or 35.9% in aggregated number of JSCs as of 1 September 2022. The volume of state-owned share totaled UZS 132 895.8 billion or 81.4% in total volume of shares issues. The share owned by Ministry of Finance amounted to 70.1%, Reconstruction and Development Fund - to 22.4%, State Assets Management Agency – to 6.9%, and other state organizations – to 0.6%. #structure#state#share#shares#SAMA#MinistryofFinance deponet.uz|Tg|Fb|Inst|Youtube

djangoproject

@djangoproject · Post #519 · 10.12.2017 г., 18:14

https://blog.wallaroolabs.com/2017/12/stateful-multi-stream-processing-in-python-with-wallaroo/ #Wallaroo is a high-performance, open-source framework for building distributed stateful applications. In an earlier post, we looked at how Wallaroo scales #distributed_state. In this post, we’re going to see how you can use Wallaroo to implement multiple data processing #tasks performed over the same shared #state. We’ll be implementing an application we’ll call “Market Spread” that keeps track of the latest pricing information by stock while simultaneously using that state to determine whether stock order #requests should be rejected. #pipeline