原创 Apache Commons – 總結

參考資料 1、官方文檔:https://commons.apache.org/ 介紹 Apache Commons 包含了很多開源的工具,用於解決平時編程經常會遇到的問題,減少重複勞動。 常見組件 BeanUtils:提供了對於JavaBe

原创 Kibana - 總結

參考資料 1、官方網站:https://www.elastic.co/guide/en/kibana/current/index.html Kibana介紹 Kibana 是一個開源的分析與可視化平臺,設計出來用於和 Elasticsear

原创 Logstash – 總結

參考資料 1、官方網站:https://www.elastic.co/guide/en/logstash/current/index.html 介紹 Logstash 是一個開源數據收集引擎,具有實時管道功能。可以同時從多個數據源獲取數據,

原创 Redis - Replication

At the base of Redis replication there is a leader follower (master-replica) replication that is simple to use and confi

原创 Redis - Security

This document provides an introduction to the topic of security from the point of view of Redis. It covers the access co

原创 Redis - Persistence

• RDB (Redis Database): The RDB persistence performs point-in-time snapshots of your dataset at specified intervals. • A

原创 Redis - Evictions

This behavior is well known in the developer community, since it is the default behavior for the popular memcached syste

原创 Redis - Data types

Keys Redis keys are binary safe, this means that you can use any binary sequence as a key, from a string like "foo" to t

原创 Redis - Transactions

Redis Transactions allow the execution of a group of commands in a single step, they are centered around the commands MU

原创 Java – 網絡編程

使用 Java 進行網絡編程時,由虛擬機實現了底層複雜的網絡協議,Java 程序只需要調用 Java 標準庫提供的接口,就可以簡單高效地編寫網絡程序。Java 提供的這些標準庫存在於 java.net 包下。 TCP 編程 Socket 是

原创 Python – 網絡編程

用 Python 進行網絡編程,就是在 Python 程序本身這個進程內,連接別的服務器進程的通信端口,進行通信。 TCP 編程 Socket 是網絡編程的一個抽象概念。通常我們用一個 Socket 表示“打開了一個網絡鏈接”,而打開一個

原创 Java - 自增,自減

自增 ++i public static void main(String[] args) { int i = 0, j = 0; j = ++i; //先執行自增操作 System.out.println("i="

原创 Python - 自增,自減

Python 中是沒有 ++ 和 -- 操作的,要實現自增和自減的話,可以使用如下操作: a = a + 1 或 a += 1 原因 Python 中的數字類型是不可變數據。也就是數字類型數據在內存中是不會發生改變,當變量值發生改變時,會

原创 Python - 條件語句

短路與運算 and def main(): a = 0 b = 1 if a > 0 and (b/a) > 0: pass elif a > 1: pass else

原创 Java - 循環

while 循環 public static void main(String[] args) { int i = 0; while (i < 20) { if(i > 30) { b