Category Archives: How to Fix

Attempted import error: ‘injectglobal’ is not exported from ‘styled components’

I. Emergence of Problems:

    , in the previous project development, the error occurred when applying male-components , applying injectGlobal to define style variables, and injectGlobal 'is not exported from' application-components '.

Ii. Analysis and Solution of problems:
The reason for

    problem is that The injectGlobal API was removed and removed by createGlobalStyle in styled-components v4. API is removed and replaced by malt-components v4. Replaced with createGlobalStyle the new API appears as a style component and is introduced as a label based on the style component idea. InjectGlobal cannot be applied directly as the original injectGlobal. We define a global style variable that will be inserted into the document as a component. Solution:

The first step is to define the global style with createGlobalStyle and wrap the global style in it. Wrap the CSS style with the back-quotation string, as shown below:

import { createGlobalStyle } from 'styled-components'

export const Globalstyle = createGlobalStyle` 
body{
  margin: 0;
  padding: 0
 }`

The second step is to import the style in the project main file. The code is as follows:

import { Globalstyle } from './style'

The third step is introduced as a label in the form of a style component, as shown below:


class App extends Component {
  render () {
    return (
      <Fragment>
        <GlobalStyled/>
      </Fragment>
    )
  }
}

Nginx error log (error_ Log) configuration and information explanation

Nginx error log (error_log) configuration and information detail
Nginx software will record the fault information of its own operation and log information of user access to the specified log file.
Nginx error log information is introduced
Nginx error message is an important means of debugging Nginx service, belongs to the core function module (NGX_core_module) parameter, the name of the parameter is error_log, can be placed in the Main block global configuration, can also be placed in a different virtual host to separate the virtual host error message
The default value of error_log:

# error_log logs/error log the error;

The syntax format and parameter syntax of error_log are described as follows:

Error_log & lt; FILE> & lt; LEVEL>;
Keyword log file error log level
 
Keyword: Where the keyword error_log cannot be changed
Log file: You can specify any directory where you want to store logs
Error log level: the common error log level is [debug | info | notice | warn | error | crit | alert | emerg], the higher the level is, the less information will be recorded.
The production scenario is generally one of the three levels of warn | error | crit

Note: Do not configure the lower levels of the INFO level, which can cause significant disk I/O consumption.
The tag segment location of the error_log parameter:

main, http, server, location

Reference data: http://nginx.org/en/docs/ngx_core_module.html#error_log
The Nginx configuration error logging procedure is described
(1) Insert the error_log statement

vi conf/vhost/www.abc.com.conf
# VI edit the virtual host configuration file

Document Contents:

server {
Access_log/data/log/WWW.
Listen, 80;
Server_name abc.com www.abc.com;
The location/{
The root/data/WWW/WWW.
The index index. HTML index. HTM;
}
Error_log logs/error_www.abc.com.log error;
# New content ↑
}

(2) Restart the service
After confirmation, you can restart the machine. The operation is as follows:

nginx -t
# results show that OK and Success are ok and can be restarted
nginx -s reload

(3) Check the error log file

ll logs/error_www.abc.com.log
-rw-r–r– 1 root root 2305 Jun 13 18:25 logs/error_www.abc.com.log

Check to see if the file is produced and the configuration is successful.

Unity WebGL error CS0117: ‘NetworkTransport’ does not contain a definition for ‘SetMulticastLock’

Platform: OS X
UNITY: 2019.2.0b9
error: export WebGL
Library/PackageCache/[email protected]/Runtime/NetworkDiscovery.cs(348,30): error CS0117: ‘NetworkTransport’ does not contain a definition for ‘SetMulticastLock’
How to Fix
Window > Package Manager > Multiplayer HLAPI > Remove Package
Try building again.

Error 10002 – Security header is not valid appears on the Django Oscar page

The paypal in settings.py is not set up properly, as follows:
PAYPAL_SANDBOX_MODE = True
PAYPAL_CALLBACK_HTTPS = False
PAYPAL_API_VERSION = ‘119’
# These are the standard PayPal sandbox details from the docs – but I don’t
# think you can get access to the merchant dashboard.
PAYPAL_API_USERNAME = ‘sdk-three_api1.sdk.com’
PAYPAL_API_PASSWORD = ‘QFZCWN5HZM8VBG7Q’
PAYPAL_API_SIGNATURE = ‘A-IzJhZZjhg29XQ2qnhapuwxIDzyAZQ92FRP5dqBzVesOkzbdUONzmOU’
PAYPAL_PAYFLOW_VENDOR_ID = ‘xxxxxxxxxxxxxx’
PAYPAL_PAYFLOW_PASSWORD = ‘xXXXXXXXXXXXx’# Standard currency is GBP
PAYPAL_CURRENCY = PAYPAL_PAYFLOW_CURRENCY = ‘GBP’
PAYPAL_PAYFLOW_DASHBOARD_FORMS = True

Visual SVN server provider failed to perform the attempted operation 0x80041024 after win7 upgraded win10

After win7 upgraded win10, the VisualSVN Server provider was unable to perform the attempted operation 0x80041024

VisualSVN Server.msc can be found under the bin folder of the installation directory to add shortcuts. VisualSVN is recommended to install to disk C.

Error when opening VisualSVN Server: the provider was unable to perform the attempted operation (0x80041024), as shown below

Fix it by “fixing” the source file:
1. Find the installation source of VisualSVN, double-click, and select Repair (Repair) to complete the Repair.
In fact, VisualSVN official website also provides the cause of the problem analysis and repair methods
It mainly includes:
1. TCP/IP port is occupied;

2. Conflict with third-party anti-virus software or firewall;
3. The parent folder of the VisualSVN installation folder cannot be accessed (it is recommended to install to disk C).
4. The root folder of the version library cannot be accessed;
Through the Windows event viewer, the log information of the VisualSVN Server can be viewed to determine the cause of the failure:

Solve the problem that stdole32.tlb is missing when win7 Microsoft Office 2007 Pro Plus excel is opened

In 2015, I went back home and left the programmer position for 6 years to start my career in the mall Information department.
On the first day of work, I helped colleagues in the financial Department solve the first problem:

Problem description:
Windows 7 Microsoft Office 2007 Pro Plus Excel opens stdole32.tlb missing problem
Solutions:
1. Ultimate solution: uninstall and reinstall
2. In the “Run” dialog box, run the following command:
Reg add HKCU\Software\Microsoft\Office\12.0\Word\Options /v NoReReg /t REG_DWORD /d 1

Both ways can solve this problem!

Error inflating class android.support.v7.widget.SearchView

My new book , introduction and actual practice of Android App development has been published by posts and telecommunications publishing house in August, 2020. Please buy it. Click to enter details

Recently in reference to a SDK package, as soon as I open flash back, look at the log tip: Error inflating class. Android support. V7. Widget. The SearchView. There should be no problem with the
code. The most likely problem is that the dependent library version number is compatible.
so to SDK project check and found that there are the red tip:

meaning is for all the support library must be the version number is consistent, otherwise may lead to crash.

Error C2664 in C + + compilation: cannot convert parameter 2 from “const char [5]” to “lpctstr” solution.

Reason: An error occurred while compiling the program due to setting the character set Unicode property when creating an MFC project
Solution 1:
In the VS Solution Manager window, right-click your project “Project”, then select “Properties” (the last item), click “Configuration Properties”, a + sign, expand it, then select the “General” TAB, the penultimate “Character set”, and select “Use multi-byte Character Set”. Problem solving.
Solution 2:

Use the call CString::AllocSysString();
Such as:
CString str_cap(“haha”);
(const WCHAR *) (str_cap. AllocSysString ()); .
(LPCTSTR) (str_cap AllocSysString ()); Same as above link:
Click on the open link

VMware reported an error: “internal error” internal error

Online method:
1, services.msc check the service, check that all the services have been opened, this method is invalid; 2. Administrator rights to run vmware, same error, invalid;
3. Delete the most recent *.vmem file under the error declaring virtual machine (record the state of each snapshot and the state of each snapshot). Restart the virtual machine and you will be reminded to choose below the snapshot (I cannot find it). Click OK and the virtual system will restart normally. – The method succeeded.

JVM start error: could not reserve enough space for object heap error

JVM startup error: Could not Reserve enough space for Object Heap error
First, understand what the parameters mean:
The

parameter

meaning

— Xms2G Xmx2G

represents the minimum and maximum JVM heap available memory

– XX: PermSize -xx :MaxPermSize represents the JVM’s metadata memory size

Solve problems:

    eclipse startup error is: Could not reserve enough space for object heap error
    current configuration is:
    -xms512m-xmx1024m-xx :PermSize 512M : many SO answers are recommended to use JAVA_OPTION variable, but one answer is that the 32-bit process of Windows 7 cannot get more than 1200M of memory. This answer is a little reliable, SO I tried it. Download and install the 64BIT JDK and boot it up without error.

Appendix:
When

    was converted to a 64-bit JDK, jrebel was found to fail. After a long search, one of the answers given on the official forums is to back up Jrebel32.dll, and then change the 64-bit Jrebel32.DLL to Jrebel32.dll. JVM out of memroy error report summary:
    Java heap space: Increases -XMXpermgen space: Increases -xx :PermSizeRequested Array size: Error means that the size of the array created exceeds the maximum heap size, so the apparent solution is to either increase the size of -XMX or reduce the size of the array to be created.

putty Network error:Software caused Connection abort solution – measured valid

First of all, I from the Internet Baidu a lot of answers, tried a lot of times are useless, a chance, let me find a real solution in the post.
Not wordy ~

    local computer pull up the command line win+R enter the regedit go to the registry find HKEY_CURRENT_USER find the software HKEY_CURRENT_USER\ software \SimonTatham delete putty in there and download puttyperfect~~~

Can help friends to solve more to see ~~~