allenpettle
allenshao · 共 152 篇文章
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 their duty. Change the user’s limits. ulimit -n and it is current showing as 1024. Increase limit …
What is the purpose of different Android partitions
-- Boot partition stores the Android kernel. If this partition is empty, the LK bootloader will enter the fastboot mode. -- System partition contains the Android user interface and all the pre-installed system applications. -- Data partition contains the user's data- contacts, messages, user instal…
2014-01-02 09:57 · Android · Linux Kernel · 评论(0)
10 Ways to sound more fluent in English
There are some common mistakes that people make when learning English. If you can correct a few simple things you can sound a lot more fluent. These are some of the tricks or pieces of advice our English teachers have come up with to make you sound more fluent as a speaker. Obviously there is no su…
2014-01-01 17:18 · English · 评论(0)
Firefox hijacked by hao123
原因是在火狐快捷方式里面,重定向到hao123 "C:\Program Files\Mozilla Firefox\firefox.exe" http://www.hao601.com/?tn=3130716_10 把hao123网址去掉即可,屡试不爽
2013-12-30 20:31 · 移动互联网 · 评论(0)
Disable Amazon hint in Ubuntu search
Getting bored with Amazon association when you search in Ubuntu dash, just follow the below tips. 1. Remove unity shopping packages sudo apt-get remove unity-lens-shopping 2. Disable online search results Go to "Security & Privacy", hit off in "search" tab.
How to Speak Fluent English: Top 10 Tips
1) Understand that there is no “magic bullet.” That means there is NO secret and super-effective way to guarantee fluency very fast. There are different methods, and some are better than others (for example, practicing with real conversations and using the language frequently, not just memorizing g…
2013-12-22 17:34 · English · 评论(0)
Remove Ubuntu One
To start, we need to make sure that Ubuntu One isn’t running. Open the System Monitor, in System > Administration > System Monitor. In the Processes tab, look for anything that starts with “ubuntone”. Select them, and click End Process. Next, we’ll get rid of the stored authentication token for Ubu…
2013-12-08 23:08 · Ubuntu · 评论(0)
Get Rid Of “System Program Problem Detected” error in Ubuntu
Remove old crash-reports - recommended Remove all old crash-reports that might exist in the crash-report directory: sudo rm /var/crash/* After a reboot, the popups should be gone. Disabling error-reporting It's not a desirable solution. sudo vim /etc/default/apport Change enabled=1 to enabled=0
2013-12-08 22:59 · Ubuntu · 评论(0)
Android Kitkat ART vs. Dalvik & Impacts for end-users
What's ART? ART is Google's 2-year-long ongoing secret project, which aims to boost the performance of our Android devices. It's based on the premise that modern devices are pretty powerful in terms of CPU speed and memory capacity, especially in comparison with the first generation of Android devi…
2013-12-08 19:00 · Android · 评论(0)
error: gnutls_handshake() falied when you sync chip code in ubuntu
gnutls package is broken, workaround is compile git with openssl. sudo apt-get install build-essential fakeroot dpkg-dev mkdir ~/git-openssl cd ~/git-openssl sudo apt-get source git sudo apt-get build-dep git sudo apt-get install libcurl4-openssl-dev sudo dpkg-source -x git_1.8.3.2-1.dsc cd git-1.8…
unix2dos dos2unix
sudo aptitude install tofrodos 运行这两行 ln -s /usr/bin/fromdos /usr/bin/dos2unix ln -s /usr/bin/todos /usr/bin/unix2dos 或者加入脚本
How to make resources added in frameworks/base/core/res/res
add the new id to your xml run "make -j4 2>&1 | sed -n -f frameworks/base/core/res/MakeJavaSymbols.sed | sort -u" will generate a output like this: add the above to either: frameworks/base/core/res/res/values/symbols.xml or frameworks/base/core/res/res/values/public.xml
JDK6 installed in Ubuntu
按照网上的方法apt-get并不成功,我这里采用的方法是手工安装,步骤如下: java.sun.com下载jdk-6u37-linux-i586.bin sudo chmod u+x /home/allen/jdk-6u37-linux-i586.bin JDK配置,vim ~/.bashrc export JAVA_HOME=/home/allen/jdk1.6.0_37 export JRE_HOME=${JAVA_HOME}/jre export CLASSPATH=.:${JAVA_HOME}/lib:${JRE_HOME}/lib export PATH=${JAVA_HOME}/…
Android source sync问题汇总(since 2012)
fetch address issue: change to fetch="git://Android.git.linaro.org/" something like "remote end hung up unexpectedly" go to the folder where you made “repo init” some days ago open .repo/repo/subcmds/sync.py correct _Fetch function (program will try to sync even without network after this change:-)…
Android Partitions Explained: boot, system, recovery, data, cache & misc
Unless you have been using your Android phone just for calls, SMS, browsing and basic apps, you should know that Android uses several partitions to organize files and folders on the device. Each of these partitions has a distinct role in the functionality of the device, but not many Android users k…
2012-09-06 16:17 · Android · Linux Kernel · 评论(0)