自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(26)
  • 资源 (42)
  • 问答 (1)
  • 收藏
  • 关注

原创 Android之ndk-build -j4

1、提高编译速度-j4 就是指定4核编译如果cpu是8核就指定-j8

2017-04-27 23:03:25 4005

原创 linux之使用md5sum命令比较两个文件是否一样

1、md5sum命令介绍md5sum命令用于生成和校验文件的md5值。它会逐位对文件的内容进行校验。是文件的内容,与文件名无关,也就是文件内容相同,其md5值相同2、比较文件1)、生产文件的md5md5sum file1md5sum file2会有结果显示2)、批量生成md5文件md5sum * 3)、二进制模式读

2017-04-26 21:01:17 15912 3

原创 Android之Content和activity、service、Application关系和attachBaseContext函数调用的时候

1、Content和activity、service、Application关系2、Application里面attachBaseContext和onCreate函数调用顺序Application-> attachBaseContext ();ContentProvider:onCreate()Application:onCreate()

2017-04-25 23:53:14 22905

原创 Android之用UncaughtExceptionHandler实现保存崩溃日志到sdcard目录下的文件夹

1、异常和UncaughtExceptionHandler的介绍1)、Java异常处理机制中:如果抛出的是Exception异常的话,需要有try catch进行处理,属于可以捕获exception。如果抛出的是RuntimeException异常的话,发生异常之后将由JVM进行处理,属于不可捕获exception。2)、Java 异常的分类:基类为:Throwable

2017-04-24 21:26:07 2813

原创 Android Studio之debug调试卡在waiting for debugger界面的解决办法

1、问题Android Studio debug调试项目卡在waiting for debugger界面2、解决办法一开始从启adb服务adb stop-serveradb start-server发现没什么用,然后呢,估计是很多app再运行,然后我就重启了Android studio,问题就解决了如果要是万一还不行,那就重启电脑吧

2017-04-21 10:56:36 11201 1

原创 java之MessageDigest简单使用总结

1、说明MessageDigest是Java自带的类2、简单代码比如我们需要实现md5,或者sha加密public class MD5AndSHA { public final static String MD5_SHA(String s, String method) { char hexDigits[] =

2017-04-20 21:39:11 12509 1

原创 MarkDown之typora

windows上面非常适合用typora,地址如下:https://typora.io/

2017-04-20 15:26:41 2945

原创 Android之解决java.lang.NoSuchMethodError:android.os.powerManager.isInteractive问题

1、问题再三星平板(Android 4.2.2系统)我们代码powerManager调用了函数isInteractive方法,出现下面错误java.lang.NoSuchMethodError:android.os.powerManager.isInteractive2、解决办法1、一开始想用try catch来解决,肯定不行,功能没实现,而且进程还是会

2017-04-19 21:20:56 8469 1

原创 Android之如何让Android studio编译更快

1、开启gradle单独的守护进程在下面的目录下面创建gradle.properties文件/home//.gradle/ (Linux)/Users//.gradle/ (Mac)C:\Users\\.gradle (Windows)最好是从一个项目里面拷贝过来然后修改下#Project-wide Gradle settings.# IDE (e.g. Androi

2017-04-19 20:58:58 3232

原创 linux之类似Windows的资源管理器gnome-system-monitor(可用这个杀死进程)

1、使用直接运行下面命令gnome-system-monitor如果没有安装用下面命令安装sudo apt-get install gnome-system-monitor2、结果可以点击右键然后杀死相关进程,这也是杀死进程的办法。

2017-04-19 20:14:31 12425

原创 Android之什么时候调用onSaveInstance方法的时候(为什么按Home键盘会调用,按Back不调用)

1、函数介绍1)、onCreate(Bundle savedInstanceState) 方法Activity 创建时回调 : 该方法会自动传入一个 Bundle 对象, 该 Bundle 对象就是上次被系统销毁时在 onSaveInstanceState 或者 onRestoreInstanceState 中保存的数据-- 注意 : 只有是系统自动回收的时候才会保存 Bundle 对

2017-04-18 00:51:35 14111

原创 Android之用命令uninstall卸载apk和用 -i 过滤日志忽略大小写

1、卸载apkadb uninstall package adb uninstall ***.apk上面是正确的,记得是加包名,不是apk

2017-04-17 11:50:41 4205

原创 java之简单的Callback使用总结

1、什么是Callback,什么时候需要使用Callbackcallback是回调的意思,一般我们需要2个类需要相互掉用,一个类把数据动态传递给另外一个类的时候,可以用这种方式,比如Android里面的Launcher类和LauncherModel类,LauncherModel里面有接口很多没有实现的方法,Launcher实现LauncherModel的接口,实现方法,传递数据给Launche

2017-04-12 01:14:34 6138

原创 LeetCode之Sqrt(x)

1、题目Implement int sqrt(int x).Compute and return the square root of x.Subscribe to see which companies asked this question.2、代码实现public class Solution { public int my

2017-04-11 01:14:27 2587

原创 Android之机端安装apk出现INSTALL_FAILED_INSUFFICIENT_STORAGE错误的解决方法

1、错误INSTALL_FAILED_INSUFFICIENT_STORAGE2、解决办法是由于手机存储不足了,删除一些app,给手机留下足够的空间即可。

2017-04-10 20:37:07 10273

原创 LeetCode之Relative Ranks

1、题目Given scores ofNathletes, find their relative ranks and the people with the top three highest scores, who will be awarded medals: "Gold Medal", "Silver Medal" and "Bronze Medal".Exampl

2017-04-10 01:44:29 2541

原创 LeetCode之Construct the Rectangle

1、题目For a web developer, it is very important to know how to design a web page's size. So, given a specific rectangular web page’s area, your job by now is to design a rectangular web page, whos

2017-04-09 23:46:37 2439

原创 Android之解决360奇酷手机控制台打印全等级日志(默认只打印W、E等级日志)

1、问题360奇酷手机很奇葩,默认安卓日志只打印等级W、E,现在我想打印所有等级日志2、解决办法1、在桌面点击拨号,在拨号盘输入“*20121220#”,进入工程模式;2、点击“日志输出等级”3、选择下面的选项Log print enable 选 enableJava log level 选 LOGVC and C++ log level 选 LOG

2017-04-09 14:39:42 5405 6

原创 LeetCode之Two Sum II - Input array is sorted

1、题目Given an array of integers that is already sorted in ascending order, find two numbers such that they add up to a specific target number.The function twoSum should return indices of the two

2017-04-09 14:16:37 2634

原创 LeetCode之Power of Two

1、题目Given an integer, write a function to determine if it is a power of two.Credits:Special thanks to @jianchao.li.fighter for adding this problem and creating all test cases.Subscribe t

2017-04-08 23:46:30 2464

原创 LeetCode之Happy Number

1、题目Write an algorithm to determine if a number is "happy".A happy number is a number defined by the following process: Starting with any positive integer, replace the number by the sum of the s

2017-04-08 22:23:16 2394

原创 LeetCode之Maximum Depth of Binary Tree

1、题目Given a binary tree, find its maximum depth.The maximum depth is the number of nodes along the longest path from the root node down to the farthest leaf node.Subscribe to see which compa

2017-04-07 23:02:00 2495

原创 LeetCode之Sum of Two Integers

1、题目Calculate the sum of two integers a and b, but you are not allowed to use the operator + and -.Example:Given a = 1 and b = 2, return 3.Credits:Special thanks to @fujiaozhu for addi

2017-04-07 22:05:17 2659

原创 LeetCode之Detect Capital

1、题目Given a word, you need to judge whether the usage of capitals in it is right or not.We define the usage of capitals in a word to be right when one of the following cases holds:All letter

2017-04-07 20:49:22 2409

原创 LeetCode之Number Complement

1、题目Given a positive integer, output its complement number. The complement strategy is to flip the bits of its binary representation.Note:The given integer is guaranteed to fit within the

2017-04-07 20:19:44 2366

原创 LeetCode之Excel Sheet Column Number

1、题目Related to question Excel Sheet Column TitleGiven a column title as appear in an Excel sheet, return its corresponding column number.For example: A -> 1 B -> 2 C -> 3 ..

2017-04-02 01:32:33 2450

WebViewTest.7z

Android长按WebView然后替换系统的菜单,自定义自己的菜单,比如“搜索”、“翻译”自己获取值了在自己的WebView里面进行相关操作。

2022-01-09

Android之常用命令和工具.pdf

1、里面有常见的如何快速获取app包名和拉取apk和直观的打日志的命令总结 2、快速获取启动奔溃日志的总结 3、一些日志工具和常见命令的分享 4、常见的逆向分析工具分享 5、常见的移动端抓包工具分享 6、移动端常用的文档分享 7、git和svn常用命令精简分享 8、移动端常用的hook分享(java层、c/c++层)

2021-04-01

TestDragRecycleView.7z

这里主要实现RecycleView的拖拽元素效果,和禁止哪些元素再拖拽的过程中不交换位置,一定可以保证功能没问题。

2020-12-30

AliHome.zip

主要是实现支付宝顶部上滑的时候,渐渐的变消失效果,然后部分布局又出现的效果,放到Android studio里面可以直接运行

2020-07-11

NotchScreenUtil.zip

这个资源主要是封装了对4种主流手机是否是刘海屏的判断,以及如何获取4种刘海屏高度的,比如oppo手机刘海屏高度固定80px等。

2020-03-06

math-basics.rar

宾夕法尼亚大学计算机和信息科学系教授 Jean Gallier 的开源书籍《 Algebra, Topology, Differential Calculus, and Optimization Theory For Computer Science and Engineering 》用一本书的容量解决了所有问题。 这本书涵盖了计算机科学所需的线性代数、微分和最优化理论等问题,可谓详尽。 链接: http://www.cis.upenn.edu/~jean/math-basics.pdf 这本书讲了什么? 这本书的主要目的是介绍线性代数和最优化理论的基础知识以及这些知识在机器学习、机器人学、计算机视觉等领域的应用。 该书包含以下 10 卷: 线性代数 仿射几何和射影几何 双线性形式的几何 几何:PID、UFD、诺特环、张量、PID 上的模块、规范形 拓扑和微分 最优化理论基础 线性优化 非线性优化 在机器学习中的应用

2019-08-01

动手学习深度学习PDF.rar

这个是最新出版的”动手深度学习“,我们可以在这里学习深度学习。

2019-06-22

c_log_to_file.txt

如果服务端是linux c/c++,你如果你在后台开了调试日志,如果日志打印很多,几秒时间就刷掉了,你需要打印关键日志,这个时候你可以用这个文件内容修改下把日志输入到指定文件里面

2019-06-15

Source Insight黑色和灰色的背景配置

这里主要是一些source insight背景的配置,有黑色和灰色,在D:\Users\User\My Document\Source Insight\Settings 这个目录下放进去,关闭source insight和打开source insight就行了

2019-04-23

Xshell5(Xshell5免费)

this is xhell5 . it can help me connect linux ,so you can use command at linux

2019-03-21

linux shell脚本攻略2

the pdf will tell you learn linux shell ,If you want to learn, please download the pdf

2019-03-06

linux网络编程和code

这里是关于linux的网络编程,和部分code,有需要的小伙伴可以直接到这里下

2018-12-22

C语言深度解剖

这里面是C语言深度解剖的pdf.我们学C的时候这个和一起对比学习

2018-12-14

linux高性能服务端编程

这个pdf里面介绍了linux高性能服务端编程,主要书用linux c/c++作为服务端.

2018-12-12

xshell(windows)

we need to use xshell at windows desktop. this will support you to download.

2018-12-05

linux网络源码分析

这是在网上下载的很好的网络源码分析的资料,分享给大家

2018-11-27

深入理解LINUX网络技术内幕

这是在网上看到的资料,我先下载下来然后再上传,怕以后用得到。

2018-11-27

linux多线程服务器编程

这是在公司同事那里看到的一本书,写的是linux多线程服务器编程

2018-11-16

qt client server

这是一个QT客户端和服务单的例子,非常经典,先保存起来

2018-11-02

c++编程实例

这里有很多C++的例子,方便快速入门,希望大家下载,我很多也不是很熟悉

2018-10-18

C++一些游戏源码

这里面很多c++的源码,适合新手写代码,里面有一些游戏

2018-10-18

判断手机是否打开消息通知

这个类主要是帮助我们在android移动端判断是否开启了"消息通知"的权限,同时打开相应的界面,也支持Androd8.0

2018-09-23

Android打印当前app的日志工具类

这个脚本注意是利用了pidcat.py这个脚本,然后放到linux系统的/usr/local/bin/目录下,然后执行pcat命令就可以打印当前页面的app日志

2018-09-20

打开自启动的帮助类

这里主要是打开安卓各个手机的的"自启动"或"受保护"或"百名单"的页面,适配了华为 小米 vivo oppo 三星 魅族 360手机

2018-09-20

压缩文件的工具类

Android压缩sdcard目录下的文件,压缩成zip格式的文件,压缩率1:20

2018-09-08

Android调用第三方的so

Android调用第三方的so,简单开发的配置mk文件,然后和调用代码测试

2018-09-08

HttpURLConnection的封装

HttpUrlConnect的封装,我们可以使用HttpRequest来请求一些东西

2018-06-08

pidcat.py_in_ubuntu

In order to print Android log and have class name, We often use the pidcat.py on ubuntu, This will help me sovle problem better

2018-05-12

网络请求工具

网络请求的部分工具

2018-05-09

Android下载APK

Android下载APK简单例子,这里有提示框,然后提示进度。

2018-04-25

pc web access phone file

this is Android program, and jni using c language, we can use web browser to access phone sdcard file and download wo required file

2017-12-25

ndk调用第三方so

ndk调用第三方sondk调用第三方sondk调用第三方sondk调用第三方so

2017-12-02

Android三级列表

用ExpandableListView写的三级列表

2017-05-11

Hook StartActivity Demo

Hook StartActivity Demo

2016-11-17

jadx用开反编译APK的工具

you can gadx apk on windows or linux

2016-11-15

ubuntu上面使用jni例子

ubuntu上面使用jni例子

2016-11-07

TrayPreferences需要的包

使用跨进程的TrayPreferences需要的包

2016-08-27

zxingproject

最简单的扫二维码,我到网上找了很多资源,不是少了这里就是少了那里,都不是很全面,这个是组简单的。

2016-01-05

MPAndroidChart让(折线图、柱形图、饼状图、散列图、雷达图)优雅的舞动

Android之玩转MPAndroidChart让(折线图、柱形图、饼状图、散列图、雷达图)优雅的舞动

2015-11-30

手机摇一摇震动刷新(支持ListView GridView WebView)

这是我写的手机摇一摇震动刷新(支持支持ListView GridView WebView)并生成二维码的源码,我的Github上面有更多的效果介绍,有兴趣的小伙伴猛戳吧,https://github.com/changechenyu/ShakeToFresh 如果觉得很好玩或者有创意就star我吧

2015-11-09

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除