Category:Program

  • Design a flask-based high-concurrency and high-availability http service for querying ip

    Time:2022-12-8

    structural design The infrastructure is flask+gunicorn+load balancing, and the load balancing is divided into Alibaba Cloud hardware load balancing service and soft load nginx. Gunicorn uses supervisor for management. Use nginx software load structure diagram Using Alibaba Cloud hardware load balancing service structure diagram Because the flask app needs to save the ip tree and […]

  • Whoosh codes a CLI

    Time:2022-12-8

    Today, I am going to recommend a toolIf you don’t plan to develop command-line tools nowThen you can save it firstIn the future, maybe, it should be used Daniel: Brother Egg, I have a task at hand to develop a command line tool. Is there a way to do it quickly? Mr. Egg: use ncgen […]

  • Pro ASP.NET Core MVC 2 Translation Project: Chapter 1

    Time:2022-12-8

    Introduction to ASP.NET CORE MVC 2 For web developers on the Microsoft platform, using ASP.NET Core MVC is a complete shift. It emphasizes clean architecture, design patterns, and testability, and doesn’t try to hide how the web works. ASP.NET Core MVC is a radical shift for web developers using the Microsoft platform. It emphasizes clean […]

  • No one likes Go coding style? No, Gofmt is everyone’s favorite…

    Time:2022-12-8

    Hello everyone, I am Fried Fish. When programming in any language, as long as it involves multi-person collaboration. You will definitely encounter a big problem of peerless struggle. That is: coding style. Go’s, PHP’s, Java’s, C++’s; beginner’s, intermediate’s, advanced’s, management styles; traditional and Internet’s are all different. who has better style For example, in the […]

  • Are you still struggling to learn python with zero foundation? Here to tell you the answer!

    Time:2022-12-8

    The Python programming language is loved by many IT practitioners who use the Python programming language because of its “clearness” and “simplification”. Also, for beginners, Python is easier to pick up than other programming languages. Coupled with the fact that many companies use the Python programming language, the market demand for Python programmers has increased. […]

  • 4. The .Net pressure measurement tool comparable to JMeter – Crank Advanced – Know wrk, wrk2

    Time:2022-12-8

    1 Introduction In the previous article, we learned about bombardier and the relationship between bombardier.yml and the open source project bombardier. In the next article, we learned about wrk and wrk2, and compared their relationship with bombardier. 2. Get to know wrk wrkis a modern HTTP benchmarking tool capable of generating heavy loads while running […]

  • Learn JSON, start here!

    Time:2022-12-8

    1. What is JSON? JSON (JavaScript Object Notation) is a lightweight data interchange format that is easy for humans to read and write. 2. Two forms of JSON 1. Key-value pair form {key1:value1, key2:value2, …} 2. Array form [value1, value2 …] 3. Type Description The type of key is string; There are seven types of […]

  • Summary of common ORM frameworks in JAVA – with an eloquent-orm

    Time:2022-12-8

    ​ORM is the abbreviation of Object Relational Mapping, translated as “Object Relational Mapping” framework. The so-called ORM framework is a technology to solve the mismatch of data types in object-oriented and relational databases. It automatically persists objects in Java applications to relational databases by describing the mapping relationship between Java objects and database tables. table […]

  • “Linux Network Development Must-Learn Course” 8_ Application Protocol Design and Implementation

    Time:2022-12-8

    Question: What does the following code output? Why? printf(“connect success\n”); send(sock, “A”, 1, 0); send(sock, “B”, 1, 0); send(sock, “C”, 1, 0); close(sock); do { r = recv(client, buf, sizeof(buf), 0); if (r > 0) { printf(“Recv: %s\n”, buf); } }while (1); close(client); Complete code client.c #include <sys/types.h> #include <sys/socket.h> #include <netinet/in.h> #include <arpa/inet.h> #include […]

  • Eight comics understand the single sign-on system designed using JWT

    Time:2022-12-7

    JSON Web Token (JWT) is a very lightweight specification. This specification allows us to use JWT to pass secure and reliable information between the user and the server. Let’s imagine a scenario. When user A follows user B, the system sends an email to user B with a link “click here to follow user A”. […]

  • Wenpan Rust — how to package configuration files into binary files

    Time:2022-12-7

    In actual development, various configuration files are often encountered. Usually, various configurations of program running are read from the outside to enhance the flexibility of application configuration. Springboot in the java ecosystem provides a model of this design. The application of springboot loads the configuration through application.yml by default. The default application.yml file is entered […]

  • Lua global variable code specification

    Time:2022-12-7

    1) Lua global variable code specification​2) AssetBundle LockPersistentManager overhead3) Unity built-in fonts are not considered redundant resources in the resource detection report4) On a specific Android device, the Adreno freezes the screen5) Differences in performance between Mask and RectMask This is the push of the 238th UWA technical knowledge sharing. Today we continue to select […]