Windows equivalent to UNIX pwd

How do I find the local path on windows in a command prompt?

Convert a Mercurial Repository to Git

I've already tried hg2git through fast-export and I've already tried hg-git. Both with no success. hg2git actually worked, but I had to ask a friend who runs a Unix machine to do it. And that...

Recursive directory listing in DOS

How do we achieve a recursive directory listing in DOS? I'm looking for a command or a script in DOS which can give me the recursive directory listing similar to ls -R command in Unix.

How to interleave lines from two text files

What's the easiest/quickest way to interleave the lines of two (or more) text files? Example: File 1: line1.1 line1.2 line1.3 File...

gio.h no such file or directory

I am trying to compile the GIO example program code at here on developer.gnome.org link. And the command I am using to compile it is g++ gdbserver.cpp `pkg-config glib-2.0 --libs --cflags...

How to tail all the log files inside a folder and subfolders?

In Linux, using the command tailf, how can I tail several log files that are inside a folder and in the subfolders?

password authentication failed for user "postgres" on mac

I have problem creating new psql user because I cannot log in psql as "postgres", I have tried 1. sudo -u postgres psql 2. sudo -u postgres createuser img_site -P -s -e and they are all ask for...

zsh: how to delete contents in folder without deleting the folder?

I am using zsh and I want to delete contents of a folder without deleting the folder itself. What is the best way to go about this?

laravel5: chdir(): No such file or directory (errno 2)

I have a problem when deploy website build on laravel 5 into VPS server, but on local machine it work fine. My page is http://easyway.vn/ current page display blank with error Failed to load...

Invalid command WSGIDaemonProcess Deploy Django application on CentOS 6.7

I am using Django 1.8 on CentOS 6.7 with Apache Server version: Apache/2.2.15 (Unix). I have followed the steps in [How To Serve Django Applications with Apache and mod_wsgi on CentOS 7.][1] But...

vim move a block of selected code up or down

There is a way to move highlighted code up or down with arrow keys. Even the indentation would be correct on dropping the block. For the life of me I do not remember how to do it. Can someone...

Ansible configuration files

I'm just starting out with Ansible and I'm having some issues with the configuration file. Initially, I wasn't being able to ping hosts because my ansible socket path file was too long. I changed...

Convert Unix time to Datetime in Apex Salesforce

I have requirement to to store the timestamp returned from the response to Salesforce DateTime. But the timestamp returned is in Unix format. How do I convert it to DateTime in Salesforce using apex?

INFO: I/O exception (java.io.IOException) caught when processing request to {}->unix://localhost:80: Permission denied

when try to build a Docker image of a jhipster application on Ubuntu. got error: INFO: Retrying request to {}->unix://localhost:80 Jan 12, 2017 11:45:49 AM org.apache.http.impl.execchain.RetryExec...

Matplotlib cannot find basic fonts

I am using matplotlib version 2.0.0 on Python 3 in a miniconda virtual environment. I am working on a unix scientific computing cluster where I don't have root privileges. I am generally executing...

ESLint with React gives `no-unused-vars` errors

I've setup eslint & eslint-plugin-react. When I run ESLint, the linter returns no-unused-vars errors for each React component. I'm assuming it's not recognizing that I'm using JSX or React syntax....

How to convert Unix time / time since the epoch to standard date and time?

I'm using the chrono crate; after some digging I discovered the DateTime type has a function timestamp() which could generate epoch time of type i64. However, I couldn't find out how to convert it...

TensorFlow in nvidia-docker: failed call to cuInit: CUDA_ERROR_UNKNOWN

I have been working on getting an application that relies on TensorFlow to work as a docker container with nvidia-docker. I have compiled my application on top of the...

I am Not able to convert the unix time to local date and time in PYTHON

I wanted to convert the UNIX time into local date and time. I am getting the UNIX timestamp value from my server but when I convert the UNIX using these set of code I get a time which is 1 hour 30...

What happens if you use the 32-bit int 0x80 Linux ABI in 64-bit code?

int 0x80 on Linux always invokes the 32-bit ABI, regardless of what mode it's called from: args in ebx, ecx, ... and syscall numbers from /usr/include/asm/unistd_32.h. (Or crashes on 64-bit...

ant fixcrlf include/exclude does not work

I am having little problem with fixcrlf from ant. When I try to compile for unix target with fixcrlf filter, it modifies all files in the target folder, no matter of includes and excludes. I...

Cannot run peer because error when setting up MSP of type bccsp from directory ... Setup error: nil conf reference

I learn to create an application using hyperledger fabrics. This is my reference --> https://hyperledger-fabric.readthedocs.io/en/latest/build_network.html?highlight=script.sh I got an error when...

In shell, how to remove file if bigger than 100MB, move otherwise

What would be the easiest way to do the following with shell commands? Pseudo code: rm abc if >100MB else mv abc /tmp abc could either be a name of ONE file or ONE directory. I want to have an...

How do I enable remote access/request to Elastic APM-server?

I have setup of Elastic with APM server on single machine. I've configured APM java agent to push traces to APM server on localhost. Everything works fine with localhost configuration on...

How do I give my MacOS app permission to create "WAL" file to open an SQLite DB with journal-mode=WAL?

I'm an experienced programmer, but this is my first MacOS app (on 10.15.2), which needs to read an sqlite db of the user's choice (potentially anywhere on the machine) At first it wouldn't open...

nginx err_connection_refused, can anyone help me?

got installed my old site with php, mysql and so on, an everything work fine but my site is not reachable from the outside of my LAN. Did a ton of changes and tried at least 100 config for my...

Getting the error "make: [Makefile:2: all] Error 127" when I use the make command

I am trying to install this project onto my computer and have been running into issue after issue. The roadblock I've run into now is error 127. Most of the install works fine, until it gets to...

wrapperVersion not supported for Maven 3.8.1, it must be at least 4

I am using Maven for a new Java project. After generating the project using one of the Maven artifacts, I've tried to generate Maven wrapper scripts inside the project. For this purpose I am using...

Automatically create SQS queue using localstack and docker-compose

Is there any way to automatically create SQS Queus using localstack with docker-compose.yml? My docker-compose.yml: version: '3.8' services: localstack: image: localstack/localstack ...

Act Not able to Use Docker API

I am trying to locally test github actions with the open-source Act utility. "Think globally, act locally" I have copied the git hub repository for which i want to check github action and it...