Author Archives: Robins

The computer can’t turn on ERROR: NO BOOT DISK HAS BEEN DETECTED OR THE DISK HAS FAILED

Let’s see if the hard drive wire is connected. Two connecting wires, one big and one small


2. After entering through PE software, check whether there is a disk symbol
3. Press DEL to enter the motherboard 2113, go to Authentication → Secure Boot→ turn Enabled (as shown in Figure 52611) to Disabled (as shown in Figure 2) → F10 save and 4102 exit. (1 1653 must be saved and quit)
 
Figure 1
 

 
Figure 2

 
4. Press DEL to enter the motherboard and find Boot Options → Launch CSM → change Never to Always (as shown in Figure 3) → F10 save and exit.     
(Be sure to save and exit)
 
Figure 3

 
5. Press DEL to enter this time, adjust USB or CD to start and it will come out → F10 save and exit. (Be sure to save and exit)
 

ajax error 400 (Failed to load resource: the server responded with a status of 400 (Bad Request))

Failed to load resource: the server responded with a status of 400 (Bad Request)
http://localhost:8081/ezsonar/npm/appportmanage/saveEditAppPortManage
The reason for the error code 400: basically it is caused by the incorrect data format passed by the front desk.
But how this format is incorrect depends on how you understand how the data is transmitted.
For example, if the back end parameter is an int, but the front end passes a NULL, then the type cannot be cast, so 400.
Now for my reason, this is a bit weird: it’s because the backend model’s unreferenced constructor was overridden by the referenced constructor and reported an error of 400.
Write down the reason for my code error 400:
Foreground code:

	$.ajax({
		url: SUBSYSTEM_APP_NAME + "appportmanage/saveEditAppPortManage",
		type: "post",
		contentType: "application/json; charset=utf-8",
		data: JSON.stringify(data),
		dataType: "json",
		success: function (data) {
			if (data.success) {
				GMS.success(data.msg);
			} else {
				GMS.error(data.msg, 3000);
			}
		}
	});

First of all, the properties of the data object encapsulated in the foreground are consistent with the properties of the Java model in the background, which is not the cause of the problem. Don’t worry.
Notice, for those of you who reported 400 wrong, I’m saying that the front and back of all of my attributes are OK, but you reported 400 wrong, are you sure that your front and back objects are the same parameter types for all of your attributes?For example: a property is List&lt in front and background; String> ?Boolean?And so on and so forth. This is the most basic error gesture.
You’d better check the problem first and then continue to see if it is the same as the original cause of my error.
However, the Ajax type and various parameters can be matched with the background, which is not the cause of the problem.
Background code:

	@RequestMapping(value = "/saveEditAppPortManage")
	public @ResponseBody JsonResult saveEditRenameDetail (@RequestBody Appportmanage detail) {
		LOG.debug("---------------AppportmanageController:saveEditAppPortManage---------------");
		LOG.debug("---------------detail:" + detail + "---------------");

		return appportmanageService.saveEditAppPortManage(detail);
	}

Second, the front and back urls are also aligned, as are the attributes of the model. Then again, spring MVC’s annotation tag is fine.
The original code was OK. Or the above code, the program can work normally, run no problem.
But I made the following changes:
Modify the data model: the original model Java file is some of the properties and simple getter and setter, s then I due to business needs, to the original model to add an attribute, of course, also add the corresponding getter and setter, then demand because I added a constructor with parameters, because I’m new in other places the object model.
Then,,,
The problem arises.
I’ll just give you an error number of 400.
At first, I thought it was the problem of adding attributes, but after checking, I found it was not the problem.
The problem is the constructor for the Model Java file.
Solution: Add another no-arguments constructor to the Model Java file. The explanation is below.
As for why, it’s up to you to understand how spring MVC passes parameters between front and back.
Originally I didn’t add a constructor, each model will bring a with no parameters by default constructor, then the front desk the data format of encapsulation and attributes of the model as long as the background, and then spring MVC can own in the background, according to the model to the front desk to get data, corresponding to pack into the @ RequestBody Appportmanage detail, this parameter, is the premise of the implementation, your model has a default constructor, with no arguments, Then the system itself goes to new an object, and then it goes to load the data into it. Then you can use it.
Because, I have updated the model constructor, if you don’t write constructor with no parameters, so the original model’s own without arguments constructor, then the controler layer, is in the foreground of data obtained, to loading data, he will not according to your arguments constructor with a new object model you want, so that problems just appeared.
Then, after today’s error, you’ll know exactly how the data in the background and in the front corresponds. Originally I just thought, as long as the consistent data model is ok.
Now, you know, oh, it has to do with constructors.
Why did I delete the empty constructor?Because the IDE tells me that the constructor is useless, and I delete it. And then I was miserable. Oh, Sid!!
The reason I gave this error is a little bit deeper, because this error gives you an idea of how springMVC’s annotations work, and if you know IOC, which is what Spring talks about dependency injection and inversion of control, you’ll understand this error even better.
 
 

ubuntu-how to solve the error-Failed to fetch http://dl.google.com/linux/chrome/deb/dists/stable/Release

  

Error in Sudo Apt-Get Update:
“Failed to fetch http://dl.google.com/linux/chrome/deb/dists/stable/Release Unable to find expected entry ‘main/binary – i386/Packages in the Release file (Wrong sources. The list entry or malformed The file”
Solution:
1, open/etc/apt/sources list. D/Google – chrome. The list file (either with vim and gedit) :
sudo vim/etc/apt/sources list. D/Google – chrome. The list
2, modify the file contents:
is:
deb http://dl.google.com/linux/chrome/deb/ stable main
,
deb [arch = amd64] http://dl.google.com/linux/chrome/deb/ stable main
3, execute the update command again to pass the
sudo apt-get update
Reference:
http://www.omgubuntu.co.uk/2016/03/fix-failed-to-fetch-google-chrome-apt-error-ubuntu

Solve the problem of Failed to load resource: net::ERR_CONNECTION_REFUSED

The intuitive mistake in this problem is that the access is different. The first reaction is related to the firewall, but after thinking that I am visiting a local project, it has nothing to do with the firewall. Later, I thought it might be the wrong address. The IP number is 127.0.0.1, so it must be the wrong port. Sure enough, the front end was accessing port 8000, but the server was listening on port 9999. Just make it consistent.

Use sc command under CMD, report openservice failed 1060 error

Use sc command under CMD to delete the tomcat service and report openservice failed 1060 error
Reason: The status of the Tomcat service in the service is disabled. If the status is changed to automatic, sc DELETE Tomcat can be used
Note: Although the service name is Apache Tomcat, you do not need to add Apache when removing the Tomcat service
Conclusion:
There are two ways to delete Windows services:
Option 1: start — run — cmd.exe with the Windows command
, then type sc to see it. The method is simple:
sc delete “Service name” (if there is a space in the Service name, you need to put quotes around it)
as above: sc delete Service

open the registry editor and find the following key:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services generally the service will display a key with the same name here, just delete the key directly.

failed to render and update auto layout status for….

So this fail to Update Auto Layout error doesn’t affect the operation, but it’s always there, and it goes away occasionally
Check to see if you have IBDesignable in your code (you’re using third-party stuff with IBDesignable). Xcode8 is buggy, so it always has a Red Cross
Solution: One: You can find the third party to delete ib or leave it alone.

Second: When using XIB, delete the word bound to class, then restart Xcode and then add the word bound to class back when running…

I found IB_DESIGNABLE and commented out the sentence. Then I tried the second method, rebooted it, and it really did work. So I decided to blog about it and share it.
//IB_DESIGNABLE

http://write.blog.csdn.net/postedit

INSTALL_FAILED_NO_MATCHING_ABIS solution

The reason I saw this exception on the Internet was that I used Native Lib or JNI or something like that, which is just a messy package related to hardware anyway.
For example, I used an image compression package that involved JNI, and then the above exception occurred when I packaged it.
Solutions:
In the moudle build.gradle file of your app, paste the code in, note the android {} curly braces.

// 解决 native libraries 不支持cpu的体系结构。允许模拟器调试
splits {
    abi {
        enable true
        reset()
        include 'x86', 'armeabi-v7a','x86_64'
        universalApk true
    }
}
--------------------- 
作者:geekqian 
来源:CSDN 
原文:https://blog.csdn.net/geekqian/article/details/79032655 
版权声明:本文为博主原创文章,转载请附上博文链接!

This allows you to run directly into the emulator, but when you do this, multiple ApKs will be generated in the package, so comment out the above code when you release and rebuild the project to package. Remember to always rebuild projects!

Tencent Cloud server encountered “Active: failed (Result: start-limit)” error when starting lightdm

I installed the GUI on Tencent Cloud server and failed to start LightDM:
[root @vm_0_11_centos GDM]# systemctl start lightdm
[root @vm_0_11_centos GDM]# systemctl status lightdm
● lightdm.service-light Display Manager
Loaded: loaded (/usr/lib/systemd/system/lightdm.service; enabled; Vendor presets: enabled)
Active: failed (Result: start-limit) since Sat 2020-04-04 12:02:18 CST; 6s ago
Docs: man:lightdm(1)
Process: 8495 ExecStart=/usr/sbin/lightdm (code=exited, status=1/FAILURE)
Main PID: 8495 (code=exited, status=1/FAILURE)
Apr 04 12:02:17 VM_0_11_centos systemd[1]: Unit lightdm.service entered failed state.
Apr 04 12:02:17 VM_0_11_centos systemd[1]: Triggering OnFailure= dependencies of lightdm.service.
Apr 04 12:02:17 VM_0_11_centos systemd[1]: lightdm.service failed.
Apr 04 12:02:18 VM_0_11_centos systemd[1]: lightdm.service holdoff time over, scheduling restart.
Apr 04 12:02:18 VM_0_11_centos systemd[1]: Stopped Light Display Manager.
Apr 04 12:02:18 VM_0_11_centos systemd[1]: start request repeated too quickly for lightdm.service
Apr 04 12:02:18 VM_0_11_centos systemd[1]: Failed to start Light Display Manager.
Apr 04 12:02:18 VM_0_11_centos systemd[1]: Unit lightdm.service entered failed state.
Apr 04 12:02:18 VM_0_11_centos systemd[1]: Triggering OnFailure= dependencies of lightdm.service.
Apr 04 12:02:18 VM_0_11_centos systemd[1]: lightdm.service failed.
Solution:
because the libdrm version is too low, so just update.
[root @vm_0_11_centos ~]# yum update libdrm
[root @vm_0_11_centos ~]# systemctl start lightdm
[root @vm_0_11_centos ~]# systemctl status lightdm
● lightdm.service-light Display Manager
the Loaded: the Loaded (/ usr/lib/systemd/system/lightdm. Service; enabled; Vendor presets: enabled)
Active: Active (running) since Sat 2020-04-04 22:21:33 CST; 6s ago

My cloud server instance type is a standard SA1, CENTOS 7.5-64-bit system.

‘Conversion failed when converting date and/or time from character string.DB-Lib error message 241,

After connecting to the SqlServer database with pymssql, when inserting a block of data containing the time field into the database, the Conversion error is reported as follows:
‘Conversion failed when converting date and/or time from character string. Db-lib error message 241,
Process:
1, directly in the database to execute the insert statement

INSERT INTO [dbo].[ClustedResult]([outputScript],[classId],[startTime],[endTime]) VALUES(0x76A914E67550CD61C6D89DF67F4D5F8E0B4AD30013C65888AC,'493886f0-7387-11e7-ab02-047d7ba2a507','2017-07-28 19:24:14.431000','2017-07-28 19:24:14.431000')

An error was also reported, indicating that string and date conversion failed.
2, view the data type
of each field in the table: [startTime],[endTime] data type of two fields is datetime
There are 6 data types of sqlserver 2008 representing time on the Internet.
time, date, smalldatetime, datetime, datetime2, datetimeoffset;
Datetime
date and time section, can represent date range from January 1, 1753 AD 00:00:00 000 to December 31, 9999 23:59:59.997, accurate to 3.33 ms, it requires 8 bytes of storage space. The DateTime field type corresponds to the time format of YYyy-Mm-DD HH: MM: Ss.FFF, three F’s, accurate to 1 ms (ms), example 2014-12-03 17:06:15.433
Smalldatetime
date and time data from January 1, 1900 to June 6, 2079 are accurate to minutes. Smalldatetime values of 29.998 seconds or less are rounded down to the closest minute, and SmallDatetime values of 29.999 seconds or more are rounded up to the closest minute. 4 bytes of storage space is required.
Date
SQL Server 2008 newly introduced data type. It represents a date, without a time component, and can represent dates ranging from January 1, A.D., to December 31, 9999. Only three bytes of storage is required.
DateTime2
DateTime2 field type corresponding to the time format is yyyy-mm-dd HH: MM :ss.fffffff, 7 f, accurate to 0.1 microsecond (s), example 2014-12-03 17:23:19.2880929.
The data is read in the same format regardless of whether your field is datetime or SmallDatetime (e.g. 1900-01-01). A datetime doesn’t show its milliseconds, but it does show up in milliseconds during time comparisons, making the time periods not equal.
If it’s SQL Server 2005, use Smalldatetime to get half of the data, even if it doesn’t look any different when queried.
if you are SQL Server 2008, please use date. Although 3 bytes is not much different from 4 bytes, it has greatly improved in design and logical clarity.
If the SQL date function is used for assignment, the DateTime field type is GETDATE() and the DateTime2 field type is SYSDATETIME().
There’s a very detailed reference: http://www.csdn.net/article/1970-01-01/282777

http://blog.csdn.net/justdb/article/details/7575021
3. After a series of knowledge catch up with, look at the characteristics of time types in python

begin = datetime.datetime.now()
print type(begin)
print str(begin)

#运行结果:
<type 'datetime.datetime'>
2017-07-28 19:24:14.431000

4. The reason is that python and sqlserver have different time types: format. Offer two solutions:
Solution 1: Unify the Python Datetime format with the database format.
timeStamp = STR (datetime. Datetime. Now ())[0:-3] scheme 2: modify the database data type to a wider range of datetime2

Solve the problem that the Raspberry Pi cannot start (dependency failed for Local File Systems)

A mobile hard disk was mounted the day before yesterday, so it could not be started yesterday. The following error is reported:
dependency failed for /mnt/my_hd
dependency failed for Local File Systems

Ideas:
Since /dev/sda1 has not been found at boot time and cannot be loaded to report an error, comment out the contents of the fstab file about /dev/sda1 so that it does not work.
Specific solutions:
1, CTRL + D
2. Enter the password yahboom
3. Type:

nano /etc/fstab

4. Add “#” to the first string on the third line

5. CTRL + X, yes (save the file)
6, CTRL + T
7. Select “FSTAB” and press Enter.
8, CTRL + Alt + DELETE, restart.
9. After entering the system, in the console window:

su
mount /dev/sda1 /mnt/my_hd

Problem solving.