2012年6月26日 星期二

Git ignore


  1. Keep your .gitignore file.
  2. Clear your GIT cache.  Don’t worry, this won’t delete any of your local files, just what GIT is tracking.
    git rm -r --cached .
  3. Add everything in your project.  Your .gitignore file will exclude what you want to ignore now and start tracking the good stuff.
    git add .
  4. Commit your changes.
    git commit -m "Now my .gitignore file works correctly!"

2012年4月3日 星期二

compile Android Apps

Command
1. make: compile all Android system
2. make [package name]: the package name can be found in packages/apps/xx/Android.mk
or
mmm packages/apps/Package_name
The APK and odex will generate in out/target/product/generic/system/app/xxx.apk
3. make snod: this command will regenerate system.img

Put 3rd apk into system.img
1. put apk into out/target/product/generic/system/app/
2. make snod
or
1. mkdir packages/apps/MyApp
2. vi Android.mk
LOCAL_PATH:=$(call my-dir)
include $(CLEAR_VARS)
LOCAL_POST_PROCESS_COMMAND:=$(shell cp -r $(LOCAL_PATH)/*.apk $TARGET_OUT)/app/)
3. make


Generate AIDL stub
1. make: compile all Android system
2. All system AIDL will convert java code in android_source/out/target/common/obj/JAVA_LIBRARIES/.....

2012年2月17日 星期五

gimap

use telnet to connect gimap.
1. openssl s_client -crlf -connect imap.gmail.com:993
2. . login xxx@gmail.com PASSWORD
3. . list "" "*"
4. use other command. such as close, store, create, delete....

2012年1月16日 星期一

Git- Can't locate Error.pm : on Mac OS X

install Git on Mac. When I put "git add -i", then show "Can't locate Error.pm in @INC ....."

I found the answer on internet as belowTamsler:

sudo perl -MCPAN -e 'install Error'