原创 用正交表設計測試用例(轉載)

原文鏈接:https://www.cnblogs.com/gisen_6/p/3708169.html 查看正交表使用時發現此篇解釋較詳細,且講述了“因素數不同”及“水平數不同”的情況,

原创 隨手指滑動的懸浮窗 onTouchListener

private class FloatingOnTouchListener implements View.OnTouchListener { private int x; private int

原创 adb 操作剪貼板

輔助工具:Clipper 地址: https://github.com/majido/clipper 使用: 首先啓動 serviceadb shell am startservice ca.zgrs.clipper/.Clip

原创 android 手機模擬低內存

注:需要 root 手機 原理 修改 android 系統 prop 中的 dalvik 堆大小 -dalvik.vm.heapstartsize 堆分配的初始大小,調整這個值會影響到應用的流暢性和整體ram消耗 -dalvik

原创 dex2jar 報錯 com.googlecode.d2j.DexException: not support version

參考鏈接: https://www.jianshu.com/p/55bf5f688e9a https://source.android.com/devices/tech/dalvik/dex-format#dex-file-magic

原创 簡單有效的ItemDecoration--分割線

1、ItemDecoration class ItemDecoration extends RecyclerView.ItemDecoration { private Drawable mDivider;

原创 gradle 下載 SMB 文件(實際使用的是 groovy 語法)

import java.util.concurrent.CountDownLatch import java.util.concurrent.ExecutorService import java.util.concurrent.Exe

原创 python ftp 上傳文件和文件夾

其中 session = session = ftplib.FTP(host=”,user=”,passwd=”) def upload_dir(path_source, session, target_dir=None): f

原创 Java 中 8 進制和 16 進制的表示方法

參考鏈接: http://www.imooc.com/article/14089 由於數據在計算機中的表示,最終會以二進制的形式存在,所以有時候使用二進制可以更直觀的解決問題。 但是二進制太長了,比如 int 類型佔用 4 個字節,

原创 簡化常用命令(修改 .bash_profile 文件)

在 ~/.bash_profile 文件中增加以下內容 # adb cmd alias ashell='adb shell' alias akill='adb kill-server' alias astart='adb start-s

原创 一些常用的自定義命令 alias

使用時將以下內容拷貝到 ~/.bash_profile 文件中即可 # adb cmd alias ashell='adb shell' alias akill='adb kill-server' alias astart='adb st

原创 自己寫的 groovy 處理耗時操作的一個類

import org.gradle.api.GradleException import java.util.concurrent.* /** 15/08/2017 耗時操作 */ class TimeConsuming {

原创 將項目改爲 gradle 構建並保留原 git 信息

本文使用 Intellij IDEA IntelliJ IDEA 2017.1.5 Build #IC-171.4694.70, built on July 4, 2017 JRE: 1.8.0_112-release-7

原创 plantUML編輯器整理

如果你平常的編輯器就是 Intellij 系列軟件,那麼推薦直接使用Intellij 插件(最後一個) 在線編輯器: https://www.planttext.com/ 推薦這個 預覽如下: http://ww

原创 nanoHTTPD 接收 okhttp 上傳的文件

Explained before, the client use okhttp upload a file just like the follow code RequestBody requestBody = new Multipar