12:pnp4nagios Custom Template Drawing for Nagios Monitoring

The article is summarized from the instructions on the official website: http://docs.pnp4nagios.org/pnp-0.6/tpl In daily use, it is unavoidable to find that the default drawing does not meet our needs, so you can customize the template to achieve the desired drawing effect according to your needs. 1. Official description of custom templates 1. ...

Posted on Sun, 17 May 2020 13:39:02 -0400 by mysql_query

Add Split Line to RecyclerView

Add Split Line to RecyclerView Since RecyclerView does not support properties such as divider s, we need to implement them ourselves. 1. Set margin for Item layout to implement 2. Free to draw split lines There is a second major implementation here Create Class Inheritance and RecyclerView.ItemDecoration public class MyItemDeco ...

Posted on Sun, 17 May 2020 13:24:39 -0400 by LuAn

A summary of the actual use of socket

Write in front I have made an application of sending character instruction to middleware. Based on the practical principle, I only use one diagram to replace the basic principle of socket. I will show the use of socket in the form of four middle schools, The first thing to know: socket transmission is divided into input stream (also call ...

Posted on Sat, 16 May 2020 10:58:13 -0400 by Quevas

XSS Challenge Tour (by reading the code)

XSS Challenge Tour level 1 There is no filtering payload: <script>alert(1)</script> level 2 php key code: echo "<h2 align=center>And not found".htmlspecialchars($str)."Relevant results.</h2>".'<center> <input name=keyword value="'.$str.'"> Analysis: str is a controllable variable, the ...

Posted on Fri, 15 May 2020 21:04:31 -0400 by alexislalas

Scala_ Common functions

1, If Else… val x = 5 val s = if (x > 0) 1 else -1 // s type is Int val m = if (x > 0) "positive" else -1 // Public super type Any with s type String and Int // In Scala, each expression should have a value. If the else part is missing, the following statement is equivalent to: if (x > 0) 1 else(), which returns a null ...

Posted on Fri, 15 May 2020 11:08:22 -0400 by mrjap1

My jdk source code: String is a special and powerful class!

1, Overview String class is a special existence in java. Although it is not a basic type, it is frequently used. This is mainly because the value of the string object is a constant. We can see why it is a constant in the source code below. Because of this feature, it is thread safe. Next, let's analyze the source code in depth and uncover the ...

Posted on Wed, 13 May 2020 15:20:55 -0400 by arion279

Android serial 10- add pages dynamically and create a news app

1, Size of dynamic planning interface 1. We create a new folder large fragment in the res folder, and then write an interface, activity main.xml file, to store some high-resolution interfaces such as tablet computers. That is to say, the small screen uses the normal activity main file, and the large screen uses the interface in the large fragme ...

Posted on Wed, 13 May 2020 10:25:17 -0400 by noobie_daddy

Python crawler project for boys only: crawling through today's headlines

You haven't climbed the headlines since 2020. Do you look OUT when you are a reptile? But it's OK. Although the current interface has changed, I'll talk about how to make today's headlines in 2020. This is an improved project, which has participated in many of my own ideas. For example, some of them are very difficult to understand. I have impl ...

Posted on Wed, 13 May 2020 05:48:03 -0400 by r2ks

Does an open source blog theme hide private goods?

First of all, this article is just my guess. If there is something wrong, please correct it in time background A few days ago, a friend introduced that he saw a blog Park theme. The theme had a great idea. It was not so good, but later he looked at the source code and found some secret things. Source Address https://github.com/cjunn/cnblog_ ...

Posted on Tue, 12 May 2020 20:03:25 -0400 by skyace888

Top TabLayout with Dynamic Height ViewPager Effect

First look at the effect picture (gif recording is a bit of a problem...Take a look at it: Ideas: 1. Dynamic Height ViewPager with TabLayout 2. Let Header's TabLayout show or hide when sliding according to the sliding position 3. After sliding, let ScrollView slide to the specified position (ViewPager ...

Posted on Tue, 12 May 2020 12:24:49 -0400 by StefanRSA