From entry to mastery
In the world of fluent, everything is Widget, image, text, layout model and so on. Everything is Widget
In the fluent, try to put the widget in the MaterialApp. It encapsulates some required widgets. MaterialApp is generally used as the top-level widget, while Scaffold is set inside MaterialApp, because Scaffold provides the basic implementati ...
Posted by Confessions on Tue, 05 Nov 2019 18:58:58 -0800
pytorch learning note 5 - Case Study
The first is a two-tier network, using the numpy version and the python version
In fact, if you compare carefully, the difference is not big. The amount of code is similar. Because there is no automatic gradient calculation using pytorch.
numpy version
# -*- coding: utf-8 -*-
import numpy as np
# N is batch size; ...
Posted by sms.sanal on Tue, 05 Nov 2019 13:24:48 -0800
Using Yolov3 for batch testing and custom saving under Windows
1. Open the project file darknet.sln of Darknet with VS
2. Find detector.c for modification
1) add header file
#include <sys/stat.h>
#include<stdio.h>
#include<time.h>
#include<sys/types.h>
2) add GetFilename function
char *GetFilename(char *p)
{
static char name[20] = { "" };
char *q ...
Posted by Micah D on Tue, 05 Nov 2019 11:59:54 -0800
Building of load balancing in LVS DR mode (single network segment)
The experiment needs five virtual machines, all of which are centos7
Client
Router
lvs server
172.22.144.188
1 interface 172.22.144.17 2 interface 192.168.49.5
172.22.144.17 192.168.49.5
rs1 server
rs2 server
192.168.49.3
192.168.49.4
**Client configuration**
vim /etc/sysconfig/nerwork-scripts/ifcfg-ens33
DEVICE=ens33
NAME=ens33
...
Posted by isurgeon on Tue, 05 Nov 2019 06:51:20 -0800
A summary of the use of generics in Android in actual projects
Preface
Why summarize the use of generics? How does generics represent value in a project? Don't talk about it. Summarize it. From practice to theory, finally return to generic nature.
1. What is generics? Why generics?
Definition:
Generics: the "broad data type", any data type.
Effect:
Generics can solve the security problem of data ...
Posted by baselinej on Tue, 05 Nov 2019 02:15:53 -0800
Getting started with docker - install docker and use docker to build a PHP environment. Learn about Dockerfile
First of all, we need to install the docker environment. This is relatively simple. Take centos7 as an example.
docker needs kernel version 3.10 + to install on centos7. You can check the kernel version number through uname-r. if the version does not match, please consult the data for replacement.
When you are ready, use the following command t ...
Posted by beebum on Mon, 04 Nov 2019 02:47:25 -0800
How to manage the network with Linux command line efficiently?
Preface
In our daily work, the Linux server operating system that we often use, whether it is to view the information of network devices, manage network interfaces, download files, debug network problems or view network statistics, can be completed by commands under the terminal.
ifconfig / ip a
The command ifconfig is similar to ip a, which is ...
Posted by jazz_snob on Sun, 03 Nov 2019 01:49:02 -0700
How to transplant boa based on am335?
boa transplantation based on am335 needs five steps in total. Here are the detailed steps. You can learn from those who are unfamiliar with this knowledge.
1. Prepare development environment:
(1)VMware 10.0
(2)Ubuntu 14.04 64bit
(3) Sail335 development board
(4) cross compiler: gcc-linaro-arm-linux-gnueabihf-4.9-2014.09_linux
2. source code:
( ...
Posted by Fabrizzio PHP on Sun, 03 Nov 2019 01:15:22 -0700
Reading messages of Netty source code analysis
The server gets the read event, and the network module starts to read the message
public final class NioEventLoop extends SingleThreadEventLoop
// Also check for readOps of 0 to workaround possible JDK bug which may otherwise lead
// to a spin loop
if ((readyOps & (SelectionKey.OP_READ | SelectionKey.OP_ACCEPT)) ! ...
Posted by Germaris on Sat, 02 Nov 2019 20:26:38 -0700
shell script - switch soft link file (nagios monitoring)
Task: you need to define services in nagios to detect the state of three DC S (1. Host state, 2. Consumer cluster state, 3.nomad cluster state). As long as one of the service states fails, trigger nagios eventhandler to change the link file of dns server, as shown in the figure above.
Script: server address in script is different from actual
...
Posted by OsvaldoM on Sat, 02 Nov 2019 04:26:20 -0700