• Golang deals with JSON structures


    First, let’s take a look at the JSON string { “resp”: { “respCode”: “000000”, “Respmsg”: success, “app”: { “appId”: “xxxxxx” } } } Go has built-in JSON string parsing package “encoding / JSON” Next, we need to define the structure. According to the analysis of the JSON library, eachCurly bracketsIt’s a structure The disassembled structure […]

  • How to configure Tomcat and project in IntelliJ idea?


    1、 Configuration item Open project structure Configure project There are four points to note:1. The name of the project can be selected at will.2. Create a new JDK installation path.3. Select a 6.0 interface.4. The classes path of the project. [configure modules] First configure the source. Click “+” to add items. Items will appear in […]

  • After class questions of Chapter 3 of essential C + +


    Exercise 3.1 #include<iostream> #include<fstream> #include<iterator> #include<vector> #include<set> #include<map> int main() { std::ifstream in_file(“news.txt”); std::ofstream out_file(“news_word_cnt.txt”); if (!in_file || !out_file) { std::cout << “can not read/write file” << std::endl; } //Create a new vector and use the generic algorithm copy to fill in the vector std::vector<std::string> text; std::string useless_words[3] = {“a”, “and”, “is”}; std::set<std::string> useless_set(useless_words, useless_words […]

  • Explain the status values of SQL Server: runnable, running, suspended, sleeping


    During the management, monitoring and performance tuning of SQL server, we may execute the following SQL instructions to observe the status of SQL Server: SELECT * FROM sys.sysprocesses; EXEC sp_who2; SELECT sqltext.TEXT, req.session_id, req.status, req.command, req.cpu_time, req.blocking_session_id, req.total_elapsed_time FROM sys.dm_exec_requests req (NOLOCK) CROSS APPLY sys.dm_exec_sql_text(sql_handle) AS sqltext As shown in Figure 1, there is a […]

  • Android easy music player


    Function: play, pause, previous song, next song Partial Demo: MainActivity: public class MainActivity extends Activity implements OnClickListener { //Get the title and author text box of song in the interface TextView title, author; //Play / pause, stop button ImageButton play, stop; //Last song, next song ImageButton pre, next; ImageView cover; ActivityReceiver activityReceiver; public static final […]

  • DCF valuation — Shanghai airport as an example


    DCF (discounting cash flow) valuation method presupposes that the company isSustainable operationWithout this assumption, the valuation method will not hold.When using the free cash flow discount model for valuation, such as strong cycle enterprises, the discount rate is usually more than 10%, but the discount rate for leading enterprises of consumer goods is usually lower […]

  • [CSS knowledge-5] CSS3 style part sorting


    Rounded borders and shadows be careful: -Moz stands for the private properties of the firebox browser -MS stands for private property of IE browser -WebKit represents the private properties of chrome and safari Code example Text and text Code example Rotation and scaling of 2D transformation Often used in such scenes .box:hover{ transform: scale(1.2); } […]

  • Keyboard man Linux tutorial (5) | basic rights management


    Basic authority management Introduction of authority Meaning of permission bit When we explained the LS command earlier, we already know that the first column of the long format display is the file permission, for example: [[email protected] ~]# ls -l anaconda-ks.cfg -rw——-. 1 root root 1573 May 18 23:28 anaconda-ks.cfg The first bit is the file […]

  • Keyboard man Linux tutorial (6) | regular expressions and wildcards


    #Wildcard Used to match file names, * * exactly match** |The role of wildcard| |:–:|:–:| |Match an arbitrary character| |*|Matching 0 or any number of arbitrary characters means that you can match anything| |[] | matches any character in bracket. For example, [ABC] means that a character must match, either a, or B, or C| […]

  • Java main function


    Main function: a special function that can be called by the JVM as the entry point of the program. The definition of the main function is as follows Public: this means that the function has the maximum access rights. Static: represents that the main function already exists with the class loading. Void: the main function […]

  • A wave of data analysis on the 19 representatives


    This year, a total of 2287 delegates went to Beijing for a meeting. They did a data analysis. The effect is shown in the figure below. Others can also be screened out, such as the number of people surnamed XX and the number of people surnamed XX. I can clearly tell you that there is […]

  • Understanding of umask in new file permission setting under Linux


    The origin is a question 1: if your umask is set to 022, the default permissions for the file you create are? This reminds me of another question that I was asked about, 2: 777, what is the authority? User group description -rwxrw-r‐-1 root root 1213 Feb 2 09:39 abc The first character represents file […]