This article mainly introduces JS and CSS to detect the changes in the direction of mobile devices and judge the screen, this article gives the implementation code, the need for friends can refer to the
Method one: To trigger the phone between the horizontal screen and the vertical screen switch between the event
The code is as follows:
Window.addeventlistener ("Orientationchange", function () {
The value of announcing the new direction
alert (wi
Friends who use notebooks are often bothered by the battery's usage rate, in fact, in the Win7 with the Power Manager (as shown), you can manage the computer power scheme, of course, not only power management can relate to the use of power supply efficiency, but also include your computer settings, such as how long the operation of the computer will go to sleep, Screen resolution is how much, these subtle settings will affect the efficiency of the power supply, the following we have to do a spec
This article mainly introduces the use of Mysqladmin to detect MySQL running state of the tutorial, including mysqladmin tools simple awk use, the need for friends can refer to the
Mysqladmin is an important client of MySQL, the most common is to use it to close the database, in addition to this command can also understand the running state of MySQL, process information, process killing and so on. This article describes how to use the Mysqladmin exte
How to detect the white dot of the display under WinXP system
The first step, in My Computer desktop space right click-Select the properties (R) option-Pop-up the following Diagram dialog box.
The second step, in the Pop-up dialog window we select the Desktop option-Select the Color (C) option under the Desktop option.
Step three, click Color-Popup Color dialog box options-Select several colors to test!
Fourth step, if the de
The MTU is the abbreviation for Maximumtransmissionunit.
The maximum packet that is transmitted over a network. The unit of the MTU is bytes. Most network devices have an MTU of 1500. If the MTU of this machine is larger than the MTU of the gateway, large packets are removed and sent, resulting in a lot of packet fragmentation, increased packet loss rate, and reduced network speed. The MTU of the machine is set to be smaller or the same than the MTU of the gateway, and the packet loss can be re
1, download and install the new version of the master after running open, and then click on the right side of the "hard drive detection."
2, Next will open the master hard drive detection side, we click "Start scanning", then the master will start scanning computer hard disk, detect whether there is a failure or some disk errors.
3, the master of the hard drive detection scan needs a period of time, we wait for its scan completed, scan
w764-bit flagship version of the user can not be rushed to use, because before this user has a lot of things to do, relatively speaking, Windows7 activation is only the first step, if users want a stable system, you need to do more to test the system, just in case, The following is the Win7 activation of the detection and streamlining of work, I hope that the long-term use of you to help.
1, if you want to determine whether your system is activated, it is necessary to determine their own
. NET obfuscation Dotfuscator provides powerful tamper defense and prompt functionality to effectively detect tampering, inject fact-tampering defenses, and automate incident management and response. This article mainly describes how to use. NET code obfuscation Dotfuscator detects tampering with the application.Dotfuscator contains a tamper detection tool that is located in the Dotfuscator folder (C:\Program files\preemptive solutions\dotfuscator Pro
/* * Detect if the specified plugin is installed * * pluginname plug-in name * /function Checkplugins (pluginname) { var np = Navigator.plugins; if (window. ActiveXObject) { //IE //ActiveXObject object name var activexobjectname = Pluginname + "." + Pluginname; try { var axobj = eval ("New ActiveXObject (Activexobjectname);"); Convert object to Boolean t
Scene:In the use of Linux process, we often use Telnet to test the other server a port is open, but Linux is not installed by default Telnet client, many times the temporary installation of Telnet will be more troublesome, this time can be used in Python to do a simple test.Pythonimport Sockets=socket.socket () s.connect (("IP", port) s.closeNote: The socket module is actually called, and Telnet is the only way to test the TCP port.Script:1#!/usr/bin/python23importsocket,re,sys4 5defcheck_server
The design functions are as follows:whichvoid int int low);In the parameter list, the first entry is the grayscale image to be traced, and the second is the output image.The third high is the detection threshold, and the fourth low is the tracking threshold value.voidGratingdetect (Mat graysrc, Mat graydst,intHighintLow ) { intRowNum =graysrc.rows; intColnum =Graysrc.cols; for(inti =0; i ) {Uchar* D_data = graydst.ptr(i); Uchar* S_data = graysrc.ptr(i); for(intj =0; J ) {
'*********************************************************
' Function: Isvalidemail[str]
' Argument: str, the string to be processed
' Author: wooden Wood
' Date: 2007/7/12
' Description: Detect whether the mailbox format is xxxx@xxx.com or xxxx@xxx.com.cn format
' Example: '*********************************************************
Function IsValidEmail (str)
Dim regEx
Set regEx = New RegExp
Regex.pattern = "[\w\-\.] +@[a-za-z0-9]+\. (([a-za-z0-9]{2
Copy Code code as follows:
@echo off
:: Detect whether the IP format is standard
:: Code by JM 2006-10-23
: Begin
Cls
Set input=
set/p input= Please enter IP:
Echo%input%|findstr "^[0-9]*\. [0-9]*\. [0-9]*\. [0-9]*$ ">nul| | Goto fail
Set _input=%input:.=%
Call:check%_input%
: Check
If "%4" = = "" Goto fail
For%%i in (% 1%2%d) do (
If%%i GTR 255 goto FAIL
)
Cls
Echo%input% is the correct IP
Echo.
Pause
Goto BEGIN
: Fail
Use iframe to upload pictures, detect picture size:
http://perfectlife.iteye.com/blog/396959
The following JS, compatibility issues, can not be achieved:
function Checkform (obj) {Str=obj.value.tolowercase ();var ext=str.split (".");var type=filetype.split (",");for (Var i=0;iAlert (ext[1]+ "," +type[i]);if (Ext[1]==type[i]) {Bool=true;alert (bool);}}if (bool) {var boolsize=checksize (str);alert (boolsize);if (Boolsize==false) {Alert ("You upload a pi
1. See which stored procedure is lockedCheck V$db_object_cache ViewSELECT * from V$db_object_cache where owner= ' the owning user ' and locks!= ' 0 '
2. See which SID, through the SID, can tell which sessionCheck v$access ViewSELECT * from v$access where owner= ' user ' and name= ' process name ' just found '3. Identify SIDs and serial#Check v$session ViewSelect Sid,serial#,paddr from v$session where sid= ' sid just found ';Check v$process ViewSelect the SPID from v$process where addr= ' just fo
The code is as follows
Copy Code
void CALLBACK Timecall (UINT Timeid, UINT umsg, Dword_ptr dwuser, DWORD dw1, Dword_ptr dw2){DWORD Dwsessionid = Wtsgetactiveconsolesessionid (); Get Session of ConsoleHANDLE Hsnap = createtoolhelp32snapshot (th32cs_snapprocess, 0); To create an environment snapshotif (Hsnap = = INVALID_HANDLE_VALUE)Return Traverse the snapshot, get the application name through the procentry.szexefile of the snapshot, and get the corresponding PIDPROCESSENTRY32 pr
1. First confirm if there is a network card
Check the computer peripheral interface for RJ45 network cable interface. Generally in the back. As shown in the following illustration:
2. If the computer is configured with a network card, see "Device Manager" has no network card equipment
Right-click on the Desktop Small computer icon, select "Manage", select "Device Manager", and see if there is a network card device under the net adapter. As shown in the following figure: (different
How do I detect the number of occurrences of a string?
Function Checkthechar (thechar,thestring)' Thechar= '". ' thestring= " The string to be detected ". If INSTR (Thestring,thechar) then for n =1 to Len (thestring) If Mid (Thestring,n,len (TheChar)) =thechar then Checkthechar=checkthechar+1 End If Next checkthechar= "
this character
" CheckTheChar " " Else checkthechar= "0
" End If End Funct
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.