Friendly Date Ranges make date ranges more friendly

Convert common date formats such as YYYY-MM-DD to a more readable format. Easy to read format should use month name instead of month number and ordinal number instead of number to represent day (1st instead of 1) Remember not to display the information that can be inferred: if the difference between the end date and the start date in a date r ...

Posted on Sat, 30 Nov 2019 12:57:02 -0500 by graphic3

Using java to describe the algorithm of matrix inversion

Today, I am very happy to solve the problem that has been bothering me for several days, when I was studying linear algebra. If you want to realize the calculation method in the program, such as matrix inversion, how to describe it in java code? First of all, let's describe the algorithm in our language: 1. Find out the cofactor of the determ ...

Posted on Sat, 30 Nov 2019 12:41:37 -0500 by michaelpalmer7

Poj1637 sightseeing tour

Title Link meaning of the title In this paper, we give a mixed graph (with or without directed edges and directed edges) and ask if we can make the graph form an Euler loop by determining the direction of the undirected edges. thinking This is a template problem of mixed graph Euler circuit. In order to satisfy the Euler circuit, a graph must s ...

Posted on Sat, 30 Nov 2019 12:25:25 -0500 by ruddyu78

X264 application engineering

In the next few blogs, learn the implementation process of X264. The analysis of source code refers to Raytheon's blog, thank you Raytheon! Blog link: https://blog.csdn.net/leixiaohua1020/article/details/45536607.   1. overview The flow chart of X264 encoding is as follows:     ​ First, we need to create an encoder, initialize the encoder para ...

Posted on Sat, 30 Nov 2019 10:03:51 -0500 by EagerWolf

Elasticsearch upgrade data migration batch flow operation

I. Introduction Recently, elastic search has been upgraded to the latest 7.4.2 from 5.2.2. An important reason for daring to be so fat is that the data volume of Elasticsearch cluster in this business part is not large, less than 200G. After learning about elastic dump, I finally gave up and decided to write my own code to migrate. Because of t ...

Posted on Sat, 30 Nov 2019 07:01:17 -0500 by biohazardep

fdisk partition hanging disk of Linux series

Thursday, March 28, 2019fdisk partition hanging disk of Linux series [root@hadoop04-184 ~]# df -Th Filesystem Type Size Used Avail Use% Mounted on /dev/mapper/centos-root xfs 47G 8.3G 39G 18% / devtmpfs devtmpfs 3.9G 0 3.9G 0% /dev tmpfs tmpfs 3.9G 0 3.9G 0% /dev ...

Posted on Sat, 30 Nov 2019 03:56:19 -0500 by poison

PCL uses RANSAC to fit segmentation plane by itself

Using PCL segmentation algorithm  pcl::SACSegmentation<pcl::PointXYZ> seg; , do not use the normal parameters, only get the segmentation patch according to the model parameters, which is far from the imagined patch, 1 pcl::ModelCoefficients::Ptr coefficients (new pcl::ModelCoefficients ()); 2 pcl::PointIndices::Ptr inliers (new ...

Posted on Fri, 29 Nov 2019 16:31:16 -0500 by Joopy

Problem 33 of LeetCode -- O (log n) solution of search in rotated array

Problem description Suppose an array sorted in ascending order is rotated at some pivot unknown to you beforehand. (i.e., [0,1,2,4,5,6,7] might become [4,5,6,7,0,1,2]). You are given a target value to search. If found in the array return its index, otherwise return -1. You may assume no duplicate exists in the array. Your algori ...

Posted on Fri, 29 Nov 2019 14:58:14 -0500 by thipse_rahul

Several methods of code alignment in vim

1. The configuration file, vim /etc/vim.rc, is used for configuration. The following configuration options are what you think you need. Write at the bottom of the configuration file set ai                          " Auto indent, new line remains with previous line - to auto space set aw                          " Auto write, ...

Posted on Fri, 29 Nov 2019 14:07:58 -0500 by ngoweb

Java Self-Study-Collection Framework Binary Tree

Java Collection Framework Binary Tree Example 1: Binary tree concept A binary tree consists of nodes Binary Tree Features: Each node can have left and right child nodes Each node has a value package collection; public class Node { // Left Child Node public Node leftNode; // Right Child Node public Node rightNode; // value ...

Posted on Thu, 28 Nov 2019 20:42:24 -0500 by sinbad