Category Archives: How to Fix

[Fixed] Error:(3) Error retrieving parent for item: No resource found that matches the given name ‘android’

error message:Error:(3) Error retrieving parent for item: No resource found that matches the given name ‘android:TextAppearance.Material.Widget.Button.Borderless.Colored’.Error:(4) Error retrieving parent for item: No resource found that matches the given name ‘android:TextAppearance.Material.Widget.Button.Colored’.Error:(3) Error retrieving parent for item: No resource found that matches the given name ‘android:TextAppearance.Material.Widget.Button.Borderless.Colored’.Error:(4) Error retrieving parent for item: No resource found that matches the given name ‘android:TextAppearance.Material.Widget.Button.Colored’.

solution:
Use supported version 25.1.0. I was unable to reproduce the problem with a small project targeting an older version (24), but mainly with a support library version error. Try to move to at least major version 25, delete the entire build directory, and synchronize the project again. Note that changing the supported version will cause you to change compileSdkVersion to the same dominant version.
also checks carefully to see if the resource file has been explicitly defined for property 24 (as shown in the screenshot).

This means change your compileSdkVersion in Build.gradle to 25 and above! Others are not supported.

events.js:160 throw er; // Unhandled ‘error’ event ^ Error: write after end at Serv

In the process of writing nodeJS project, When I deleted some data in the database, I made the judgment of various conditions first, and then deleted the data after meeting them. The first time it is deleted, it can be successfully deleted, then repeat the action of deleting the last time, the following error will occur:
Events. Js: 160
throw er; // Unhandled ‘error’ event
^

error: Write after end
the at ServerResponse. OutgoingMessage. Write (_http_outgoing. Js: 439:15)
the at F: \ \ userHandler SL js: 355:35
the at F: \ \ mon SL js: 84:5
the at handleCallback (F:\SL\node_modules\ lib\utils.js:120:56)
at F:\SL\ node_modules.js :1243:5
at F:\SL\node_modules\mongodb-core\lib\connection\pool.js:461:18
at Combinedtickcallback (internal/process/next_tick.js:67:7)
at process._tickcallback (internal/process/next_tick.js:98:9)

Some said that nodeJS version is too high, and some dropped from 7 to 6. My version is 6.

Solutions:
I add a return after each condition; Statement to solve the above problem.

Git prompt error setting certificate verify locations

The git version 2.14.2
Git prompts an error setting for the certificate verify locations error
usually because the location of the SSL certificate was not found

two ways to solve:

1. Reconfigure certificate location
Windows certificates are generally installed in the mingw64/ SSL /certs/ca-bundle. CRT directory
configure certificate location

  git config --system http.sslcainfo  "$gitPath/mingw64/ssl/certs/ca-bundle.crt"

Note: $gitPath is git’s installation directory
 
2. Turn off SSL authentication

 git config --system http.sslcainfo  false

 

Securityerror: error ᦇ 2148: SWF file XXX cannot access local resources, only file system only

refer to: http://helpx.adobe.com/flash-player/kb/flash-builder-flash-player-throws.html

Error message: SecurityError: Error #2148: SWF file C:/Documents and Settings/Administrator/Adobe Flash Builder 4/domain_mgr_flex/bin – debug/domain_mgr_main. SWF cannot access the local resources C:/Documents and Settings/Administrator/Adobe Flash Builder 4/domain_mgr_flex/bin – debug/textLayout_4 0.0.10485. SWF. Only file system-limited SWF files and trusted local SWF files can access local resources.
at flash.net: : URLStream/load ()
at flash.net: : the URLLoader/load ()

the solution:
in the C: \ WINDOWS \ system32 \ Macromed \ Flash \ FlashPlayerTrust directory (if FlashPlayerTrust directory does not exist, can create a) add a file, such as: True.txt (file name can be anything from), C:\Documents and Settings\Administrator\Adobe Flash Builder 4\ Flex workspace path, of course, can also be set to C:\

or all the disc characters can be written:

C:\
D:\
E:\
F:\
Note: You will need to restart your browser after editing this trust.txt file.
Originally, I had FlashBuilder4.0 installed on my machine, so I didn’t have this problem when debugging SWF. FlashBuilder4.7 was installed later, but version 4.0 was not uninstalled, so running SWF in the 4.0 compiler will report this error, while version 4.7 will not, presumably due to workspace path conflicts.
Strangely, errors are only reported in Firefox, but not in IE. It seems that the Flashplayer of these two browsers is quite different.

[unity problem] what should I do if I encounter ‘Global::’ already contains a definition

Cs (7,14): error CS0101: The namespace ‘global::’ already contains a definition for’ LHtest’

Let’s first see if the code is okay. If you close UNITY,VS. Open it again, no effect.

So just copy and paste the entire correct code into another new.cs file. I’m going to run this new.cs file.

Then the problem is solved.

In another case, you create a.cs file with the same name, just change the name.

“There was an internal API error” in Xcode debugging;

Visit: here
I wrote a game demo a while ago. I took some time to optimize the following method today. I found that the following errors will be reported when Debugging on iPad.

At the beginning, I thought that I used a private API. Later, I carefully checked that there was no problem. Therefore, I began to use the common debugging method when the real machine debugging went wrong.
1. Necessary good habits, Product –& GT; The clear;
2. Delete the previously debugged program on iPad, run it again, OK, and solve the problem (unexpectedly easy); As for the specific reason, I found that when the error dialog box popped up, it happened to be the detection of certificates such as profile, which might have something to do with the identification detection of the real machine. No matter how much, the problem is solved;
3. I encountered this problem again today. It was found that the apps debugged on the real computer had a profile conflict with some apps on the iPad, that is, they Shared a profile. (added on 14 May 2013)
PS: today may no longer regrets about baidu and Google, don’t know if industry reason, sometimes some problem on the search technology, found that all these results given in baidu and Google really really can’t, the efficiency is too low, turn a few pages is less than what you want, don’t know the reason why is because the algorithm or because baidu too pursuit of commercial cause, so if you have any questions how sometimes asked baidu are not the answer, might as well try Google;

undefined reference to `pthread_create’ collect2: ld returned 1 exit status


Cause of the problem: the
pthread library is not the default library on Linux systems, and you need to use the static library libpthread.a to connect, so you need to link the library when you create a thread using pthread_create() and when you call the pthread_atfork() function to create a fork handler.

add -lpthread parameter
GCC mult-tcp-server. c-o mult-tcp-server. lpthread
mult-tcp-server. c for your source file, don’t forget to add header #include< pthread.h>

vs2013 wdk8.1 ERROR: Symbol file could not be found. Defaulted to export symbols for ntkrnlmp.exe

ERROR: Symbol file could not be found. Defaulted to export symbols for NTKRNLMP.exe
In the environment
Win10 1803
Vs2013 + wdk8.1
win764+ VMware
Setting in environment variables
_NT_SYMBOL_PATH
cache*C:\Symbols; C:\Symbols; SRV*C:\Symbols*http://msdl.microsft.com/download/symbols;
Note that in previous versions it is best to set disk C without changing the path



 
This is set in variables, but also set in WinDBg
Set debug-break only under stop
File-Symbol File Path -(cache*C:\Symbols; C:\Symbols; SRV*C:\Symbols*http://msdl.microsft.com/download/symbols; cache*c:/Symbolsl; srv*c:/Symbols*http://msdl.microsoft.com/download/symbols )
The path here is the opposite

MySQL error: column ‘ID’ in field list is ambiguous

1. Error message

ERROR 1052 (23000): Column 'id' in field list is ambiguous

2. Cause analysis
Column ‘ID’ is repeated in the field list. In fact, two tables have the same field, but the name of the table field is not preceded by the name of the table, so the reference is unknown. The prefix student is no problem.
3. Solutions

SELECT student.name, student.student_id, score.score FROM student INNER JOIN score ONstudent.student_id = score.student_id WHERE student.name='mio';

+------+------------+-------+

| name | student_id | score |

+------+------------+-------+

| mio  |          1 |    99 |

| mio  |          1 |    77 |

| mio  |          1 |    88 |

| mio  |          1 |    99 |

+------+------------+-------+

4 rows in set (0.00 sec)

Follow my technical official account “Ramble on ARTIFICIAL Intelligence”, and push high-quality articles every day

error: File not found by glob???

Several situations that lead to the above problems:
1. The package name of RPM package contains such special symbols as “[,]”;
2. When rM-IVH XXXX. RPM, XXXX packet name does not exist;
3. The directory name at the top of RPM package does not exist or has problems; — I have made this trap of the problem, it took several days to solve.
Solutions:
1. Modify the package name of RPM package through MV;
2. Add packages to install in the installation directory;
3. Correct the directory name of RPM package to keep it consistent with the directory specified in the installation software;

Reproduced in: https://www.cnblogs.com/noxy/p/5794801.html

File contains no section headers. File: File: / / etc/ yum.repos .d/

When executing the installation instruction using the yum command, File contains no Section Headers. File: file:///etc/yum.repos.d/
The reason is that there is no yum source configured in the configuration,
Solutions:
Method 1: Configure yum source and modify the /etc/yum.repos. D/cenos-base.repo file
Method 2: Delete the original file and download it again
Delete the original file RM-f /etc/yum.repos. D/cenos-base.repo
To download, wget -o/etc/yum repos. D/CentOS – Base. ‘http://mirrors.aliyun.com/repo/Centos-7.repo
Clean up the cache of Yum Clean All

R learning notes (1) — ARIMA model

In view of the existing tutorial (http://blog.csdn.net/desilting/article/details/39013825), in the operation of the problems and solutions
If you have to do d-order differences on a time series to get a stationary series, then you use the ARIMA(P, D, Q) model, where D is the order of the difference. ARIMA(P, D, Q) Model is fully known as Autoregressive Integrated Moving Average Model (ARIMA). AR is Autoregressive and P is an Autoregressive term. MA is the moving average, Q is the number of moving average terms, and D is the difference times made when the time series becomes stationary.
Here are some basic ways to view help:
A. Help ()
two

1. Open R interface
2. 3. Click on “packages” in the pop-up page and then go to “…”

3.
library(help=”MASS”)
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
data< – XTS (data,seq(as.POSIXct(“2014-01-01″),len=length(data),by=”day”)
Error in as. Vector (x, mode) :
cannot coerce type ‘closure’ to vector of type ‘any’
Solution: Just because the blogger did not replace the input data (source), it should be data< -xts(source,seq(as.POSIXct(“2014-01-01″),len=length(source),by=”day”))

acf < -acf (data_diff1,lag.max=100,plot=FALSE)
Error in na.fail. Default (as. Ts (x)) : there is a missing value
in the object
Solution: acf & lt; – acf(data_diff1,lag.max=100,na.action = na.pass,plot=FALSE)
However, in the ACF figure displayed at this time, the maximum value of the horizontal axis coordinate (hysteresis value) is not 100, and the horizontal axis coordinate grows exponentially with the value of E +00 and E +02.
After checking the specific value of ACF, it was found that the original horizontal coordinate of lag=1 was 86400, which should be changed to the unit of seconds (?). .
There is no way to solve this problem at present, just put “data< – “(data, seq (as POSIXct (” 2014-01-01″), len = length (data), by = “day”)) “this step can be omitted…

data.fit < – arima (data, order = c (7, 0), seasonal = list (order = c (1, 0), the period = 7))
Here’s a seasonal setup for ARIMA models, the setup rules are unclear.
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
The final result is the same as the original blogger
Question: Do I need to do a unit root test?(Verified to be stationary time series)