existSolution:(1) Create a new virtual machine instead of creating a hard disk(2) SSH login host to find the location and directory of the XX-FLAT.VMDK files,(3) Create a new XXX.VMDK file in the same directory as the above file, the size is as large as the xx-flat.vmdk file,Use Ls-la to view the xx-flat.vmdk file size,Create a new disk file with Vmkfstools-c file size-a lsilogic XXX.VMDK(4) Add this disk file to the newly created virtual machine;(5) Overwrite the new XXX-FLAT.VMDK with the ori
Using the command line, enter Exec=env ubuntu_menuproxy=0 or create a shortcut to eclipse, ECLIPSE.DESKTP content as followsType=application Name=eclipse Comment=eclipse Integrated Development environment Icon=/usr/share/app-install/icons/eclipse.png Exec=env ubuntu_menuproxy= Eclipse (the path to eclipse) Also note that there is a space between the equals sign and the eclipse path.UBUNTU14 Eclipse Luna cannot display menus, solutions
Q1:wine QQ ProblemWe are using the depth of wine QQ (in fact, by crossover this software indirectly installed win software, I think the middle should be added a layer similar to the vmworkstation of the virtual layer bar), interface because it is a compatibility software problem will make us look very friendly (after all, is the Windows software), but generally after running a minute or two will automatically error and then quit ... I don't say much, the problem is finished!!!A1:sudo chmod $HOME
Create a new text, name Localization (must be the name), file name: Localization.txt, Content format: KEY, language name 1, language name 2 ...,Place the Localization.txt in the resources root, and then create a new Uilabel to add script Uilocalize to the Uilabel object (ngui->attach->localization Script),Fill in the key,Run, you will find that the default will always display English, so you need to start the game before the beginning, that is, the first time the initialization, set the language
Solutions for QT programs not being able to input Chinese in LinuxA netizen asked me how to enter Chinese in the QT application of Linux, I didn't think it was a problem at first, but I tried it on the back. Not only QT-made applications, even QT creator are not supported. After reading some information, understand the QT application methods, here to share with you.Write a bash script that reads as follows:#!/bin/shcd Yourbinarydirectoryexport Qt_im_m
Recently, using Hibernate to do the project encountered a problem: When using Detachedcriteria dynamic query, query conditions exist multiple or.Restrictions.or () is usually used, but what if the number of or is not determined?Solution: Use Org.hibernate.criterion.CriterionThe code is as follows:Detachedcriteria criteria =null= restrictions.in ("id", "");//First query condition for (int i = 1; i ) { criterion = restrictions.or (criterion, restrictions.in ("id", ""));//n+ query condition}if (c
do not want to adjust, download a copy of the IDEA14 shortcut key document to save on the desktop, compared with Eclipse, shortcut features can be found.Refresh in 8.eclipse, cleanup restart is replaced with file->invalidate catch/restart in idea. Encounter various packages and other obvious compilation of different issues, you can clean up Maven fame (that is, the above 4 of the problem), re-click on this is OK.10. More commonly used shortcut, CTRL + N query class, and then through the project
Java.util.concurrent.threadpoolexecutor$worker.run (Threadpoolexecutor.java:615) at Java.lang.Thread.run (Thread.java:744) January02, 2014 2:38:27 pm org.apache.catalina.startup.HostConfig deploydirectoryThe reason for the error is that eofexception indicates that the input process has unexpectedly reached the end of the file or the signal at the end of the stream, resulting in a failure to obtain data from the session. This is due to a number of active sessions being persisted (shown as tempor
"Billsave"; }}In Test.controller.billsave.BillSaveController, use: PackageTest.controller.billsave;ImportOrg.springframework.stereotype.Controller;Importorg.springframework.web.bind.annotation.RequestMapping;/*** Created by Liuch on 5/27/15.*/@Controller ("Realbillsave" )@RequestMapping ("/billsave_test") Public classBillsavecontroller {@RequestMapping ("/test") PublicString Test () {return"Test"; }}The above two controllers, as long as a name can be guaranteed, but the best of two are used.
App_GlobalResources in ASP. NET 2.0 can be used to solve localization problems, and the program will automatically determine the localized interface based on the browser's language preferences.First create a new RESX resource file in App_GlobalResources. Such as:Items in the ResX in different languages should have the same name:Chinese resource ItemEnglish resource itemsWhen you're done, you can use these name values.OrNow you can change your browser's language preferences to see the results.The
Today in writing a method to download the document, testing the compatibility of the browser, found in the Mac's own Safari browser after the download of all the EXE file, looked for a long time to find it is their own download method in the Content-type settings have a relationship
When Content-type is set to text/html, the downloaded file is automatically added with the suffix. html
When set to Application/x-msdownload, the downloaded file is automatically added with the suffix. exe
the main: User upload files, background conversion file into FLV format->flv player call flv file.Convert video, audio files to FLV format can use MEncoder or ffmpeg, we adopted the mencoder, installation reference on Linux here, install the end of the setting environment variable: Export ld_library_path=/usr/ Local/lib:ld_library_pathJava is called by process:Process Process=runtime.exec (cmd);MEncoder convert video audio into FLV command:MEncoder source file-o destination file. flv-of lavf-la
longer pre-checking for the same cross-domain request for the same time periodConfig.addallowedmethod ("OPTIONS");//the method that allows the request to be submitted, * indicates all allowedConfig.addallowedmethod ("HEAD"); Config.addallowedmethod ("GET");//request method to allow getConfig.addallowedmethod ("PUT"); Config.addallowedmethod ("POST"); Config.addallowedmethod ("DELETE"); Config.addallowedmethod ("PATCH"); Source.registercorsconfiguration ("/**", config); return Newcorsfilter (sou
alternative method)[[email protected] tmp]# alias CPAlso shown as alias cp= ' Cp-i 'In this way, the input CP command in Linux is actually running cp-i, plus a "\", a symbol or a write CP full path/BIN/CP is to let the CP command do not use Alias (Cp-i) to run.Here is the use of alias and Unalias two commands, and we also think about the benefits of aliases and how to use this feature to serve us.Some special methods:[[email protected] ~]# alias rm= ' echo ' RM does not allow to be exec "'This
Solutions for Ld-linux.so.2( An error occurred while using theBASH:/usr/local/bin/rar:/lib/ld-linux.so.2:bad ELF interpreter:no such file or directoryis because a 32-bit program is installed in a 64-bit systemWorkaround:Yum Install glibc.i686After reinstallation, there are the following class errors before continuing with the installation packageError while loading shared Libraries:libstdc++.so.6:cannot open Shared object file:no such file or director
After solving the problem of my Ubuntu interface password login infinite loop, I can finally use Google in-depth understanding, from the previous understanding that Ubuntu after the X version of the LIGHTDM a new Linux desktop display Manager, In the description of LIGHTDM in the wiki, LIGHTDM is configured in the following folder:(1)/usr/share/lightdm/lightdm.conf.d/*.conf (this is a system-provided configuration file that is not editable by the user)(2)/etc/lightdm/lightdm.conf.d/*.conf(3)/etc
From Linux to the Windows copy files or from Windows to Linux copy files, sometimes the Chinese file name garbled, the cause of this problem is because the Windows file name Chinese encoding defaults to GBK, and the default file name in Linux is encoded as UTF8, Because the encoding is inconsistent, so the file name garbled problem, to solve this problem need to transcode the file name.A tool convmv for file name encoding is provided specifically in Linux, which converts the file name from GBK t
contain a 32-digit number with 4 dashes (xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx), instantly feeling helpless. What's wrong with the world? My first feeling was that there was a problem connecting to the MySQL database. But online some people say is the problem of VS itself, need to delete the C disk under a certain three files, I delete after a pity or not. Finally found that the original is MySQL char (36) is mistaken for a GUID, char (36) is changed to char (40) (not char (36)), error is not 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.