Category:Blogs

  • Map and factory model

    Time:2020-9-26

    Map and factory pattern The value of a map can be a method Together with the dock type interface mode of go, it is convenient to implement the factory mode of a single method object func TestMap(t *testing.T) { m := map[int]func(op int) int{} m[1] = func(op int) int { return op } m[2] = […]

  • K8s multi cluster configuration management platform

    Time:2020-9-26

    K8s multi cluster configuration management platform Temporary cluster features Simulate production environment Overall environment description Intranet: 10.17.1.44 [[email protected] account-server]# kubectl get nodes NAME STATUS ROLES AGE VERSION localhost Ready master 25h v1.17.5 [[email protected] account-server]# kubectl get pods -A NAMESPACE NAME READY STATUS RESTARTS AGE cattle-system cattle-cluster-agent-689f8dcc64-7slpk 1/1 Running 0 78m cattle-system cattle-node-agent-7lndv 1/1 Running 0 […]

  • (89) WinForm custom control – Custom scroll bar (treeview, panel, DataGridView, listbox, listview, textbox)

    Time:2020-9-26

    Official website http://www.hzhcontrols.com/ premise Has been in the industry for 7,8 years, has always wanted to do a set of beautiful custom controls, so there is a series of articles. GitHub:https://github.com/kwwwvagaa/NetWinformControl Code cloud: https://gitee.com/kwwwvagaa/net_ winform_ custom_ control.git If you think the writing is OK, please click a star to support it Welcome to discuss: Penguins […]

  • Complete entry record of. Net core microservices (end) — Ocelot and swagger

    Time:2020-9-26

    Tips: This article has been added to the reading list of series articles. You can click to see more related articles. preface In the last article, docker composition and container network was completed- compose.yml Finally, the whole complex environment can be run in docker by using an up instruction of docker compose. This article briefly […]

  • Random name generation method

    Time:2020-9-26

     Transferred from: http://www.maomao365.com/?p=10025 Abstract:The method of generating Chinese names using SQL script is as follows:Experiment environment: SQL Server 2008 R2 In our work, we sometimes need to generate random names in batches. The following describes how to use SQL scripts to generate random “names”, as shown below:Realization idea:1. Define a family name database2. Define a […]

  • JWT permission source sharing part2 in B2B2C system

    Time:2020-9-26

    We shared the basic design and source code of JWT permission in B2B2C system with you in the previous article “JWT permission source sharing Part1 of B2B2C system”. This article continues to share with you the ideas and source code of JWT and spring security integration. In the last article, we shared the key class […]

  • Inner class

    Time:2020-9-26

    Anonymous class Static decorated members and access package com.ice.test00; /** * @author lucky_ice *Copyright:**** *Version: version 1.0 */ public class Animal { //Member variable int age; String name; //Member method public void eat() { System.out.println(“eat…”); } /** *Variables modified by static: static variables (class variables) *Methods modified by static: static methods (class methods) *Static variables […]

  • How to improve the overall performance of dual port SRAM

    Time:2020-9-26

    SRAM is widely used in various digital devices because of its high-speed and static advantages. It is often used as a buffer between different components. It plays an important role in the computer architecture, that is, the cache embedded in the CPU. The processing speed of computer is increasing rapidly. In order to provide enough […]

  • C actual combat exercise topic 26 – finding factorial by recursion

    Time:2020-9-26

    Title:Use recursive method to find 5!. Program analysis:Recursive formula: FN = FN_ 1*4! example: #include int main() { int i; int fact(int); for(i=0;i<6;i++){ printf(“%d!=%d\n”,i,fact(i)); } } int fact(int j) { int sum; if(j==0){ sum=1; } else { sum=j*fact(j-1); } return sum; } The output results of the above examples are as follows: 0!=1 1!=1 2!=2 […]

  • Review of MySQL 10: TCL and transaction presentation

    Time:2020-9-26

    The mountain sits with the banquet and draws pictures, the water makes the night window, and the wind and rain come. It’s wonderful to see the water and the mountains. What’s more, it will pollute the platform. After the baptism of wind and rain, the trees on the opposite side of the mountain, the flowers […]

  • JetBrains round 2: another three months for the free family bucket

    Time:2020-9-26

    Yesterday, I shared how to get the exchange code of the original family barrel by participating in the decryption task of JetBrains. Today, JetBrains continued to launch the second wave of tasks on twitter early this morning: Now, let’s continue to take part in the fight to save the lives of our original JetBrains family! […]

  • PHP mysqli_ stmt_ bind_ Param mysqli function

    Time:2020-9-26

    Definition and Usage mysqli_stmt_bind_param– bind variables to prepared statements as parameters Version support PHP4 PHP5 PHP7 I won’t support it support support grammar mysqli_stmt_bind_param ( mysqli_stmt $stmt , string $types , mixed &$var1 [, mixed &$… ] ) Pass to mysqli_ In the SQL statement of prepare(), bind variables for parameter markers. be careful: if […]