LINUX.ORG.RU

Сообщения robotron5

 

gnome 3 зависает при предпросмотре docx в nautilus

Есть gnome 3.32.2, когда заходишь в nautilus и нажимаешь на space, предпросмотр работает на pdf, mp4, txt и др., а вот на docx, doc, pptx и прочьих файлах относящихся к формату ms office, виснет намерво, не двигается даже курсор. Куда копать или как отключить предпросмотр?

 , , ,

robotron5
()

DI в С++

Как в плюсах организовать шаблон Dependency Inversion? Можно ли стандартными средствами языка?

 ,

robotron5
()

Не собирается jemalloc

Может кто сталкивался, чего он хочет?

Linux 78bb8230cef5 4.9.125-linuxkit #1 SMP Fri Sep 7 08:20:28 UTC 2018 x86_64 GNU/Linux
supports -herror_on_warning... no
checking whether alloc_size attribute is compilable... yes
checking whether compiler supports -Werror... yes
checking whether compiler supports -herror_on_warning... no
checking whether format(gnu_printf, ...) attribute is compilable... yes
checking whether compiler supports -Werror... yes
checking whether compiler supports -herror_on_warning... no
checking whether format(printf, ...) attribute is compilable... yes
checking for a BSD-compatible install... /usr/bin/install -c
checking for x86_64-unknown-linux-gnu-ranlib... no
checking for ranlib... ranlib
checking for ld... /usr/bin/ld
checking for autoconf... false
checking for memalign... yes
checking for valloc... yes
checking whether compiler supports -O3... yes
checking whether compiler supports -O3... no
checking whether compiler supports -funroll-loops... yes
checking configured backtracing method... N/A
checking for sbrk... yes
checking whether utrace(2) is compilable... no
checking whether a program using __builtin_unreachable is compilable... yes
checking whether a program using __builtin_ffsl is compilable... yes
checking LG_PAGE... 12
Missing VERSION file, and unable to generate it; creating bogus VERSION
checking pthread.h usability... yes
checking pthread.h presence... yes
checking for pthread.h... yes
checking for pthread_create in -lpthread... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking for dlsym... no
checking for dlsym in -ldl... yes
checking whether pthread_atfork(3) is compilable... yes
checking whether pthread_setname_np(3) is compilable... yes
checking for library containing clock_gettime... none required
checking whether clock_gettime(CLOCK_MONOTONIC_COARSE, ...) is compilable... yes
checking whether clock_gettime(CLOCK_MONOTONIC, ...) is compilable... yes
checking whether mach_absolute_time() is compilable... no
checking whether compiler supports -Werror... yes
checking whether syscall(2) is compilable... yes
checking for secure_getenv... yes
checking for sched_getcpu... yes
checking for sched_setaffinity... yes
checking for issetugid... no
checking for _malloc_thread_cleanup... no
checking for _pthread_mutex_init_calloc_cb... no
checking for TLS... yes
checking whether C11 atomics is compilable... yes
checking whether GCC __atomic atomics is compilable... yes
checking whether GCC __sync atomics is compilable... yes
checking whether Darwin OSAtomic*() is compilable... no
checking whether madvise(2) is compilable... yes
checking whether madvise(..., MADV_FREE) is compilable... yes
checking whether madvise(..., MADV_DONTNEED) is compilable... yes
checking whether madvise(..., MADV_DO[NT]DUMP) is compilable... yes
checking whether madvise(..., MADV_[NO]HUGEPAGE) is compilable... yes
checking whether to force 32-bit __sync_{add,sub}_and_fetch()... no
checking whether to force 64-bit __sync_{add,sub}_and_fetch()... no
checking for __builtin_clz... yes
checking whether Darwin os_unfair_lock_*() is compilable... no
checking whether Darwin OSSpin*() is compilable... no
checking whether glibc malloc hook is compilable... yes
checking whether glibc memalign hook is compilable... yes
checking whether pthreads adaptive mutexes is compilable... yes
checking whether compiler supports -D_GNU_SOURCE... yes
checking whether compiler supports -Werror... yes
checking whether compiler supports -herror_on_warning... no
checking whether strerror_r returns char with gnu source is compilable... yes
checking for stdbool.h that conforms to C99... yes
checking for _Bool... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating jemalloc.pc
config.status: creating doc/html.xsl
config.status: creating doc/manpages.xsl
config.status: creating doc/jemalloc.xml
config.status: creating include/jemalloc/jemalloc_macros.h
config.status: creating include/jemalloc/jemalloc_protos.h
config.status: creating include/jemalloc/jemalloc_typedefs.h
config.status: creating include/jemalloc/internal/jemalloc_preamble.h
config.status: creating test/test.sh

config.status: creating test/include/test/jemalloc_test.h
config.status: creating config.stamp
config.status: creating bin/jemalloc-config
config.status: creating bin/jemalloc.sh
config.status: creating bin/jeprof
config.status: creating include/jemalloc/jemalloc_defs.h
config.status: creating include/jemalloc/internal/jemalloc_internal_defs.h
config.status: creating test/include/test/jemalloc_test_defs.h
config.status: executing include/jemalloc/internal/public_symbols.txt commands
config.status: executing include/jemalloc/internal/private_symbols.awk commands
config.status: executing include/jemalloc/internal/private_symbols_jet.awk commands
config.status: executing include/jemalloc/internal/public_namespace.h commands
config.status: executing include/jemalloc/internal/public_unnamespace.h commands
config.status: executing include/jemalloc/internal/size_classes.h commands
config.status: executing include/jemalloc/jemalloc_protos_jet.h commands
config.status: executing include/jemalloc/jemalloc_rename.h commands
config.status: executing include/jemalloc/jemalloc_mangle.h commands
config.status: executing include/jemalloc/jemalloc_mangle_jet.h commands
config.status: executing include/jemalloc/jemalloc.h commands
===============================================================================
jemalloc version   : 0.0.0-0-g0000000000000000000000000000000000000000
library revision   : 2

CONFIG             : --disable-cxx --with-jemalloc-prefix=_rjem_ --with-private-namespace=_rjem_ --host=x86_64-unknown-linux-gnu --build=x86_64-unknown-linux-gnu --prefix=/app/target/debug/build/jemalloc-sys-145f7639796638e5/out build_alias=x86_64-unknown-linux-gnu host_alias=x86_64-unknown-linux-gnu CC=cc 'CFLAGS=-O0 -ffunction-sections -fdata-sections -fPIC -g -fno-omit-frame-pointer -m64 -Wall' 'LDFLAGS=-O0 -ffunction-sections -fdata-sections -fPIC -g -fno-omit-frame-pointer -m64 -Wall' 'CPPFLAGS=-O0 -ffunction-sections -fdata-sections -fPIC -g -fno-omit-frame-pointer -m64 -Wall'
CC                 : cc
CONFIGURE_CFLAGS   : -std=gnu11 -Wall -Wsign-compare -Wundef -Wno-format-zero-length -pipe -g3 -fvisibility=hidden -O3 -funroll-loops
SPECIFIED_CFLAGS   : -O0 -ffunction-sections -fdata-sections -fPIC -g -fno-omit-frame-pointer -m64 -Wall
EXTRA_CFLAGS       : 
CPPFLAGS           : -O0 -ffunction-sections -fdata-sections -fPIC -g -fno-omit-frame-pointer -m64 -Wall -D_GNU_SOURCE -D_REENTRANT
CXX                : 
CONFIGURE_CXXFLAGS : 
SPECIFIED_CXXFLAGS : 
EXTRA_CXXFLAGS     : 
LDFLAGS            : -O0 -ffunction-sections -fdata-sections -fPIC -g -fno-omit-frame-pointer -m64 -Wall
EXTRA_LDFLAGS      : 
DSO_LDFLAGS        : -shared -Wl,-soname,$(@F)
LIBS               : -lm  -lpthread -ldl
RPATH_EXTRA        : 

XSLTPROC           : false
XSLROOT            : 

PREFIX             : /app/target/debug/build/jemalloc-sys-145f7639796638e5/out
BINDIR             : /app/target/debug/build/jemalloc-sys-145f7639796638e5/out/bin
DATADIR            : /app/target/debug/build/jemalloc-sys-145f7639796638e5/out/share
INCLUDEDIR         : /app/target/debug/build/jemalloc-sys-145f7639796638e5/out/include
LIBDIR             : /app/target/debug/build/jemalloc-sys-145f7639796638e5/out/lib
MANDIR             : /app/target/debug/build/jemalloc-sys-145f7639796638e5/out/share/man

srcroot            : /app/target/debug/build/jemalloc-sys-145f7639796638e5/out/jemalloc/
abs_srcroot        : /app/target/debug/build/jemalloc-sys-145f7639796638e5/out/jemalloc/
objroot            : 
abs_objroot        : /app/target/debug/build/jemalloc-sys-145f7639796638e5/out/build/

JEMALLOC_PREFIX    : _rjem_
JEMALLOC_PRIVATE_NAMESPACE
                   : _rjem_je_
install_suffix     : 
malloc_conf        : 
autogen            : 0
debug              : 0
stats              : 1
prof               : 0
prof-libunwind     : 0
prof-libgcc        : 0
prof-gcc           : 0
fill               : 1
utrace             : 0
xmalloc            : 0
log                : 0
lazy_lock          : 0
cache-oblivious    : 1
cxx                : 0
===========================================================

====================
running: "make" "srcroot=../jemalloc/" "-j" "2"

--- stderr
thread 'main' panicked at 'failed to execute command: No such file or directory (os error 2)', /root/.cargo/registry/src/github.com-1ecc6299db9ec823/jemalloc-sys-0.3.0/build.rs:367:19
note: Run with RUST_BACKTRACE=1 environment variable to display a backtrace.

warning: build failed, waiting for other jobs to finish...
error: build failed
make: *** [build_app] Error 101
--- stderr
thread 'main' panicked at 'failed to execute command: No such file or directory (os error 2)', /root/.cargo/registry/src/github.com-1ecc6299db9ec823/jemalloc-sys-0.3.0/build.rs:367:19
stack backtrace:
   0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
             at src/libstd/sys/unix/backtrace/tracing/gcc_s.rs:39
   1: std::sys_common::backtrace::_print
             at src/libstd/sys_common/backtrace.rs:70
   2: std::panicking::default_hook::{{closure}}
             at src/libstd/sys_common/backtrace.rs:58
             at src/libstd/panicking.rs:200
   3: std::panicking::default_hook
             at src/libstd/panicking.rs:215
   4: std::panicking::rust_panic_with_hook
             at src/libstd/panicking.rs:478
   5: std::panicking::continue_panic_fmt
             at src/libstd/panicking.rs:385
   6: std::panicking::begin_panic_fmt
             at src/libstd/panicking.rs:340
   7: build_script_build::run
   8: build_script_build::main
   9: std::rt::lang_start::{{closure}}
  10: std::panicking::try::do_call
             at src/libstd/rt.rs:49
             at src/libstd/panicking.rs:297
  11: __rust_maybe_catch_panic
             at src/libpanic_unwind/lib.rs:87
  12: std::rt::lang_start_internal
             at src/libstd/panicking.rs:276
             at src/libstd/panic.rs:388
             at src/libstd/rt.rs:48
  13: main
  14: __libc_start_main
  15: _start

 

robotron5
()

Вернуть Result вместо Actix::futures::AndThen

Как привести тип результата запрса awc: actix::futures::and_then<AndThen…, MapErr…, closure> к Result<String, Error>?

Примерный код

client::get("http://localhost/")
        .header("User-Agent", "Actix-web")
        .send()
        .map_err(...)
        })
        .and_then(|mut response| {
         let x = response.body().wait() match  ...
         futures::ok(x)
        })
        .and_then(|body_raw| {
        let y = String::from_ ... body_raw
        Ok(y)
      })
});

 

robotron5
()

VPS для логов

Посоветуйте vps'ку на kvm для логов т.е. cpu 1 и рамы много не нужно но hdd на 1tb.

 , , , ,

robotron5
()

проблема с шрифтом

Как это исправить (радуга в qt приложениях)?
http://s019.radikal.ru/i608/1711/ab/d420ec843b93.png
Gnome 3.26, Fedora 27

 , ,

robotron5
()

emacs fonts

Как настроить шрифты в Emacs, что бы отображались как в Gedit?
http://s019.radikal.ru/i621/1705/1e/d5e68df9cf52.png

Xresourses и font.config не создавал, шрифт один и тот же, Cent0S 7.3.

 ,

robotron5
()

Чем плох Spacemacs?

Тем кто переходит на емакс из vim, первый совет это попробовать spacemacs, но мало кто остается на нем надолго. Так вот хочу узнать чем он плох? Я тоже на нем не задержался и удалил в пользу чистого evil практически сразу, неуспев распробовать.

 ,

robotron5
()

сборка проекта

при сборке stack'ом в stack.yaml указывается пакет+версия а в name.cabal только версия? В stack.yaml не указвываются зависимости, так?

stack.yaml

extra-deps:
  - monad-par-0.3.4.8
  - deepseq-1.4.2.0

name.cabal

  build-depends:       base >= 4.7 && < 5
                     , monad-par
                     , deepseq
                     , free
                     , mtl

 ,

robotron5
()

Org-mode python session complete

#+BEGIN_SRC python :session :results none
import numpy as np
#+END_SRC

#+BEGIN_SRC python :session :results output
np.__
#+END_SRC

Во втором блоке, после перехода в org-edit-special (C-c ') отсутствует code completion для python кода обьявленого в первом блоке. Например: np.__<TAB> ничего не происходит. Дополнение работает на уровне файла который создает org-edit-special и то что обьявлено в другом src блоке anaconda невидит.

Кто может поделиться настройками?

Ps.
python+anaconda+company настроен и работает.

 , , , ,

robotron5
()

C-g to Esc

Как правильно ремапить C-g на Esc? В моей текущей конфигурации
(define-key key-translation-map (kbd "ESC") (kbd "C-g"))
как выяснилось не работает коректно для tramp mode (прервать повисшую сессию невозможно) и еще некоторых режимов связанных взаимодействием с внешними процессами. Использую Evil => функциональность Esc должна остаться.

 

robotron5
()

Waiting for prompts from remote shell

Как(где) в емаксе уменьшить timeout при подключении к удаленному терминалу через tramp mode? Ато циферкой ошибся и ступай покури секунд 15.

 

robotron5
()

read timeout error on pip install

Поставил FreeBSD 11 в vmware fusion, никаких настроек кроме

 pkg install python3.5
Пытаюсь выполнить:
python -m pip install --upgrade matplotlib
и получаю «Read timeout error» на 21-22%

В linux'е все нормально, куда копать?

 

robotron5
()

Кто из крупных компаний использует CentOS?

Кроме RedHat и Oracle

 ,

robotron5
()

Сборка сервера для ESXi

Собираю сервер из говна и палок для ESHi 6. На сайте список совместимого оборудования представлен только для коробочных решений. Как/где можно посмотреть oem оборудование на совместимость, при покупке в каком нибудь компьютерном магазине?

 

robotron5
()

Конвертация образов из vmware в kvm

Какие есть утилиты?

 ,

robotron5
()

VMWare Workstation

Какие нарекания на работу VMWare Workstation Pro в Linux?

 ,

robotron5
()

Домашняя виртуализация

Есть домашний сервер, хочу приспособить под нужды виртуализации. Нужно удаленное управление (создание/удаление образов, управление ресурсами, сеть), проброс оборудования, образы Win + Linux. С серверной виртуализацией не сталкивался. Рассматриваю proxmox, VMWare ESXi, VMWare Workstation Server. Интересует безгеморность в настройке и производительность.

 , , ,

robotron5
()

Что случилось с Apple?

Присматриваю себе новый MacBook Pro, в последней модели убрали USB порты, ну бывает, ладно, но они убрали Esc, F1..Fn - теперь клавиатура не пригодна (там OLED-панель). Кто использовал Razer Blade и можно туда впихнуть linux?

 , , , ,

robotron5
()

make deb

Подскажите, как собрать deb пакет из скомпилированного из исходников приложения?

 , ,

robotron5
()

RSS подписка на новые темы