Basic use of RecycleView and Adapter

1. Create a layout file. Word "fragment" is used to put Recycle and word "fragment" grad "cell is used to put small cells Word? Fragment layout: Word? Fragment? Grad? Cell layout: (card layout) 2. Create the adapter wordFragmentAdapter class package com.example.ngsl.wordFrag ...

Posted on Wed, 12 Feb 2020 10:36:44 -0800 by dlester

Two solutions to over fitting

This paper mainly studies the book of dive into DL pytorch. So most of the content of this blog comes from this book. The framework uses pytorch, and the development tool is pycharm Refer to hands-on deep learning Reference link https://github.com/ShusenTang/Dive-into-DL-PyTorchhttps://github.com/zergta ...

Posted on Wed, 12 Feb 2020 04:41:51 -0800 by baw

Openshift 4 hands on Lab - Build and update images with Build, Builder Trigger, Webhook

Article directory Related concepts of building image BuildConfig Build Builder Image Build Trigger and Build Chain Trigger Build to create or update images Build Trigger based on Webhook Using Build Trigger to update Image automatically Related concepts of building image Applications runni ...

Posted on Wed, 12 Feb 2020 04:18:38 -0800 by Stressed

FFmpeg audio player - create FFmpeg player

Original address: https://www.jianshu.com/p/73b0a0a9bb0d Related articles 1. FFmpeg audio decoding and playing---- https://www.jianshu.com/p/76562aba84fb 2. Playing music files through FFMpeg---- https://blog.csdn.net/chenhy24/article/details/84201421 3. ffmpeg command operation audio format conv ...

Posted on Wed, 12 Feb 2020 00:46:45 -0800 by tmed

Leetcode 1349: Maximum number of students taking the exam (super-detailed solution!!!)

Give you an m * n matrix seats to represent the seat distribution in a classroom.If the seat is bad (unavailable), use'#'to indicate it; otherwise, use'.'. The student can see the answers of the students who are close to him in the four directions of left, right, upper left and upper right, but he canno ...

Posted on Tue, 11 Feb 2020 20:27:00 -0800 by PaulRyan

What the hell is "PLEG is not health" in Kubelet?

>Original link: Deep understanding of PLEG is not health in Kubelet In the Kubernetes community, PLEG is not health has been famous for a long time. As long as this error occurs, there is a high probability that the Node status will become NotReady. There are also a large number of community related issue s. Let me list them for you: https: ...

Posted on Mon, 10 Feb 2020 23:03:04 -0800 by Harry57

FreelistManager for BlueStore Source Analysis

Preface BlueStore manages bare devices directly and needs to manage space allocation and release on its own.The results of Stupid and Bitmap allocators are stored in memory, and the persistence of allocation results is done through FreelistManager. A block can be in either occupied or idle state. Only one state needs to be recorded for persiste ...

Posted on Mon, 10 Feb 2020 18:57:51 -0800 by banjax

Canary learning of PWN

Canary Reference link: https://ctf-wiki.github.io/ctf-wiki/pwn/linux/mitigation/canary-zh/ 0x1 introduction: A method to prevent stack overflow from being used is to put a random number under the ebp of the stack. Before the function returns, it will check whether the number has been modified, and then it can detect whether stack overflow has o ...

Posted on Mon, 10 Feb 2020 02:27:19 -0800 by Ruud Hermans

koa intermediate implementation mechanism

start Based on koa 2.11, it is analyzed according to the following process: const Koa = require('koa'); const app = new Koa(); const one = (ctx, next) => { console.log('1-Start'); next(); ctx.body = { text: 'one' }; console.log('1-End'); } const two = (ctx, next) => { console.log('2-Start'); next(); ctx.body = { text: 'two ...

Posted on Sun, 09 Feb 2020 20:13:45 -0800 by Dustin013

ESP8266 development tour application part ⑦ simple version online access to new coronavirus in specific provinces

It is better to teach people to fish than to teach people to fish. The purpose is not to teach you specific project development, but to learn the ability of learning. I hope you can share it with your friends or classmates who are in need around you. Maybe there is a foundation stone of Bogor in the wa ...

Posted on Sun, 09 Feb 2020 01:16:35 -0800 by douga