Docker--DockerFile creates its own image
Echo edit, welcome to reprint, reprint please declare article source.Welcome to add echo WeChat (Micro Signal: t2421499075) to exchange learning.Never lose a hundred battles, never claim to be a constant winner, never fail, and always strive to move forward.- That's really powerful!!!
As we use many of the images in the docker library, we can ...
Posted by cap97 on Mon, 16 Dec 2019 19:06:50 -0800
bind function of UDP sender in c/c + + network programming
bind function of UDP sender in network programming
The effect of calling bind function on the sender of upd: assign socket to a specific port. If bind is not called, the kernel will randomly assign a port.
The purpose of the upd sender calling the bind function: if there are two senders and the receiver needs to identify which sender is co ...
Posted by andym01480 on Mon, 16 Dec 2019 08:06:36 -0800
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
Clustered Quartz Timing Task Framework Practice
In the daily development summary, you often encounter scenarios that require timed tasks. Simple, you can use Spring's timed task scheduling framework or Quartz.Either way, there is a problem that needs to be solved, that is, the cluster problem.Typically, a timed task can and can only run on one application instance.
premise
This projec ...
Posted by alcapone on Sun, 15 Dec 2019 03:07:14 -0800
Go basic learning record - write Web application - Some Thoughts on Routing and program startup
In recent years, I have reconsidered my Web application. First of all, in the main.go file of program startup, there is not too much problem in the temporary route adding. However, according to the previous project development experience, if this system is shared with others, then when making a large project, there will be many routes added, an ...
Posted by TechGnome on Sat, 14 Dec 2019 09:54:08 -0800
(100) experience LeetCode
github demo : https://github.com/happyjiatai/LeetCodeTest/tree/master/1_two_sum
1. search
Use Baidu Search
The first link is leetCode international? The second is the Chinese version. I have entered the Chinese version.
2. interface
3. topic
Just click the sum of the first two numbers
3.1 coding
class Soluti ...
Posted by andyd34 on Sat, 14 Dec 2019 09:00:33 -0800
The most elegant and simple way for java reflection to get parameter names with asm
Background description
Recently, I wrote reflection-related code and wanted to get the name of the corresponding parameter, but found there was no particularly good way.
jdk7 and before was not able to get parameter names through reflection.
jdk8 is available, but there are many restrictions on specifying the-parameter startup parameter.
I tri ...
Posted by salmanshafiq on Sat, 14 Dec 2019 01:13:44 -0800
Evolution of ThreadLocal -- inheritable ThreadLocal
Previously, we introduced ThreadLocal. Later, JDK made an upgrade version of InheritableThreadLocal for this purpose. Today, we will introduce it.<!-- more -->
Why upgrade
First of all, let's think about it. Why upgrade? This is about the function of ThreadLocal.
We know that the original intention of ThreadLocal design is to have a copy ...
Posted by wyrd33 on Fri, 13 Dec 2019 09:03:14 -0800
The config module of beego source parsing
target
The config module refers to the implementation mode, interface and implementation separation in database/sql. In this tutorial, the implementation of ini format configuration is selected and the integration mode of beego and config module is analyzed to achieve the following three goals.
Understand the source code implementation of conf ...
Posted by rogair on Fri, 13 Dec 2019 04:10:29 -0800