Tag Archives: ProgrammerAH

Error: cannot find module ‘node sass’

Error: cannot find module ‘node sass’

After the project is running, you can’t access the page normally by inputting the address, and you can’t check the command line to report an error
cannot find module ‘node sass’

the error indicates that the node sass module can’t be found.
Input command: cnpm install node-sass@latest After the installation, the problem is solved

NPM install error cb.apply is not a function

NPM install error cb.apply is not a function

solve:

    Win + R open and run, enter % appdata% to delete NPM and NPM cache folder, and execute NPM cache clean -- force command

    At this point, it should be OK. If not, perform the uninstall Node.js Re install.

    If not!!

    Change yarn

    Install yarn NPM install - G yarn

    yarn install instead of NPM install

    then,

    everything will be fine

Error: Exception was raised when calling per-thread-terminate function in extension lrwreplaymain.dl

Error: exception was raised when calling per thread terminate function in extension occurs when LR is used for stress test lrwreplaymain.dll : System Exceptions: EXCEPTION_ ACCESS_ Message
.

Solution:
create a new temp folder on Disk C (or any other disk)
right click “my computer” & gt; advanced – & gt; environment variables – & gt; edit and modify the directory of all temp variables, and point to the new directory, such as my pointing to C: temp, and save it. [@more@]

From “itpub blog”, link: http://blog.itpub.net/124805/viewspace-1045772/ If you need to reprint, please indicate the source, otherwise you will be investigated for legal responsibility.

Reproduced in: http://blog.itpub.net/124805/viewspace-1045772/

RuntimeError: CUDA error: CUBLAS_STATUS_ALLOC_FAILED when calling `cublasCreate(handle)`

RuntimeError: CUDA error: CUBLAS_ STATUS_ ALLOC_ FAILED when calling cublasCreate(handle)
Exception raised from createCublasHandle at … \aten\src\ATen\cuda\ CublasHandlePool.cpp : 8 (most recent call first):

record the bug of dcgan in Python training..
It took a long time to find out that the last line of the discriminator did not add sigmoid, which caused the tag to go beyond the range [0,1], so an error was reported.

K8s error in installing calico plug-in

reason

Due to different installation methods, my calico failed to start when I installed it. It is estimated that the download of the image failed here. Learning from Baidu’s post, I personally agree with it. It probably means that although the domestic image address has been initialized and modified, the official foreign image will also be pulled when I installed calico

My installation method is: kubectl apply – F https://docs.projectcalico.org/v3.18/manifests/calico.yaml

Error form:

when viewing pod, calico cannot start normally. When using describe to view calico node, the image displayed fails, as shown in the following figure

solve

Using WGet https://docs.projectcalico.org/manifests/calico.yaml Command Download calico.yaml Form a local file

execute kubectl delet – F calico.yaml Delete calico that failed to download before

Then execute kubectl apply – F calico.yaml That is

summary

I don’t know why this is so. It’s easy to report an error when downloading and installing directly. Only when the download is completed locally can the installation be successful. Friends with the same problems can try this method

Chinese garbled code when vscode calls CMD to run C / C + +

Online did not find a useful way, and finally found in a tutorial B station

Set – & gt; select workspace – & gt; search encoding – & gt; set to GBK

Principle: the default encoding of CMD is GBK, and the default encoding of vscode is UTF-8. Just change the default encoding of vscode’s current workspace, which will not affect other projects.

Mixing iteration and read methods would lose data

Linux environment, the following figure 1 operation error, change to figure 2 form, in windows will not report an error, running well, the reason remains to be explored!

ValueError: Mixing iteration and read methods would lose data

lines = fr.readline ()

for line in lines[1:]

For large documents, read them line by line to extract the desired part to prevent too much memory and insufficient memory;

citation/ bibliography is wrongly placed in index area, please delete the placed citation/ bibliogra

I disobeyed not having any disorder highlighted, * * * * * * * * * * * * * * * * * * * * * *: Prism* * *graph* * * * * * * * * * * *: Prism* * “* * * * * * * * * * * * * * * * * * * * * * the field* * * * * * * for my* * * * * * * * * * * * graph* * * * * *: this bit* * * * *: the document ** * * * * * * * * * * * * * * * * * * * * * *the document ** * * * * * * * * * * * * * * * * * * * * * * * * * * * *the document ** * * * * * * * * * * * * * * * * * * *version of the file* * “ADDIN”,* * * *based on* *a* +f* * * * * * *one for *each*ofmy citations *Butthis* {*ADDIN}* *the only one**thatwas sitting alone, So here are awesome steps:

1)}Hitawesome+F9

2)}* Searchawesome Delete the strands search result that collapses into the strands

4)*

3)*

Delete the strands search result that collapses into the strands

4)**

4)** 4)**


[solved] not found android.support .v7. internal.app.WindowDecorActionbar

Problem Description:

Rendering Problems 

       The following classes could not be found: –  android.support .v7. internal.app.WindowDecorActionBar (Fix Build Path, Create Class)

       Tip: Try to build the project.

Attached:

When you encounter problems in your study, you should follow the warning of your predecessors that “if you don’t know, check yourself first, but if you really can’t, then look for your predecessors”. The quickest way to check is to go online. This article will be one of your network experiences.

Tools / raw materials

Android Studio

Cause of the problem

    one

    For Android version upgrade, actionbar is not recommended and will be replaced by toolbar.

    END

Solution 1: parent=“ Base.Theme.AppCompat . Light.DarkActionBar ”

    one

    Find the project directory RES / values/ sttyles.xml , ready to modify the apptheme settings.

    two

    Property parent found=“ Theme.AppCompat.Light .DarkActionBar”

    three

    Change to parent=“ Base.Theme.AppCompat . Light.DarkActionBar “, that is, the prefix” base. “Is added to the original parent attribute value.

    four

    Save the changes and go back to the question prompt. Is it not available now?

    END

Solution 2: parent=“ Theme.AppCompat.Light .NoActionBar”

    one

    Also in styles.xml File, modify the value of the parent property to“ Theme.AppCompat.Light .NoActionBar”

    END

Solution 3: change to a lower version of the API

    one

    On the question prompt page, find the API selection button in the upper right corner to see the list of optional APIs. Choose a lower version, such as 4.2.2

    two

    After the API switch is successful, you can see that the problem is no longer displayed.

    However, this method is not recommended.

    END

matters needing attention

It is recommended to use toolbar instead of actionbar