![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Memo
allenpettle
这个作者很懒,什么都没留下…
展开
-
Java会发生内存泄漏吗?
首先,答案是肯定的。Java虽然有垃圾回收器,但依然存在泄漏。Java内存泄漏跟C/C++内存泄漏的概念不一样:C/C++的内存泄漏是指Malloc了一些资源,最后没有free掉,内存没有回收,这个是真正意义上的内存黑洞;而Java的泄漏则可能是别的原因,Java对象的存在对程序已经没有意义,但是对象在程序周期内一直存在,这个可能会导致Java的内存泄漏。总结原因,大概有下面几...2010-03-25 11:40:01 · 144 阅读 · 0 评论 -
GPL v.s. BSD
Some sentences addressed that linux device drivers' code samples are covered by a dual BSD/GPL license. What's the exact BSD & GPL? I heard that they are open source licensing ages ago, just heard...原创 2010-11-09 13:20:16 · 100 阅读 · 0 评论 -
cygwin如何设置subversion代理
找到如下文件~/.subversion/servers修改内容:[global]http-proxy-host = your.server.addresshttp-proxy-port = your_server_port原创 2011-10-11 11:13:48 · 100 阅读 · 0 评论 -
Why is Android laggy, while iOS, Windows Phone 7, QNX, and WebOS are fluid?
The Root CauseIt’s not GC pauses. It’s not because Android runs bytecode and iOS runs native code. It’s because on iOS all UI rendering occurs in a dedicated UI thread with real-time priority. O...原创 2011-12-12 17:55:07 · 117 阅读 · 0 评论 -
Dual-Mode Wifi and Dual-Band Wifi
Dual-Band Wifi:In Wifi wireless networking, dual band is the capability to transmit on the 5 GHz band of 802.11a and also the 2.4 GHz band used by 802.11b, 802.11g and 802.11n.Unlike ordinar...原创 2011-11-07 11:02:01 · 737 阅读 · 0 评论 -
NFC近场通讯技术介绍
NFC简介NFC(Near FieldCommunication)是短距离非接触式的一种通信方式,它结合了非接触式感应以及无线连接技术,作用于13.56Mhz 频带,传输距离大约10CM 左右。传输速度目前为106Kbit/s、212Kbit/s 或者424Kbit/s,将来可提高至1Mb 左右。它不仅符合ISO18092、ISO21481、ECMA(340,352 以...原创 2011-12-01 13:39:54 · 850 阅读 · 0 评论 -
Android IPC AudioFlinger binder实例
一篇android的IPC机制binder实例AudioFlinger国外文档。原创 2012-06-20 13:32:15 · 256 阅读 · 0 评论 -
如何培养商业头脑?
http://blog.sina.com.cn/s/blog_4fe0f5860100klvw.html《锻炼商业思考力的七种框架力》《犹太人经商哪些最有效》《财富》推荐的75本必读书: 商业兴衰--企业--决策--经济学--道德--全球化--投资--领导力--谈判和管理--办公室政治--权力--项目管理--战略--技术和革新--华乐街--工作和生活 在一个完...原创 2012-06-30 17:16:03 · 876 阅读 · 0 评论 -
What is trickle charge?
Trickle charge is just a very low current charge. Many chargers, after they sense that the battery is fully charged, go into trickle mode to keep the battery fully charged without overcharging it.原创 2012-07-02 09:47:13 · 531 阅读 · 0 评论 -
unix2dos dos2unix
sudo aptitude install tofrodos运行这两行ln -s /usr/bin/fromdos /usr/bin/dos2unixln -s /usr/bin/todos /usr/bin/unix2dos或者加入脚本原创 2013-03-04 20:12:44 · 132 阅读 · 0 评论 -
Disable Amazon hint in Ubuntu search
Getting bored with Amazon association when you search in Ubuntu dash, just follow the below tips.[size=small][b]1. Remove unity shopping packages[/b][/size][code="cmd"] sudo apt-get remove unity...2013-12-22 18:07:32 · 129 阅读 · 0 评论 -
How to make resources added in frameworks/base/core/res/res
1) add the new id to your xml2) run "make -j4 2>&1 | sed -n -f frameworks/base/core/res/MakeJavaSymbols.sed | sort -u"will generate a output like this: 3) add the above to either:fram...原创 2013-02-23 10:19:06 · 163 阅读 · 0 评论 -
Eclipse中快捷键的使用
Alt+/:代码提示 Ctrl+/:注释/取消注释 Ctrl+D:删除光标所在行 Ctrl+K:将光标停留在变量上,按Ctrl+K键可以查找到下一个同样的变量 Shift+Ctrl+K:和Ctrl+K查找的方向相反 Shift+Ctrl+F:代码格式化。如果选择了代码,仅对所选代码格式化 Shift+Ctrl+O:快速地导入import Shift+Ctrl+X:将所选字符转为大写 Shift+C...原创 2010-10-14 10:14:06 · 61 阅读 · 0 评论 -
Google Group Android Developers 无法打开的问题
Android相关的Google Group目前在大陆无法打开,比如[url]http://groups.google.com/group/android-developers[/url]大家可以试试https[url]https://groups.google.com/group/android-developers[/url]...2010-03-30 10:27:32 · 171 阅读 · 0 评论 -
Android源码编译 - JDK的安装
安装java sdk$sudo apt-get install sun-java6-sdk$sudo apt-get install sun-java5-sdk$cd /etc/alternatives$sudo rm javadoc.1.gz javadoc$sudo ln -s /usr/lib/jvm/java-1.5.0-sun/man/man1/javad...2010-03-30 12:15:11 · 125 阅读 · 0 评论 -
ubuntu上安装redhat的安装包
apt-get install rpmmkdir /var/lib/rpmrpm --initdbrpm -ivh *****.rpm --nodeps2010-03-30 14:20:07 · 309 阅读 · 0 评论 -
安装deb集合(忽略依赖关系)
sudo dpkg -i *.deb2010-04-20 10:20:17 · 1309 阅读 · 0 评论 -
Cntlm proxy account problem
如果你在設定uBuntu cntlm的system proxy有遇到用自己的帳號執行apt-get update時出現407 error,即proxy不認得你的帳號密碼的情況時,可嘗試用下面的方法解決: 1、您使用的賬號、密碼確認OK?即可以正常在windows上登入?且有internet權限? 2、如果確認第一點OK的話,請您試下如下步驟 1)更改好您前面提到的...2010-04-23 14:22:47 · 1069 阅读 · 0 评论 -
feature phone / entry phone / smart phone 定义
[b]Feature phone[/b]: a mobile phone that supports advanced features other than voice call and short message such as WAP/MMS/Java/Blue Tooth/PoC/A-GPS and etc. Please note, all these advanced featur...2010-05-05 10:09:36 · 191 阅读 · 0 评论 -
Fresh gizmo
[b]cakewalk[/b] [i]n.[/i] 很容易做的事;易如反掌的事[b]blockbuster[/b] [i]n.[/i] 重磅zhadan,了不起的人或事[b]spammer[/b] [i]n.[/i] 垃圾邮件发送者原创 2010-05-13 08:52:04 · 138 阅读 · 0 评论 -
Linux shell...(echo, grep)
[b]1. 怎样看当前用的是哪种shell?[/b] echo $-[b]1. 怎样用grep查找具体的文件内容?[/b] find ./ -type f -name "*.mk" | xargs grep "common.mk"原创 2010-05-13 15:42:29 · 344 阅读 · 0 评论 -
开源项目汇总
[b]Google开源项目[/b]文本文件处理:Google CRUSH (Custom Reporting Utilities for SHell)CRUSH是为命令行或shell scripts处理特定文字数据而制作的一系列工具,这里有指南。C++库和源代码:Google Breakpad一个开源的多平台崩溃报告系统。Google GFlags...原创 2010-03-01 14:28:10 · 95 阅读 · 0 评论 -
什么是Business Model中的NDA
NDA全称是Non Disclosure Agreement意思是保密协定。这是购卖双方开始谈生意时的第一步。根据保护对象的不同分两种:单向NDA(One-way NDA)和双向NDA(Two-way NDA)。单向保密协定只保护采购方的利益。例如你给英特尔(或其他大公司)做科研项目,就要求签定此类保密协定。双向保密协定保护双方利益,一般条款对等。当然,如果信息的保密程...2010-03-01 16:06:28 · 217 阅读 · 0 评论 -
注意文件每行结尾的^M,CR/LF区分
首先明确一点,Dos和windows采用回车+换行CR/LF表示下一行, 而UNIX/Linux采用换行符LF表示下一行。 Linux下某些针对硬件配置的config file如果是在windows下创建的,有时你会发现在行尾会有“^M”符号,这时注意千万不要直接VIM 【X】删除这些符号,因为这样做会把换行符删掉,导致这些文件file IO的时候无法判断结束从而导致tar...2010-12-24 13:54:35 · 1327 阅读 · 0 评论 -
"Another transaction by user ..." prompt while uploading appengine source
Problem Occurred:Unable to update app: Error posting to URL: https://appengine.google.com/api/appversion/create?app_id=allenpettle324&version=1409 ConflictAnother transaction by user allenshao.a...原创 2011-05-03 21:53:26 · 96 阅读 · 0 评论 -
AOSP source code build error: Virtual memory exhausted: Cannot allocate memory
Sometimes compiling certain things from source I've received a "virtual memory exhausted: Cannot allocate memory" error. The following is a quick tip to maybe allow gcc/libtool/make/whatever to finish...原创 2014-01-02 15:47:09 · 281 阅读 · 0 评论