Tag:Example

  • Brute force cracking MySQL database with Python

    Time:2021-8-2

    Today, let’s share a small example of Python learning. We use Python to brutally crack the MySQL database. The implementation method is to realize the visual panel effect through the UI class library Tkinter. In the panel, enter the necessary information for database connection, such as host address, port number, database name, user name, password, […]

  • Understand how c# generics work

    Time:2021-8-2

    preface We all know the importance of generics in c#. Generics are the most important embodiment of polymorphism of the three major features in OOP language. Almost generics support the whole. Net framework. Before talking about generics, we can throw a problem. Now we need an array class with expandable capacity, which can meet all […]

  • Spring boot is combined with mybatis and druid to realize multiple data sources, which can be switched automatically

    Time:2021-8-2

    Original address: https://blog.lanweihong.com/p… Github: spring-boot-mybatis-multiple-data-source Add dependent packages editpom.xmlFile, add related dependencies: <parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>2.4.8</version> <relativePath/> </parent> <properties> <mysql.driver.version>8.0.16</mysql.driver.version> <mybatis.spring.boot.version>1.3.2</mybatis.spring.boot.version> <druid.version>1.1.10</druid.version> <tk.mybatis.version>2.1.5</tk.mybatis.version> <lombok.version>1.16.18</lombok.version> </properties> <dependencies> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> </dependency> <dependency> <groupId>org.projectlombok</groupId> <artifactId>lombok</artifactId> <version>${lombok.version}</version> </dependency> <dependency> <groupId>org.mybatis.spring.boot</groupId> <artifactId>mybatis-spring-boot-starter</artifactId> <version>${mybatis.spring.boot.version}</version> </dependency> <!– mysql driver –> <dependency> <groupId>mysql</groupId> <artifactId>mysql-connector-java</artifactId> <version>${mysql.driver.version}</version> </dependency> <dependency> <groupId>com.alibaba</groupId> <artifactId>druid-spring-boot-starter</artifactId> <version>${druid.version}</version> <exclusions> <exclusion> […]

  • New syntax in ES6 (3) — object oriented

    Time:2021-8-2

    Two changes of JSON in ES6 Shorthand: JSON can be shorthand when the name and value are the same let a=12,b=5; let json = { a, b } console.log(json) // { a:12 , b:5 } Omit function: functions in JSON can be abbreviated let persen ={ Name: ‘Qianqian’, age:18, showName(){ alert(this.name) } } persen.showName() ES6 […]

  • Hundreds of HTML5 examples to learn HT graphics components – topology

    Time:2021-8-2

    HTEverything you need to create cutting edge 2D and 3D visualization This slogan was the product direction in my mind at that time, and then slowly polished in this direction. NowHTIt can be said that we have achieved such an effect, not to mention exhausting the strength of the pioneers, but we are very satisfied […]

  • Use the Android studio profiler tool to parse the application’s memory and CPU usage data

    Time:2021-8-2

    In order to help developers develop lighter and more efficient applications, we have added Android profiler tool to Android studio 3.0 and later for CPU, memory, network and energy consumption analysis of applications. Among the four performance data provided by Android profiler, we are more concerned about CPU and memory usage in most scenarios. This […]

  • Dependency injection container — PHP version of the Phalcon container

    Time:2021-8-2

    The PHP version of Phalcon relies on the injection container Environmental requirements php7.0+ install composer require fanqingxuan/di If you want to install the PHP extension container, please refer todi-extThe usage is as like as two peas. Basic Usage require_once ‘vendor/autoload.php’; use JsonDi\Di; class Test { } $di = new Di; //Injection mode $di->set(‘test’, ‘Test’); $di->set(“test2”, […]

  • 1. Basic structure of Java program

    Time:2021-8-1

    Series articles: 1. Basic structure of Java program 2. Idea, maven, basic use of debugger 3. Java data type About the series of articles, I have moved to the community document and will not be updated in the blog related content. I hope you know. Welcome to subscribe to the documentJava notes~ Welcome to the […]

  • Lesson 68 of web front end – new features of H5: Canvas case (scratch music, small ball animation, seamless picture scrolling)

    Time:2021-8-1

    1. Scrape music Case Objective: using canvas binding events to simulate a simple scraping program. Case idea: introduce the winning or not background picture on the canvas, and then cover the coating on the picture when the mouse clicks And wipe the coating on the path when moving to display the winning information. Main events: […]

  • Spark – RDD usage

    Time:2021-8-1

    Resilient distributed dataset (RDD) is the core concept in spark. To put it simply, create an RDD in spark, and then perform various operations on the data through RDD. RDD creation The creation of RDD includes: Create from collection Create from other storage such as HDFS, local files, etc Create from other RDDS The following […]

  • Vue Foundation (x): Vue routing (II)

    Time:2021-8-1

    1. Routing 1.1 Vue router dynamic route matching 1.1.1 basic usage of dynamic matching routing Application scenario: route matching through the mode of dynamic routing parameters. Document User1 User2 User3 Register const User = { //Get routing parameters through $route.params in the routing component Template: ‘< H1 > user component — user ID: {{$route. Params. […]

  • How to use const, readonly, static in C #

    Time:2021-8-1

    Const, readonly and static keywords are often used in development. It is certain that these keywords are completely different concepts, but sometimes they are so similar in usage that they do not know which to choose in the scene. In this article, we will discuss const, static and readonly keywords in c# and compare them […]