Skip to content

Instantly share code, notes, and snippets.

@AITUncle
Created September 29, 2016 14:56
Show Gist options
  • Save AITUncle/af71f6f7fa96e7f61f46e6efe17712da to your computer and use it in GitHub Desktop.
Save AITUncle/af71f6f7fa96e7f61f46e6efe17712da to your computer and use it in GitHub Desktop.
daily
我的日志
@AITUncle
Copy link
Author

AITUncle commented Dec 5, 2016

在描述问题时,讲外部原因时:尽量避免,推卸责任的词语。
引发问题的人,内心听着会很不舒服。
有时候,会让某些人觉得自卑,给团队带来麻烦。
有时候,会让某些人觉得愤怒。

这样会影响组员之间的合作。如果他不是一个经常弄出某个问题来的话,描述问题的话尽量谦卑一些。有些bug的出现是无法预料的。


在公司尽量不要抱怨工作,因为你的抱怨,只会让他人觉得你的能力没有处理好该处理的问题。
如果要抱怨,请,顺便提出你的解决方案。不然一切抱怨都是扯蛋。


请教问题之前,先想想:他真的能你带来解决方案吗?
如果不能,你只是想找个人倾述一下,那么,请憋一憋。你的倾述不一定能得到肯定,很可能得到的反而是双方的不满。

@AITUncle
Copy link
Author

mysql union all
http://dev.mysql.com/doc/refman/5.7/en/union.html

explain 
select * from filelost where imei_crypt like "%32878681013683905766109117506828893802%"
union all
select * from filelost_1611 where imei_crypt like "%32878681013683905766109117506828893802%"
union all
select * from filelost_1612 where imei_crypt like "%32878681013683905766109117506828893802%"
union all
select * from filelost_1701 where imei_crypt like "%32878681013683905766109117506828893802%"

/*
select * from filelost_old where imei_crypt like "%32878681013683905766109117506828893802%"
*/

@AITUncle
Copy link
Author

android中当崩溃引发二次崩溃是:调用uncaughtException时,我们在调用系统默认的sDefaultHandler.uncaughtException(thread, ex)来处理时,并不会弹窗提示崩溃,而是直接闪退。

@AITUncle
Copy link
Author

AtomicBoolean.getAndSet(newValue) //返回原来旧的值,并设置新的值
AtomicBoolean.compareAndSet(expect,update) //只有返回为true时才会更新值为update,只有expect等于原来的值才会返回true

@AITUncle
Copy link
Author

AITUncle commented Dec 29, 2016

酷狗中,对音频文件计算hash的代码实现。

PreCalcHashValueRunnable.run

@AITUncle
Copy link
Author

潮汕地区,是广东省汕头市、潮州市、揭阳市三个地级市的统称

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment