About the exit of WPF

First, the WPF startup window method. public partial class App : Application { protected override void OnStartup(StartupEventArgs e) { this.StartupUri = new Uri("MainWindow.xaml", UriKind.Relative); base.OnStartup(e); } }    Two. WPF exit window method1、Close the current window this.Close(); 2、If the message is captured before the window closes, the window can be canceled. this.Closing += (s, r) => { }; 3、Capture messages after windows are closed this.Closed += (s, r) => { }; 4、Force exit, even if other threads do not end. E...

Install python3.6 under centos7

First, WGet official website downloaded to the local Entry home directory:cd ~ wget https://www.python.org/ftp/python/3.6.3/Python-3.6.3.tgzDownload to local Decompression is moved to /usr/lcoal: tar -zxvf Python-3.6.3.tgz mv Python-3.6.3 /usr/local/ Installation dependency: yum install openssl-devel bzip2-devel expat-devel gdbm-devel readline-devel sqlite-devel Delete old Python soft connection rm -rf /usr/bin/python Try to compile and install Python: cd /usr/local/Python-3.6.3/ To configure: ./configure Compile: make Installation: make install Failure to find suitable compiler: configure: ...

Data interface – Free Version (stock data API) (Reprinted)

Original information: 04 / 14 2018 The main sources of stock data are: data supermarket, Yahoo, Sina, Google, Hexun, Sohu, China Stock Web Service, Oriental Wealth Client, Securities Star, Netease Finance. YAHOO Disadvantages: Some U.S. holiday data will be in short supply; calls should not exceed 200 times a minute, otherwise IP addresses will be warned and blocked; custom column fetching methods can only fetch U.S. stock data. Advantages: Data is most standardized and can be obtained from other countries’markets; return data types can be customized combinations. Method 1:http://table...

Flush function API (Reprinted)

This article appears on time: December 17, 2015 10:01:37, original website stock data =========== BUYCOUNT1 Buy a quantity Meaning: the number of entrustment price corresponding to the entrustment quantity. Used for: real time cycle of stocks. BUYCOUNT2 Buy two Meaning: the number of delegate purchase price corresponding to two. Used for: real time cycle of stocks. BUYCOUNT3 Buy three quantities Meaning: the number of delegate purchase price corresponding to three. Used for: real time cycle of stocks. BUYPRICE Purchase Meaning: the principal buying price of the transaction. That is, the purc...

A longitude and latitude, distance and azimuth are known, and the longitude and latitude of another point are obtained.

It seems you are measuring distance (R) in meters, and bearing (theta) counterclockwise from due east. And for your purposes (hundereds of meters), plane geometry should be accurate enough. In that case, dx = R*cos(theta) ; theta measured counterclockwise from due east dy = R*sin(theta) ; dx, dy same units as R If theta is measured clockwise from due north (for example, compass bearings), the calculation for dx and dy is slightly different: dx = R*sin(theta) ; theta measured clockwise from due north dy = R*cos(theta) ; dx, dy same units as R In either case, the change in degrees longitud...

Windows 10 loopholes replay and weaponry utilization

Project address: https://github.com/SandboxEscaper/randomrepo Download address of related tools: Process Explorer:https://docs.microsoft.com/en-us/sysinternals/downloads/process-explorer CFF Explorer:https://ntcore.com/?page_id=388 Reappearance: Open a notepad and Process Explorer The PID number for notepad is 1944. Next, exploit loopholes. The 1944 of the picture above is the PID of the Notepad. Enter. spoolsv.exe There are more than one process tree. This process tree will not be kill. Right click -> Kill Process Tree The current process is the System process. Weaponry utilizati...

Object oriented — special members

1.The call of a special member of a class 1 class SpecialMembers: 2 #Class construction method 3 def __init__(self): 4 print("A method is constructed.") 5 6 def __call__(self): 7 print("An object is constructed.") 8 9 #Create an object and execute the class construction method. 10 obj = SpecialMembers() 11 #Construction method of execution objects 12 obj() 13 #First execute the class construction method, then execute the object construction method. 14 SpecialMembers()() 2.Getitem, setitem, delitem of special members of a class 1 class SpecialMemb...