Category Archives: 程式語言

CSS: Center text (horizontally and vertically)

Ref.: iThome: 29. CSS 水平置中/ 垂直置中的方法

Posted in CSS, HTML | Comments Off on CSS: Center text (horizontally and vertically)

Delete snapshots older than 7 days

To avoid running out of disk space in our test environment, we developed a plan to regularly execute shell scripts to clean up unnecessary snapshots.

Posted in HBase, Shell Script | Comments Off on Delete snapshots older than 7 days

HBase Client 2.5.5 in JDK 11

Because of the vulnerability scan results of the project, the JDK version must be upgraded from 8 to 11 to complete the repair. The original HBase Client version 1.2 we used was incompatible with JDK 11, so we had to … Continue reading

Posted in HBase, Java | Comments Off on HBase Client 2.5.5 in JDK 11

AES decrypt in postman

sample code:

Here we choose AES-256 to encrypt / decrypt the secure information. When using AES, the length of the secretKey is important. The length of secretKey in AES-128 is 16 bits, and in AES-256 is 32 bits. And … Continue reading

Posted in JavaScript, Postman | Comments Off on AES decrypt in postman

[Java] Create CSV files with BOM

Posted in Java | Comments Off on [Java] Create CSV files with BOM

[Java] Google authenticator

Reference: 1. Greddy’s Blogs: Google Authenticator實作 2. 菜鳥工程師 肉豬: Spring Boot 使用Google身分驗證器做TOTP驗證 Google Authenticator TOTP auth

Posted in Auth, Java | Comments Off on [Java] Google authenticator

[Java] Download file without saving

Source: CSDN: InputStream类available和read方法可能读取不到完整的流数据 stackoverflow: How to read a http file inmemory without saving on local drive?

Posted in Java | Comments Off on [Java] Download file without saving

[Java] String with number format

Reference

Posted in Java | Comments Off on [Java] String with number format

[Java] Mask some part of String

Reference: [stackoverflow] Mask some part of String

Posted in Java | Comments Off on [Java] Mask some part of String

[Java] Append string with adaptive font size to image

Ref: https://blog.csdn.net/zengrenyuan/article/details/80281738

Posted in Java | Comments Off on [Java] Append string with adaptive font size to image