I tried to build the example mod which comes with the 1.12.2 MDK, gradlew setupDecompWorkspace, gradlew eclipse and even gradlew build work fine, only when I try to run gradlew runClient it crashes immediately and prints the following error/stack trace: System Information: OS: Ubuntu 18.04 Forge MDK: forge-1.…
Tag: linux
How to find all symlinks to a file?
This is my hierarchy: l1 and l2 are symlinks to a.txt. I run this code to find all symlinks to a.txt in the /aaaaaaaa: And it obviously doesn’t work, cause I must compare realpath of file with path of a.txt. In what way I should do this? Answer If you have GNU/BSD find just use -samefile primary.
What happens to TCP socket when IP address changes?
Is there any error on a socket when writing to it after IP address change? In my I’m using TCP socket, both read/write (non-passive), no TCP or application keep-alive. To inspect this case I use socat to connect to a simple echo server on my local network. The connection is OK until I change the client …
Weird Backtrace After a Call Instruction Targeting Signal Functions
I tried to trace evince-3.28.4 execution using GDB. There is a callq instruction at some point in libdl, which is shown below (i.e., at _dl_lookup_symbol_x+840): When the execution reaches here, the backtrace is as follows: But when I enter ni (to jump to the next assembly instruction), it turns into this: As…
How to get python version in shell script?
Objective: to get python version in shell script Observation: Code: Expected: Actual: Please help me getting python version in shell script. Answer the –version writes to stderr, so:
nvm needs curl or wget to proceed
I wanna install node from nvm, but i run into problem ‘nvm needs curl or wget to proceed’ My operating system is debian9,nvm version is v0.35.2 how to fix it? here is the nvm debug result and the type curl/type wget results Answer put this into bashrc file then source ~/.bashrc
Why do I need to do a “pip install” after “git clone..”?
I am following a (my company’s internal) guide to installing some custom libraries from Bitbucket. I am instructed to do on the command line: When I do I see that there is a README.md file and a directory called CompanyLibraries I am then instructed to do My question is that after doing “git clone…
Extract all unique URL from log with only POST type of the request
I’ve got a log file with the such type of the records: 41.201.181.27 – [2019-04-06 18:22:02] “GET /images/stands/photo_mois.jpg HTTP/1.1” 304 – “http://example.com/popup.php?choix=mois” “Mozilla/4.0” “-” I’ve got the script for getting al…
How to solve a RAW stream playback problem with GStreamer and VAAPi
I am currently experiencing a small problem with GStreamer, here are more details: Configuration: Intel i7-6700 Intel HD Graphics 530 Ubuntu 18.04 LTS GStreamer1.0 VAAPI plugin I receive a UDP stream from a video source, this stream is sent in RAW UYVY format. Here is my command line to decode it: gst-launch-…
Is it possible to make a hardcoding with the help of the command objcopy
I’m working on Linux and I’ve just heard that there was a command objcopy, I’ve found the relative command on my x86_64 PC: x86_64-linux-gnu-objcopy. With its help, I can convert a file into an obj file: x86_64-linux-gnu-objcopy -I binary -O elf64-x86-64 custom.config custom.config.o The fil…