Yesterday Android studio was fine, and today it's a problem to run again:Started thinking that it was an SDK issue and changed the SDK to the SDK that came with Android Studio, but the problem still exists:Click on the Android small icon below and intend to see the LogCat, the results see this:Later on the Internet to find the solution, the original SDK port is occupied!Workaround:ADB run occupies port 5037, go to cmd window, run Netstat-aon|findstr "5037" (note space)The 5037 port is occupied b
ADB run the default port number is 5037 we see which processes are taking up this portOpen command Line input Netstat-aon |findstr "5037" The last column is the PID you can go to the task Manager to see what the process is.Finally I found occupy process is Sogou and Jinshan poison pa of a process, sogou typing no way, but decisively unloaded the Golden Hill poison Pa. Some time ago probably also because Jinshan poison pa cleaned up some files of vs to crash, anti-virus software is really not sui
Scenario: A function is called in an event, but the function takes a very long time to execute, while dragging the interface in this process will cause the interface to go into an unresponsive state until the function is finished to be OKWorkaround:Use multi-threaded calls when calling functions= Threading (Func, arg=(PARA1,)) Thread_obj.start ()Wxpython when dragging the interface into suspended animation (not responding) workaround
= upload;4 Index.jsvar server = require ('./server ');var route = require ('./route ');var requesthandlers = require ('./requesthandlers ');var handle ={}handle["/"]= Requesthandlers.start;handle["/start"]= Requesthandlers.start;handle["/upload"]= requesthandlers.upload;Server.start (Route.route,handle);Parsing starts from Index.js the handle object stores the route string and method pointersServer.js gets the path of the current user request to execute the path corresponding to the method actu
point to modify the code, the following is a reference, the idea is to let the empty parameters of the case can both get the field, but also by pre-executionFor example, write the following styleIF ISNULL(@begtime,"')= "' OR ISNULL(@endtime,"')= "' BEGIN SELECT [C1] , [C2] , [C3] , [C4] fromTest1;--We have to get him to find the field, or the result set dataset won't be out of the field . RETURN; END;ELSE BEGIN
Connect timeout=18000; "constr" connectionstring="Data source=127.0.0.1;initial CATALOG=HXMRP_PRD; User Id=sa; Password=sa_sa; Max Pool size=150; Connect timeout=18000; " />Also some say is Connect timeout=500;But it does not seem to solve my problem, the same 30 seconds after continuing to error .....After the CSDN blog, find a Solution: http://blog.csdn.net/ulark/article/details/5208779 (original)The commandtimeout code for setting SqlCommand is as follows:SqlCommand cmd = new SqlCommand ()
Activity_main has passed Setcontentview (R.layout.activity_main); set to Mainactivity,Do not inflate out the new layout, then Findviewbyid, then draw the control, and then make other settings for the control, including setting the Click event and so on.Error procedure:1 @Override2 protected voidonCreate (Bundle savedinstancestate) {3 Super. OnCreate (savedinstancestate);4 Setcontentview (r.layout.activity_main);5 6View view =uiutils.inflate (r.layout.activity_main);7Button btn_downlo
1. Problem: follow the online sublime Text2 To configure Java, the steps are completely correct. But the problem is so bizarre. After pressing ctrl+b , the console has no response. 2. FIX: press ctrl+~ to bring up the console to see the error of the output: unicodedecodeerror: ' ASCII ' codec can ' t ... Reference post: http://384444165.iteye.com/blog/1798107Resolve to comment out the line code. Can be deleted, but for the sake of insurance or comment. Sublime Text2 problem: Press CTRL + B
// Stop the bubble action. // you can call the action in the onxxx event of the control to prevent the parent control from responding to messages.Dom. stopbubble = function (E){// If an event object is input, it is a non-IE browser.If (E E. stoppropagation ){// Therefore, it supports the W3C stoppropation () method.E. stoppropagation ();}Else {// Otherwise, we must use IE to cancel event bubbling.Window. event. cancelbubble = true;}}//
From Dom
Solution for Linux system not responding to Syn packets
The question about why SYN didn't respond is really depressing for a long time.When the client sends a SYN packet, the server does not respond to the SYN Packet of the client.After going online, I finally found out that someone had happened. The reasons are as follows:If the SYN Packet sent by the client has a timestamp, after Nat translation, if the used port is used before, and the timestamp i
When the mount file system on the arm Development Board has been error-checking on the internet, most of them say that UDP drops are a serious cause, and there is no solution to the problem after the attempt.Finally found that the arm Development Board and other people's board IP conflict = =1. Use arp-a to view IP and corresponding Mac, find MAC address inconsistent with your own Development Board MAC address, initial suspicion is IP conflict[Email protected]:/usr/share/python/ns$ arp-aUdp16124
1 //Custom Messages2 #defineMy_thread_msg wm_user+10003 4 ////////////////////////////////////////////////////////////////////////////5 //6 //PreTranslateMessage () If you want to respond to a "custom message" You must send a custom message with::P ostmessage ()7 //PreTranslateMessage () does not respond:: SendMessage () sent "custom message"TenBOOL Cmythreaddlg::P retranslatemessage (msg*PMSG) One { A Switch(pmsg->message) - { - Casemy_thread_msg: theAfxMessageBox (_t ("Test Thread
Process mouse-related events in C:
There are generally six types of mouse-related events:
"Mousehover", "mouseleave", "mouseenter", "mousemove", "mousedown", and "mouseup ".
(1). How to define these events in the C # program:
In C #, different delegate are used to describe the preceding events. The delegate of the "mousehover", "mouseleave", and "mouseenter" events is "eventhandler ", the delegate that describes the next three events is described by "mouseeventhandler. The two delegate are encap
Use the API function ishungappwindow to determine whether the window has stopped responding. Therefore, you can use other threads to close this window to avoid poor user experience.
BoolIshungappwindow(HwndHwnd);
Msdn documentation:Http://msdn.microsoft.com/en-us/library/ms633526.aspx
This function is available in Win2000. In earlier operating systems, you can use the sendmessagetimeout API function to achieve the same purpose.
Lresult sendmessage
Chapter 4 responding to user events
The previous chapter describes how to display text and images. In general, the next step is about animation. However, as we mentioned earlier, using view is not the final choice. It requires a lot of complicated code to implement animation. Relatively speaking, it is easier to learn how to respond to user events.
The first half of this chapter explains the response to the key event, but this is not the final solutio
C # Simple Method for responding to the carriage return event with buttons in winform
From: http://www.cnblogs.com/domainblogs/archive/2009/02/26/1398406.html
The buttons in winform need to respond to the carriage return event, which is very simple! You only need to set the attribute in the form!For example, there is a login form (form_login), including two buttons (btnlogin) and two buttons (btnexit ),If you want to log on (btnlogin) to respond to
Below is a section of the code that encountered the problem today, select wrote the onchange event, in the absence of escape, F12 parsing code is chaotic, double quotation marks and the content of the inconsistency between the writing, there will be a space, after a period of groping, Found in the wrong place with the escape can be (mainly in the front of the quotation marks), the following is a good code, can be referenced."+ ' + ' + ' + ' class= ' btn btn-default btn-sm editable-cancel ">Doubl
); } Public voidCustomize (Configurableembeddedservletcontainer arg0) {Arg0.setport (8088); }} Package BBB; Import org.springframework.web.bind.annotation.GetMapping; Import Org.springframework.web.bind.annotation.RestController; @RestController Public class Hellogbcontroller { @GetMapping public String hellogb () { Return "Gaurav Bytes says, \" Hello there!!! \""; }}I have specified a port here because there is a conflict. Finally Start!!!Finally, we see a reaction.Damn,
Problem Description:Recently installed Android Studio v1.0, this is always the wrong time to runSolution:Some people on the internet say that the ADB process is running, but the task Manager is open and the corresponding ADB process cannot be found.Helpless under, think ADB run default port is 5037, so through the command line Netstat-aon |findstr "5037" to find the PID, through the PID to see the original is Baidu packaging a adb (Baidu Mobile assistant), decisively kill the process, Run Androi
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.