И это всё МОЁ

Добрый день.
Помогите отредактировать/исправить скрипт.


Скрипт такой:
while [ $(du -sm|cut -f1) -gt 10 ]; do rm -rf «$(ls -1c . | tail -n1)»;done


Тестирую удаление файлов из папки, когда размер папке превысит 10 Мб.
Подскажите, как в скрипте указать папку для проверки?
Правильно я указываю мегабайты?


Скрипт нужен для планировщика на ftp сервера Net2ftp.









 








И это всё МОЁ

Вот когда то давным давно, было не правильным выделять много памяти в стеке. Сначала даже не было динамических массивов.

Потом они появились, появились 64 битные системы и оперативка гигами, и виртуальные страницы памяти.

Т.е. по сути память сейчас можно выделять в стеке в равной степени как и в куче.

В стеке память выделяется быстрей, до поры, пока программа не начнет ее просить у операционки. И меньше дефрагментируется.

И вот для случаев когда известен необходимый объем, есть ли причины не выделять ее в стеке? И сколько можно?

10Мб..100Мб..1Гб..10Гб?

Операционка не подразумевается какая-то конкретная, все современные десктоповые вроде так умеют.








 








И это всё МОЁ

Здравствуйте господа. Linux тут при том что в сравнении с Windows является почти идеальной системой. У меня больше полу года ушло для решения проблемы бесконтрольного обновления драйверов в «дружелюбной» Windows. А вот сейчас думаю, может с моим ПК и ноутбуком что-то не то? Почему и на ПК и на ноутбуке, где Windows стоит второй системой (именно второй, не на SSD) переключение раскладки такое тупое? Срабатывает с третьего или пятого раза при быстром наборе? Именно в Windows. У вас же вторая система наверняка у многих стоит Windows. У вас есть такая проблема в этом д+рМ+? Или у меня у одного такая проблема?









 ,








И это всё МОЁ

Привет, ЛОР!


Я знаю, тут много любителей функционального программирования. Теперь в мире стало одним функциональным языком больше: в Microsoft Excel добавили поддержку пользовательских функций. И участвовал в этом никто иной как Simon Peyton Jones, один из авторов языка Haskell.


https://www.microsoft.com/en-us/research/blog/lambda-the-ultimatae-excel-worksheet-function/


По ссылке много вкусного. Надеюсь, Libreoffice не заставит себя ждать и тоже добавит поддержку божественной ЛЯМБДЫ.









 , , ,








И это всё МОЁ

Здравствуйте, я начинающий пользователь Linux возникла проблема, при кросс-компиляции программы nano5.5 на Debian с помощью тулчейна buildroot


user1@Tr:~/nano-5.5$ CC=arm-buildroot-linux-uclibcgnueabihf-gcc LDFLAGS=-static ./configure –host=arm-buildroot-linux-uclibcgnueabihf
checking build system type… i686-pc-linux-uclibc
checking host system type… arm-buildroot-linux-uclibcgnueabihf
checking for a BSD-compatible install… /usr/bin/install -c
checking whether build environment is sane… yes
checking for arm-buildroot-linux-uclibcgnueabihf-strip… arm-buildroot-linux-uclibcgnueabihf-strip
checking for a race-free mkdir -p… /usr/bin/mkdir -p
checking for gawk… no
checking for mawk… mawk
checking whether make sets $(MAKE)… yes
checking whether make supports nested variables… yes
checking whether make supports the include directive… yes (GNU style)
checking for arm-buildroot-linux-uclibcgnueabihf-gcc… arm-buildroot-linux-uclibcgnueabihf-gcc
checking whether the C compiler works… yes
checking for C compiler default output file name… a.out
checking for suffix of executables…
checking whether we are cross compiling… yes
checking for suffix of object files… o
checking whether the compiler supports GNU C… yes
checking whether arm-buildroot-linux-uclibcgnueabihf-gcc accepts -g… yes
checking for arm-buildroot-linux-uclibcgnueabihf-gcc option to enable C11 features… none needed
checking whether arm-buildroot-linux-uclibcgnueabihf-gcc understands -c and -o together… yes
checking whether the compiler is clang… no
checking for compiler option needed when checking for declarations… none
checking dependency style of arm-buildroot-linux-uclibcgnueabihf-gcc… gcc3
checking for stdio.h… yes
checking for stdlib.h… yes
checking for string.h… yes
checking for inttypes.h… yes
checking for stdint.h… yes
checking for strings.h… yes
checking for sys/stat.h… yes
checking for sys/types.h… yes
checking for unistd.h… yes
checking for wchar.h… yes
checking for minix/config.h… no
checking for dirent.h… yes
checking for fnmatch.h… yes
checking for getopt.h… yes
checking for sys/cdefs.h… yes
checking for sys/time.h… yes
checking for sys/socket.h… yes
checking for glob.h… yes
checking for threads.h… no
checking for limits.h… yes
checking for crtdefs.h… no
checking for wctype.h… no
checking for langinfo.h… yes
checking for xlocale.h… no
checking for math.h… yes
checking for sys/mman.h… yes
checking for sys/param.h… yes
checking for malloc.h… yes
checking for features.h… yes
checking for sys/wait.h… yes
checking for utime.h… yes
checking whether it is safe to define EXTENSIONS… yes
checking whether _XOPEN_SOURCE should be defined… no
checking for arm-buildroot-linux-uclibcgnueabihf-gcc… (cached) arm-buildroot-linux-uclibcgnueabihf-gcc
checking whether the compiler supports GNU C… (cached) yes
checking whether arm-buildroot-linux-uclibcgnueabihf-gcc accepts -g… (cached) yes
checking for arm-buildroot-linux-uclibcgnueabihf-gcc option to enable C11 features… (cached) none needed
checking whether arm-buildroot-linux-uclibcgnueabihf-gcc understands -c and -o together… (cached) yes
checking whether the compiler is clang… (cached) no
checking for compiler option needed when checking for declarations… (cached) none
checking dependency style of arm-buildroot-linux-uclibcgnueabihf-gcc… (cached) gcc3
checking how to run the C preprocessor… arm-buildroot-linux-uclibcgnueabihf-gcc -E
checking for grep that handles long lines and -e… /usr/bin/grep
checking for egrep… /usr/bin/grep -E
checking for Minix Amsterdam compiler… no
checking for arm-buildroot-linux-uclibcgnueabihf-ar… arm-buildroot-linux-uclibcgnueabihf-ar
checking for arm-buildroot-linux-uclibcgnueabihf-ranlib… arm-buildroot-linux-uclibcgnueabihf-ranlib
checking for special C compiler options needed for large files… no
checking for _FILE_OFFSET_BITS value needed for large files… 64
checking for size_t… yes
checking for working alloca.h… yes
checking for alloca… yes
checking whether <wchar.h> uses ‘inline’ correctly… yes
checking for btowc… no
checking for symlink… yes
checking for fnmatch… yes
checking for mbsrtowcs… no
checking for futimens… yes
checking for getdelim… yes
checking for getlogin_r… yes
checking for gettimeofday… yes
checking for glob… yes
checking for glob_pattern_p… yes
checking for getpwnam_r… yes
checking for isblank… yes
checking for iswcntrl… no
checking for iswblank… no
checking for lstat… yes
checking for mbsinit… no
checking for mbrtowc… no
checking for mprotect… yes
checking for _set_invalid_parameter_handler… no
checking for nl_langinfo… yes
checking for iswctype… no
checking for sigaction… yes
checking for sigaltstack… yes
checking for siginterrupt… yes
checking for snprintf… yes
checking for vasnprintf… no
checking for futimes… no
checking for futimesat… yes
checking for utimensat… yes
checking for lutimes… yes
checking for wcrtomb… no
checking for wcwidth… no
checking for wmempcpy… no
checking for nl_langinfo and CODESET… yes
checking for a traditional french locale… none
checking whether the preprocessor supports include_next… yes
checking whether source code line length is unlimited… yes
checking how arm-buildroot-linux-uclibcgnueabihf-gcc reports undeclared, standard C functions… error
checking for complete errno.h… yes
checking for working fcntl.h… cross-compiling
checking for pid_t… yes
checking for mode_t… yes
checking for mbstate_t… no
checking whether frexp() can be used without linking with libm… yes
checking whether alarm is declared… yes
checking whether long double and double are the same… yes
checking whether stat file-mode macros are broken… no
checking for C/C++ restrict keyword… restrict
checking for nlink_t… yes
checking whether getdelim is declared… yes
checking whether getline is declared… yes
checking whether getlogin_r is declared… yes
checking whether getlogin is declared… yes
checking for getopt.h… (cached) yes
checking for getopt_long_only… yes
checking whether getopt is POSIX compatible… guessing yes
checking for working GNU getopt function… guessing no
checking for struct timeval… yes
checking for wide-enough struct timeval.tv_sec member… yes
checking for pthread.h… yes
checking for pthread_kill in -lpthread… yes
checking whether POSIX threads API is available… yes
checking whether setlocale (LC_ALL, NULL) is multithread-safe… guessing no
checking whether setlocale (category, NULL) is multithread-safe… guessing no
checking whether imported symbols can be declared weak… no
checking whether limits.h has LLONG_MAX, WORD_BIT, ULLONG_WIDTH etc…. yes
checking for wint_t… no
checking whether the compiler produces multi-arch binaries… no
checking whether stdint.h conforms to C99… no
checking for sys/inttypes.h… no
checking for sys/bitypes.h… yes
checking for bit size of ptrdiff_t… 32
checking for bit size of size_t… 32
checking for bit size of sig_atomic_t… 32
checking for bit size of wchar_t… 32
checking for bit size of wint_t… 32
checking whether sig_atomic_t is signed… yes
checking whether wchar_t is signed… no
checking whether wint_t is signed… no
checking for ptrdiff_t integer literal suffix…
checking for size_t integer literal suffix… u
checking for sig_atomic_t integer literal suffix…
checking for wchar_t integer literal suffix… u
checking for wint_t integer literal suffix… u
checking where to find the exponent in a ‘double’… unknown
checking where to find the exponent in a ‘float’… word 0 bit 23
checking whether byte ordering is bigendian… no
checking for wctype_t… no
checking for wctrans_t… no
checking for wchar_t… yes
checking for good max_align_t… yes
checking whether NULL can be used in arbitrary expressions… yes
checking whether locale.h defines locale_t… no
checking whether imported symbols can be declared weak… (cached) no
checking for multithread API to use… posix
checking whether lstat correctly handles trailing slash… guessing yes
checking whether malloc, realloc, calloc are POSIX compliant… yes
checking for GNU libc compatible malloc… guessing no
checking for a traditional japanese locale… none
checking for a french Unicode locale… none
checking for a transitional chinese locale… none
checking for inline… inline
checking for mmap… yes
checking for MAP_ANONYMOUS… yes
checking whether memchr works… guessing no
checking for sigset_t… yes
checking for uid_t in sys/types.h… yes
checking whether snprintf returns a byte count as in C99… guessing no
checking whether snprintf is declared… yes
checking for stdint.h… yes
checking for inttypes.h… yes
checking whether printf supports size specifiers as in C99… guessing no
checking whether printf supports ‘long double’ arguments… (cached) yes
checking whether printf supports infinite ‘double’ arguments… guessing no
checking whether printf supports infinite ‘long double’ arguments… (cached) yes
checking whether printf supports the ‘a’ and ‘A’ directives… guessing no
checking whether printf supports the ‘F’ directive… guessing no
checking whether printf supports the ‘n’ directive… (cached) yes
checking whether printf supports the ‘ls’ directive… guessing yes
checking whether printf supports the grouping flag… guessing yes
checking whether printf supports the left-adjust flag correctly… guessing yes
checking whether printf supports the zero flag correctly… guessing no
checking whether printf supports large precisions… guessing yes
checking whether printf survives out-of-memory conditions… guessing no
checking whether snprintf truncates the result as in C99… guessing no
checking for intmax_t… yes
checking for snprintf… (cached) yes
checking for strnlen… yes
checking for wcslen… no
checking for wcsnlen… no
checking for mbrtowc… (cached) no
checking for wcrtomb… (cached) no
checking whether _snprintf is declared… no
checking for stdbool.h that conforms to C99… yes
checking for _Bool… yes
checking whether fcloseall is declared… yes
checking whether ecvt is declared… no
checking whether fcvt is declared… no
checking whether gcvt is declared… yes
checking whether strnlen is declared… yes
checking for struct timespec in <time.h>… yes
checking for TIME_UTC in <time.h>… no
checking whether execvpe is declared… yes
checking whether the utimes function works… guessing no
checking whether vsnprintf is declared… yes
checking for alloca as a compiler built-in… yes
checking for __builtin_expect… yes
checking for library containing clock_gettime… none required
checking for clock_gettime… yes
checking for clock_settime… yes
checking for closedir… yes
checking for d_type member in directory struct… yes
checking for dirfd… yes
checking whether dirfd is declared… yes
checking whether dirfd is a macro… no
checking for flexible array member… yes
checking whether conversion from ‘int’ to ‘long double’ works… guessing yes
checking for working POSIX fnmatch… guessing no
checking whether frexp works… guessing yes
checking whether frexpl is declared… yes
checking whether frexpl() can be used without linking with libm… yes
checking whether frexpl works… guessing yes
checking whether futimens works… guessing yes
checking for working getdelim function… guessing no
checking for flockfile… yes
checking for funlockfile… yes
checking whether getc_unlocked is declared… yes
checking for getline… yes
checking for working getline function… guessing no
checking whether getlogin_r works with small buffers… guessing yes
checking for gettimeofday with POSIX signature… almost
checking for GNU glob interface version 1 or 2… yes
checking whether glob lists broken symlinks… (cached) yes
checking whether isnan(double) can be used without linking with libm… yes
checking whether isnan(float) can be used without linking with libm… yes
checking whether isnan(float) works… guessing yes
checking whether isnan(long double) can be used without linking with libm… yes
checking whether isnanl works… guessing yes
checking whether iswblank is declared… no
checking whether langinfo.h defines CODESET… yes
checking whether langinfo.h defines T_FMT_AMPM… yes
checking whether langinfo.h defines ALTMON_1… no
checking whether langinfo.h defines ERA… yes
checking whether langinfo.h defines YESEXPR… yes
checking whether the compiler supports the __inline keyword… yes
checking whether locale.h conforms to POSIX:2001… yes
checking whether struct lconv is properly defined… yes
checking for pthread_rwlock_t… yes
checking whether pthread_rwlock_rdlock prefers a writer to a reader… guessing no
checking whether NAN macro works… yes
checking whether HUGE_VAL works… yes
checking whether mbrtowc is declared… no
checking whether imported symbols can be declared weak… (cached) no
checking whether the -Werror option is usable… yes
checking for simple visibility declarations… yes
checking whether mbsinit is declared… no
checking whether mbsrtowcs is declared… no
checking for mbtowc… no
checking for bp-sym.h… no
checking for mempcpy… yes
checking whether YESEXPR works… guessing yes
checking for opendir… yes
checking whether frexp works… (cached) guessing yes
checking whether ldexp can be used without linking with libm… yes
checking whether frexpl() can be used without linking with libm… (cached) yes
checking whether frexpl works… (cached) guessing yes
checking whether frexpl is declared… (cached) yes
checking whether ldexpl() can be used without linking with libm… yes
checking whether ldexpl works… guessing yes
checking whether ldexpl is declared… yes
checking for raise… yes
checking for sigprocmask… yes
checking for readdir… yes
checking for working re_compile_pattern… guessing no
checking for libintl.h… yes
checking whether isblank is declared… yes
checking whether setlocale (LC_ALL, NULL) is multithread-safe… (cached) guessing no
checking whether setlocale (category, NULL) is multithread-safe… (cached) guessing no
checking whether imported symbols can be declared weak… (cached) no
checking whether the -Werror option is usable… (cached) yes
checking for simple visibility declarations… (cached) yes
checking for struct sigaction.sa_sigaction… yes
checking for volatile sig_atomic_t… yes
checking for sighandler_t… yes
checking for signbit macro… guessing no
checking for signbit compiler built-ins… guessing no
checking where to find the sign bit in a ‘float’… unknown
checking where to find the sign bit in a ‘double’… unknown
checking where to find the sign bit in a ‘long double’… unknown
checking whether copysignf is declared… yes
checking whether copysignf can be used without linking with libm… yes
checking whether copysign is declared… yes
checking whether copysign can be used without linking with libm… yes
checking whether copysignl is declared… yes
checking whether copysignl can be used without linking with libm… yes
checking for sigprocmask… (cached) yes
checking for stdint.h… (cached) yes
checking for SIZE_MAX… yes
checking for snprintf… (cached) yes
checking whether snprintf respects a size of 1… guessing yes
checking for snprintf… (cached) yes
checking whether snprintf fully supports the ‘n’ directive… (cached) yes
checking whether snprintf respects a size of 1… (cached) guessing yes
checking whether vsnprintf respects a zero size as in C99… guessing no
checking for nl_langinfo… (cached) yes
checking for ptrdiff_t… yes
checking for ssize_t… yes
checking whether stat handles trailing slashes on files… guessing yes
checking for struct stat.st_atim.tv_nsec… yes
checking whether struct stat.st_atim is of type struct timespec… yes
checking for struct stat.st_birthtimespec.tv_nsec… no
checking for struct stat.st_birthtimensec… no
checking for struct stat.st_birthtim.tv_nsec… no
checking for va_copy… yes
checking for good max_align_t… (cached) yes
checking whether NULL can be used in arbitrary expressions… (cached) yes
checking which flavor of printf attribute matches inttypes macros… system
checking for strcasecmp… yes
checking for strncasecmp… yes
checking whether strncasecmp is declared… yes
checking for strcasestr… yes
checking for working strnlen… yes
checking for nlink_t… (cached) yes
checking for utime… yes
checking whether utime handles trailing slashes on files… guessing yes
checking for ptrdiff_t… (cached) yes
checking for vsnprintf… yes
checking whether snprintf respects a size of 1… (cached) guessing yes
checking for vsnprintf… (cached) yes
checking whether snprintf fully supports the ‘n’ directive… (cached) yes
checking whether snprintf respects a size of 1… (cached) guessing yes
checking whether vsnprintf respects a zero size as in C99… (cached) guessing no
checking for nl_langinfo… (cached) yes
checking for ptrdiff_t… (cached) yes
checking whether wcsdup is declared… no
checking whether wcrtomb is declared… no
checking for wctype_t… (cached) no
checking for wctrans_t… (cached) no
checking whether wcwidth is declared… no
checking whether wcwidth is a macro… no
checking for wmemchr… no
checking for stdint.h… (cached) yes
checking whether ln -s works… yes
checking for library containing strerror… none required
checking for special C compiler options needed for large files… (cached) no
checking for _FILE_OFFSET_BITS value needed for large files… (cached) 64
checking for arm-buildroot-linux-uclibcgnueabihf-pkg-config… no
checking for pkg-config… /home/user1/buildroot-2020.02.10/output/host/bin/pkg-config
configure: WARNING: using cross tools not prefixed with host triplet
checking pkg-config is at least version 0.9.0… yes
checking for a sed that does not truncate output… /usr/bin/sed
checking whether NLS is requested… yes
checking for msgfmt… /home/user1/buildroot-2020.02.10/output/host/bin/msgfmt
checking for gmsgfmt… /home/user1/buildroot-2020.02.10/output/host/bin/msgfmt
checking for xgettext… /home/user1/buildroot-2020.02.10/output/host/bin/xgettext
checking for msgmerge… /home/user1/buildroot-2020.02.10/output/host/bin/msgmerge
checking for ld used by arm-buildroot-linux-uclibcgnueabihf-gcc… /home/user1/buildroot-2020.02.10/output/host/arm-buildroot-linux-uclibcgnueabihf/bin/ld
checking if the linker (/home/user1/buildroot-2020.02.10/output/host/arm-buildroot-linux-uclibcgnueabihf/bin/ld) is GNU ld… yes
checking for shared library run path origin… done
checking for CFPreferencesCopyAppValue… no
checking for CFLocaleCopyCurrent… no
checking for GNU gettext in libc… no
checking for iconv… no, consider installing GNU libiconv
checking for GNU gettext in libintl… yes
checking whether to use NLS… yes
checking where the gettext function comes from… external libintl
checking how to link with libintl… -lintl
checking whether building from git… no
checking for libintl.h… (cached) yes
checking for limits.h… (cached) yes
checking for pwd.h… yes
checking for termios.h… yes
checking for sys/param.h… (cached) yes
checking whether to enable UTF-8 support… auto
checking for iswalnum… no
checking for iswpunct… no
checking for mblen… no
checking for mbstowcs… no
checking for mbtowc… (cached) no
checking for wctomb… no
checking whether C compiler accepts -Wall… yes
checking for NCURSESW… no
checking for ncurses.h… no
checking for arm-buildroot-linux-uclibcgnueabihf-ncursesw5-config… no
checking for ncursesw5-config… ncursesw5-config
checking for wget_wch in -lncursesw… no
checking for initscr in -lncurses… no
checking for curses.h… no
checking for wget_wch in -lcurses… no
checking for initscr in -lcurses… no
configure: error:
*** No curses lib was found. Please install the curses header files
*** from libncurses-dev (Debian), ncurses-devel (Fedora), or similar.
*** (Or install ncurses from https://ftp.gnu.org/gnu/ncurses/.)









 , ,








И это всё МОЁ
$torbrowser-launcher
Программа запуска Tor Browser
Написана Micah Lee и распространяется по лицензии MIT
версия 0.3.3
github.com/micahflee/torbrowser-launcher
Traceback (most recent call last):
File "/usr/bin/torbrowser-launcher", line 30, in <module>
torbrowser_launcher.main()
File "/usr/lib/python3/dist-packages/torbrowser_launcher/__init__.py", line 78, in main
common = Common(tor_browser_launcher_version)
File "/usr/lib/python3/dist-packages/torbrowser_launcher/common.py", line 65, in __init__
self.load_settings()
File "/usr/lib/python3/dist-packages/torbrowser_launcher/common.py", line 370, in load_settings
settings = json.load(open(self.paths["settings_file"]))
File "/usr/lib/python3.9/json/__init__.py", line 293, in load
return loads(fp.read(),
File "/usr/lib/python3.9/json/__init__.py", line 346, in loads
return _default_decoder.decode(s)
File "/usr/lib/python3.9/json/decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib/python3.9/json/decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)


tor
Feb 20 07:58:31.300 [notice] Tor 0.4.5.5-rc running on Linux with Libevent 2.1.12-stable, OpenSSL 1.1.1i, Zlib 1.2.11, Liblzma 5.2.5, Libzstd 1.4.8 and Glibc 2.31 as libc.
Feb 20 07:58:31.300 [notice] Tor can't help you if you use it wrong! Learn how to be safe at www.torproject.org/download/download#warning
Feb 20 07:58:31.300 [notice] Read configuration file "/etc/tor/torrc".
Feb 20 07:58:31.308 [notice] Opening Socks listener on 127.0.0.1:9050
Feb 20 07:58:31.308 [warn] Could not bind to 127.0.0.1:9050: Address already in use. Is Tor already running?
Feb 20 07:58:31.308 [warn] Failed to parse/validate config: Failed to bind one of the listener ports.
Feb 20 07:58:31.308 [err] Reading config failed--see warnings above.


Переустановил, удалил зависимости, проблема не исчезла.









 ,








И это всё МОЁ

Еле слышно микрофон от гарнитуры наушников, выкрутил уровни везде где только нашел, но все равно очень тихо. Дело не в самом микрофоне или в аудиокарте, на второй ОС(Win10) все работает.
Не могу понять почему так. Вот скрин alsamixera https://i.imgur.com/1xT0alN.png









 , ,








И это всё МОЁ

раздел не восстановить

что нужно делать специфично ubuntu?

может что переустановить?
grub знаю, не могу понять как в ubuntu файлы ядра восстановить просто









 ,








И это всё МОЁ

В Rust какая-то очень «самобытная» асинхронщина, понять её сложно. Итак, необходимый минимум - реализовать трейт Future. Дольше веселее - есть несколько каких-то малопонятных сущностей, которые за что-то там отвечают, пока непонятно, за что.

Читал кучу мануалов, они из серии: https://sun1-16.userapi.com/impg/cTOihOqKWsJSPD6uBUB6KTQZY823V6f3TzS9Tw/5VAn_b_1JUI.jpg?size=1080x1080&quality=96&proxy=1&sign=3ec0c8687655c3ac555d4b06874cfc49&type=album

Как правильно достать значение из Future? 101 вопрос. Когда Future реализуется сам, а когда его необходимо реализовать самому? Я так понял, логика реализуется в poll(), нет?

Мне нужно, например, читать стдаут порождённого процесса или поток миди-данных в рандомное время на вводе.

Кто распишет вменяемый хеллоуворлд, скину на пиво;)








 , ,








20:36

Kodi 19.0

И это всё МОЁ

После двух лет разработки состоялся релиз свободного медиацентра Kodi (бывшего XBMC) версии 19.0 под кодовым именем «Matrix» («Матрица»;).


Основные изменения в релизе по сравнению с предыдущим циклом релизов (18.x «Leia» / «Лейя»;):




  • Практически полностью переписана подсистема работы с телевидением (PVR). В частности, добавлена поддержка локального кеширования аудио-видеопотока, что позволило реализовать функции ТВ-архива (catchup), а также постановки ТВ-трансляции на паузу.




  • Обновлено JSON-RPC API: добавлено множество новых методов, а также исправлены десятки ошибок, препятствовавших корректной работе программных пультов типа Kore или Yatse.




  • Обьединены исполнимые файлы Kodi для работы с оконными системами X11, Wayland и GBM. Это позволило уменьшить размер пакетов вдвое.




  • Исправлены многие недочеты в видео-проигрывателе, графической подсистеме, а также коде проброса многоканального звука.




Kodi девятнадцатой версии будет доступен в основном репозитории Debian 11 «Bullseye», Ubuntu 21.04 «Hirsute Hippo», а также в производных дистрибутивах. Бета-версии Kodi 19.0 также доступны в Gentoo, Fedora 33, ALT Linux Sisyphus.









 ,








И это всё МОЁ

Киайские ученые нашли новый способ тестирования на коронавирус. Говорят очень надежный и точный.


https://tass.ru/obschestvo/10566263


Принцип давно известен: https://www.youtube.com/watch?v=fGKR1Z1lRik









 








И это всё МОЁ

Использую этот оверлей https://data.gpo.zugaina.org/stefantalpalaru/app-emulation/vmware-workstation/


при попытке запуска виртуальной машины: Could not open /dev/vmmon: No such file or directory


пробовал:




  1. подписывать драйвера




  2. пересобирать драйвера ( https://github.com/mkubecek/vmware-host-modules )




При себе: ядро 5.4, openrc


куда рыть?









 , , ,








И это всё МОЁ

Здравствуйте, хочу заставить работать раздачу интернета с ноутбука (wifi сеть, к котороймогут подключаться другие устройства). В wpa_supplicant.conf прописано следующее:

ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=wheel
update_config=1
network={
ssid="Gentoo"
mode=2
key_mgmt=WPA-PSK
psk="12345678"
}

в /etc/conf.d/net
modules_wlp3s0="wpa_supplicant"
config_wlp3s0="dhcp"
и установлен dhcpcd. При попытке подключиться к указанной в конфиге сети выдает:
CTRL-EVENT-SCAN-FAILED ret=-95 retry=1
. Гуглинг как-то не помог. Если честно, не очень разбираюсь в этом, так что прошу помощи.








 , ,








И это всё МОЁ

странно, один раз сработало, но хотелось бы как пикокому например, указывать боды. Мне необходимо разово передать символ.








 , ,








И это всё МОЁ






Знакомство со свежими кедами после установки KDE neon на ноутбук затягивается уже дня на 3, на этот раз мне это окружение почти полностью понравилось.


Нахватал разного трендового для кастомизации, из неочевидного выпишу:



  • Шрифт SKODA Next

  • Шрифт Iosevka Term Curly

  • Тема в редакторе Monokai Pro (Filter Spectrum)


Остальной софт сфоткаю для следующего поста, когда донастрою.


P.S.: Кнопки управления окном в Breeze вышли удачно, мне они нравятся даже больше, чем «светофор» из макоси.






















>>> Просмотр
(3200x1800,
1679 Kb
)










 , , ,








И это всё МОЁ

А давайте добавим возможность удалять анонимные комментарии в своих темах.

А то и ко мне пришёл Владимир и написал херню.








 








И это всё МОЁ

Тихо и незаметно, внезапно, состоялось продолжение треда. ADOM — RIP.


Вчера выкатилось в ранний доступ. https://store.steampowered.com/app/1266820/Ultimate_ADOM__Caverns_of_Chaos/


Оценки пока средненькие.









 , , ,








И это всё МОЁ

https://twitter.com/0x30n/status/1362592846633705474?s=20



This the first time we’ll be flying Linux on Mars. We’re actually running on a Linux operating system. The software framework that we’re using is one that we developed at JPL for cubesats and instruments, and we open-sourced it a few years ago. So, you can get the software framework that’s flying on the Mars helicopter, and use it on your own project. It’s kind of an open-source victory, because we’re flying an open-source operating system and an open-source flight software framework and flying commercial parts that you can buy off the shelf if you wanted to do this yourself someday. This is a new thing for JPL because they tend to like what’s very safe and proven, but a lot of people are very excited about it, and we’re really looking forward to doing it.



https://spectrum.ieee.org/automaton/aerospace/robotic-exploration/nasa-designed-perseverance-helicopter-rover-fly-autonomously-mars


https://github.com/nasa/fprime









 , , , ,








И это всё МОЁ

Доброго времени суток.


Можно ли команду начинающуюся с SUDO сочинить так, что бы, пароль я мог ввести в эту же команду?









 ,








И это всё МОЁ

Под иксами все просто:


int result;
auto display = XkbOpenDisplay( getenv( "DISPLAY" ), NULL, NULL, NULL, NULL, &result );
auto keyboard = XkbAllocKeyboard();
XkbGetNames( display, XkbGroupNamesMask, keyboard );
XkbStateRec state;
XkbGetState( display, XkbUseCoreKbd, &state );
keyboard->names->groups[state.group];


А как под Wayland? Можно ли под ним вообще как-то универсально получать информацию о раскладке, не зависимо от DM?









 , ,