For some time we’ve had an ASP.NET Core web app running on an Azure App Service. As part of upgrading to netcoreapp2.2 we’ve decided to Dockerize it and run it on a Linux container, still in an app service. One thing this app does is load in a TLS certificate for token signing. Previously this cer…
Failed activation of DJI Matrice 100 Drone
I am trying to run a sample application for the Matrice 100 by using ROS on a raspberry Pi 2.I have the Pi connected to the drone via USB-TTL cable to the UART port on the drone. I have my laptop connected to the drone running DJI Assistant 2, and the controller and my iPhone connected wirelessly to the drone
Azure Docker Web App – Failed to update data for container settings
I’m trying to configure continuous deployment for my Web App in Azure so it deploys every time I push an updated container image to the Azure registry. However, when I go to “Container Settings” and set “Continuous Deployment” to true and then hit save I get the following error: …
Bash script, find command, using wildcards or regex
I am writing a bash script that goes over all files in certain directory and: Picks the files with names that match a specified pattern Sorts them by data and time (date and time are part of the filename) Takes X oldest files Performs certain operations on them The pattern used to match the files is passed to…
Why does my LD_LIBRARY_PATH get an uninstalled terminal launch?
In general, what I do to get the result: I drive a team: export LD_LIBRARY_PATH=/u01/app/oracle/product/11.2.0/xe/lib Checking: echo $LD_LIBRARY_PATH Result: /u01/app/oracle/product/11.2.0/xe/lib When I restart or open the new terminal my LD_LIBRARY_PATH is disabled. How to fix it? Answer Environment variable…
POSIX threads vs parallelism
Do POSIX threads (managing by pthread library) works parallelly? My lecturer has told us that this library creates only user threads, that are not managed by Linux kernel. I wrote some code that fill large matrix and compared times of execution for threads and whole program and it seems to works parallelly. C…
How to extract taskid(tid) of a pthread from the parent thread?
I’m using std::thread to launch threads. Also, I need stats for the worker thread available at /proc/[pid]/tasks/[tid]. I need tid to be able to monitor thread stats. I was wondering if there was a way to extract tid from the parent thread. I know that syscall gettid() from the worker returns its id, bu…
chaining multiple epoll instances
Can we add file descriptor returned by epoll_create to another epoll instance using epoll_ctl. how do we chain multiple epoll instances in the application, lets say if we have 2 epoll instances one coming from the application and the other coming from library. Please advise. Answer From man epoll Q3 Is the ep…
How do I fix “‘struct _IO_FILE’ has no member named ‘_file'”?
I have a version of a program that used to compile to a *.o file, but now it does not, and gives a compiler error. I have tried to compile my code with gcc compiler on Linux, and the compile fails. I expect the command gcc -c isatty.c to yield isatty.o but it does not. Instead, I get this message:
Many-to-one two-way communication of separate programs
I’m trying to make two-way many-to-one communication between programs in Linux. My plan is the following: One program called “driver” that talks with the hardware needs to communicate with an unknown number of applications in Linux. I read that one of the most common ways for inter process c…