Overview:
In the company, can not install the software themselves, also can not download, but sometimes need screenshots. Use the Printscreen key can only intercept full screen, feel very troublesome. So I decided to write a screenshot tool for myself.
As we all know, QQ screenshot will first intercept the full screen as a picture, and then use this image based on the interception of the necessary parts. This program implements similar methods.
Pro
Recently collated Asp/vbscript code, found in the past an ASP implementation of the MVC framework, unfortunately is a semi-finished product, efficiency is also a problem, but found that some of the code I wrote, feel still slightly can be brought out to see people, so today to write this article to remember.
Said is ASP, in fact, and VBScript also take off, VBScript language inherited from visual Basic,vb grammatical flexibility is not satisfactory, the VBS as a subset can be imagined. God hors
{PRIMARY:NODE0} [Edit Services][Email protected]# ShowRPM {Probe Probe-2nd-line {Test 2nd-isp {Target address 11.22.33.44; //Probe target address, probe type default is Icmp-pingProbe-count 6; How many times, 6 times?Probe-interval 10; The detection interval is 10 seconds each time.Test-interval 15; 6 times a cycle, how many seconds each cycle interval, 15 seconds. It means that there is No 10 seconds to send a ping, 6 times, 6 times, and so on for 15 seconds in a new round of detection.History
Write your own toggle function similar to the one in jqueryThis is HTMLDOCTYPE HTML>HTMLLang= "en"> Head> MetaCharSet= "Utf-8"> title>Public test Pagetitle> Scriptsrc= "Http://libs.baidu.com/jquery/2.0.0/jquery.min.js">Script> Scripttype= "Text/javascript"> functionSwitchsearch (o) {var Hit=$ (O). Data (' Hit'); if( Hit=== 0) {o.innerhtml= "Zhejiang Agriculture and Forestry University"; $ (O). Data (' Hit', 1)
Request.getschema () can return the protocol used by the current page, http or HTTPS;Request.getservername () can return the name of the server on which the current page is located;Request.getserverport () can return the port used by the server on which the current page is located;Request.getcontextpath () can return the name of the app where the current page is located;When you write a JSP page, you always encounter the path problem of various files, and the following code is encountered: St
In fact, it is the pointer to the array, the value of each item inside the block of memory, so you can directly manipulate the value inside. If you simply pass the specified value, it is the new block of memory that is being manipulated.The effect of the array implementation is as follows:classb{String CNT=NULL; Public Static voidMain (string[] args) {B T=NewB ();//instantiate an objectString a=NULL; String[]s=NewString[1]; b b=NewB (); Object o=NULL; T.test1 (a); System.out.println ("
The most commonly used numeric type is int, but it is not necessarily the best choice. Bigint,smallint,tinyint can be applied to special occasions. Their features are shown in the following table:
Data Type
Range
Storage
bigint
-2^63 ( -9,223,372,036,854,775,808) to 2^63-1 (9,223,372,036,854,775,807)
8 Bytes
Int
-2^31 ( -2,147,483,648) to 2^31-1 (2,147,483,647)
4 Bytes
smallint
-2^15 ( -32,768) to 2^15-1 (32,767)
2
The ContextMenu (context menu) in the Android system is similar to a right-click pop-up menu in a PC, and when a view is registered to a context menu, a "long press" action on the object appears, and a floating menu is available that provides the relevant functionality. Context menus can be registered in any view object, but the most common is the item used for List view ListView, when the list item is pressed, the background color is converted and th
When the page needs to display more content, many of us use pagination method to solve.
And sometimes, the effect of pagination is very disgusting. The scroll bar is undoubtedly a simple and efficient way. And here, in view of the user experience, I used jquery to achieve a similar "scrolling docking" effect. So when we scroll down the content, the search box "hangs" at the top of the window.
The advantage of doing this is that when the user needs t
If in C #, we can easily implement this function simply by using the Hashtable or dictionary to take value from the key. In fact, we do a little processing, JS can also achieve similar hashtable functions. The following summary of the author of the development of the implementation of the way, the main code paste.
1, the implementation of ideas: the main use of the prototype (prototype) of the hasOwnProperty method to determine whether the object of t
This example describes the Android programming approach that is similar to the fast flashing effect of Alipay balances. Share to everyone for your reference, specific as follows:
The effect is as follows:
This picture doesn't move, but it actually beats fast.Before seeing the effect of paying treasure is very good. is to go in to see the balance snoring direct shangcuanxiatiao to specific numbers, the effect of handsome, but do not know how to achie
Sina Weibo in the cancellation of attention pop-up confirmation box is friendly, the project needs to implement one, wrote a similar,
The idea is to write a hidden div, click the Cancel button, and then let the div slide out, click OK or cancel and then slide in
JS Code
function Confirmcancel (ID) {
$ ("#confirmwrapper"). Slidedown ("fast");
$ ("#confirm"). Slidedown ("fast");
function cancelconfirm () {
$ ("#confirmwrapper"). Slideup ("fast
Do graduation design time and to similar "Baidu Library" function module, search the Internet half Day This method is the most complete, easiest to learn. Here stand on the shoulders of giants in detail about this.
Main idea: The Word document is transferred through Openoffic to PDF, then the PDF file is converted to SWF file through Swftools, and the SWF file is displayed with Flexpaper.
First step:1. Download Tools OpenOffice, Jodconvert-2.2.2.zip,
("Background-color", "#f0f5f8");
});
This is the foreground JS code, the following I explain a little bit of code: count is the total number of data defined, define two div, one of the div used to append data, a div to determine the position of the scroll bar, and then build a *.ashx file to process the program and return the corresponding data, Based on this data we definitely judge the loading situation, after the scrolling append completes I also added a "Click to load more features ...
Recently job-hopping to a new company, accepted the first task is in an Electronic Business module search function as well as the search history of the implementation.
Demand and Taobao and other electrical functions roughly similar to the top of a search box, the following display search history. After entering the keyword to search in the EditText, press the soft keyboard search key/delay XXXXMS to search automatically. The content of the search is
The examples in this article describe how PHP compares similar strings. Share to everyone for your reference. The specific analysis is as follows:
This compares the similarity of two strings through the Similar_text function of PHP.
$word 2compare = "stupid";
$words = Array (
' stupid ', '
Stu and PID ',
' hello ',
' foobar ',
' stpid ',
' upid ',
' Stuuupid ',
' sstuuupiiid ',
);
while (the list ($id, $str) = each ($words)) {
Python's dict is easy to use, you can customize the key value and access it by subscript, as shown in the following example:
Copy Code code as follows:
>>> d = {' Key1 ': ' value1 ',
... ' Key2 ': ' value2 ',
... ' Key3 ': ' Value3 '}
>>> print d[' Key2 ']
value2
>>>
Lambda expressions are also useful, as the following examples are:
Copy Code code as follows:
>>> f = Lambda x:x**2
>>> print F (2)
4
>>>
The combination of the two can a
We do unit test NUnit, there's an assertion that assert.throws works, but when we use mstest you need to write this:
Copy Code code as follows:
[TestMethod]
[ExpectedException (typeof (ArgumentNullException))]
public void Writetotextfile ()
{
Pdfutility.writetotextfile ("d:\\aca.pdf", null);
}
Now let's expand it and implement a similar function, adding a class with the following code:
Copy Code code as follows:
This article describes the JS+CSS to achieve a similar QQ friends and blacklist effect of the tree-type menu. Share to everyone for your reference. Specifically as follows:
Today's introduction of the menu is the best ah, but there are some of the icons lost, the path is still there, really want to use a friend of their own production of two folding menu icon by path to go up on the line, this menu is to imitate the menu features QQ panel, many frien
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.