Tag Archives: ProgrammerAH

When using CSS to write the registration page, we found that the editing effect is not effective

When using CSS to write the registration page, we found that the editing effect is not effective

Project scenario: learning the combination of CSS and HTML Problem Description: in HTML writing, the text effect is not effective

Project scenario: learning the combination of CSS and HTML

tip: here is a brief introduction of the background of the project: when learning the combination of CSS and HTML recently, I encountered a problem that I don’t know how to describe in the process of writing the registration page


Problem Description: in HTML writing, the text effect is not effective

Receiving data code in idea:

 .rg_left > p :first-child{
            color: #FFD026;
            font-size: 20px;
        }
        .rg_left > p:last-child{
            color: #A6A6A6;
            font-size: 20px;
        }

you can’t add a space between P and colon. Although you won’t report an error, the effect displayed on the web page doesn’t take effect. At first, I thought it was Google’s problem. Later, after constant attempts, I solved the problem


Carefully check whether there are spaces in the syntax during the code writing process. Although idea will not report errors, the final implementation effect will be inconsistent with the plan

Error type referred to is not an annotation type:RedisCache

Today, the framework wants to use annotation to implement section function, and the result is error type referred to is not an annotation type:RedisCache

The code is as follows:

Note:
the

@Target({ ElementType.METHOD })
@Retention( RetentionPolicy.RUNTIME )
@Inherited
@Documented
public @interface RedisCache {
    
    public String key() default “”;
    
    public long TTL() default 0L;

}

Section:

    @Around(“@annotation(redisCache)”)
    public void redisCache(ProceedingJoinPoint joinPoint,RedisCache redisCache){
        String targetName = joinPoint.getTarget ().getClass().getName();  
        String methodName = joinPoint.getSignature ().getName();  
        Object[] arguments = joinPoint.getArgs ();  
        Object result = null;  
        String cacheKey = getCacheKey(targetName, methodName, arguments);  
        System.out.println (“hahaha” + cachekey);
}
the original annotation must be passed in as a parameter, and the red part must be the same.

Error: child process failed, exited with error number 1

Error: child process failed, exited with error number 1

It’s usually a matter of permissions, or there is no corresponding path

Check steps: add a parameter after startup to export the log to a writable directory

./mongod –fork –logpath=/tmp/ mongod.log

Then look at the questions as follows:

2017-02-22T01:33:34.229+0800 I CONTROL  [main] ERROR: Cannot write pid file to /var/run/mongodb/ mongod.pid : No such file or directory

This means that there is no such directory (/ var/run/mongodb /)

Then create a new one, MKDIR – P/var/run/mongodb/

The normal restart is as follows:

root@sz :~/soft/mongodb342/bin# ./mongod -f  /etc/mongodb/ mongod.conf
about to fork child process, waiting until server is ready for connections.
forked process: 7482
child process started successfully, parent exiting

Upload Appstore error itms-90725

Recently, when uploading to the app store with Xcode 8, an error was reported. Error itms-90725: “SDK version issue. This app was built with the IOS’ 10.0 ‘SDK. All new IOS apps submitted to the app store must be built with the IOS’ 11.0′ SDK or later, included in Xcode [9.0] or later. Please update Xcode and rebuild your app.”

resolvent:

(1) Download an Xcode 9 and package it directly with Xcode 9

(2) Download Xcode 9 to display the content of the report. Go to IOS’ 11.0 ‘SDK through the following path

Contents/Developer/Platforms/ iPhoneOS.platform/Developer/SDKs/iPhoneOS11 . 2.sdk copy the last file to the same path of Xcode 8, delete the original 10:00 SDK, and then you can upload it successfully
0

Node.js Error: cannot find module ‘xxx’

Create a new notepad on the desktop, write the familiar Hello word, and save it with the suffix JS

What I wrote is just a helloword, which doesn’t involve any package management tools, so don’t bother with NPM. This error is simply that I can’t find the file.

Simple solution: press the shift key in the blank space of the desktop without putting the right mouse button, select here to open the command window, and then edit it properly, or type the path in the DOS interface.

Conclusion: in fact, it is a problem of path~

CONDA list error

Solution: computer properties – advanced system settings – environment variables – system variables – find path, edit – add D: (anaconda3) scripts (according to your own installation path) to the variable value, and separate it from the previous “;” (input method switch to English state) – OK

MySQL error 1054 (42s22) unknown column ‘password’ in ‘field list’

This intention is to change a user’s password. The command found on the Internet is as follows

1

MySQL & gt; update user set password = password ("new password") where user = "user name";

Error 1054 (42s22) unknown column 'password' in 'field list'

The reason for the error is that there is no password field in MySQL database of version 5.7, and the password field is changed to authentication_ string

Solutions to yarn install error reporting

../vue-hackernews-2.0> yarn
yarn install v1.12.3
[1/5] Validating package.json...
[2/5] Resolving packages...
[3/5] Fetching packages...
info [email protected]: The platform "win32" is incompatible with this module.
info "[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation.
error [email protected]: The engine "node" is incompatible with this module. Expected version ">=4 <=9". Got "10.14.2"
error Found incompatible module
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.

Solution:

yarn config set ignore-engines true

Error processing condition on org.springframework.boot . autoconfigure.context.Property Error report solution

java.lang.IllegalStateException : Error processing condition on org.springframework.boot . autoconfigure.context.PropertyPlaceholderAutoConfiguration . propertysourcesplaceholderconfigurer error resolution

    <dependency>
		<groupId>org.springframework.boot</groupId>
		<artifactId>spring-boot-starter-tomcat</artifactId>
<!--	<scope>provided</scope>-->
	</dependency>

In the POM file, add the scope annotation
and

	<dependency>
		<groupId>javax.servlet</groupId>
		<artifactId>javax.servlet-api</artifactId>
		<version>3.1.0</version>
	</dependency>

Error: EBUSY: resource busy or locked, rmdir ‘

NPM error: EBUSY resource busy or locked

This error occurs because our files are occupied, which is caused by the fact that the folder or file may be used in other places and cannot be deleted,

1. Try NPM cache clean to clear the cache

2. Try to close the project folder and the command line and restart

Because the computer is stuck, force to restart the computer and open idea idea to report an error on line 1: no content is allowed in the foreword.

Because the computer is stuck, it is forced to restart the computer and open idea for JUnit unit test

Idea reported an error. Error:Failed to load project configuration: cannot parse xml
file E:\ project.idea \ workspace.xml : error on line 1: content is not allowed in foreword.

Solution:

Search in folder workspace.xml Paste the contents into the workspace.xml It can be
Path:
D::