C++ Binary, Decimal, Octal, and Hexadecimal Conversions
In C++, data is input and output in decimal by default.If octal or hexadecimal input and output are required, the corresponding data form must be specified in cin or cout, oct is octal, hex is hexadecimal, and dec is decimal.However, binary has no default output format and needs to write its own function to convert.
Enter the ...
Posted by spelman07 on Fri, 26 Apr 2019 14:30:35 -0700
Skillfully Using cowsay to Make Personalized motd
Message Of The Day
Network engineers or software engineers, especially those who have more access to servers, log on to various terminals is a part of daily life. There is only a slightly monotonous bunch of charact ...
Posted by ChaosKnight on Wed, 24 Apr 2019 18:06:36 -0700
J.U.C|AQS Exclusive Source Code Analysis
I. Write in front
In the last article, we talked about the AQS architecture and its implementation principle through the process of locking and unlocking of ReentrantLock. Principles of J.U.C|AQS.
Understanding the principle, let's see how the source code is implemented step by step.
This chapter talks about the exclusive process of acquiring ...
Posted by WindChill on Tue, 23 Apr 2019 22:54:35 -0700
Shallow in and shallow out Typescript Decorators
Temporary interest, want to write an article about ts decorator, spent half a day sorting out.. This stuff, in ES2017, seems to have... Documentation. Here. Because temporarily, I don't want to write too many text introductions. Just open the code with a little text description.
This article explains what the decorator is through the decorator ...
Posted by mad_hacker on Tue, 23 Apr 2019 14:00:33 -0700
Android Transparent Status Bar Solution
Android Transparent Status Bar Solution
Preface
An android Exploration of an android Second Goods
During the android development process, I saw the interface of APP as shown in the following picture.
It's amazing to find that this kind of status bar is really amazing. It's amazing to see that the status bar and the interface are perf ...
Posted by PolyPill on Sun, 21 Apr 2019 09:54:34 -0700
Try writing a com firm dialog component for Vue.js!
This function is suitable for browsersWriting a web app, often using comfirm, for the overall consistency of the UI, or want to write a component.For the first time, it felt like a failure.
Method 1
The code is as follows
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</tit ...
Posted by ghostrider1 on Sat, 20 Apr 2019 18:09:34 -0700
leetcode423. Reconstruct Original Digits from English
Subject requirements
Given a non-empty string containing an out-of-order English representation of digits 0-9, output the digits in ascending order.
Note:
Input contains only lowercase English letters.
Input is guaranteed to be valid and can be transformed to its original digits. That means invalid inputs such as "abc" or "zerone" are not perm ...
Posted by biohazardep on Sat, 20 Apr 2019 09:09:33 -0700
Comparing the speed of using Mapper ByteBuffer to process files with that of using Buffer alone in java
Processing files is a common operation in java, and a little bit of speed improvement in operating a "large file" (for example, more than 64M) will bring about a huge performance improvement. However, we often use BufferxStream to deal with large files directly, often unable to do so.
The "Mapping File Access" mechanism in ...
Posted by chanfuterboy on Sat, 20 Apr 2019 02:30:34 -0700
StateFramework: A Rapid Development Framework for Android Status Notification Communication
StateFramework
brief introduction
StateFramework is a highly cohesive and low-coupling development framework with "state observer" events as its core, and has high compatibility.
Advantage
This framework provides code and annotation to realize the use of the framework.
Annotations exist only at compile time, and there are no performa ...
Posted by Ironphp on Fri, 19 Apr 2019 22:57:32 -0700
Kubernetes 1.5 Source Analysis (II) Resource Registration of apiServer
Source version
Kubernetes v1.5.0
brief introduction
There are various resources in k8s, such as Pod, Service, RC, namespaces and so on. In fact, the user operates on a large number of resources. But these resources are not messy, they are organized in the way of Group Version. Each resource belongs to a group, and there are versions of resource ...
Posted by sqlmc on Fri, 19 Apr 2019 19:30:34 -0700