Several Methods of Drawing Network Font by canvas

Recently, when drawing with canvas, we encountered a headache problem: when canvas rendered network fonts, it did not work, so we started a solution search test, and encountered many pits in the middle. So we wrote this article to summarize. If you encounter the same problem when using canvas, we hope to have a certain degree for you. Now let's ...

Posted by lmaster on Sun, 25 Aug 2019 07:13:49 -0700

Regular expressions (base and extension)

grep and sed support basic regular expressions in common file processing tools on Linux systems. grep - Regularly expresses commands to filter file contents. Options: -i: case insensitive when searching; -v: reverse search, showing all columns that do not meet the search criteria; -n: Display the line number of the output; -A: You can append ...

Posted by nyfael on Fri, 23 Aug 2019 21:11:18 -0700

Java - Manual parsing of unquoted JSON strings

Catalog 1 Requirement Description 2 parse code 2.1 Implementation Ideas 2.2 Detailed Code 2.3 Test Sample 1 Requirement Description A batch of JSON-like strings without quotation marks were encountered in the project: {Name:Heal,Age:20,Tag:[Coding,Reading]} It needs to be parsed i ...

Posted by Kathy on Mon, 19 Aug 2019 22:45:46 -0700

Giraph Source Analysis - Statistics of the Number of Vertices Participating in each SuperStep

Author | Bai Song Objective: In scientific research, it is necessary to analyze the number of vertices involved in each iteration to further optimize the system. For example, in the last line of SSP's compute() method, the current vertex voteToHalt is changed to an InActive state. So after each iteration, all vertices are in the InActive state. ...

Posted by sampledformat on Mon, 19 Aug 2019 20:53:20 -0700

Learning Summary of RPC

These two days watching RPC is really a bit of a mystery, some things to see forgotten, forgotten to see! Plus there are some messy things, I feel that these two days need to sort out ideas, and then according to the principle, to achieve a RPC frame ...

Posted by gavinandresen on Mon, 19 Aug 2019 20:38:44 -0700

JavaScript Event Complementation - Make your own stand-alone webpage album

Just a little change, there's a stand-alone photo album of its own. Modify to your own album -- Modify the data in data.js Look at pictures -- just a little special effects Classified Pictures - Select Types Search for pictures - enter keywor ...

Posted by [/Darthus] on Mon, 19 Aug 2019 05:41:49 -0700

TensorFlow Learning Records: Activation Functions

The main function of activation function is to add non-linear factors to solve the problem that linear models can not be multi-classified. It plays a very important role in the whole neural network. Because the mathematical basis of the neural networ ...

Posted by AdamSnow on Sun, 18 Aug 2019 22:24:22 -0700

How to Compile Ceres Android Library with NDK under Mac

How to Compile Ceres Android Library with NDK under Mac Preface Dead work Modify Android.mk content Preface There are many tutorials about Ceres installation on the Internet, but Ceres Android library is really very few, Ceres official website for Android version is also a word skipped. Even i ...

Posted by griemar on Mon, 12 Aug 2019 05:40:34 -0700

Transformer Principle and Code Interpretation

Principles and Code Interpretation (2) brief introduction Code Warehouse Attention module Self-Attention FFN Add & Norm mask bias in attention padding mask for input and output bias in masked selft attention EncoderStack DecoderStack Encode Decode Why move one to the right? brief introdu ...

Posted by Vanness on Sat, 10 Aug 2019 03:26:57 -0700

Explanation of Google Protocol Buffer (protobuf)

Code Walkthrough: Detailed Use of protobuf in caffe [1] Proto file, take BlobShape in caffe.proto as an example syntax = "proto2"; //Specify the protobuf version, default is v2, other versions: "proto3" package caffe; // Finally generate c + + code: namespace caffe message BlobShape { // ...

Posted by Ekate on Fri, 09 Aug 2019 00:47:41 -0700