自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(21)
  • 资源 (4)
  • 收藏
  • 关注

原创 [algorithm][leetcode][974][个人心得]

原题:https://leetcode-cn.com/problems/subarray-sums-divisible-by-k/个人觉得挺好的解法已经对应的解释:https://leetcode-cn.com/problems/subarray-sums-divisible-by-k/solution/you-jian-qian-zhui-he-na-jiu-zai-ci-dai-ni-da-tong/纯文字个人觉得还是有些费解,故增加一些辅助理解的内容:1.p[j]表示数组A..

2020-06-07 23:01:38 135

原创 ffmpeg4.2.2 windows下编译sh

参考网上部分文章,下面脚本暂时可用对应的绝对路径,根据实际环境,自行替换#!/bin/bashexport TMPDIR=E:/codes/3rd/ffmpeg-4.2.2/ffmpeg_temp#配置生成产物的路径,当前为:脚本所在目录下新建out/armeabi-v7a/PREFIX=E:/codes/3rd/ffmpeg-4.2.2/out/armeabi-v7a# e...

2020-04-23 13:53:16 393

原创 mqtt 相关 收集

http://www.360doc.com/content/18/0320/21/16915_738833035.shtml

2020-04-14 11:30:00 142

原创 [小折腾] SharedPreferenceImpl$EditorImpl#apply引发的ANR场景

书本《Android工程化最佳实践》(作者金凯)中谈到SharedPreference会有ANR的可能,以及贴出关键源码(api19)和相关的log日志,读者可以先行看看。目前可以确定的是,若写文件真的耗时,不管在哪个线程执行apply,都有可能引发ANR。来个时序图,基于android api26可以看到,如果work耗时长,UI线程必定会阻塞等待,越长越容易引发ANR想要折...

2019-09-17 17:02:53 419

原创 老物,dialog另类内存泄漏,不过不存在于ART(5.0+ && Debuggable=false)上,感兴趣的可以了解一下

有篇译文大概这么讲: dialog也有不寻常的内存泄漏,跟我们常见的handler.removeCallbacks移除runnable(匿名内部类持有了activity/fragment的引用)避免的内存泄漏不太一样。我们都知道常见的泄漏在于handler可能长时间持有了runnable,这个时间超过了activity/fragment的生命周期了,无法释放知道handler不再持有该r...

2019-09-04 08:11:37 252

原创 lifecycle架构,Transformations的switchMap该怎么理解好

可直接跳过前面的介绍直接看后面关于switchMap的说明,不太理解的可以配合前面的介绍LiveData<T>:内容为T类型数据的容器,可监听内容的变化且具有一定的实时性 对外提供监听容器内容变化的接口observe(LifecycleOwner, Observer) 会在适当的时期通知监听器 适当的时期:激活状态(LifecycleRegistry监听fragme...

2019-08-22 18:43:56 5943

原创 todo: using dll by 'Implicit Linking' or 'Explicit Linking'

In my c++ project under windows, I've seen a CRASH!Why will ~weak_ptr() crash in a dll?Here is my project:App.exe Parent.dll Child1.dllThere is a codes:Parent.dllvoid setSomeInfosToChild(...

2018-05-26 11:17:14 209

原创 multithread and static instances inside dll/dylib

In macosx, it seems that subthreads won't terminate until after any function which is registered to the api atexit is done. see this: https://blog.csdn.net/newmandirl/article/details/80079989When you'...

2018-04-25 18:10:37 157

原创 macosx about atexit and subthreads

you can use the api atexit to register when the thread is going to exit, the api is from stdlib.h.1.here is personal thoughts after some test and debug:When main-thread executing atexit, other subthre...

2018-04-25 16:33:28 155

原创 about OPENSSL_thread_stop

the official link:https://www.openssl.org/docs/man1.1.1/man3/OPENSSL_thread_stop.html#NOTESopenssl git issue:https://github.com/openssl/openssl/issues/6081PERSONAL_EXPERIENCE:Before version of openssl...

2018-04-25 16:33:10 529

原创 qthreadstorage(encapsulation by yunthreadlocal)

strange things:using qt4.8.4 static lib, it will crash when:~yunthreadlocal() {    m_qthread_storage.setLocalData(NULL);// crash here}if use qt4.8.4 dynamic lib, it won't.reason: to be continued...

2018-04-25 15:24:14 276

原创 what is -fno-elide-constructors and how to use in cmake

about -fno-elide-constructors:https://blog.csdn.net/XiyouLinux_Kangyijie/article/details/78939291https://www.cnblogs.com/xkfz007/archive/2012/07/21/2602110.htmlhow to use in cmake:SET(CMAKE_CXX_FLAGS ...

2018-04-19 11:58:40 763

原创 office add-in deploy guide

https://www.add-in-express.com/docs/net-deploy-office-addin.phpit not only guide you how to deploy your office-addin, but also show you the difference of 3 ways of deployment.this is king of good!

2018-04-12 18:33:53 147

原创 solution:office2007(lack of some patch) installed addIns(for all users on a machine), but not loaded

read from this article:https://blogs.msdn.microsoft.com/vsto/2010/03/08/deploying-your-vsto-add-ins-to-all-users-saurabh-bhatia/we found the saying:A recent hotfix (KB976811 available through KB976477...

2018-04-12 16:59:51 367

原创 getQueuedCompletionStatus或ReadDirectoryChanged 会在某个时刻修改overlap?导致free heap block modified at after i

伪代码:class WatchInfo { OVERLAPPED overLapped; }ReadDirectoryChanged会传watchInfo的overlapped地址;getQueuedCompletionStatus传入一OVERLAPPED指针,函数返回后该指针可能会被赋值(目前还没用到这个);而ReadDirectoryChanged和getQueuedComp

2018-01-24 14:31:41 311

原创 gflags disable无效?看这里

打开你的注册表找到这个:HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options可以直接删除你想取消的exe文件done

2018-01-24 10:42:49 407

原创 windows 少数线程并发 监听多个目录

windows上用少数线程并发监听多个目录变化

2017-12-20 10:16:54 459

原创 Collections的sort方法加上Comparator后,是如何排序的

Collections的sort方法加上Comparator后,是如何排序的我们来看看Comparator的compare方法的注释 我们看到returns下方的信息,看完大家都知道怎么回事,但是这时即使按照上面的信息写完了,要知道序列结果是升序还是降序,还是需要了解一下Collections内部 TimSort。直接看看例子吧 [5, 1, 4, 3, 2]这个序列,若在comparator中

2016-03-16 23:47:55 3194

原创 RecyclerView ViewHolder getAdapterPotition return NO_POSITION!

RecyclerView ViewHolder getAdapterPotition return NO_POSITION!本文章主要从代码上简单分析: - getAdapterPosition返回NO_POSITION的原因场景之一(目前只碰到一个-_-): 点击RecyclerView中某一项后, 在执行android.view.View.performClick中, 通过Vi

2016-03-11 11:37:43 4729 6

原创 notification 点击响应 以及启动activity的坑

android-21/com/android/systemui/statusbar/phone/StatusBarHeaderView.java文件中的onClick(View v)方法中会处理点击通知栏选项的事件:public void onClick(View v) { if (v == mSettingsButton) { startSettingsAct

2015-09-10 21:05:04 1516

转载 dialog window isfloating 布局 问题 小总结

关于Window的windowIsFloating属性,之前有做过一些笔记,分享一下:// 是否是dialog样式的界面,android:windowIsFloating属性mIsFloating = a.getBoolean(com.android.internal.R.styleable.Window_windowIsFloating, false);int flagToUpd

2015-06-20 11:32:01 9106

PROTEUS仿真软件 教程

据说是英国最先进的EDA软件,功能相当强大,具有很好的仿真功能。

2011-05-22

ViewUrl查看网页

能查出曾经上过的网页,功能强大的~似乎也能恢复以前误删的文件

2010-02-10

空空如也

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

TA关注的人

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