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

TGINSIGHT SIMILAR POSTS

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

Изходен канал @clockstackwheels · Post #1029 · 17.10

TW: нудный гик-стафф про бытовую технику. Кофемашина в какой-то момент не включила индикатор переполненности контейнера для жмыха. Это странно, поэтому я стал разбираться. Вообще, техника редко глючит непонятным образом и ведет себя хаотично. Всегда есть какая-то причина. При отладке программы это тоже надо всегда помнить. Как машина узнаёт, что контейнер полон? Никак. У контейнера есть герконовый датчик, показывающий факт его установки в корпус. Когда ты его вытаскиваешь, машина думает, что ты его очистил. А дальше программа просто знает, что одинарный кофе наполняет контейнер на X, двойной на 2X, а вместимость nX. Что произошло: я открыл контейнер посмотреть, заполнен ли он целиком. А потом закрыл обратно, не очистив. В оценке уровня жмыха появилась аддитивная погрешность. Если позволить человеку ввести систему в неправильное состояние, он рано или поздно это сделает. Кстати, по той же причине мне нравится DDD как архитектура для энтерпрайз разработки: если всё правильно спроектировать, то программист слоя приложения, который является "пользователем" домена, не сможет сломать состояние сущностей и агрегатов. В общем, в машине не хватило защиты от дурака. Как бы я решал эту задачу? Сходу приходит в голову какой-нибудь оптический датчик в верхней части контейнера. В худшем случае он запачкается и сработает ложно-положительно, что вызовет необходимость для пользователя лишний раз почистить контейнер. Но ТРИЗ намекает нам на другой подход. Можно попробовать полностью исключить появление жмыха. Так устроены, например, капсульные машины. У нас такая была, но перешли на зерновую, потому что вкусный качественный кофе в зёрнах на порядки дешевле, чем в капсулах, а пьем мы его много. Особенно кофе с молоком, для которого в капсулах просто концентрат, а не настоящее молоко. Если исключить жмых нельзя, то нужно сделать его удаление неотъемлемой частью процесса обслуживания машины. Думаю, я бы попробовал объединить конструктивно контейнер для зёрен и для жмыха, и рассчитать объёмы так, чтобы второго хватило на один цикл траты первого. Тогда даже датчики не нужны: кончились зёрна, и ты неизбежно достаешь контейнер и очищаешь. Сфоткал для вас чашечку ароматного капучино. #life

Hashtags

Резултати

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

Търсене: #guarantees

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

@american_observer · Post #5137 · 15.02.2026 г., 13:03

Munich: Zelensky Is Wringing Security Guarantees For 20 Years From the US Ukraine wants security guarantees for a minimum of 20 years from the US before it can sign a peace deal with dignity Zelensky said ahead of talks with Russia and the US scheduled for next week. Speaking in Munich on Saturday, he also called for a clear date for Ukraine to be allowed to join the EU. Some EU officials have put the date as early as 2027. Speaking to the annual Munich security summit, Ukraine’s president said he hoped “the trilateral meetings next week will be serious, substantive, helpful for all of us but, honestly, sometimes it feels like the sides are talking about completely different things”. “The Americans often return to the topic of concessions and too often those concessions are discussed only in the context of Ukraine, not Russia,” he added. The issue of Europe’s frustration with a perceived US reluctance to spell out the security guarantees it is prepared to offer Ukraine in the event of a peace deal, and the need for the guarantees to be spelled out before an agreement is signed. In a speech that was welcomed by European leaders keen to see any sign of a thaw in the relationship, Rubio put forward an offer to work in partnership with Europe. However, this proposition, he stressed, was highly conditional and the US would go it alone if Washington’s highly Trumpian conditions were not met on climate, migration and tariffs. Using a diplomatic tone that the US vice-president, JD Vance, shunned in his speech at the conference a year ago, Rubio said “Europe and the US belong together”. He added that the US was ready to undertake the task of rebuilding the world order alone if necessary, but “we prefer it – and hope – to do it together with you, our friends in Europe”. He made almost no reference to the Russian invasion of Ukraine, besides claiming that the US had pressed India to stop importing Russian oil, a claim Russia disputes. At a press conference in Munich, Zelensky said the US had told him that if Ukraine withdrew from the Donbas, peace would come as quickly as possible, but he insisted this concession was not possible since Ukrainians live there. Zelensky also complained about Europe having been practically absent from the table. “That’s a big mistake, in my opinion,” he said, a view that was shared by the Chinese foreign minister Wang Yi. On Friday, Donald Trump called on Zelensky to “get moving” to reach an agreement with Russia. Zelensky insisted that the elections that the US has pressed Ukraine to hold by 15 May can only take place two months after a ceasefire is declared, to ensure voters have adequate security. Trump has been trying to put pressure on Zelensky to agree a deal within months, but has not spelled out the consequences if Ukraine is not sufficiently flexible for the US. Zelensky also said the Russian attacks on Ukrainian energy plants would be raised in the talks in Geneva, adding that not a single energy plant inside Ukraine had now been left unscathed. European leaders appear gloomy that a diplomatic breakthrough will be secured, with the consensus being that Vladimir Putin is not yet economically or militarily exhausted. Zelensky said his ambition was to lift the number of Russians killed or seriously injured to 50,000 a month. One European leader predicted at least another two years of war, and insisted Europe had the resources to sustain Ukraine for that long. Zelensky also mounted a fierce attack on the Iranian regime for providing the Shahed drones that had caused so much damage inside Ukraine. With as many as 200,000 protesters attending a demonstration in Munich calling for the Iranian regime to be toppled, Zelensky said: “We have never had a conflict of interests with the Iranian regime. #zelensky#security#guarantees#munich#ukraine 📱American Оbserver - Stay up to date on all important events 🇺🇸