How to obtain the attribute information of data changes in C ා - class

I. Preface In normal development, when the user modifies the data, there is no good way to record the specific modified information. We can only temporarily use the method of serializing the class into a json string and then inserting it into the log. At this time, if we want to know which field values the user has changed, it is very difficult ...

Posted on Thu, 06 Feb 2020 23:54:52 -0800 by jprazen

Chinese data set

Chinese NLP corpus collation News text classification corpus Sentiment analysis corpus Entity analysis corpus Garbage classification corpus When personal development is doing many NLP related tasks, i ...

Posted on Thu, 06 Feb 2020 05:20:03 -0800 by NNTB

Network probe: Blackbox Exporter

What is a blackbox exporter? Blackbox Exporter is the official black box monitoring solution provided by Prometheus community, which allows users to detect the network through: http\HTTPS\DNS\TCP\ICMP Running blackbox exporter as docker Pull mirror image docker pull prom/blackbox-exporter Check the dockerfile (this is a good habit) $ cat chec ...

Posted on Thu, 06 Feb 2020 01:32:03 -0800 by gapern

Preferred: can be empty < T >. Hasvalue or Nullable <T >! = empty?

I always use nullable < >. Hasvalue because I like the semantics. However, recently I am developing an existing codebase for others, where they specifically use nullable < >! = null. Is there a reason to prefer one, or is it purely a preference? int? a; if (a.HasValue) // ... And int? b; if (b != null) // ... #1 bui ...

Posted on Wed, 05 Feb 2020 21:55:15 -0800 by arundathi

TypeScript fragrance series - Enumeration

Preface The contents of TypeScript fragrance series will refer to Chinese document , but the examples in this paper will not be the same as those in the document, and some places will be studied in depth. In addition, the results of some examples are compiled into JavaScript after the code has no erro ...

Posted on Wed, 05 Feb 2020 21:01:13 -0800 by mikewooten

MNN framework learning: tensorflow image classification model deployment

1. Model transformation First download the tensorflow model. The download address is: https://github.com/tensorflow/models/tree/master/research/slim Then, use the compiled MNN tool to transform the model: ./MNNConvert -f TF --modelFile mobilenet_v1_1.0_224_frozen.pb --MNNModel mobilenet.mnn --biz ...

Posted on Wed, 05 Feb 2020 06:41:22 -0800 by scottchr226

cast of Go daily

brief introduction Today we will introduce another library of SPF 13 cast . cast is a small and practical type conversion library for converting one type to another. cast was originally developed for hugo Medium. Rapid use First install: $ go get github.com/spf13/cast After use: package main import ( "fmt" "github.com/spf13/cast" ) fun ...

Posted on Tue, 04 Feb 2020 04:18:06 -0800 by Lumio

buuctf [De1CTF 2019]SSRF Me (recording idea)

It's said at the beginning in flag.txt After entering, there is a pile of source code. It is recommended to enter github to check the source code, otherwise it is not easy to analyze. The code is as follows. Here, record the process of doing the problem and write your own ideas according to the big guy ...

Posted on Sun, 02 Feb 2020 02:22:23 -0800 by SnowControl

Python multiprocessing pool.map for multiple parameters

In Python multiprocessing libraries, is there a variation of pool.map that supports multiple parameters? text = "test" def harvester(text, case): X = case[0] text+ str(X) if __name__ == '__main__': pool = multiprocessing.Pool(processes=6) case = RAW_DATASET pool.map(harvester(text,case),case, 1) pool.close() pool ...

Posted on Sat, 01 Feb 2020 07:10:31 -0800 by victor78

Function anti shake and throttling

cause Because you need to monitor the mouse wheel when writing the front-end page, which will trigger many functions in a short time, causing the page to jam. I happened to see this when I was looking at GitHub, so I recorded it. debounce Function anti shake is to make a function wait for a certain time after the last execut ...

Posted on Fri, 31 Jan 2020 07:14:09 -0800 by aniket_dj