Long press the native JS writing <script> var num = 0 ; function whichElement(e){ var timer_alert = setTimeout(function() { if(e.which==1) { num++ if(num==2){ num=0; alert( “Mouse long press” ); }else{ whichElement( e ); } } }, 1000) ; } </script> Reprinted: https://www.cnblogs.com/zcynine/p/5454659.html source
GSM-TRACK Development Log GSM-TRACK Development STEP 1
With the natural curiosity of the programmer, I checked some information online and found that the base station positioning of Google Map was completed through a POST Web interface. This interface was not fully announced. I have been using it and become an unwritten interface. below is some reference materials About GE mobile version […]
WIN7 Clean the BAT script of C -drive Space garbage Win7 C Disk Slimming script
Use: Copy the following code to the notepad, save it as a .bat format, and then run as an administrator. @echo OFF Echo is clearing the system spam file, please wait … Del /f /s /q %systemdrive %\*. TMP Del /f /s /q %systemdrive %\*._ mp Del /f /s /q %systemdrive %\*. log DEL /F […]
nginx configuration instance-Dynamic and static separation instance: Create static resource server
Scenery Nginx Introduction Introduction and Inverse Agent, Load Balance, Dynamic and Static separation understanding: https://blog.csdn.net/BADAO_LIUMANG_QIZHI/article/details/102790862 Ubuntu Server 16.04 LTS How to install download and install nginx and start: https://blog.csdn.net/BADAO_LIUMANG_QIZHI/article/details/102828075 What is dynamic separation nginx Dynamic and static separation is simply to separate dynamics from static requests. It cannot be understood as simply separating dynamic pages […]
MATPLOTLIB dual Y axis drawing
#-*-code: UTF-8-*- “” ” Created on wed jan 31 14:06:26 2018 @Author: administrator “” ” import numpy as np Import Pandas as PD Import Matplotlib.pyplot as PLT PLT.RCPARAMS [‘font.sans-serif’] = [‘simhei’]#is used to display Chinese tags normally PLT.RCPARAMS [‘Axes.Unicode_minus’] = false#is used to display the negative sign normally PATH = ‘F:/python/3python data analysis and excavation […]
30 classic shell scripts (below)
#### 21, download file from the FTP server 22, continuously enter 5 numbers within 5 continuous, statistics and, minimum and maximum 23. Assign the results to the variables respectively 24. Batch modification file name 25. Statistical current directory with .html files totaling large files. 26. Scanning host port status 27. Expect implementation of SSH exemption […]
wxpython Set background picture wxpython background picture
wxpython Set background picture We want to set background pictures in wxpyhton, Perhaps you may want to draw a picture directly on the canvas to achieve its functions (wx.staticbitmap), but StaticBitmap Widget is not a container, and your other space will be covered. Now we can use wx.evt_erase_background cleverly to implement its functions, and this […]
Mall amplifying mirror+picture rolling control left and right
Use LiveQuery dynamic binding incident to enlarge it with jqzoom <!DOCTYPE html PUBliC “-//W3C//DTD XHTML 1.0 Transitional//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd“><html xmlns=”http://www.w3.org/1999/xhtml“><head><meta http-equiv=”Content-Type” content=”text/html; charset=utf-8″ /><Title> jquery special effects, CSS3, HTML5–163CSS </title><liNK rel=stylesheet type=text/css href=”css/163css.css”><script type=text/javascript src=”js/jquery-1.4.3.min.js”></script><script type=text/javascript src=”js/jquery.jqzoom.js”></script><script type=text/javascript src=”js/jquery.livequery.js”></script><META name=GENERATOR content=”MSHTML 8.00.6001.18876″><BODY><script type=text/javascript>$(function(){ /* Mouse mobile small diagram, the small map corresponds to the large […]
1 | Data Type Database Data Type
mainly include the following five categories: integer type: Bit, BOOL, Tiny Int, Small Int, Medium int, int, Big int Floating point number type: Float, Double, Decimal String type: Char, Varchar, Tiny Text, Text, Medium Text, Longtext, Tiny Blob, Blob, Medium Blob, Long Blob, Long Blob Date type: DATE, DateTime, TimestAmp, Time, Year Other data types: […]
Cassandra entry
1. Basic concept Table below 1. Primary Key, Partition Key, Clustering Key as an example: create table sample( k_part_one text, k_part_two int, k_clust_one text, k_clust_two int, k_clust_three uuid, data text, PRIMARY KEY((k_part_one,k_part_two),k_clust_one, k_clust_two, k_clust_three) ) with CLUSTERING ORDER BY (k_clust_one DESC, k_clust_two ASC); Primary Key=Partition Key + Clustering Key, partition […]
The minimum spanning tree problem of the minimum solution of the minimum tree problem
The minimum generation tree is actually the smallest connection map. Finding the minimum generating tree is to find the value and the smallest connection map. The following questions are examples: City Bus Network Construction Problem [Question description] There is a city map, the apex in the picture is the city, and the non -directional side […]
Walking WebX3-WEBX3 Learning Record Framework initialization
Write in front This article is one of the “Study Summary of Framework Starting” for the WebX framework series summary article. It is suitable for the following two types of readers. Readers can read with different mentality: 1. If you think you have a certain degree of understanding of the framework (or the historical version […]
Halcon sample program classndimbox.hDev based on multi -channel image classification
Read the picture read_image (Image, ‘ic’) Create a new classifier create_class_box (ClassifHandle) Get the picture size get_image_size (Image, Width, Height) Close the window dev_close_window ()*Open the window according to the size of the picture dev_open_window (0, 0, Width, Height, ‘black’, WindowID) Display read in the picture dev_display (Image) Settings display color green dev_set_color (‘green’) generate […]
Pyhton installed CXORACLE module Python cannot install CXORACLE
Python to operate Oracle database needs to use the CX_ORACLE module, so you need to download CX_ORACLE. Please note: The downloaded file of the download CX_ORACLE must be consistent with the digits and versions of Pyhton. Pyhton’s digits are best consistent with the number of system bits, otherwise there may be various errors in various […]
C ++ Simple multi -threaded example C ++ Multi -thread example
Summary: Create a thread. When the main thread is executed, another thread is running Main steps: 1. Create a thread 2. Functions to be executed in the creation of threads code: #include <iOSTREAM> // Because the API function of Windows needs #include <Windows.h> DWORD WINAPI FUN1PRO ( __in lpvoid LPPARATER ); int Main () {{ […]
Docker error record (the internal service cannot be accessed outside the environment, ErconnectionTimedout)
Environmental Centos7, Docker V1.20, IP 192.168.26.136 (NAT mode); Centos7 IP 192.168.26.137 (NAT mode) next doorWindows7: 192.168.1.55 Revisit Docker recently, install the Portainer-CE of Docker GUIReference: https://blog.csdn.net/youlinhuanyan/article/details/113814285, https://documentation.portaine/v2.0/depinStallDocker/ docker pull portainer/portainer-ce docker volume create portainer_data docker run -d -p 8000:8000 -p 9000:9000 –name=portainer –restart=always -v /var/run/docker.sock:/var/run/docker.sock -v portainer_data:/data portainer/portainer-ce At this time, the Win access outside […]
Android battery power detection BatteryStatusNotChargingrick
battery information, voltage, temperature, charging status, etc. are all provided by BatteryService. Thebattery’s information is BatteryService to transmit data to the app you care about through broadcasting. If you want to receive the battery information sent by BatteryService, you need to register an Intent as intertted.action_battery_changed. code is as follows: IntentFilter mIntentFilter = new IntentFilter(); […]
java CHP interface object exercise question 1
** Open () three methods, respectively, represent play, stop, and open positions, respectively.MediaPlayer has three implementation classes, namely: DVDPlayer, indicating DVD player; CDPlayer, indicatingCD player; Tapeplayer, indicating a recorder (play tape). ** Create a remote control Controller class. The remote control has three control channels, which can control three devices separately. Complete the code of […]
Multi -style style .NET user interface package netAdvantage
NetAdvantage for .NET control is a comprehensive user interface kit, which contains Windows Form, WPF, ASP.NET and Silverlightcontrol, the most commonly used controls include tables, charts, various editors and input boxes, instruments, navigation strips, tree lists, menu and toolbar, various styles, etc. All control elements required by the user interface application support Visual Studio 2010 […]
OpenCv4.5-C ++ camera screen image display and file storage
Want to try the camera of the new computer is easy to use, so I wrote a camera call program, which realized the mirror and picture interception and saved. #include <iOSTREAM> #include <opencv2/Stitching.hpp> #include <opencv2 \ opencv.hpp> #include <opencv2/Highgui/Highgui.hpp> #include <opencv2/IMGProc/IMGPROC.HPP> #include <opencv2/core/core.hpp> #include <stdio.h> #include <fstream> using namespace CV; using namespace std; int Main […]