git error setting certificate verify location

After installing Windows on another drive and logged in the new Windows, previous Git installation drive path is changed: for my case, it's changing from D:\ to J:\

Then I updated the PATH variable to add Git path, but when running git clone using https url, following error appeared:

the CAfile location should be H:/Program Files/Git/mingw64/ssl/certs/ca-bundle.crt for current newly installed Windows, while the error information indicates it's still using the old path.


To fix it, we need modify git system config variable: http.sslcainfo

Try git clone again, it works now.

mysql docker connection error: Can’t connect to local MySQL server through socket ‘/var/run/mysqld/mysqld.sock’

I started docker mysql container and try to connect it outside docker using mysql command but got error:

It's because mysql clinet will use unix socket protocol as default protocol value to connect to mysql server if not specifying protocol or host argument, but mysql docker container is listening on tcp socket.


Specify IP address as host argument value in mysql command will make mysql to connect using TCP protocol instead of default unix socket.
(Note that using localhost as host argument value will still using unix socket protocol)

Or use

This command will specify protocol argument explicitly

npm UNMET PEER DEPENDENCY cli@3.3.12 > webpack-cli@3.3.12

Now in my project there are some unmet peer dependencies:

$ npm list|grep webpack

Then I tried to remove unmet webpack-cli dependency

$ npm uninstall webpack-cli

Run webpack serve now and but it's saying webpack is not found

$ webpack serve

But webpack is installed locally and globally, while webpack-cli is only installed globally.

$ npm list|grep webpack

$ npm list -g|grep webpack

Install webpack-cli again will fix this problem

npm install --dev webpack-cli

Now npm list output has no peer dependency warnings.

$ npm list|grep webpack

Querying the mapped value of map before task compileDebugJavaWithJavac has completed is not supported

I exported Unity (2020.3) project to Android project and then imported it into Android Studio, but following error occurred when building using gradle.

Execution failed for task ':unityLibrary:unity-android-resources:compileDebugJavaWithJavac'.

Failed to calculate the value of task ':unityLibrary:unity-android-resources:compileDebugJavaWithJavac' property 'options.generatedSourceOutputDirectory'.
Querying the mapped value of map( property(org.gradle.api.file.Directory, fixed(class org.gradle.api.internal.file.DefaultFilePropertyFactory$FixedDirectory, /home/gbstack/Unity/Projects/ads-test/android-export/unityLibrary/unity-android-resources/build/generated/ap_generated_sources/debug/out)) org.gradle.api.internal.file.DefaultFilePropertyFactory$ToFileTransformer@481ca56c) before task ':unityLibrary:unity-android-resources:compileDebugJavaWithJavac' has completed is not supported

The exception detail is following:

Since it's saying that some operation is not supported, so it may be a compatibility problem because of gradle version.


Changing gradle from 7.1 to version to 6.x will fix this problem. I tried both gradle 6.1 and 6.9, and both works

ImportError: cannot import name ‘pad’ from ‘skimage.util’

I got following error after upgrading skimage package

It's because skimage has removed pad API starting from version 0.18 (


So we should use np.pad instead of skimage.util.pad, and this issue will be fixed.

error: GL/gl.h: No such file or directory

When compling the Qt based program on Ubuntu, following error is shown

/home/gbstack/app/Qt/5.15.2/gcc_64/include/QtGui/qopengl.h:141: error: GL/gl.h: No such file or directory
In file included from ../../../app/Qt/5.15.2/gcc_64/include/QtGui/qopengltexture.h:47,
from ../../../app/Qt/5.15.2/gcc_64/include/QtGui/QOpenGLTexture:1,
from ../../QtScrcpy/QtScrcpy/device/render/qyuvopenglwidget.cpp:2:
../../../app/Qt/5.15.2/gcc_64/include/QtGui/qopengl.h:141:13: fatal error: GL/gl.h: No such file or directory
141 | # include <GL/gl.h>
| ^~~~~

I tried apt install libopengl-dev but it doesn't work.


apt install libgl-dev

RuntimeError: view size is not compatible with input tensor’s size and stride (at least one dimension spans across two contiguous subspaces)

RuntimeError: view size is not compatible with input tensor's size and stride (at least one dimension spans across two contiguous subspaces). Use .reshape(...) instead.

The causing code is

This error didn't happen before, so it's introduced by new version of pytorch (now my current used pytorch is 1.8.1).

And printing the array, I found it's a boolean array.


Add .contiguous() before view() or use reshape to replace view

So change the line



IDEA Build got error: package org.springframework.web.servlet.config.annotation does not exist

When building project in IDEA 2021.1, following error appeared:

package org.springframework.web.servlet.config.annotation does not exist

And the weired thing is that running mvn compile in command line works well, but run Build in IDEA will got this error.

The building process works before, but recently I modified source code of one of my dependency JHCommonLibrary which is depending on spring-webmvc

I remove spring-webmvc dependency from JHCommonLibrary but it didn't work.

Then add spring-webmvc explicitly, and it didn't work as well.


Finally, I move JHCommonLibrary to end of <dependencies>, now it works. Or adding spring-webmvc dependency before JHCommonLibrary also works.

(I need to state again, this issue only appeared in IDEA but not appear if running mvn compile in command line. So it's likey a bug in IDEA)

‘mvwin_wchnstr’ was not declared in this scope when compiling lnav

lnav is a great log file viewer. To use its latest features, we need to fetch the source code and compile manually.
When compiling lnav using make, following error is appeared

I have installed all requirements stated in documentation.


The lnav documentation only said ncurses library is needed, but not mention which version.
My current installed ncurses library is libncurses5-dev. Changing to libncursesw5-dev fixed this issue.

(This command is for apt package manager, please change to corresponding command according to the package manager you use.)

VSCode SFTP plugin connecting with private key error:OPENSSL_internal:DECODE_ERROR

When I'm trying to upload file using SFTP extension in Visual Studio Code, following error is shown:

Full stack trace is

The ssh connection is using public key authentication, and my sftp configuration (sftp.json) is like following:


To fix this error, we can convert the private key file from OpenSSH private key format to PEM format.

Try again it will work now.