Tag:spend

  • How to cache data using MySQL statements?

    Time:2022-6-17

    Query cache settings 1) Verify that the server supports query caching show variables like ‘%have_query_cache%’; | Variable_name | Value | | have_query_cache | YES | 2) The query cache is affected by the following three system variable values show variables like ‘query_cache%’; | Variable_name | Value | | query_ cache_ Limit | 1048576 | / […]

  • poj1260Pearls(dp)

    Time:2022-6-16

    Title Link:http://poj.org/problem?id=1260 Specific ideas: First of all, the number of pearls required is fixed, and the number of pearls required for each kind of pearl can be replaced by pearls that are more valuable (that is, the price is higher). Second, the order of pearls given in the title is from low to high. We […]

  • [ahoi2014 / jsoi2014 / yibentong 1722] Knight Game solution (SPFA doing DP)

    Time:2022-4-22

    Title Description In the game, jyy has two attack modes, one is ordinary attack and the other is spell attack. Both attack methods will consume jyy some physical strength. Attacking monsters with ordinary attacks can not completely kill monsters. The corpse of monsters can turn into other new monsters. Note that a monster may turn […]

  • Golang implements a simple command line progress bar

    Time:2022-4-19

    Sometimes I can’t see the progress after running the script for several hours, so I want to write a simple command-line progress bar. Something like this The main principle is the carriage return character (moving the cursor to the beginning of the line). In this way, you can reprint a line to overwrite the previous […]

  • 2021ccpc online game 8.28 problem solution

    Time:2022-3-11

    2021ccpc online Online 1001、Cut The Wire Check in and think about it according to the meaning of the question Opening time: 0:05 Hand in time: 0:39 Problem: the hand speed is slow. Secondly, it is too complex to think about classification, but it can’t think clearly quickly #include using namespace std; typedef long long ll; […]

  • Building a blockchain with go — Part 4: transaction (1)

    Time:2022-3-1

    I have put the translated series of articles on GitHub:blockchain-tutorial, any subsequent updates will be on GitHub, which may not be synchronized here. If you want to run the code directly, you can also enter the SRC directory in the tutorial warehouse on clone GitHub for executionmakeJust. introduction Transaction is the core of bitcoin, and […]

  • Greedy algorithm (2): gold bar cutting problem, lighting problem, IPO problem

    Time:2022-3-1

    Today, let’s talk about the problem of using greedy algorithm to solve. 1、 Gold bar cutting problem 1. Title Description Cutting a gold bar in half requires copper plates with the same length. For example, a gold bar with a length of 20 costs 20 copper plates no matter how it is cut. A group […]

  • On the disadvantages of automatic testing

    Time:2022-2-14

    Disadvantages of automation 1. Automation is very expensive One reason to want to use automated testing is to save time and effort, but the facts may be biased. The so-called automated testing is that automated testers write one piece of code to test another piece of code written by R & D. in fact, the […]

  • Week 1: batch data insertion in JDBC

    Time:2022-1-27

    When adding data to the database, it is inevitable to encounter the problem of adding data in batch. The following are several methods of batch insertion using JDBC. preparation: Create one in MySQL 5 databasenamessurface There are only two fields in the table id: primary key, auto increment name: varchar (25). Just make sure the […]

  • Front end automated development process

    Time:2021-12-3

    Install node.js and NPM Baidu on your own, INode.jsIt’s been installed for a long time. You’d better read the official documents. Installing yeoman I need it a lot heresudoRun as. sudo npm install -g yo Check whether the installation is successful. yo -v && bower -v && grunt –version If the installation is successful, four […]

  • How to use MySQL statements for data caching?

    Time:2021-11-1

    Query cache settings 1) Verify that the server supports query caching show variables like ‘%have_query_cache%’; | Variable_name | Value | | have_query_cache | YES | 2) The query cache is affected by the following three system variable values show variables like ‘query_cache%’; | Variable_name | Value | | query_ cache_ Limit | 1048576 | / […]

  • Meaning of Mongo slow log field

    Time:2021-10-19

    View the slow log configuration of the current clusterdb.getProfilingStatus(); // If slowms: indicates the time of slow log configurationdb.getProfilingLevel(); // Indicates whether to write the slow log to the system table db.system.profile. 0 means off, 1 means on. Lock mode of MongoMode DescriptionR representatives shared (s) lock. / / sharedW representatives exclusive (x) lock. / […]