How do I get the find command to print out the file size with the file name?

If I issue the find command as follows: $ find . -name *.ear It prints out: ./dir1/dir2/earFile1.ear ./dir1/dir2/earFile2.ear ./dir1/dir3/earFile1.ear What I want to 'print' to the command...

How do I get LaTeX to hyphenate a word that contains a dash?

In a LaTeX document I'm writing, I get an overfull hbox warning because of the word "multi-disciplinary", which happens to be rendered at the end of a line. I can get rid of this particular...

wget to clone a website, with links to directory not index.html

I would like to clone a wordpress blog with wget so that I can include it as static content in a web app I am writing. At the moment I am using the following to clone the site: wget -rk...

Apache could not be started - ServerRoot must be a valid directory and Unable to find the specified module

I'm using xampp portable server and I'm having some trouble with Apache http server, it says "ServerRoot must be a valid directory" Command line output: Please close this command only for...

Running a single test from unittest.TestCase via the command line

In our team, we define most test cases like this: One "framework" class ourtcfw.py: import unittest class OurTcFw(unittest.TestCase): def setUp: # Something # Other stuff that we...

calculate total used disk space by files older than 180 days using find

I am trying to find the total disk space used by files older than 180 days in a particular directory. This is what I'm using: find . -mtime +180 -exec du -sh {} \; but the above is quiet...

Android Stop Emulator from Command Line

This question is identical to https://stackoverflow.com/questions/5912403/how-to-shut-down-android-emulator-via-cmd. However, after attempting the suggested solution from the first answer adb emu...

ImportError: numpy.core.multiarray failed to import

I'm trying to run this program import cv2 import time cv.NamedWindow("camera", 1) capture = cv.CaptureFromCAM(0) while True: img = cv.QueryFrame(capture) cv.ShowImage("camera", img) ...

How can I read from standard input in the console?

I would like to read standard input from the command line, but my attempts have ended with the program exiting before I'm prompted for input. I'm looking for the equivalent of Console.ReadLine()...

Override property in build.gradle from the command line

In build.gradle we can define variables like: def libVersion='someVersion' We can override properties in command line with -PlibVersion=otherVersion Unfortunately it seems this command line...

Django can't drop database: psycopg2.OperationalError: cannot drop the currently open database

Whenever I try to run my Django tests via manage.py, the tests run fine however at the end when Django is destroying the database the following error occurs: Destroying test database for alias...

How to properly escape quotes in powershell v2?

How do you properly escape quotes in powershell v2 (called from within a batch file)? I have tried: powershell -Command "(gc file1.txt) -join "`n" | Out-File file2.txt" and powershell -Command...

Heroku: deploying minio server with Dockerfile CMD failure

I am trying to deploy my minio server to heroku. This is my Dockerfile: FROM minio/minio ENV MINIO_ACCESS_KEY="xxxxxx" ENV MINIO_SECRET_KEY="xxxxxxxx" CMD ["server", "/data"] EXPOSE 9000 This...

Getting Exit Code 1 when running restore DB from a .tar file in pgAdmin4 postgresql 10.5

I'm taking an intro to SQL course and I can't get my very first database loaded. I have a file dvdrental.tar, I create a new database dvdrental > right click > Restore > Select File > Pick "Data"...

PhpUnit not executing via PhpStorm remote interpreter in Docker

The issue I've got is that PhpUnit does not function (properly, something does happen) when just plain clicking "Run" (Shift + F10 on Windows) in PhpStorm. First up, followed tutorials/setup...

Locating iostream in Clang++: fatal error: 'iostream' file not found

I wrote the following simple C++ program: #include <iostream> using namespace std; int main() { cout << "Hello, World" << endl; return 0; } When I compile this with g++, it works...

Create and use a PyPi proxy repository on nexus

Running Nexus 3 OSS 3.6.0-02 I have created a pypi proxy repository on nexus using this guide: https://help.sonatype.com/repomanager3/pypi-repositories With the following info: Format: pypi Type:...

unittest working in PyCharm but unable to run from command line

I'm trying to run a unit test in the command line to generate code coverage. I can run the command from PyCharm fine, but running it from command line doesn't work. The test is in a testing folder...

SonarQube rule: "Using command line arguments is security-sensitive" in Spring Boot application

SonarQube is just showing a Critical security issue in the very basic Spring Boot application. In the main method. @SpringBootApplication public class Application { public static void...

Command PhaseScriptExecution failed with a nonzero exit code while trying to add Flutter to iOS app

I am trying to add flutter to the existing app. So before doing on the production app I tried with brand new Xcode 10 Single View Application. I followed the tutorial here on...

Docker-compose: /usr/local/bin/docker-compose : line 1: Not: command not found

i'm trying to install Docker-compose on my Raspberry Pi 3+ which installed Raspbian buster. I followed instruction on docker.com. After I entered command : sudo curl -L...

python3 getopt.GetoptError: option not recognized

optlist, args = getopt.getopt(sys.argv[1:], 'l:s:pd', ['load=', 'save=', 'print', 'delete']) I pass the argument --load duplicates.json and I get this exception. What's wrong with it? raise...

Anaconda 3 installation error - no scripts folder and no conda command prompt and shortcuts

I am trying to install Anaconda3-2019.10-Windows-x86_64.exe on window 8.1. During installation, I checked details and there seemed have many issues. No Scripts folder or Conda Command prompt or...

Import module from different directory with import_module

I have a module in one directory that needs to be imported by a script in a different directory. However, whenever I try to import it, I get a ModuleNotFoundError. I have to keep these in separate...

Angular - Getting sh: ng: command not found while running "npm run ng build" in Jenkins

I am trying to build an angular project in Jenkins Tried both "build": "npm run ng build", as well as "build": "ng build" but getting the same error. Could it be because of the way this...

Why is the aws cli not found on amazonlinux2 ami?

The AmazonLinux2 AMI I am using for my Docker hosts does not appear to have the AWS CLI installed. The log has an error from the user data script that tries to run an aws...

Error detected while processing function SwitchFlowOrTsLsps nvim windows 10

Hello I tried to enter a js file and upon entering I got this error: Error detected while processing function SwitchFlowOrTsLsps: line 4: E121: Undefined variable: state E15:...

Why does `exec bash` not work in a CI pipeline?

I have written a github workflow file. I want to run a python program in github actions to validate few changes. I have one environment.yml file which contains all conda environment dependencies...

discord.ext.commands.errors.CommandInvokeError: Command raised an exception: KeyError: 'dislike_count'

Ignoring exception in command play: Traceback (most recent call last): File "C:\Users\rcesa\AppData\Local\Programs\Python\Python39\lib\site-packages\discord\ext\commands\core.py", line 85, in...

How to solve ignore: deprecated_member_use in Flutter?

In my flutter project, I have made some updates of plugins and then used flutter upgrade. After that, whenever I am running my flutter project it is showing following error- ...