With splashtop The software is incompatible. Just uninstall it
With splashtop The software is incompatible. Just uninstall it
Recently upgraded pod reported an error, solution
1.brew cleanup -d -v
two brew install cocoapods
3. Installation failed brew link cocoapods
Update pod
brew upgrade cocoapods
after vscode upgrade, open the java file, and vscode pops up:
Sorry, there was a problem activating IntelliCode support for Java. For more information
Please see the "Language Support for Java" and "VS IntelliCode" output windows
the reason is that the language support for Java by red hat extension version above 0.65 only supports versions above java11, so it will revert to versions below 0.64.1
SHIYO
Using the above method, we should show the main function in rnx2rtkp. C, otherwise it will conflict with the external main function
In addition, the compiler must
Modify rtklib. H and add
?Define envelope
#define ENAGAL
#define ENACMP
#define ENAQZS
#define ENAIRN
Otherwise
When the convrnx function finishes executing, exits the dynamic library and returns to the main function, the “run time check failure # – 2 – stack around the variable ‘opt #” pop up in debug mode Is abnormal. The exception does not pop up in release mode. On the network about this exception, the main body thinks that it is caused by memory out of bounds, and the author has not found out opt yet_ The reasons of variable out of bounds will be further studied in the future. “Project – & gt; Configuration properties – & gt; c/c+ ±& gt; Code generation – & gt; The basic runtime check can be changed to the default value.
From Shang Zhenghui Science Blog
http://wap.sciencenet.cn/blog-3386358-1138019.html?mobile=1
IO Error: The Network Adapter could not establish the connection
The Network Adapter could not establish the connection
The Network Adapter could not establish the connection
Connection timed out: connect, socket connect lapse 21004 ms. /10.10.10.3 1521 0 1 true
Connection timed out: connect, socket connect lapse 21004 ms. /10.10.10.3 1521 0 1 true
Connection timed out: connect
Connection timed out: connect
the database is 19C rac PDB environment, the current test even one of the VIP address, through the VPN, sqlplus and PL/SQL tools can connect to the database, but with Oracle sql The developer tool reported an error. Later, it tried dbeaver and dbvisualizer. It’s strange.
When using the dbeaver tool, we find that the connection is jdbc:oracle :thin
Think of these tools to go is it, so query
By searching jdbc:oracle : the network adapter could not establish the connection
Find the configuration file below:
Add this Addvmoption – DJava. Net. Preferipv4stack = true restart the client tool and connect again successfully.
relevant:
Dbeaver is modified as follows: dbeaver.ini
add to
-Djava.net.preferIPv4Stack=true
resolvent:
After opening fiddler, click Tools – & gt; In options, set as follows:
(1) HTTPS:
(2) connections
(3) gateway
(4) after setting, click OK
Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience.
For more help, check http://xhr.spec.whatwg.org/.
Get the first value: undefined
Uncaught Error: Error calling method on NPObject.
Uncaught
Error: Error calling method on NPObject.
2. Error reason
function windowOnload() {
Report.LoadFromURL("student.grf?date="+(new Date().getTime()));
$.ajax({
url:"param/isPrint",
type:"get",
dataType:"json",
async:false,
}).done(function(resp){
if(dt.success==false){
return;
}
var isPrint=resp.isPrint;
$.ajax({
url:"student/stu/findStu",
type:"get",
dataType:"json",
data:{},
async:false
}).done(function(data){
if(!data){
return;
}
var report = JSON.stringify(data);
Report.LoadDataFromAjaxRequest(report,"application/json;charset=UTF-8");
Report.Print(isPrint);
});
});
}
When making Report by Grid++Report, whether to open the print window is controlled by a parameter isPrint; When isPrint=true, the print window is displayed, otherwise it is not displayed. However, if the query results do not have this parameter and are used directly in Print(isPrint), an Error Error will be reported calling method on NPObject
3. Solutions
Add the judgment before report.print (isPrint) USES this parameter
function windowOnload() {
Report.LoadFromURL("student.grf?date="+(new Date().getTime()));
$.ajax({
url:"param/isPrint",
type:"get",
dataType:"json",
async:false,
}).done(function(resp){
if(dt.success==false){
return;
}
var isPrint=resp.isPrint;
$.ajax({
url:"student/stu/findStu",
type:"get",
dataType:"json",
data:{},
async:false
}).done(function(data){
if(!data){
return;
}
var report = JSON.stringify(data);
Report.LoadDataFromAjaxRequest(report,"application/json;charset=UTF-8");
Report.Print(isPrint?true:false);
});
});
}
Solution:
The original code looks like this:
var app = require('app');
var BrowserWindow = require('browser-window');
To be amended as follows:
const electron = require('electron');
const app = electron.app;
const BrowserWindow = electron.BrowserWindow;
Cause of error: the version of electron used is too new, and this API has been removed in electron v1.0.0. “Cannot find module…” appears again Basically, it’s all because the module is directly introduced by require. If there are errors in the introduction of other modules, you have to check the API now. Not all of them are “const Balabala”= electron.balabala ”For example, the introduction of IPC is:
const ipc = electron.ipcMain;
Today, I encountered a problem when configuring pycaffe environment. I need to execute it when installing the library
for req in $(cat requirements.txt); do pip install $req; done
sudo pip install -r requirements.txt
Command, always report red error. Finally, sort it out.
First, there are various kinds of permission denied, which are finally solved by the root account operation.
Next, after all the others are installed, it’s hard to install IPython. You can install it with PIP install IPython code>
alone, and the error is:
command "Python" setup.py egg_ Info "failed with error code 1 in/TMP/pip-build-a63c8f/IPython/
after searching, we find the reason: the default version of IPython is too high, so we can only reduce the version manually.
pip install ipython==8888
The above command entered a non-existent version, so that all existing versions will be listed in the prompt.
After trying, the 6 and above versions all report errors, and finally use the highest version of 5.
sudo pip install ipython==5.5.0
Execute sudo PIP install - R again requirements.txt code>, there is a piece of
requirement already satisfied code>. It's done!
ps:
To be honest, atom and its plug-ins are very powerful, but the installation process is very painful. I installed the minimap mini map plug-in, but it didn’t work in any way. There was no response in toogle in the menu, and there was almost no information.
Cause of error: I interpret it as a conflict between minimap and other plug-ins. The most controversial plug-in is activate power mode. The combo effect on the right side just occupies the position of the small map. Even if it is disabled, it is not easy to use. It must be uninstalled. At that time, he installed it just for fun. It’s easy to be blind after a long time, so he decisively unloaded it.
Solution: uninstall activate power mode, restart atom and get it done.
After writing the websecurityconfig class that inherits the websecurityconfigureradapter class, we need to define authentication in the configure (authentication manager builder auth) method, which is used to obtain information sources and password verification rules. (the name of the configure function doesn’t matter. The official name seems to be configureglobal (…) )It is important to configure the authenticationmanagerbuilder in the class annotated by @ enablewebsecurity or @ enableglobalmethodsecurity or @ enableglobalauthentication).
The source of authentication information I used at the beginning was in memory authentication. The code is as follows
protected void configure (authentication manager auth) throws exception { code> // inmemoryauthentication gets code> from memory auth.inMemoryAuthentication ().withUser("user1").password("123456").roles("USER");
}
The login page of spring security is used. As a result, when logging in, the user name and password are correct, and the resource cannot be opened, so it still stays on the login page. There is no passwordencoder mapped for the ID "null".
Baidu found that this is because spring security 5.0 added a variety of encryption methods, but also changed the password format.
Let's take a look at the official documents. Here are the original words of the official documents:
-------------------------------------------------------------------------------------------------------------------
The general format for a password is:
{id}encodedPassword
Such that id
is an identifier used to look up which PasswordEncoder
should be used and encodedPassword
is the original encoded password for the selected PasswordEncoder
. The id
must be at the beginning of the password, start with {
and end with }
. If the id
cannot be found, the id
will be null. For example, the following might be a list of passwords encoded using different id
. All of the original passwords are "password".
{bcrypt}$2a$10$dXJ3SW6G7P50lGmMkkmwe.20cQQubK3.HZWzG3YB1tlRy.fqvM/BG {noop}password {pbkdf2}5d923b44a6d129f3ddf3e3c8d29412723dcbde72445e8ef6bf3b508fbf17fa4ed4d6b99ca763d8dc {scrypt}$e0801$8bWJaSu2IKSn9Z9kM+TPXfOc/9bdYSrN1oD9qfVThWEwdRTnO7re7Ei+fUZRJ68k9lTyuTeUp4of4g24hHnazw==$OAOec05+bXxvuu/1qZ6NUR+xQYvYv7BeL1QxwRpY5Pc= {sha256}97cde38028ad898ebc02e690819fa220e88c62e0699403e94fff291cfffaf8410849f27605abcbc0
-------------------------------------------------------------------------------------------------------------------
The storage format of passwords in spring security is "{ID}.....". The front ID is the encryption method, the ID can be bcrypt, sha256, etc., followed by the encrypted password. In other words, when the program gets the passed password, it will first find the ID included by "{" and "}" to determine how the subsequent password is encrypted. If it cannot be found, it will be considered that the ID is null. This is why our program will report an error: there is no passwordencoder mapped for the ID "null". In the example of official documents, various encryption methods are used to encrypt the same password. The original password is "password".
If we want our project to log in normally, we need to modify the code in configure. We need to encrypt the password from the front end in some way. Spring security officially recommends using bcrypt encryption. So how to encrypt the password?Just specify it in the configure method.
After modification, it looks like this:
protected void configure (authentication manager auth) throws exception { code> // inmemoryauthentication gets code> from memory auth.inMemoryAuthentication ().passwordEncoder(new BCryptPasswordEncoder()).withUser("user1").password(new BCryptPasswordEncoder().encode("123456")).roles("USER");
}
After inmemoryauthentication(), there is ". Passwordencoder (New bcryptpasswordencoder())", which is equivalent to using bcrypt encryption to process the user password when logging in. The previous ". Password (" 123456 ")" is changed to ". Password (New bcryptpasswordencoder(). Encode (" 123456 ")", which is equivalent to bcrypt encoding and encryption of the password in memory. The comparison is consistent, which indicates that the password is correct and login is allowed.
If you are also using the password from the memory, then according to the above modification should be successful login, no problem.
If you use to store the user name and password in the database, you usually use bcrypt code to encrypt the user password and store it in the database. And modify the configure() method, add ". Passwordencoder (New bcryptpasswordencoder())" to ensure that users use bcrypt to process the password when they log in, and then compare it with the password in the database. As follows:
// inject the implementation class of userdetailsservice code> auth.userDetailsService (userService).passwordEncoder(new BCryptPasswordEncoder());
reprint https://blog.csdn.net/canon_ in_ d_ major/article/details/79675033
There are several solutions:
1. If the original git used in sorcetree is embedded git, you can try to switch git to git of the system (if Git is installed in the system, you can install it yourself if not)
2. Currently, sourcetree uses git of the system, and upgrades git of the system to the latest version
I’m the second case
The GIT of the current sourcetree can be viewed in the following ways, and the grayed one is the current one