Tag:Binary

  • leetcode477. Total Hamming Distance

    Time:2020-7-9

    Topic requirements The Hamming distance between two integers is the number of positions at which the corresponding bits are different. Now your job is to find the total Hamming distance between all pairs of the given numbers. Example: Input: 4, 14, 2 Output: 6 Explanation: In binary representation, the 4 is 0100, 14 is 1110, […]

  • Segmentation fault node error

    Time:2020-7-6

    Error information (dv) [email protected]:~# node -v Segmentation fault (dv) [email protected]:~# npm -v Segmentation fault Using N management, when the node version is rolled back from 9.2.0 to 8.7.0, the binary file download may be completed, and then the node command and NPM command will returnSegmentation fault After checking the stack overflow, I tried to unload […]

  • Running vscode, code server on Browser

    Time:2020-7-5

    preface Time: April 6, 2020Some time ago, apple produced the iPad Pro 2020, and the smart keyboard. With the existing iPad OS, the iPad now looks more like a computer. The official even put out the slogan: “why is the computer your next computer?”With the smart keyboard, the iPad Pro looks a bit like a […]

  • How to submit data by post

    Time:2020-6-29

    When it comes to uploading data, we will naturally sayJson/XML, but these are all data formats. But the way the data is uploaded has always been ignored by me. The current understanding is that four common schemes are commonly used to encode local data throughContent-TypeTo specify the upload method of data, andContent-LengthTo specify the data […]

  • Hyperledger fabric 1.4 standalone installation tutorial

    Time:2020-6-15

    Fabric v1.4.0 stand-alone installation deployment 1、 Preliminary preparation The installation of fabric depends on the docker environment, so the prerequisite is to install docker, and some software versions are also required as follows: Curl requires the latest version, Docker version above 17.06 Docker-compose 1.14.0 and above Go version 1.11 and above The operating system installed […]

  • Getting started with golang development

    Time:2020-6-13

    Go is an incredible language that can be used to build a variety of different applications. From command-line interface to distributed micro system or even cloud platform, the simplicity and concurrency of go make it a powerful language choice for many development teams. First, you need to go to the official getting started page, which […]

  • Introduction and practice of SQL operators in PostgreSQL

    Time:2020-5-26

    Operators are the operational characteristics of database. For the processing of text characters and some label characters, using operators can simplify SQL code, save development time and improve development efficiency. Comparison operator In PostgreSQL, all data types can use the comparison operator, and the comparison operator returns a Boolean value. True or false. The comparison […]

  • Websocket go project, recruit small partners to develop and maintain together~

    Time:2020-5-25

    We have implemented the websocket protocol with go, but there are still many details to polish. We want to recruit a partner to develop, maintain and test together, and learn together. Project address: github.com/yeqown/websocket Current progress: Complete frame reading and writing in websocket Conn enables on / read / write / off TLS connection support […]

  • How to make yarn support the complete acceleration of cnpm

    Time:2020-5-22

    Domestic front-end developers have more or less known about cnpm, but project development varies from person to person. Many times, cnpm will not or cannot be used. Countless projects rely on yarn or other package managers for installation. This article will show you how to speed up binary download in this case. In the GitHub […]

  • I have been working for two years, but I still don’t know how to convert floating-point number to binary number?

    Time:2020-5-21

    Come on, sit down and talk Previously, in the previous article “the boss said: who wants to use double to define the amount of goods, just pack up the things and go”, he had a heartbreaking chat: Dealing with things likeOrder transaction、Currency calculation, andCommodity amountBe careful with floating point numbers(double/float)To define variables, otherwise you may […]

  • Vue uses websocket + JSON + protobuf to interact with back-end golang

    Time:2020-5-21

    When reading this article, don’t be afraid of code. The important core is annotated. The principle is very simple!! Good luck reading When learning a new language, I always like to build a demo project first, and understand the characteristics of the language by building a basic project. For Web interaction, the commonly used technologies […]

  • The fourteenth introduction to Python — file operation

    Time:2020-5-16

    1、 Basic operation of files 1. Open file open(name,mode)   Name – file name string;Mode access mode P.s:Access mode r Read only. File pointer at beginning of file, default mode P. S: no file error is reported when opening rb Binary open file for read-only, file pointer at the beginning of the file r+ Read write, […]