原创 cling bug 處理

此文版權屬於作者所有,任何人、媒體或者網站轉載、借用都必須徵得作者本人同意! cling 1.0.5 中文亂碼解決 core/src/main/java/org/teleal/cling/transport/impl/apache/St

原创 android 資源讀取

最重要的2個文件是: frameworks/base/include/androidfw/ResourceTypes.h frameworks/base/libs/androidfw/ResourceTypes.cpp - status

原创 HTTP 相關資料收集

A Beginner's Guide to HTTP Cache Headers 點贊 收藏 分享 文章舉報 lzy0168 發佈了81 篇原創文章 · 獲贊 12 · 訪問量

原创 用 sed 給 java 所有靜態變量加 final 關鍵字

此文版權屬於作者所有,任何人、媒體或者網站轉載、借用都必須徵得作者本人同意! sed '/^\s*\/\//!{/(/!{/\bfinal\b/!{s/\bstatic\b/final static/}}}' foo.java 解釋:

原创 使用 python 創建最簡單的 https 服務器

此文版權屬於作者所有,任何人、媒體或者網站轉載、借用都必須徵得作者本人同意! #!/usr/bin/env python # taken from https://gist.github.com/dergachev/7028596

原创 ant release proguard StackOverflowError

此文版權屬於作者所有,任何人、媒體或者網站轉載、借用都必須徵得作者本人同意! ant java 項目,執行到 proguard 階段發生 StackOverflowError 錯誤,錯誤類似下面: build.xml:339: java

原创 避免直接依賴 android log 庫

此文版權屬於作者所有,任何人、媒體或者網站轉載、借用都必須徵得作者本人同意! #include <android/log.h> #include <dlfcn.h> /* dlsym */ typedef int (*log_print

原创 ubuntu 添加 vdpau 支持(intel)

此文版權屬於作者所有,任何人、媒體或者網站轉載、借用都必須徵得作者本人同意! 參考:Enable Hardware Acceleration on Intel Graphics Cards in Ubuntu sudo add

原创 下載 m3u8 視頻腳本

此文版權屬於作者所有,任何人、媒體或者網站轉載、借用都必須徵得作者本人同意! 直接上代碼,python 的: #!/usr/bin/env python # -*- coding:utf-8 -*- # Copyright 2016 lz

原创 git 使用例子

此文版權屬於作者所有,任何人、媒體或者網站轉載、借用都必須徵得作者本人同意! 本地倉庫 #倉庫初始化 hello@world:~$ su -l git 密碼: git@world:~$ cd /pub/data/02data/git/