INSTRUCTION SET: Processors are made of semiconductor dies, usually electronic-grade mono-crystalline silicon. They don't know English or any other human language, they understand only 0 and 1. So the designer of processor tells us in what sequence o…
一 Android开发工具简介 用于Eclipse的Android开发工具(AdnroidDeveloper Tools,简称ADT)插件提供了专业级别的开发环境,利用该环境来构建AndroidApps,它是一个完成的JavaIDE且具有高级的特征来帮助构建,测试,调试和打包AndroidApps. 而且它是免费的,开源的,运行在大多数的主流平台上. 二 下载Android SDK AndroidSDK提供了API库和必需的开发工具来构建,测试,调试AndroidApp 1 集成开发环境ADT…
Building Android Apps — 30 things that experience made me learn the hard way There are two kinds of people — those who learn the hard way and those who learn by taking someone’s advice. Here are some of the things I’ve learned along the way that I wa…
Can my single-threaded application benefit from multiple cores? How? Even a single-threaded application can benefit from parallel processing on different cores. For example, if your application uses a media server, then the media processing and your…
把Android Studio 升级到3.0+ 版本的时候出现该问题:   可以看到 给了我们两种解决办法:   1. 即 给出现问题的三方 加上 annotationProcessor配置     2    在相应的module的gradle文件中,使用javaCompileOptions defaultConfig { applicationId "com.xxx.xxx" minSdkVersion targetSdkVersion versionCode versionName…
void worker_DoWork(object sender, DoWorkEventArgs e) { isBussy = true; if (Common.isChangingAccount) { rt = new ResultInfo() { code = 3, isSucc = false, msg = "now system change account" }; return; } if (isTest) { rt = new ResultInfo() { code=1,…
这个世界上有两种人-从经验教训中学习的人以及听从别人建议的人.这里是我一路走来学到的一些东西,分享给大家: 在添加任何第三方party之前,请三思:这真的是一个成熟的项目吗? 如果一个东西用户看不到,就不要绘制它! 除非真的需要,否则别使用数据库: 达到65k方法数限制来的非常快,真的,非常快!不过 multidexing 可以拯救你; RxJava 是 AsyncTasks 以及其它杂碎的最佳替代者: Retrofit 可能是现在最佳的网络请求库: 使用 Retrolambda来简化你的代码:…
Building Apps with Connectivity & the Cloud These classes teach you how to connect your app to the world beyond the user's device. You'll learn how to connect to other devices in the area, connect to the Internet, backup and sync your app's data, and…
Multi Paxos [2] 通过basic paxos 以上步骤分布式系统已经能确定一个值,“只确定一个值有什么用?这可解决不了我面临的问题.” 你心中可能有这样的疑问. 原simple paxos论文里有提到一连串个instance of paxos [4] 但没有multi paxos的概念. 实际上multi paxos是由谷歌提出的[3].  zk和raft也都是multi paxos. simple paxos论文的实现很复杂,虽然有leader,但每次还是basic paxos.…
Android 1.5 ProPolice to prevent stack buffer overruns (-fstack-protector),在缓冲区buffer与返回地址之间加入Canary(Windows上也叫cookies) safe_iop to reduce integer overflows(safe_iop 是思科的安全API库,保证算术运算不会溢出) Extensions to OpenBSD dlmalloc to prevent double free() vulne…