Tag Archives: ProgrammerAH

Citrix receiver error number 2320

Citrix Receiver error number 2320

After installing the citrix receiver, click the shortcut to start the application, the above error occurs
solution:
open the registry to search allowhotkey
2 to delete the allowhotkey value
Note, please backup the key value before deleting!

Reproduced in: https://blog.51cto.com/141686/2121024

Unrecognized Windows Sockets error: 10106: solution to create

Socket cannot be created on a Windows system, resulting in many problems such as inaccessible, service cannot be created

Operational environment error situation resolution reference

The operating environment
Win7, the latest version of Eclipse, JDk8, Redis3.x, Maven3.5.x
Error scenario
Personal error reporting using Java client operation RedIS (non-clustered mode) :

Unrecognized Windows Sockets error: 10106: create
。。。

Other situations
When Tomcat in Eclipse starts up, it complains that the port is occupied by undertown/ when Tomcat starts up, HTTP cannot be accessed
At the code level, in the development environment, the IDE finds no bugs, almost inexplicably
To solve
Just follow the steps
Open the command prompt as an administrator (right-click in win7 attachment command operator , select run in administrator mode, win8 or 10, search command operator in the menu first, and then right-click…) Run netsh winsock reset restart the computer
reference
https://blog.csdn.net/u011019141/article/details/79154696

About fatal error in GC: too many threads

One of the programs I wrote before has been tested on one machine and has not been tested on another. I can’t figure out why. At first I thought it was a computer problem, but later I found that it would not appear in the place where the network is good, and the place where the network is bad is often seen. At the time of double code is found written in the Update, a StartCoroutine invoke the WWW class, every call Update will open a thread calls the WWW, under the condition of network good WWW can be returned in time, there will not be Too Many threads, once the network condition is bad, this way has been pulling thread, there waiting for the thread to return again, leading to excess thread, appear “Too Many threads”, I used the solution is put WWW calls in a while (true), Each call to WWW must wait for the last WWW return.

error 1962:no operating system found.boot sequence will automatically repeat.  

Error 1962: No operating system found. Boot sequence will automatically repeat.
 
Error reason: The operating system could not be found
Fault cause:
Today, while setting the BIOS password, I inadvertently set the Security Boot boot entry on the BIOS interface to enable
It was found that the computer could not start normally, and the reasons were as follows:
1. Security Boot set to enable means that the UEFI can start safely, and the system and driver must be formally signed before they can be booted and turned on. CSM is automatically disabled when changing Security Boot to Enable.
2.CSM is a compatible support module.CSM is enabled to support UEFI and non-UEFI startup. If CSM is disabled, we will not be able to use the informal signing system we installed ourselves.
 
Solutions:
1. First change Boot Security to disable
2. Click Startup above, find CSM and set to Enable
3. Press F10 to save and exit
 
Problem solved!!

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

error: invalid compressed data to inflate file #14: bad zipfile offset (local header sig):

The reason is that the zip file is too large to be extracted directly by using the command unzip name.zip.
Solutions:
1. See the blog on CSDN that jar XVF full.zip is used for decompression, and the actual measurement can be done;
One stateoverflow option is zip-f file.zip --out file-large.zip and then use the command unzip file-large.zip.

HTTPError HTTP Error 500 INTERNAL SERVER ERROR

Problem description
django + mysql + collect.py
When using the collection.py script to collect information into the library, the URllib request is an error, but the data is already in the library

Traceback (most recent call last):
  File "collectRHEL.py", line 201, in <module>
    req = urllib2.urlopen(url, url_encode)
  File "/root/.pyenv/versions/2.7.11/lib/python2.7/urllib2.py", line 154, in urlopen
    return opener.open(url, data, timeout)
  File "/root/.pyenv/versions/2.7.11/lib/python2.7/urllib2.py", line 437, in open
    response = meth(req, response)
  File "/root/.pyenv/versions/2.7.11/lib/python2.7/urllib2.py", line 550, in http_response
    'http', request, response, code, msg, hdrs)
  File "/root/.pyenv/versions/2.7.11/lib/python2.7/urllib2.py", line 475, in error
    return self._call_chain(*args)
  File "/root/.pyenv/versions/2.7.11/lib/python2.7/urllib2.py", line 409, in _call_chain
    result = func(*args)
  File "/root/.pyenv/versions/2.7.11/lib/python2.7/urllib2.py", line 558, in http_error_default
    raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
urllib2.HTTPError: HTTP Error 500: INTERNAL SERVER ERROR

Solution idea, test method
First, clear the data in the library, modify some ORM field to make its length less than the length of the data to be inserted, which is bound to make an error, and then request with urllib and URllib2 respectively as the last test, but this time give enough length, and then test with urllib and urllib2 respectively
The test results
Whether it’s URllib or URllib2, it’s going to go wrong and whatever module you’re using, it’s going to be fine
conclusion

1. Determine the length of the database field in the ORM model
2. In fact, urllib.urlopen() or urllib2.urlopen() does not matter much

Error: the solution to the illegal character ‘\ ufeff’

An error occurred while compiling the Scala file with scalac today, with the following error message:

There are many explanations on the Internet about the cause of the error, so I won’t repeat it here, but directly say the solution:
Using Notepad++ or similar software, convert to utf-8 bon-free coding format.

Scalac Helloworld.Scala again, OK.

Of course, the Java language has the same solution.

ERROR in native method: JDWP No transports initialized, jvmtiError=AGENT_ERROR_TRANSPORT_INIT(197)

The error message is as follows:

FATAL ERROR in native method: JDWP No transports initialized, jvmtiError=AGENT_ERROR_TRANSPORT_INIT(197)
ERROR: transport error 202: handshake failed - connection prematurally closed
ERROR: JDWP Transport dt_socket failed to initialize, TRANSPORT_INIT(510)
JDWP exit error AGENT_ERROR_TRANSPORT_INIT(197): No transports initialized [../../../src/share/back/debugInit.c:750]

solution:

Add the following line to the /etc/hosts file
127.0.0.1 localhost localhost

in case of such a problem, please follow the following steps to check:
1. Set host:127.0.0.1 localhost; 2. Set the debug port of MyEclipse to see if it is consistent with the debug port of tomcat; 3. Check to see if any other running process occupies the debug port; 4. Configure the firewall to allow javaw.exe to access the network.

Solving GitHub push error: the requested URL returned error:403 Forbidden while accessing

Resolve Git push errors
The requested URL returned error:403 Forbidden while accessing
 
Answer: Private project, no permissions, enter the username and password, the latter remote address is of this type: vi.git/config

will

[Premote “origin”]
url=https://github.com/ user name/repository name. Git
Modified to

[Premote “origin”]
Url =https:// username: password @github.com/ username/repository name.git
 

error: invalid use of non-static member function

Transfer learning: https://blog.csdn.net/bill_ming/article/details/6872165
#include < iostream>

using namespace std;
class A
{
public:
A (int I)
{
A = I;

} int fun (int) b
{
return a * c + b;

} int c;
private :
int a;
};

int main()
{
A x(18);
int A: : * PC;
PC = & amp; A::c;
x. * PC = 5;
int (A: : * pfun) (int);
pfun = A: : fun;
A *p = & x;
cout & lt; < (p-> *pfun)(10)< < endl;

return 0;
}

error: error: invalid use of non-static member function ‘int A::fun(int)’|

int (A::*pfun)(int)=A::fun;
=
int (A::*pfun)(int)=& A::fun;
 
In C++, for something that consists of the class name plus two colons plus A member name (quilified-id), such as: A::x, A::x can only represent an left value if x is A static member of class A.
The default conversion from a function type to a function pointer type only works if the function type is an lvalue. For non-static member functions, there is no default conversion from function type to function pointer type, so the compiler does not know what to do with the
p = A::f
.
 
(1) To say that the address of the function is not certain, because the non-static member function pointer can have polymorphic behavior, so, at least at compile time, its address is really not determined.
(2) although all compilers will certainly generate only one copy of the code for a class’s non-static member functions (either at compile time or at run time), this is different from non-static member variables, which have a separate copy for each object. But In my opinion, this is still an implementation detail of the compiler, not a language feature. From an abstract language point of view, non-static member functions, like non-static member variables, cannot be left valued without an object instance.