Author Archives: Robins

Registering in Windows10 regsvr32 xxx.ocx reported an error but the call to DIIRegisterServer failed with error code 0x80040200…

There is a machine to read the resident id card on the website. It needs to install some registered activeX controls
and then enter the specified directory to execute the following command
regsvr32 XXX. Ocx
reported an error:
but the call to DIIRegisterServer failed with error code 0x80040200

 
Baidu once, found the reason is very simple, need to use the administrator identity to run
Type CMD from the control panel and right click Run as Administrator

This time it worked
 

Reproduced in: https://www.cnblogs.com/qianjinyan/p/9405534.html

Modify the screen resolution after installing Ubuntu 16.04 (xrandr: Failed to get size of gamma for output default)

Ubuntu 16.04 has only one option after installation, 1024×768. Using the xrandr command has an error:

xrandr: Failed to get size of gamma for output default

You can’t set it using the CVT command, nor can you modify xorg.conf.
Solutions:

打开:/etc/default/grub
搜索:#GRUB_GFXMODE=640x480
编辑:640x480 改成你想要的分辨率,并取消前面的#
例如:GRUB_GFXMODE=1920x1080 
更新:sudo update-grub
重启: reboot

If the above method has not been solved, then there is another situation is the video card driver has not been installed, the need to reinstall the video card driver can solve the above problem.

mac Upgrade: httpd: apr_sockaddr_info_get() failed for bogon

Apache server startup prompt HTTPD: apr_sockaddr_info_get() failed for

Apache server startup prompt HTTPD: apr_sockaddr_info_get() failed for
After configuring Apache on RedHat Linux 5 and CentOS 5 servers, always report an error when starting or closing:
HTTPD: apr_sockaddr_info_get() failed for XX (host name)
HTTPD: Could not reliably determine the server’s fully qualified domain name, using 127.0.0.1 for ServerName
does not affect the normal start of apache though say! But it always felt like there was something wrong. Because an Apache startup process is stuck in the process
Found under the data, the original is the host name setting is not caused! Not in the/etc/HTTPD/conf/HTTPD. Set the ServerName conf so it will use the name of the host to replace, will first go to have a host defined in/etc/hosts.
. To solve this problem, set ServerName or enter your host name MYHOST in /etc/hosts, like this:
> Vi /etc/hosts
127.0.0.1 localhost.localdomain localhost XX (host name)
The command to view the hostname is: hostName
 
Additional errors that may occur:
Stopping HTTPD: [root@bogon xy]# service HTTPD restart
restart HTTPD: [OK]
Stopping HTTPD: [OK]
restart HTTPD: HTTPD: apr_sockaddr_info_get() failed for bogon
HTTPD: Could not reliably determine the server’s fully qualified domain name, using 127.0.0.1 for ServerName
Solutions:
Remove the # before ServerName from httpd.conf.
RedHat 5 with CentOS in the configuration file in/etc/HTTPD/conf/HTTPD. Conf. (this is the default operating system installation path)

Browser prompt: Source mapping error: request failed with status 404 Source URL: http://xxx.js Source mapping URL: jquery.min.map

Browser Jquery1.9.1 min.js newspaper script error no jquery.min.map file
 
I recently encountered this problem when Browsing personal websites
Let me first say what a Source map file is.
Source map file is after js file is compressed, the variable name of the file replaces the corresponding, variable location and other metadata data file, generally this file and min.js main file are placed in the same directory.
Such as the original variable is the map after compression, compressed by variable substitution rules may be replaced with a, then the source map file will keep a record of the mapping information, so that the benefits of that is to say, at the time of debugging, if there is some JS error, then the browser will by parsing the map file to merge compressed JS, the developers can use the code to debug, uncompressed, this will bring us a lot of convenience!
Solutions:
Remove the sentence “// @sourcemappingURL =jquery.min.map”

 
 

springboot : Failed to decode downloaded font 和 OTS parsing error

Hello, I’m Roast Duck:
I have seen many people who have similar problems with me, but they have not solved my problems:

Failed to decode the listed font and OTS Parsing Error:
Trying to move the wOFF file to another static resource folder that can be loaded, it still cannot be loaded.
The browser opens access directly to the login page. The guess is that the static resource for the font is blocked.
 
Please refer to this:
https://stackoverflow.com/questions/34037051/spring-boot-font-awesome-ots-parsing-error-failed-to-convert
Pom upon & lt; exclude> And & lt; include>


pom add < nonFilteredFileExtensions>
As shown in figure

Execution failed for task ‘:app:processDebugManifest’

Import packages butterknife package appear [androidx. Core: the core: 1.0.0] AndroidManifest. XML: make haste – 86 value = (androidx. Core. App. CoreComponentFactory)

Butterknife package latest address: https://github.com/JakeWharton/butterknife
implementation ‘com. Jakewharton: butterknife: 10.0.0’
annotationProcessor ‘com. Jakewharton: butterknife – compiler: 10.0.0’

Error details
Manifest merger failed : Attribute application @ appComponentFactory value = (. Android support. The v4. App. CoreComponentFactory) from [com. Android. Support: support – compat: 28.0.0] AndroidManifest. XML: make haste – 91
is also present at [androidx. Core: the core: 1.0.0] AndroidManifest. XML: value = “- 86 (androidx. Core. App. CoreComponentFactory).
the Suggestion: Add ‘tools: replace = “android: appComponentFactory” element to the at AndroidManifest. XML: 5:5 – the sons to override.

Solution 1: Add useAndroidX and enableJetifier as shown in the figure

android.useAndroidX=true
android.enableJetifier=true

Note:
this method does not need to add the classpath ‘com. Jakewharton: butterknife – gradle – plugin: 10.0.0’
but will import android. Support. V7. App. AppCompatActivity modified into import androidx. Appcompat. App. AppCompatActivity
is also all references Androidx package

Solution 2: Use the lower version of the package directly, as shown in the figure
Delete the build.Gradle plug-in at the top of the module, either one of the two below

apply plugin: ‘com.neenbedankt.android-apt’
apply plugin: ‘android-apt

The dependency in build.gradle under module is changed to :(only these two are needed)
// butterknife component injection

implementation'com.jakewharton:butterknife:8.6.0'
annotationProcessor'com.jakewharton:butterknife-compiler:8.6.0'

Note: the use of android package or the original
import android. Support. V7. App. AppCompatActivity

Mac reports an error zsh: fork failed: resource temporarily unavailable (reasons and solutions)

Mac report ZSH: fork failed: Resource Permanently (reason and solution)
MacOS version: 10.15.3 (19D76)
why
A few days ago, I used django-crontab to do the timing task and forgot to delete the task, which led to the continuous creation of processes in the background, and finally the terminal kept reporting errors, and the new browser and files could not be opened.
Check the following command to see that there are 1000+ processes in the background

 ps -ef | grep cron | wc -l

The solution
During this period, try to close crontab directly, but cannot close it all the time

sudo /usr/sbin/cron stop # 关闭命令
cron: cron already running, pid: 177

Final solution
First of all, empty the crontab task, delete what was created by what, for example, I passed django-crontab
So the command to remove the task is python manager.py crontab remove
Then batch delete the cron process

ps -ef | grep /usr/sbin/cron |grep -v grep | cut -c 9-15 | xargs sudo kill -9

Solve it!!
conclusion
The Mac exception occurs because the thread or open file exceeds the system limit. If such an exception is reported as an error and is frequent, and the restart does not work, you need to consider whether there is some program frantically starting the process in the background. Don’t go to modify the Mac thread/file limit, to find the root cause, if indeed because development demand process, then can consider to modify the Mac itself limits, otherwise just solve the abnormal surface, but the process is still on your background, constantly eat your system resources.

Quickly solve the problem of Vmware virtual machine “\\.\Global\vmx86”: the system cannot find the specified file

If your VMware virtual machine prompts this error:”

Unable to open kernel device "\\.\Global\vmx86": 系统找不到指定的文件. Did you reboot after installing VMware Workstation?
Failed to initialize monitor device.


Try this:
1. Shut down the virtual machine, download the green cracked version of Vmware and get the Vmware installation package
2. Unzip a folder, search for “vmx86.sys” in this folder, and copy
3. Enter this path: C:\Windows\System32\drivers, and search “vmx86.sys”. If this file exists, replace it (note that the backup is replaced)
4. Enter “Run” in the start menu: NET Start VMx86 and press OK;
5. Start the virtual machine and everything goes back to normal.

Note: This method is feasible for personal testing. Please refer to the network for some steps.

Install Xen virtual machine using virt-manager

directory
Install Xen Virtual Machine with Virt-Manager Install Xen Virtualization Install Virt-Manager check libvirtd service status Create Xen Virtual machine view issues encountered with virtual machine status

Install the Xen virtual machine using virt-Manager
This article focuses on how to install the Xen virtual machine on CentOS 7 using Virt-Manager. The following environments need to be prepared:
CentOS 7Xen virtualization Virt-managerVMware Workstation 12
Note: The desktop version of CentOS7 is installed on the same host as Xen virtualization and Virt-Manager for this environment


Install Xen virtualization
See my post on Installing Xen virtualization under CentOS 7 for details
Install the virt – manager
Use the following command to install

yum install -y virt-manager

Check the status of the libvirtd service
Use the following command to see that the service starts properly

systemctl status libvirtd


Create the Xen virtual machine
Open the virt-Manager interface

virt-manager


To connect to Xen virtualization, click File-> Add Connection, select Xen, where Hostname fill in Xen virtualization server IP
create virtual machine, right click Xen:localhost-> New opens the create page and selects the installation method specified.
input Network Install Network Install installation address
select the virtual machine memory and CPU configuration, the image installed in this paper is centos6.5-minnal version
select the virtual machine disk size
confirm the installation information (including the selection of Network configuration, whether to customize the configuration information), Check the first red box in the figure below if there is a custom requirement. click Finish to enter the installation interface. Installation steps are not described in this article, but you can find the installation tutorial by yourself
View virtual machine status

can be viewed through the virt-manager to enter the virtual machine command line by entering the following command

virsh


You can use help to view relevant commands. For example, enter the following command to see the virtual list and its status

list --all


Problems encountered
In the process of creating virtual machines using Virt-Manager, the following problems are encountered, and the solutions are attached for your reference.
:'internal error:process exited while connecting to monitor:qemu:could not load PC BIOS 'bs-256k.bin ' Unable to complete install:’internal error:process exited while connecting to monitor:qemu:could not load PC BIOS’ bs-256k.bin ‘ Just create a BIOS -256k.bin file under seabios directory

cp /usr/share/seabios/bios.bin /usr/share/seabios/bios-256k.bin

incapable to complete install:'interbal error:libxenlight failed to create new domain 'centos6.5' 1. There is a centos6.5 virtual machine in the current virtual machine list. Rename the currently created virtual machine or delete the existing virtual machine to
2. Use the command yum update qemu-img to update the file
3. Determine if the memory and CPU of the virtual machine being created is greater than the memory and CPU of the host, and ensure that the virtual machine’s resources are smaller than those of the host