The find command is really useful to identify files with a given name that also contain a string somewhere inside of them. For instance lets say I’m looking for the string “pacf(” in an R markdown file somewhere in my current directory. I get useful results. However, sometimes, I’m not sure if the file I am looking for is an
Tag: linux
Fast byte copy C++11
I need to convert C# app which uses extensively bytes manipulation. An example: Basically BitConverter and Buffer.BlockCopy called 100s times per sec. There are several classes that inherit from the base class above doing more specific tasks. For example: What approach in C++ should I look into? Answer Best option, in my opinion, is to actually go to C –
Error CrushLoopBackOff to start k8s Dashboard
I try to install dashboard to clear private k8s cluster (without internet connection). I did according to this instruction https://github.com/kubernetes/dashboard. When start apply recomended.yaml: metrics scrapper start successfully, but dashboard show error CrashLoopBackOff permanently. Docker Version: 19.03.6 K8s version: 1.23.4 Containers status: Containers log: Worker-node logs from /var/log/syslog: Answer By default, the dashboard container is installed on the worker node.
Can’t compile to .wasm on Linux
Summary (Edit: removed all unnecessary information, added Windows10 experience, upgraded CLANG on Ubuntu to the same version, removed Debian10 due to old CLANG version) I’ve created a pretty simple WASM module, compiled on MacOS, works ✅, compiled on MS-Windows10, works ✅, compiled on Ubuntu21.10: produces 318 bytes of zeros ❌, Details Symptom On Ubuntu21, the linker produces the file with
About memory allocation, does C malloc/calloc depends on Linux mmap/malloc or the opposite?
As far as I know, C has the following functions, e.g: malloc, calloc, realloc, to allocate memory. And the linux kernel also has the following functions, e.g: malloc, mmap, kmalloc, vmalloc… to allocate memory. I want to know which is the lowest function. If you say, “Linux kernel is the lowest function, your C program must allocate memory with Linux
sqlplus query + loop on linux
I have pratically 0 experience on unix and few on mysql and I am finding hard where to start to complete this task, I have to write a .sh file to launch once a day. I have a table on OracleDb where I have 2 columns I need: path and file_name. Once I get the results, I should loop through
How to introduce an input in a C program through shell script?
When I execute the program in console I just do this: and it just print a integer. The thing here is that I want to introduce 1000 textfiles as input so I made this script: The trouble here is that the script is not putting the output in the file text because is not iterating as it should, I think
System.Drawing High memory usage on Linux
Is there any way to diagnose Unmanaged memory leak ? I am using .NET 5.0 Console App with NETCode (barcode) library. The program it self is simple it calls barcode library & creates a base64string from Image 5000 times, I am using ‘using blocks’ therefore disposing is also being handled. On windows this program consumes 15-25 MB (doesn’t go above
How to troubleshoot Vscode ssh could not establish connection to “hostname”?
I’m trying to connect to a host with Vscode ssh, but I keep getting “could not establish connection to ‘hostname'”. I’m confused because it was working perfectly fine and then it stopped working out of the blue. I did not change the hostname or any config related to ssh in vscode I can still connect to the host in PuTTY,
Stop running script but not programm it started
I have a script on my Raspberry Pi that starts the browser in kiosk mode. But if I do so the script keeps running even if i pipe the output to /dev/null like this ./script 2> /dev/null If i stop the script with ctrl+c the browser gets killed as well. How can I run the script without having it to