Android WiFi usage record and androidwifi record
Recently, I am working on the development of WiFi for Android. The Connection Tool class refers to the tool class in this article.
Http://www.cnblogs.com/zhuqiang/p/3566686.html
Some problems encountered during development are recorded here for some solutions.
1. Identification of Wi-Fi encryption methods
String capabilities = scanResult.capabilities;
If (ca
Linux Learning Record 5 (software installation and upgrade) and linux record
I. gcc
Gcc is the most standard C language compiler on Linux, used for source code compilation links.Gcc-c hello. c compilation generates the target file hello. ogcc-O hello. c compilation generates the target file and optimizes gcc-o hello. c generates the executable binary file hello. disadvantage: Command redundancy. If a C-lang
Linux environment deployment record (2): linux environment deployment record
NFS file sharing service
Assume that the existing two Server IP addresses are 192.168.0.2 and 192.168.0.3, 192.168.0.2 as the Server, and 192.168.0.3 as the Client, then:
Nfs-utils rpcbind must be installed on both machines:
yum -y install nfs-utils rpcbindchkconfig nfs onchkconfig rpcbind on
Enable Firewall ports 111 and 2049:
Record some recently used commands, record usage commands
(Command to paint in green)
View the device USB command:Ls/dev/ttyUSB *
The serial number of the device first inserted into the PC is small, for example, the OpenJTAG device and USB to serial port device are successively inserted.
They are ttyUSB0 and ttyUSB1 respectively.
Logon telnet command:Telnet local host 4444
Ln command: This command
[Record] install caffe on MAC and record maccaffe
--- Restore content start ---
Recently tried MAC (OS X 10.11 El Capitan) I encountered some problems when installing Caffe and Python interfaces, but I did not find a solution to these problems in the official installation tutorial. I searched for a long time (mainly on the Python Interface) and finally found a solution.
In fact, Caffe's installation involve
Simple test record and linuxelk test record for installing elk in Linux
Version:
1. elasticsearch-5.6.4.tar.gz
2. jdk-8u131-linux-x64.rpm
3.kibana-5.2.0-linux-x86_64.tar.gz
4.logstash-5.6.3.tar.gz
Next we need to have a virtual machine, and then enter the command yum install lrzsz (I used xshell to connect to the Linux virtual machine)
We pull these packages in, And then uninstall the jdk and command in Lin
Many times we are faced with the following requirements:
After a record is inserted into a table, the ID of the record is immediately required (ID is the auto-increment identifier ). According to the conventional thinking, the SELECT statement is executed immediately after the insert statement is executed, but this is risky. If the conditions are not fully considered during the SELECT statement, the result
MySQL Tutorial group BY, sort the largest record of time in each record
Select A.* from Test A,(Select Aid, Max (day) Max_day from test Group by aid) bwhere A.aid = B.aid and A.day = B.max_dayORDER BY A.install Desc
Here is the test table, which tests the SQL
CREATE table if not EXISTS ' test ' (' ID ' int (a) unsigned NOT NULL auto_increment,' Install ' int (a) unsigned NOT NULL,' Day ' int (a) unsigned
Oracle dynamically adds a record, and oracle dynamically adds a record
/// /// Add an object/// /// /// /// Public static int AddEntity {T t = new T ();Var propertys = typeof (T). GetProperties ();String FieldKey = string. Empty;String FieldValue = string. Empty;Foreach (var p in propertys){Foreach (var key in dic. Keys){If (p. Name. ToUpper () = key. ToUpper ()){FieldKey + = p. Name. ToUpper () + ",";If (p
Record logs (log processing), record log processing
1. Call methods:
By classifying logs, you can quickly locate errors and quickly solve problems in the project, which greatly improves efficiency and facilitates the overall work.
TimeSpan comprehension:
Private string DateDiff (DateTime DateTime1, DateTime DateTime2){String dateDiff = null;TimeSpan ts = DateTime1.Subtract (DateTime2 ). duration (); date
The custom log record function allows you to easily record logs by day.
1. Define the Log Type
Public enum LogType{Debug = 0,Error = 1,Info = 2,Warn = 3}
2. Add static LogHelper class
Public static class LogHelper{Public static void Write (string msg, LogType logtype = LogType. Debug){Try{String basePath = Path. Combine (AppDomain. CurrentDomain. BaseDirectory, "Logs ");Directory. CreateDirectory (basePath
IOS9 request https problems-record, ios9 request https record
When iOS9 started, Apple changed all HTTP to HTTPS, so the network request failed. solution:
1. Change to HTTP:
Add a Key: NSAppTransportSecurity (Dictionary type) to the info. plist file, and then add a Key: NSAllowsArbitraryLoads (Boolean Type) to it. The attribute value is set to YES. For example: 2. Add a whitelist
(This is mainly for ru
Record as you want (two problems in code optimization) and record optimization as you want
[Disclaimer: All Rights Reserved. You are welcome to reprint it. Do not use it for commercial purposes. Contact Email: feixiaoxing @ 163.com]
Two problems have been found recently during code optimization. One is the problem of global variables, and the other is the issue of compiling out of order. Because we didn't
Record my GDB configuration and record the GDB ConfigurationI. To better display the STL container in GDB, We need to download a python script first.PS: Make sure that the GDB you installed can execute the python script.
cd ~mkdir .gdbcd .gdbsvn co svn://gcc.gnu.org/svn/gcc/trunk/libstdc++-v3/python
2. Modify the. gdbinit file in the user directory (copy the following text)
# The python script pythonimport
Django entry record 2: django entry record
1. Create an app, python manage. py startapp appname
2. design the model and edit the model in the appname/directory.
3. Check the modification of the model. python manage. py makemigrations appname
4. automatically perform database migration and synchronize the database structure. python manage. py sqlmigrate 0001
5. Create a new data table named python manag
Jmeter simply uses a proxy to record app requests, and jmeter to record app requests
1. Download Jmeter (related blog)
2. Add a proxy
3. perform the following settings after creation
Port 8888: the port number used to set proxy for the mobile phone for a while is the same as the port number here.
3. Set proxy on the mobile phone
Ip: Where is the Jmeter computer?
Port: Above 8888
Iv. Recorde
;
Cylinder number--2nd byte high 2 bit + 3rd byte 8 bit.
4th byte
The partition type character. 00h--indicates that the partition is unused (that is, not specified);
06h--fat16 basic partition;
0bh--fat32 basic partition;
05h--extended partition;
07H--NTFS partition;
0fh--(LBA mode) extended partition (83H for Linux partitions, etc.).
Section 5,6,7 bytes
The end of this secti
A small record of qt Learning (2), qt Learning Record
Well... This time I received a ticket
A graphical interface is required. You can just consolidate and learn QT. I took it without hesitation.
The following issues are recorded:1. QWidget and QDialog
The slot functions in QDialog include accept () and reject (), which can be directly used.
In addition, the QDialog window is displayed in exec () mode, whic
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.