Skip to content

Tag: linux

Missing library xfce [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack …

R: cannot install ‘rasclass’ package on Ubuntu 14.04

I am trying to install ‘rasclass’ package on R (version 3.2.3) but somehow the installation always fails. The output is too large to be pasted here, but I found something interested in this question, that might be the key to solve this issue. Shortly: from the terminal I can see I have gcc-4.8 and…

Urwid: make cursor invisible

I’m using urwid, which is a Python “framework” for designing terminal user interfaces in ncurses. There’s one thing though that I’m not able to do in urwid that was easy in curses – make the cursor invisible. As it is now, the cursor is visible when selecting buttons, and i…

bash scripting: combine var=$(…) and var=${var%%…} lines?

Is it possible and, if yes, how to convert the following expression to one-liner? Simple DEV=${(lsblk -no KNAME,MODEL | grep ‘ModelNAME’)%%’ModelNAME’} doesn’t work Answer zsh allows you to combine parameter expansions. Bash does not. For either bash or POSIX sh (both of which su…

mmap does not work as expected (return random 0xdeadbeef)

I am writing c++ on linux7arm and the physical address is referring to a memory block (that can be accessed/changed by other peripherals) when I map a page of physical address space to the local address space and try to read it, it works fine and show the expected data BUT not all the time. if I write a scrip…