unix join separator char

Sorry for the maybe trivial question. I fought a bit with the unix join command, trying to get tabs instead of whitespaces as the default separators. -t is the argument, but these don't work...

How to download source code with Pacman on Arch Linux?

I am using Arch Linux. I want to do the same thing like apt-get source coreutils; is it possible to download sources with Pacman? I didn't find a solution in the man pages. How can I get the...

cp --parents option on mac

On Linux, I have a --parents option available for the cp command so I can do cp --parents test/withintest/go.rb test2 http://www.gnu.org/software/coreutils/manual/html_node/cp-invocation.html On...

C++ equivalent of 'readlink -f'

In unistd.h, I have the C function readlink, which follows a link down one target. The coreutil readlink has the great -f option to follow every sym link recursively. How can I get this behavior...

How to generate a list of all dates in a range using the tools available in bash?

I want to download a bunch of files named with ISO-8601 dates. Is there a simple way to do this using bash+GNU coreutils? (Or some trick to make wget/curl to generate the list automatically, but I...

Crazy MS SQL Server JDBC driver at datetime field or time zone issue?

During debugging I end with simple example: select convert(datetime, '2015-04-15 03:30:00') as ts go Apr 15 2015 03:30AM (1 row affected) select convert(int, datediff(second, '1970-01-01...

Makefile: Generate list with subdirectories

Let's suppose I have this directory structure: -src | |-- subdir1 | | |-- subdir2 | | | |-- subdir3 I want to generate automatically a variable that finds the name of...

Fast file copy with progress information in Node.js?

Is there any chance to copy large files with Node.js with progress infos and fast? Solution 1 : fs.createReadStream().pipe(...) = useless, up to 5 slower than native cp See:...

Why is the Rust libstd linked dynamically without using -C prefer-dynamic flag after compiling a dynamic library?

I am having an issue understanding how Cargo links binaries when building a dynamic library. To understand it better, I took the coreutils project and tried to build 'ls' changing Cargo.toml and...

Failure on cross compiling busybox

I'm trying to cross compile busy box V 1.27.2 for my embedded Linux device. I set share library build and cross compiler prefix and Sysroot to my compiler destinations. Compiler after trying to...

Installing GTK for use in Code::Blocks on Windows 10

Original Question I am having trouble installing gtk to start building GUIs in C++ on Code::Blocks. Could anyone nudge me in the right direction? I'm running Windows 10 (64-bit) on a Lenovo. I...

Java Maven project build failure

I have created a Java project to push data to an Apache Kafka server (this project is error free, according to my IDE). When I try to run Maven -> Install, my build fails. I receive the following...

How run composer install from dockerfile in php container

Good day I have php container which seting up in Dockerfile I am trying to run composer install with this command WORKDIR '/app' RUN curl -sS https://getcomposer.org/installer | \ php...

How can I override the jetbrains jdk dependency required by idea-ultimate or idea-community in config.nix?

I’ve been setting up my local nix config as per nixpkgs manual's declarative package management. I’d like to include idea-ultimate as one of myPackages, but at this time the dependency idea...

Broken Homebrew - getting traceback error when typing "brew" + anything

How do I fix this? I open terminal on my Mac, and in either ZSH or bash, type: "brew", or even "brew doctor", and I get the following error: Traceback (most recent call last): 13: from...

force macos system to downgrade ruby system

I need to be using Ruby 2.2.2 but my macOS came with 2.6.3. Commands I have tried both as root and not as root: sudo brew install [email protected] and brew install [email protected] results in error sudo gem...

how to fix the weird error "Operation not permitted"

[[email protected] tmp]$ ./sysupdate -bash: ./sysupdate: Operation not permitted [[email protected] tmp]$ chmod +x ./sysupdate [[email protected] tmp]$ ./sysupdate -bash: ./sysupdate: Operation not...

Error compiling coreutils - error: function might be candidate for attribute 'const' [-Werror=suggest-attribute=const]

I try to compile coreutils on Ubuntu 18.4. Here is what I did so far: sudo apt install bison gperf make textinfo git clone git://git.sv.gnu.org/coreutils cd...

Rails / Postgres: warning: implicit conversion loses integer precision: 'long' to 'int'

i could not get postgres-gem to run. macOS 10.15.4 Postgres-App 2.3.5 (https://postgresapp.com/downloads.html) PostgreSQL -v12 Rails-6.0.2 gem 'pg' v1.2.3 then, i did: bundle config build.pg...

how to install php-amqplib in alpine image?

I use docker-compose version: '3' and need to install php-amqplib. I faced with strange behaviour. Thrown exception about missing sockets, but I installed and added to my composer.json, how to...

Unable to install DFINITY Canister SDK on Ubuntu

I'm following the steps found here to install DFINITY Canister SDK. When I run the below command, directory dfx (under /bin) is not created and subsequently the dfx command is not...

How to fix Shell Script Invocation Error MapFileParser.sh: Permission denied in Xcode

I'm working on a IOS Game that I built using Unity and I'm trying to get it to build on Xcode. However I keep getting this Shell Script Invocation Error...

Rebuild android code with error “SSL error when connecting to the Jack server. Try 'jack-diagnose”

System: ubuntu 18.04 environment:VirtualBox The first time I compiled the AOSP source code on Ubuntu 18.04, it passed, and the second time I compiled it failed. Here is an error message. [ 10%...

Share same steps for different GitHub Actions jobs

I have a cross-platform project which is to be built on 2 platforms: mac and linux(ubuntu). My pipeline contains 3 jobs: prepare docker image with all nessesary too to build the project. build on...

bash pipe vs here-string

I tought these command were equivalent in bash, but they are producing different outputs. Could you help me understand why? $ echo "SEBA" | wc 1 1 5 $ wc <<< "SEBA" 1 1...

NixOS service systemd unit's $PATH does not contain expected dependency

I have the following definition: hello123 = (pkgs.writeScriptBin "finderapp" '' #!${pkgs.stdenv.shell} # Call hello with a traditional greeting ls...

Why does /usr/bin/timeout kill the entire pipe?

I have a program that indefinitely generates output. I want to sample that output for a second and pipe into gzip. I'm using timeout util to limit the execution but the problem is that gzip gets...

How to enable JupyterLab extension manager by default?

I am deploying a JupyterLab environment in Docker, to save my preferred working environment. One of the customizations is that I have an extension jupyterlab-onedarkpro installed. This offers the...

'Command not found' when trying to install expo globally ubuntu

When I install expo it installs but it doesn't install. Here are the details about the issue. I start off by typing: yarn global add [email protected] When it installs it says: warning package.json: No...

Count trailing newlines with POSIX utilities or Perl

I'm looking for ways to count the number of trailing newlines from possibly binary data either: read from standard input or already in a shell variable (then of course the "binary" excludes at...