We are often confronted with the problem of running apps on the iphone or on the ipad tablet, sometimes opening an app and then "flashing back". For developers, this is definitely a headache. So how do I get to the iOS device crash log? This provides some simple ways for developers to communicate with users.
It is normal to encounter a program crash in iOS development, how to catch exception information when a program crashes and notify the developer?
Here's how to implement this in iOS:
1. A
Whether in the computer or mobile phone, screenshots we often use, then how the notebook screenshot ah? Want to write a notebook computer tutorial, but do not know how the notebook screenshot. For the computer master, notebook screenshot is a piece of cake, but little white friends, it is inevitable not understand. The following Pepsi net Small series for you to introduce 3 kinds of notebook screenshots, small white friends to watch Oh.
How to
A man on the Internet uses this method:
ReadOnly: The text box is not input.
[Ctrl + A All SELECT Note: If the need to introduce external JS need to refresh to perform]
Onpropertychange can be used to capture text change events, the test success!
Extras! WORD2013 also has screenshot function! No QQ, no keyboard screenshots, we can also easily handle screenshots. What, you don't know what to do? It doesn't matter, just look down and see!
To get a screenshot of the procedure in Word2013:
1, open the window we need screenshots.
2. Open a document with Word2013, position the cursor where we need to insert the screenshot, switch to the Insert tab, click Screenshot under the Illustrations option group, and then select the Screen Clip
First, we open office into the "Insert" menu under the "screenshot" as shown below
Second, click on "Screen Capture" will appear after you have hit the program of the page of the shortcut screenshot options, here I first selected a Web page to do the test, the following figure
Click here to instantly show the perfect screenshot below
Third, another screenshot of the way "screen clipping" Select this option we can
the static acquisition of IP2. Check the configuration of the Eth0 network card to verify the success of joining the 207 lab subnet.3. Scan hosts in 207 Labs (TCP SYN semi-connection mode)4. To analyze the host 222.26.28.73, intuitive judgment for the Linux systemTo analyze the host 222.26.28.122, visually determine the Microsoft systemTo analyze the host 222.26.28.228, it is not intuitive to judge that no TCP port is closed, and no port is closed, all filtered. Description You can establish a
=Get_skin_name_url (hero_skin_root_url,cname_skin_count,cname_ename)118Get_hero_skin (Cnam_skin_url_list,cname_skin_name_list)Here is a sample folder to save the captured pictures:The above is a simple example of capturing the glory of all heroes skin, the above code does not use Python multi-threading to perform the function of fetching pictures, so it may take a few minutes to execute,Later in the improvement, add the use Python multithreading to perform the crawl task.Use Python's requests t
Cocos2d-js 3.x handles game placement in the background and event handling is easy to return to the gameSimply use the event management class Cc.eventmanager to customize a listener event toThe code is as follows[JavaScript]View PlainCopy
Cc.eventManager.addCustomListener (Cc.game.EVENT_HIDE, function () {
Cc.log ("game into the background");
});
Cc.eventManager.addCustomListener (Cc.game.EVENT_SHOW, function () {
Cc.log ("Back to the game");
});
COCOS2D-JS:
callback has the opportunity to be executed. So you can:
Copy Code code as follows:
Odiv.onmousedown = function () {
settimeout (function () {
document.getElementById (' IPT '). focus ();
}, 0);
};
From the above, it doesn't matter if the last millisecond is set at 0.
3. Throws an exception when focusing
In IE, an exception is thrown when the element is not visible, because in many applications we are no longer focused on whether or not the element is invisible,
This article will show you how to take a screenshot of the photo.
First look at the effect chart:
The screenshot is a little bit special, but now the Android smartphone's camera is millions of pixels and the pictures are very large. Therefore, we can not use the bitmap as the photo album screenshot, regardless of the large map of the map are unified use of the URI operation.
First, prepare the URI you need to use:
Private
static
final
String image_file_location = "file:///sdcard/
This is your current to execute JS captured node, so in JS can not document.getelement such as to capture the Id,name or tag name, save some trouble. The general use of obj instead.
Copy Code code as follows:
function Clickagenter (obj) {
if ($ (obj). attr ("checked") = = "Checked") {
$ ("[name= ' AgentType ']"). Removeattr ("checked");/Cancel All selection
$ (obj). attr ("Checked", "checked")
}
}
In Android game development, we may often have to double click on the screen like a PC operation. For screen-double-clicking, the Android 1.6 version did not provide a perfect gesture recognition class before, Android The 1.5 SDK provides Android.view.GestureDetector.OnDoubleTapListener, but the test does not work properly, for unknown reasons. Ultimately our solution is like the following code:
Java code
public class Touchlayout extends Relativelayout {public Handler doubletaphandler = nu
It is normal to encounter a program crash in iOS development, how to catch exception information when a program crashes and notify the developer?
Here's how to implement this in iOS:
1. Add an exception capture listener at the start of the program to handle the callback action when the program crashes
Copy Code code as follows:
Nssetuncaughtexceptionhandler (uncaughtexceptionhandler);
Official Document Description: Sets the
Fatal error is generally not required to capture, but in a complex program, if the occasional lack of memory causes Fatal error is difficult to deal with.
Like what. Fatal error out in the MySQL class when the fetch. It's difficult to pinpoint the real problem at this time.
PHP exception handling can be captured by Set_error_handler. But can only catch notice/warning level of error, for E_error is powerless.
Register_shutdown_function can solve the
script label:
Refresh the page, this time to see the output in the console is like this:
This error is not unexpected, since the set of Error.js for Crossorigin, the Error.js HTTP Response header must also be set to non homologous access. In order to facilitate the setting header, Error.js make a small change, renamed: Error-js.php.
When you refresh the page, you see that the output in the console is normal and all information is captured properly:
OK, technical details ana
In Flash Player 10.1 and above, Adobe has new global error handler uncaughterrorevents. Errors that are generated anywhere in the global area can be captured at the capture and bubbling stages if they are not captured.
The Uncaughterrorevents object that dispatches the event is associated with a Loaderinfo object or Loader object. Use the following properties to access the Uncaughterrorevents instance:
Loaderinfo.uncaughterrorevents: Detects an unha
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.