Find Non-UTF8 Filenames on Linux File System

I have a number of files hiding in my LANG=en_US:UTF-8 filesystem that have been uploaded with unrecognisable characters in their filename. I need to search the filesystem and return all filenames...

How to get Command history by cursor key in Linux tclsh

Can get the command history by using cursor key (like up arrow key) in TCL shell (tclsh). I am running tclsh on fedora with linux version 2.6.21.

RTNETLINK answers: No such file or directory

When I run this cmd: tc qdisc add dev eth0 root red limit 51200000 min 128000 max 512000 avpkt 1024 burst 200 ecn probability 0.5 i get RTNETLINK answers: No such file or directory I have...

Error while loading shared libraries: libsystemc-2.3.0.so

I am a new user to Linux and I am trying to install systemc-2.3.0 library on my machine (Fedora 16). I have followed every instructions very carefully, mentioned in the INSTALL file of the library...

mysql: connection refused when trying to connect to localhost using remote IP

When I try to connect to a local mysql database using it's remote ip-address I get a access denied. When I try to connect to that same database from an external machine, it works without any...

make error: No such file or directory

I am new to kernel module development. So I started with simple hello world kernel module I am using "The Linux Kernel Module Programming Guide" book for the reference (it is addressing to kernel...

Line continuation of strings in Fortran

How does one break a long string and continue on a next line in Fortran? I just started using gfortran 4.7.2 in Fedora 17. When I tried to use the following a test code, I am not getting output: ...

apache ScriptAlias cgi-bin directory

this has been a problem for me for days and I ahvent been able to solve it. Im working on fedora 14 and using Apache/2.2.17 (Unix) the document root is /var/www and it is well configured in my...

Get the Perl rename utility instead of the built-in rename

Many sites (including various SO articles) talk about using "rename" using Perl expressions to rename files. This would be perfect, but apparently this is not the rename utility I have, and none...

how to run Emacs when SSH-ing from Linux to Mac OS X (with XForwarding)?

At work I get a choice of two laptops to use, Windows or Mac. Being a linux guy, I thought the MacBook Pro will be a good fit. So I bring the MacBook Pro laptop home, and realize it doesn't have a...

PyQt: How to reset the cursor to whatever it's hovering over

Very small issue: I've written a small IDE with a text editing widget based on a QPlainTextEdit. When you move the mouse over it the cursor becomes a caret/text cursor as expected. If you hit F5...

How to plot a chart in the terminal?

I'm researching ML/Theano, and recently came across this script: https://gist.github.com/notmatthancock/68d52af2e8cde7fbff1c9225b2790a7f which was cool to play with. And like all ML researchers,...

Failed to start The nginx HTTP and reverse proxy server issue

First time I'm stalling nginx server in my fedora 24. I'm using apache server for development. For onlyoffice integration I have to install nginx server. I installed nginx server by using this...

How to automatically install required packages from a python script as necessary?

Is there anything in python or linux what basically instructs the system to "install whatever is necessary". Basically I find it annoying to install python packages for each new...

How to rewrite paths with Traefik when using path prefix rules?

My Traefik config for WordPress contains the following docker-labels: - "traefik.backend=wordpress" - "traefik.docker.network=web" - "traefik.frontend.rule=Host:MyHostName.net;PathPrefix:/blog" -...

Docker "unknown flag: --from"

I am trying to build an image using simple Dockerfile. However I am unable to get passed the above issue. I came across a kb article saying that I have to enable the "edge" repo. I have since done...

Java 11: Implementation of JAXB-API has not been found on module path or classpath

I have a little project which does throw an exception when i let it run. The problem is here (TestObject.java): final JAXBContext jaxbContext = JAXBContext.newInstance(...); I really do not...

Changing thread real time scheduling policy fails: CONFIG_RT_GROUP_SCHED=y

My apologies if I'm posting this here instead of super user. I was trying to run docker inside real-time group and I came across enabling cgroups - CONFIG_RT_GROUP_SCHED in the kernel to run...

Timeout waiting for privilege escalation prompt

Context I'm asking this question because those two questions/answerse (one and two) have little context, and I'd liket o expand on it. I'm trying to provision CentOS7 production servers with...

How to read var/lib/rpm/Packages content

I have 'Packages' file in path var/lib/rpm in my Centos:8 based image. How can I read/ get 'Packages' file content As I read in some documentation that this file is of type berkeley DB.. not sure...

What could be the reason why "heroku open" command is not working?

I have successfully deployed a django app on heroku using this guide. The heroku cli is installed as a snap application on my system - I'm running Fedora 32 on a Dell xps 15 - and everything seems...

CoreOS Image fails to load ignition file via libvirt (permission denied)

I'm testing out a new network config using VM's and got libvirt and qemu setup on my system. Following the documentation for Fedora CoreOS to help get started. Steps Taken I've updated my user to...

How to create a constexpr pointer to a register on embedded system

I want to be able to configure a class to be able to access hardware in its member functions. Let's assume we have an avr device, where we simply can access hardware like PORTA = 0x00; which...

bundle install error - ruby_dep-1.5.0 requires ruby version >= 2.2.5 but I have version 3.0.1p64

I used to work in a project with a Ubuntu machine flawlessly. After some time, I decided to hop into Fedora and now that I've setup everything, I was going to continue the project but when I run...

AppImage created with Qt and linuxdeployqt with gtk3 plugin does not start on Gnome 4

I created a Linux application in Qt 5.15.2 and packaged it to AppImage with linuxdeployqt. I do this on Ubuntu 18.04 virtual machine. The created AppImage runs without any problem on any Linux...

Problem with launching Discord (Fedora 35)

I can't run Discord on fedora 35 What could be the cause of this? [Modules] Module download path:...

Podman unable to mount local file into container

I'm planning to move away from Docker to Podman. I use docker-compose a lot so am planning to switch to podman-compose as well. However I'm stuck at the simplest of podman examples, I can't seem...

Brownie not working: Cython undefined symbol _PyGen_Send

I set up my development environment on Fedora 35 and when I run any brownie command such as $ brownie console or even brownie --version I get the following error: Traceback (most recent call...

write syscall gets considerably slower when called from another thread

If you define THR, the code will do the same job but just in another thread. I only measured the time spent on the write call. Running the code with ./some-file-name>/dev/null, this is the result...

Use of `std::move` in `std::accumulate`

In my Fedora 34 environment (g++), std::accumulate is defined as: template<typename ITER, typename T> constexpr inline T accumulate(ITER first, ITER last, T init) { for (; first != last;...