GO installation and operation of redis

1. Install redis and start redis service windows installation tutorial: linux Installation Tutorial: 2. Use go get to download redis extension package Execute the installation command at the cmd command line: go get github.com/garyburd/redigo/redis After installation, the source package will be placed in the $GOPATHF/src/github.com d ...

Posted by jason102178 on Mon, 16 Dec 2019 06:25:12 -0800

Hand tear source code series - functor + observer mode + status = Promise

Preface Some time ago, I was too busy to write a blog for nearly a month, but Promise had summed up a wave of how to realize it long ago, but at that time, it was purely for the purpose of realization, without elaborating some of the clever designs. Until recently, when I was learning the knowledge related to functional programming, I found tha ...

Posted by Nightseer on Sun, 15 Dec 2019 12:17:47 -0800

Red, green or something is the most interesting

Recently, the stock market of a factory has fallen sharply. It's really green, so there are all kinds of jokes As expected, what's red and green is the eternal topic. The stock market is as deep as the sea In the web development related to financial companies, it is a common demand to show the up and d ...

Posted by the_NEWBIE_ON_THE_BLOCK on Sun, 15 Dec 2019 09:46:26 -0800

goweb build service

Introduction to web application Web applications are everywhere in our lives. Take a look at the applications we use every day. They need to It's either a Web application or a variation of a Web application like a mobile App. No matter which programming language, as long as It can develop software that interacts with human beings, and it will c ...

Posted by kiju111 on Sun, 15 Dec 2019 06:27:58 -0800

python co program generator

Co process, also known as micro thread, fiber process. The English name is Coroutine. Threads are system level and they are scheduled by the operating system, while coroutines are program level and are scheduled by the program itself as required. There are many functions in a thread. We call these functions subroutines. During the execution of ...

Posted by chandler on Sun, 15 Dec 2019 02:56:32 -0800

[GA]Verilog 60s stopwatch timer (maximum timetable up to 9 min)

[GA]Verilog 60s stopwatch timer 1. Citation This experiment is based on an optional topic during my undergraduate course Number of Junctions.Since the upload was post-perception and the school had recycled the toe plates, it was impossible to post an effect picture of the code results in this article, but the final effect has been tested and ca ...

Posted by kruahsohr on Sun, 15 Dec 2019 00:44:15 -0800

SpringBoot profile injection related

SpringBoot configuration related 1. Profile injection _In SpringBoot you can inject a configuration file with four notes:   @ConfigurationProperties   @Value   @PropertySource   @ImportResource _1.@ConfigurationProperties usage _Centered like this in my profile application.yml person: lastName: hello age: 18 boss: false birth: 2017/12/12 ...

Posted by perpetualshaun on Sat, 14 Dec 2019 17:51:41 -0800

A strange memcpy problem

When you see this title, you must be thinking about the bug s caused by memory overlap. I admit that you are right, but not all of them. If you are interested in this, you can continue to look down, and you will surely get something. First of all, I will briefly introduce the background. Recently, there is a strange problem in the company's pr ...

Posted by cordex on Sat, 14 Dec 2019 11:41:16 -0800

Division of numbers [codevs], [golden question], [dynamic programming]

Division of numbers Train of thought: in this question, I tried to use dp written recursively to build a table by memory. In dp [x] [y] [z], X represents the number to be allocated, Y represents the score in the future, and z represents the remaining allocation opportunities.   dp equation is dp[x][y][z] = sum {dp[x-k][k][z ...

Posted by JVassie on Sat, 14 Dec 2019 11:03:48 -0800

Codeforces - 780c andryusha and colded balloons (ideas, bfs)

describe Andryusha goes through a park each day. The squares and paths between them look boring to Andryusha, so he decided to decorate them. The park consists of n squares connected with (n - 1) bidirectional paths in such a way that any square is reachable from any other using these paths. Andryusha decided to hang a colore ...

Posted by TCovert on Sat, 14 Dec 2019 10:14:49 -0800