Author: Xuan Hu

  • 解决在Ubuntu上搭建Android开发环境缺少WST包的问题

    前言:之前写过一篇《Ubuntu 10.04安装Android开发环境》,每天都有不少访问量,估计很多就是遇到了这个问题,一直压在Evernote里没有翻出来,现在已转入Arch阵营,没有再次验证解决方案的正确性,完全参照印象和笔记,有问题尽管留言

    平台:Ubuntu 10.10和Ubuntu 11.04,10.04(写那一篇日志的时候)无此问题

    原因:Ubuntu下的Eclipse是Ubuntu社区打包的,非完整版,少了WST包的支持

    现象:安装ADT的时候会提示类似如下错误(版本号可能会有不同):
    [text gutter=”false”]
    Cannot complete the install because one or more required items could not be found. Software being installed: Android Development Tools 10.0.1.v201103111512-110841 (com.android.ide.eclipse.adt.feature.group 0.0.1.v201103111512-110841) Missing requirement: Android Development Tools 10.0.1.v201103111512-10841 (com.android.ide.eclipse.adt.feature.group 10.0.1.v201103111512-110841) requires ‘org.eclipse.wst.sse.core 0.0.0’ but it could not be found
    [/text]
    解决方案
    方案1:直接从Eclipse官网下载完整的安装包
    方案2:遵照以下菜单顺序或提示执行
    [text gutter=”false”]
    1:Help –> Install New Software –> Add –> type ‘http://download.eclipse.org/releases/galileo’ in the Location –>OK
    2:Help –> Install New Software –> Add –> type ‘http://dl.google.com/eclipse/plugin/3.5’ in the Location –> OK
    3:Please make sure the option ‘Contact all updates sites during install to find required software’ is checked.
    4:Restart Eclipse,Reinstall ADT
    [/text]
    相关参照
    1)http://code.google.com/intl/es/eclipse/docs/faq.html#wstinstallerror
    2)http://code.google.com/intl/es/eclipse/docs/install-eclipse-3.5.html

    P.S.本文参与“第二届 Google 暑期大学生博客分享大赛 – 2011 Android 成长篇”,感谢大家支持

  • 体育缓考办理流程

    今天是六一儿童节,昨天一天都在折腾体育缓考,简单的把流程记录下,以飨后人。
    注:学校为北京航空航天大学,院系为软件学院,其他院系亦可参照

    1、到指定医院开具“诊断证明书”,重要的就是那个公章
    注:校医院只适合证明,不适合诊断,你懂的

    2、到系教务处(6号楼312)找本科教务老师填写“缓考申请表”,填写完之后可能需要等待半天,因为还要院系领导签字
    注:院系领导签字就是盖个私章,而且章就在教务老师那,不知为什么一定非要等半天,可能这就是中国特色吧

    3、到校教务处(办公楼东配楼314)找教务处领导签字,至此表格完整

    4、去打印店将表格复印两份,诊断证明书需复印在背面
    注:最近的复印店为5号学生公寓地下室的打印店

    5、原件交至校教务处、复印件交至系教务处体育部学分管理处(体育场看台背面的大门进去2楼右拐左手第一间),至此全部搞定

    P.S.前后要跑很多路,如果行动不方便的,最好找个好朋友帮忙跑下腿

  • Shell 自动补全

    1) /etc/passwd

    It shows like this
    [shell]huxuan:x:1002:1002::/home/huxuan:/bin/bash[/shell]
    in format of
    [shell]Username:Password:User ID (UID):Group ID (GID):User ID Info:Home directory:Command/shell[/shell]

    Make sure the Command/shell is the “/bin/bash” and not the “/bin/sh” which may be the default value.

    2) $HOME$/.bashrc or /etc/bash.bashrc
    Make sure the code blew is not commented out.

    [shell]if [ -f /etc/bash_completion ] && ! shopt -oq posix; then
    . /etc/bash_completion
    fi[/shell]

    3) Reference
    http://www.cyberciti.biz/faq/understanding-etcpasswd-file-format/