DAMN NFO Viewer

In the last lesson, I learned how to load a network picture. In this lesson, I followed the code in the last lesson to write a picture loading program. First, you can reuse the code loaded by the pictures from the previous lesson. What's new is a button, a Text label, and a FileDialog file dialog. The specific code is as foll ...

Posted by hehachris on Wed, 01 Jan 2020 10:38:56 -0800

RocketMQ source code: Producer startup analysis

This paper mainly analyzes the startup process of Producer in RocketMQ. The version of RocketMQ is: 4.2.0 release. 1, Sequence diagram According to the source code, the timing of the Producer startup process is drawn once:   2, Source code analysis 1 start(): DefaultMQProducer starts. The main functions of DefaultMQProducer are impl ...

Posted by pjleonhardt on Wed, 01 Jan 2020 06:57:01 -0800

Wechat applet - Basic Concepts

app.js It is the initialization script of the program, in which you can monitor the life cycle of the applet, apply for global variables, call the api, etc. Use App() to register an applet in this script, and you cannot register multiple applets. App({ onLaunch: function(){},//Monitor initialization onShow: function( ...

Posted by Loathor__Healer on Wed, 01 Jan 2020 05:54:43 -0800

There is a problem configuring the server purchased by the teacher

Yesterday, the teacher changed the database from mariadb to MySQL, and then there was a problem that phpmyadmin could not be used. Let me have a look Linux version: centos7 I thought it might be a PHP version problem, so I wanted to uninstall php5.3 (I don't remember) and install php5.6. As a result, I found that yum was very ...

Posted by evanct on Wed, 01 Jan 2020 04:49:39 -0800

TensorFlow rnn fitting curve

Fitting curves with rnn   Generate the curve point set, X ﹣ ax represents the abscissa, y ﹣ line represents the corresponding ordinate x_ax = np.linspace(-1, 1, num) def fun(x): # Is it not very friendly to the square sum exponential function, because the range of values changes too much? Reduce the definition field to - 1,1 ...

Posted by k89mmmk on Wed, 01 Jan 2020 02:17:50 -0800

The problem of matching scheme of P2756 pilot in Luogu

Full name: linear programming and network flow 24 questions In order of difficulty: 1. Pilot pairing scheme problem (find the maximum number of matches and output the pairing scheme) There are two approaches: 1) the Hungarian algorithm of bipartite graph matching can directly find the maximum matching number, and the best matching scheme is rec ...

Posted by yuraupt on Wed, 01 Jan 2020 00:26:04 -0800

RN + head navigation bar + pull-up refresh pull-down load + list + details

- 1. * create head navigation bar * import React from "react"; import { createTabNavigator } from "react-navigation"; import List from "./List"; //Add a reuse const Good = () => { return <List />; }; const Share = () => { return <List />; }; const Ask = () => { return <List />; }; const Jo ...

Posted by fahhem on Tue, 31 Dec 2019 09:19:36 -0800

Solution to ip address change of CentOS 6.5 clone virtual machine

When we clone a virtual machine, we will find that the network card it uses is eth1. How can we modify the configuration file to configure the network? 1. Modify / etc/udev/rules.d/70-persistent-net.rules We found that there are two lines. We deleted the section with "eth0" above, modified the NAME below to " ...

Posted by DssTrainer on Tue, 31 Dec 2019 04:11:23 -0800

k83 calico network policy

Common CNI network plug-ins include the following: Flannel: Provides network plug-in for overlay network for Kubernetes. Based on TUN/TAP tunneling technology, uses UDP to encapsulate IP messages to create overlay network. Maintains network allocation with etcd. Disadvantage: Unable to support network policy access control.Calico: A three-tier ...

Posted by celavi on Mon, 30 Dec 2019 09:57:42 -0800

Redis cluster deployment

Experimental environmentSimulate 6 servers with 2 servers (add network card) Primary server Redis1:ens33: 192.168.52.150ens36: 192.168.52.153ens37: 192.168.52.154From server Redis2:ens33: 192.168.52.148ens36: 192.168.52.155ens37: 192.168.52.156 Install Redis on both servers [root@localhost ~]# yum install gcc gcc-c++ make -y ##Install envir ...

Posted by nostradamus on Mon, 30 Dec 2019 06:33:27 -0800