Building a high black box monitoring platform

Summary In the monitoring system, we usually divide the monitoring into white box monitoring and black box monitoring Black box monitoring: the main concern is generally what is happening. For example, when an alarm occurs and the service interface is abnormal, this monitoring is the monitoring that can be seen from the user's point of view, ...

Posted by ShaolinF on Wed, 06 May 2020 02:55:43 -0700

Using JavaScript to convert XML to JSON

Recently, there is a requirement in developing projects. The strings of XML messages queried from the database need to be parsed with parameters, which supports modification on the page. Therefore, the function of parsing XML text using JavaScript is born. The specific idea is to get the DOM object of XML, and then through traversal and recur ...

Posted by matts12290 on Tue, 05 May 2020 15:32:19 -0700

Safer rm commands to protect important data

Almost all the secure RMS streaming on the Internet provide a rm "garbage" recycle bin, which is a bad recipe for server environment. I think it might be better to provide a secure rm to protect some important files or directories from deletion and avoid the tragedy of deleting important data by mistake. I wrote a script: https://gith ...

Posted by blade_922 on Tue, 05 May 2020 14:44:33 -0700

Learning and summary of RecycleView

Since I contacted Android studio, I have a new understanding and desire to learn and master the new Android UI design concept and V7 package. Therefore, I have a special look at the use of the new control RecycleView, which is summarized as follows. Its usage is similar to that of listview. It consists of three parts: adapter, arrangement and ...

Posted by andre_c on Tue, 05 May 2020 09:21:06 -0700

android file selector component

demo effect FileSelector.gif Source code on GitHub introduce FileSelectorView is a custom file selector, based on which users can customize the style of file selector. function Switch directories Get path File filtering File sorting Custom file icon and set size Set the size and color of file name text Listen for selected files Use Fil ...

Posted by liebs19 on Tue, 05 May 2020 07:40:02 -0700

The fastest Android TreeView appears!

The fastest Android TreeView appears! Source address: https://github.com/niugao/RecyclerListTreeView Based on RecyclerView. The structure of storing data is not a Tree, but an ArrayList. Unlike all the known implementations on the Internet, it seems that people can't jump out of fixed thinking. You can compare the am ...

Posted by daveoffy on Tue, 05 May 2020 07:40:35 -0700

Wechat game development 4: add physical engine Physijs for three.js

1, Foreword The primary goal in developing Physijs is to keep it as simple and user-friendly as possible. Physics engines can be daunting and difficult to set up, with so many options and configurations it is easy to feel overwhelmed. Physijs abstracts all of that extra logic out so you can focus on the rest of your project. In short, the m ...

Posted by stoop on Tue, 05 May 2020 07:18:19 -0700

Kubernetes RBAC permission problem

Kubernetes RBAC permission problem The following problem occurs in configuring Ingress, which is caused by RBAC configuration. RBAC starts referencing at kubernetes 1.6. The API version is also different, so you need to pay attention when configuring the yaml file. Here we use an example to solve the problem of RBAC. ...

Posted by JayBachatero on Mon, 04 May 2020 16:58:37 -0700

Go Language (18) context & Log Items

Context&log items context Method to cancel goroutine in general scenarios var wg sync.WaitGroup var exit bool func worker(exitChan chan struct{}) { LOOP: for { fmt.Printf("work\n") time.Sleep(time.Second) /*if exit { break } */ select { case <- exitChan: break LOOP ...

Posted by loopykd on Mon, 04 May 2020 16:40:51 -0700

Offline data migration DataX3 initial use

DataX3 is still very convenient to use. Here are some official things GitHub address of DataX3 https://github.com/alibaba/DataX , which contains the introduction of DataX3 and download link. How to use DataX3 https://github.com/alibaba/DataX/wiki/Quick-Start Configuration parameters of various reader s and writer s https://github.com/alibab ...

Posted by phpwolf on Mon, 04 May 2020 13:12:47 -0700