solve the Ajax cross-domain problem.Append a workaroundThe pursuit of endless, in the process of Google, inadvertently found a dedicated to solve cross-domain problems of the jquery plugin-jquery-jsonp.With the first approach, the use of the Jsonp plugin is simpler, and the server-side code requires no changes.Take a look at how to use the JQUERY-JSONP plugin to solve cross-domain problems.var url= "Http://localhost:8080/WorkGroupManagment/open/getGroupById" + "? id=1callback=?"; $.jsonp ({
Jstack applicationsFirst by: Ps-ef|grep JavaGet the Java PIDSee which thread is consuming the most resources:Find out the CPU-intensive threads in the process, and use the PS-LFP pid or ps-mp pid-o thread, Tid, time, or top-hp PID command to see all the thread usage under the process.found that thread 21742 occupies the most.Convert the most CPU-intensive thread ID (21742) to 16 binary命令:printf"%x\n"21742 的到 线程值 :54eeTo view Jstack generated files:Jstack PID | grep tidExample: Jstack 21711 | gre
Problem Description:no application data foundHow to resolve:sudo apt purge gnome-software ubuntu-softwaresudo apt autoremovesudo apt install gnome-software ubuntu-softwareStarting Ubuntu software on 16.04 cause a ' internal error '. Reinstalling it totally fixed it. It upgraded some packages which I presume were the cause of the problem.Other fixes didn't work on my new Ubuntu 16.04 LTS installation, but the expedient of reinstalling did!Troubleshoot
First install VMware in WindowsInstall Linux with VMware ( many online tutorials are not mentioned here )Click Install VMware Tools in VMwareIn this case, there is a VMware Tools installation package in the/dev/cdrom directoryMount to another directory mount/dev/cdrom/mntIn the/MNT directory there will be a tar.gz compressed package, extracted to another directoryGo to the unpacked directory and execute the./vmware-install.plIn this line of time, if you keep looping,The path "No" is a valid path
InformationPart/--asprimary--fstype= "Ext4"--ondisk= $disk--size=24576Part swap--fstype= "swap"--ondisk= $disk--size=8191EofWrites the identified disk name to the temporary file/tmp/part-include according to kickstart syntax, and then modifies the portion of the partition parameter in the Kickstart file to invoke the contents of the/tmp/part-include file%include/tmp/part-includeComplete sections such as:650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M01/7E/1C/wKiom1b3gezSk2idAACHTj3GzXw
Ubuntu system Create new user cannot use Tab key to resolve new user supportadduser new user name passwd New user name to add new User II, create home directory # CD/ home1. Create home directory: # mkdir New User's name 2. Copy environment variable template file: # cp/etc/skel/.b* support# cp/etc/skel/.p* support3. Modify Permissions # Chown-r Support:support support# chmod 770 support www.2cto.com Third, give root permission method one: Modify the/etc/sudoers file, find the following line,
Service Find the root of the problem in:/etc/mysql/my.cnf [email protected]:/etc# cd mysql/ [email protected]:/etc/mysql# ls conf.d debian.cnf Debian-start my.cnf [email protected]:/etc/mysql# vim my.cnf Here are the settings for Mysqld.sock, which is not found when MySQL follows this default setting. If changing the path problem here can be cumbersome, use the following approach to solve the problem: [email protected]:/# sudo/etc/init.d/mysql Restart * Stopping MySQL database server mysqld [OK
throws an exception thrown by the parent class, because subclasses can solve some problems with the parent class and cannot have more problems than the parent class. The subclass method can only be accessed more than the parent class, and cannot be smaller. If the method of the parent class is private, then the subclass does not have an override limit, which is equivalent to adding a new method to the subclass.Notice the following points in the overlay: A) The flags of the covered methods must
When we have the Yum command, we will prompt" /usr/bin/yum ", line except keyboardinterrupt, E:^syntaxerror:invalid Syntax"May be caused by the upgrade of Python, Yum is using Python as the interpreter.1, when we enter any Yum command, will be an error. The reason is that after you upgrade Python, it causes Yum to be inconsistent with the required version!2, I will compile the Python version to install python3.3.0. Link 3.3 to/usr/bin/python. 3, we look at the/usr/
Question 1,[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.21.0:Test (default-test) on project Motherbuyboot:there is test failures.[ERROR] Refer to D:\web\motherbuy\target\surefire-reports for the individual test results. [ERROR] Refer to dump files (if any exist) [Date]-jvmrun[n].dump, [Date].dumpstream and [Date]-jvmrun[n].dumpstream.F method: The JUnit version of the Pom,xml file is incorrect, or for other reasons, I will use JUnit dependency comment out, comp
data (-a), log it to the file/var/log/sar/sar.log, collect it every 600 seconds (or 5 minutes), and continue to run in the background. If we want to show this data next, we can add the-f parameter with the SAR command, for example:$ sar-a-f/var/log/sar/sar.logThis is a very basic introduction to the SAR command. With the SAR command, many useful data can be obtained, which makes it more convenient and effective to view the host's performance. I suggest you look at the documentation for the SAR
not available, then use this method to get ServletContext directly:Contextloader.getcurrentwebapplicationcontext (). Getservletcontext ()update20151228:When you write a file, you may need to obtain a path, such as when uploading a file that requires an output stream. The output stream cannot be obtained directly through ServletContext, but the actual path can be obtained directly. Such as:Servletcontext.getrealpath ("/")The path obtained is the ${context}/path, and the output stream is obtained
This problem is very strange, the server executes a write database Python file, normal execution, but the use of Java SSH to invoke the script, the discovery is not to execute the database write, and then use the way of try except, printed the error message, found the errors:' ASCII ' codec can ' t encode characters in position 0-15:ordinal not in range (128)Solution:Add the following 3 words to the Python fileImport sysreload (SYS) sys.setdefaultencoding (' UTF8 ')
the FVWM, I am desperate to report the bug, because this problem, it is difficult to provide useful information to the developer, from the report bug to solve, it is a long process.Before reporting a bug, it is natural to look for a bug that has been reported. And then I found this:https://bugs.freedesktop.org/show_bug.cgi?id=89360which mentions:Short version---'intel_iommu=igfx_off' helpedYes, remember, in order to debug DPDK, I opened the vt-d function? is to allow the PCI device to be used d
Recently in the Pull Vue project will always appear webstorm memory instantaneous full, resulting in Webstorm card, and, sometimes after downloading Node_modues webstorm has been in updating, to find a lot of methods on the Internet results are not ideal, Then he went on, and finally got out. Here's how:1. Open Webstorm and follow this path (Files->settings->editor->file Types->ignore files and Folders) Open the Add "node_modules;" in its input box, click "OK" (Note: This is global in effect) sp
How to troubleshoot CentOS root run Elasticsearch exception
Running Elasticsearch 2.3 on CentOS 6.5, the exception is as follows:
?
1 2 3 4 5 6
Exception in thread "main" Java.lang.RuntimeException:don ' t run Elasticsearch as root. At Org.elasticsearch.bootstrap.Bootstrap.initializeNatives (bootstrap.java:93) at Org.elasticsearch.bootstrap.Bootstrap.setup (bootstrap.java:144) at Org.elasticsearch.bootstrap.Bootstrap.init ( bootstra
Win7 Update is currently unable to check for updates how to troubleshoot
The solution is as follows:
1. Stop Windows Update Service
2, delete all the files and folders under the X:\windows\SoftwareDistribution\DataStore folder
3. Start Windows Update Service
4. Running Windows update! Ok!
If not, you can refer to the following method:
To help a client installed Windows 7 system, encountered a system error, specific error; Check for updates in C
How to troubleshoot WinXP system desktop icons appear blue shading
1. First, we open "My Computer" in the blank click the right button to select "Properties"
2. Switch to advanced in System properties and select settings under Performance;
3. In the "Visual effects" check "on the desktop for icon tag use Shadow", click OK. Under normal circumstances this can solve the problem, if not yet please continue to look down;
How to troubleshoot Printer sharing under XP system
Generally, if the system is just installed, not change the system program, the general sharing connection is normal. If the connection is not available temporarily, we can use the following methods to connect again.
The first main method, click on the desktop in the lower left corner of the Start menu, open the Control Panel, point to the printer and fax, click the Add printer to the left of the pr
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.