home.social

#10bit — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #10bit, aggregated by home.social.

fetched live
  1. Скрипт двоичные часы или же «binary clock», выводит в консоли:
    Time: 22:20:54
    10110
    010100
    110110
    Соответственно в первой строке часы, во второй — минуты, третья — секунды.
    Для расслабляющего медитативного наблюдения за тем, как секунды тикают.
    while true; do
        clear
        current_time=$(date +%H:%M:%S)
        echo "Time: $current_time"
        hour=$(printf "%05d" $(echo "obase=2; $(date +%H)" | bc))
        minute=$(printf "%06d" $(echo "obase=2; $(date +%M)" | bc))
        second=$(printf "%06d" $(echo "obase=2; $(date +%S)" | bc))
        echo " $hour"
        echo "$minute"
        echo "$second"
        sleep 1
    done

    Есть для андройдов слегка иной вариант — без секунд и с отображением бит группами (OpenAPK и в Google Play).
    А так, вполне наглядная демонстрация что может bash / shell за счёт обращения к «мини» тулзам сродни bc и printf.


    #bash #shell #часы #clock #10-bit #lang_ru
  2. Long discussion how much better 10 and 12 bit colors are. Here's easy 1 bit diff test for 8 bit colors. Should be easy. 10 bit is 4x harder and 12 bits 16x harder. #10bit #colors #test
  3. Why #VLC still got issues with #10bit #colors, actually the image looks very bad and washed out or gray and often way too dim with 10bit media files. Embarrassing #fail. #Linux