TW: нудный гик-стафф про бытовую технику.
Кофемашина в какой-то момент не включила индикатор переполненности контейнера для жмыха. Это странно, поэтому я стал разбираться. Вообще, техника редко глючит непонятным образом и ведет себя хаотично. Всегда есть какая-то причина. При отладке программы это тоже надо всегда помнить.
Как машина узнаёт, что контейнер полон? Никак. У контейнера есть герконовый датчик, показывающий факт его установки в корпус. Когда ты его вытаскиваешь, машина думает, что ты его очистил. А дальше программа просто знает, что одинарный кофе наполняет контейнер на X, двойной на 2X, а вместимость nX.
Что произошло: я открыл контейнер посмотреть, заполнен ли он целиком. А потом закрыл обратно, не очистив. В оценке уровня жмыха появилась аддитивная погрешность.
Если позволить человеку ввести систему в неправильное состояние, он рано или поздно это сделает. Кстати, по той же причине мне нравится DDD как архитектура для энтерпрайз разработки: если всё правильно спроектировать, то программист слоя приложения, который является "пользователем" домена, не сможет сломать состояние сущностей и агрегатов.
В общем, в машине не хватило защиты от дурака. Как бы я решал эту задачу? Сходу приходит в голову какой-нибудь оптический датчик в верхней части контейнера. В худшем случае он запачкается и сработает ложно-положительно, что вызовет необходимость для пользователя лишний раз почистить контейнер.
Но ТРИЗ намекает нам на другой подход. Можно попробовать полностью исключить появление жмыха. Так устроены, например, капсульные машины. У нас такая была, но перешли на зерновую, потому что вкусный качественный кофе в зёрнах на порядки дешевле, чем в капсулах, а пьем мы его много. Особенно кофе с молоком, для которого в капсулах просто концентрат, а не настоящее молоко.
Если исключить жмых нельзя, то нужно сделать его удаление неотъемлемой частью процесса обслуживания машины. Думаю, я бы попробовал объединить конструктивно контейнер для зёрен и для жмыха, и рассчитать объёмы так, чтобы второго хватило на один цикл траты первого. Тогда даже датчики не нужны: кончились зёрна, и ты неизбежно достаешь контейнер и очищаешь.
Сфоткал для вас чашечку ароматного капучино.
#life
A detailed watercolor painting of a serene winter forest scene
A detailed watercolor painting of a serene winter forest scene. Tall, slender pine trees with textured bark stand gracefully, their branches heavily laden with fresh, white snow. The snow covers the forest floor, creating a smooth, undisturbed blanket. Soft, diffuse light filters through the trees, casting a gentle glow that highlights the delicate snowflakes and the subtle variations in the icy landscape. The background reveals more snow-covered trees fading into a misty, pale sky, evoking a peaceful and quiet winter day. The scene captures the tranquility and beauty of a snow-covered woodland, with a delicate balance of light, shadow, and texture.
#StableDiffusion
Beauty of a cute Soviet girl at cozy room posing freedom
dreamlike, Beauty of a cute Soviet girl at cozy room posing freedom, blonde long hair, (by Savrasov and Monet:1.2), abstract estetic, (shy:1.1) light smile, love, breast, (cinematic posing closeup:1.2), light blue and emerald palette, extremely detailed, flower and heart shape
#StableDiffusion
Young woman sitting at the edge of balcony
speed painting by hand an visual sunny vibe of punk happiness, big border brushstroke, big brushstroke, close up half-body, bliss, night city high, young Russian woman sitting at the edge of balcony, dark moon background, realistic skin texture, starry night, looking at camera, light smiling, attractive and sexy, summer sunlights, breast, photorealistic, long flowing brown hair, dreamlike light incidence, white sparkles sunlight beams, on a violet canvas,, giving them a radiant and romantic aura, cinematic and film grain in style of 80's, Soviet style, Iranian style, (by Rutkowski and painting by ilya Repin, in style Oil painting:1.2)
#StableDiffusion
Young Russian woman laying on the long grass and flowers in the sun
dreamlike paint, allegory style, (art style by Casey Baugh:1.1), close up half-body, bliss, summer sunset, young Russian woman laying on the long grass and flowers in the sun, violet and blue flowers glowing background, realistic skin texture, closed eyes, smiling, attractive and sexy, autumn sunlights, breast, photorealistc, creative commons attribution, long flowing brown hair, dreamlike light incidence, white sparkles sunlight beams, on a yellow canva, often described as flame-like, digital art, (watercolours paint:0.9), neon vibe
#StableDiffusion
A half-body model-shot
half-body model-shot, a close up of a Russian cute woman with ginger hair and a soft pink lipstick, reflective deep eyes, breast, dramatic light on face, sunrise light, summer smile, a beautiful teen-aged girl, shadow-play, connectedness, with very thin lips,pale - skinned, surrender, super beauty 4k photo
#StableDiffusion
A fox-woman in a blue outfit
cute (russian:1.2) fox-woman in a blue outfit posing on fantasy black dark room, fantasy, Ahri, trending on artistation, cold lighting, photo taken of an epic intricate, cute furry, asuna yuuki, frostbite, inspired by Guan Daosheng, casino, fairy cgsociety
#StableDiffusion
A portrait redhair woman posing in the forest with flowers
closeup the teen (Triss Marigold:1.3) portrait redhair woman posing in the forest with flowers, magically effects, shy smile, the witcher fantasy theme, sun and shadow play, the magician, magically dissolving, lovely gaze, extravagant sexy undress, seducing eyes, official print, (romantically old classic photo, photorealistic, film grain:1.2)
#StableDiffusion
Woman with a hood on in the snow
woman with a hood on in the snow, beautiful blueish eyes, photoreal, cgsociety, looks like young Mexican, skyrim snowstorm, gaze, (freckles on the nose:0.3), brunette fairy woman, ian callum, piercing clear eyes, guard, hidden, rogue, mistborn, beautiful faces aesthetic, nephilim, texturing rich hood
#StableDiffusion
A classical portrait of a young woman
A classical portrait of a young woman with fair skin and light brown hair styled in an elegant updo. She has a calm and confident expression, with subtle makeup and soft features. She is wearing a large, elaborate ruffled white collar around her neck, typical of 17th-century fashion, and a black dress with a high neckline. She also has a delicate gold chain necklace visible just above the collar. The background is dark and plain, emphasizing her face and attire. The painting has realistic detail and soft lighting, showcasing a refined and noble appearance.
#StableDiffusion
A cute russian girl removes the fox mask and opened face
cute russian girl removes the fox mask and opened face, highly detailed saturated, the demonic masquerade, silhouette-shaped, dream background, kabuki mask, furry character portrait, intricate detailed dress, cute face, clean image, <lora:hand 5.5:1>, dreamlike paint, allegory style, (style by Henry Asencio:1.2), detailed, glowing, the atmosphere of art, poetry as a symbol of happiness,
#StableDiffusion