Categories
- FFMpeg (5)
- Libav (1)
 
 - Google (3)
 - iBeacon (1)
 - LDAP (3)
 - Me (2)
 - Network (11)
 - OS (149)
 - RTMP (4)
 - SIP (1)
- Kamailio (1)
 
 - SNMP (1)
 - VMware (20)
- VCP考試 (1)
 
 - 伺服器 網站服務 (105)
 - 名詞解釋 (4)
 - 專案管理 (1)
 - 工具軟體 (51)
- Adobe (1)
	
- FMS (1)
 
 - Cloudera (1)
 - Docker (1)
 - Eclipse (4)
 - Intellij (2)
 - OBS (2)
 - Office (10)
	
- Excel (4)
 - PowerPoint (5)
 
 - Postman (2)
 - Splunk (13)
 - Virtualbox (2)
 - Visual Studio (2)
 - 文字編輯器 (10)
	
- Sublime Text 2 (6)
 - Sublime Text 3 (3)
 - Vim (3)
 
 - 連線工具 (1)
	
- Xshell (1)
 
 
 - Adobe (1)
	
 - 程式語言 (81)
- CSS (2)
 - HTML (2)
 - iOS (1)
 - Java (31)
 - JavaScript (5)
 - jQuery (4)
	
- jsTree (2)
 
 - JSP (3)
 - PHP (16)
 - Python (8)
 - Ruby (1)
 - sed (1)
 - Shell Script (8)
 - Windows Bash Script (1)
 - XML (1)
 
 - 資料庫 (38)
 
- FFMpeg (5)
 
Author Archives: cowman.chiang
[Java] Append string with adaptive font size to image
Ref: https://blog.csdn.net/zengrenyuan/article/details/80281738 public static ByteArrayOutputStream encodeWithWaterMark(String content) { if (FRONT_IMAGE == null) { return encode(content); } ByteArrayOutputStream os = null; try { BitMatrix matrix = new QRCodeWriter().encode(content, BarcodeFormat.QR_CODE, WIDTH, HEIGHT); BufferedImage backImage = QRCodeUtils.toBufferedImage(matrix); int fontSize = 20; String stringContent … Continue reading
									
						Posted in Java					
					
				
				
				Comments Off on [Java] Append string with adaptive font size to image
							
		[Docker] time sync with host
docker run -v /etc/localtime:/etc/localtime:ro -i -t mattdm/fedora /bin/bash Source: stackoverflow: How to make sure docker’s time syncs with that of the host?
									
						Posted in Docker					
					
				
				
				Comments Off on [Docker] time sync with host
							
		[Docker] Common commands
show all containers: docker ps -a stop all containers: docker kill $(docker ps -q) remove all containers: docker rm $(docker ps -a -q) remove all docker images: docker rmi $(docker images -q) enter docker container: docker exec -it $(container id) … Continue reading
									
						Posted in Docker					
					
				
				
				Leave a comment
							
		[HBase] security issue
error message: com.a.b.c.exception.BaseDAOException: org.apache.hadoop.hbase.security.AccessDeniedException: org.apache.hadoop.hbase.security.AccessDeniedException: Insufficient permissions for user ‘Cowman’ (table=ABC, action=READ) in jvm conf. add “-DHADOOP_USER_NAME=webuser”
									
						Posted in HBase, Java					
					
				
				
				Leave a comment
							
		[Apache] wordpress permalink 404 issue
edit site conf (vim /etc/apache2/sites-available/pr.site.org.conf) <VirtualHost pr.site.org:80> ServerName pr.site.org ServerAdmin webmaster@localhost DocumentRoot /var/www/pr.site.org # !– add this section <Directory /var/www/pr.site.org> Options Indexes FollowSymLinks MultiViews AllowOverride All Order allow,deny allow from all </Directory> # !– ErrorLog ${APACHE_LOG_DIR}/pr_error.log CustomLog ${APACHE_LOG_DIR}/pr_access.log combined </VirtualHost> … Continue reading
									
						Posted in Apache, Ubuntu, WordPress					
					
				
				
				Leave a comment
							
		[HBase] convert long value to bytes
Java code: public static void main(String[] args) { String stringValue = Bytes.toStringBinary(Bytes.toBytes(1532080782183l)); System.out.println(stringValue); Long longValue = Bytes.toLong(Bytes.toBytesBinary(stringValue)); System.out.println(longValue); } HBase shell command: hbase(main):056:0> Bytes.toStringBinary(Bytes.to_bytes(1532080782183)) => “\\x00\\x00\\x01d\\xB7!{g” hbase(main):057:0> Bytes.toLong(“\x00\x00\x01d\xB7!{g”.to_java_bytes) => 1532080782183
									
						Posted in HBase, Java					
					
				
				
				Leave a comment
							
		[Intellij] Checkstyle and Code Style
Checkstyle 介紹 根據定義好的規則對程式碼進行檢查,以確保程式碼的 Style 是一致的 (盡力…) Checkstyle GitHub 有提供兩種規則範例,後續套用的規則即是使用 “Google Checks” 進行修改 Sun Checks Google Checks 安裝 Checkstyle Preferences.. ➔ Plugins ➔ Browse repositories.. -> 搜尋 “CheckStyle” 安裝 “CheckStyle-IDEA” Checkstyle 規則文件說明 checkstyle/qmi_checks.xml 為 Checkstyle 主規則檔案 定義檢查的檔案格式、範圍 定義排除的規則檔案位置 (通常為 suppressions.xml) 定義檢查的項目,每一個項目可定義的屬性不固定,需檢視 … Continue reading
									
						Posted in Intellij					
					
				
				
				Leave a comment
							
		[Docker] The crontab is not work in docker
Source: docker容器内cron不执行 vim /etc/pam.d/crond # The PAM configuration file for the cron daemon # # No PAM authentication called, auth modules not needed account required pam_access.so account sufficient pam_access.so account include password-auth session required pam_loginuid.so session sufficient pam_loginuid.so session include … Continue reading
									
						Posted in Docker, Linux					
					
				
				
				Leave a comment
							
		[Git] edit commit message after push
Source: stackopenflow: Changing git commit message after push (given that no one pulled from remote) git comment –amend git push –force
									
						Posted in Git					
					
				
				
				Leave a comment
							
		[Python] fix error while loading shared libraries: libpython2.7.so.1.0
error log: /opt/rh/python27/root/usr/bin/python: error while loading shared libraries: libpython2.7.so.1.0: cannot open shared object file: No such file or directory check libpython2.7.so.1.0 exist? find . -name ‘libpython2.7.so.1.0’ if the file was exist: edit the ldconfig config echo “/opt/rh/python27/root/usr/lib64” > /etc/ld.so.conf.d/python27.conf ldconfig … Continue reading
									
						Posted in CentOS, Python					
					
				
				
				Leave a comment