Tag:code

  • Beginner’s post of trust language

    Time:2021-8-2

    introduction Quickly configure the rust development environment and write a small application! Install rust You can try rust online on rust playground without installing anything on your computer. Without installation, try rust directly Rustup: rust installer and version management tool The main way to install rust is through rustup, which is both a rust installer […]

  • 024 realize linked list 2 through the non safe way of linked list rust

    Time:2021-8-2

    introduce Video address:www.bilibili.com/video/av78062009/Relevant source code:github.com/anonymousGiga/Rust-link… Details This section implements the remaining iterators, drops, and so on. IntoIter The implementation code is as follows: //Implement intoiter pub struct IntoIter<T> (List<T>); impl<T> List<T> { pub fn into_iter(self) -> IntoIter<T> { IntoIter(self) } } impl<T> Iterator for IntoIter<T> { type Item = T; fn next(&mut self) -> Option<Self::Item> […]

  • 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, […]

  • JWT token online code generation

    Time:2021-8-2

    JWT token online code generation JWT token online code generation The three parts of JWT are as follows Header Payload Signature Header header { “alg”: “HS256”, “typ”: “JWT” } Payload ISS (issuer): issuer Exp (expiration time): expiration time Sub (subject): subject Aud (audience): audience NBF (not before): effective time IAT (issued at): issuing time JTI […]

  • Introduction to cloud spring service series

    Time:2021-8-2

    Believe me, please read it carefully and click on each link. Maybe you can really understand what microservice is? What is distributed? What is cloud computing? Absolutely no extra! 1. Microservices Microservice architecture is the “new normal”. Building small, self-contained, ready to run applications can bring great flexibility and flexibility to code. Many specially built […]

  • [git] force local code to be overwritten with remote warehouse code

    Time:2021-8-2

    When the commit operation is performed locally but the remote end has not been pushed, the pull cannot overwrite the new commit file at this time   You need to go back to the previous or specified version locally before revoking the staging area code   Visualization using tortoisegit is more intuitive Click Show log […]

  • 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> […]

  • Introduction to websocket hard core: 200 lines of code to teach you to roll up a websocket server with your bare hands

    Time:2021-8-2

    The original title of this article was “node.js – more than 200 lines of code to implement websocket Protocol”. In order to improve the content quality, it has been greatly revised. 1. Introduction Recently, I am studying the knowledge related to websocket and thinking about how to implement websocket protocol by myself. After collecting some […]

  • [memo] sublime3 configuration

    Time:2021-8-2

    List of installed plug-ins Package Control Sublime Text 3 | Ctrl+~ import urllib.request,os; pf = ‘Package Control.sublime-package’; ipp = sublime.installed_packages_path(); urllib.request.install_opener( urllib.request.build_opener( urllib.request.ProxyHandler()) ); open(os.path.join(ipp, pf), ‘wb’).write(urllib.request.urlopen( ‘http://sublime.wbond.net/’ + pf.replace(‘ ‘,’%20’)).read()) stayPackage Control InstallationPage to find the latest installation code Predawn [skin] HTML CSS JS prefix [for formatting HTML and JavaScript] Pretty JSON [used to […]

  • 19 coding principles I learned from advanced developers

    Time:2021-8-2

    For software development, it is not easy to knock the code all day and debug successfully, but the quality of the code is worrying and the readability is not very high. On the contrary, we have to improve the code. Maybe it’s not your coding ability. It’s likely that some seemingly unimportant coding precautions are […]

  • Emacs development environment configuration (3) — java development environment

    Time:2021-8-2

    1、 Reference Emacs series article directory – updating Java Programming in Emacs 2、 Environment installation 2.1 dependent installation Software explain Java maven 2.2 installationLSP 2.3 installing plug-inslsp-mode M-x package-install [RET] lsp-java [RET] #Create Maven project mvn archetype:generate -DgroupId=com.mycompany.app -DartifactId=my-app -DarchetypeArtifactId=maven-archetype-quickstart -DarchetypeVersion=1.4 -DinteractiveMode=false IIIlspuse 3.1 characteristics characteristic explain Syntax check flycheck/lsp-ui Code completion, auto fill company-capf, […]