摘要:
今天用make 编译 蹦到bash ‘/bin/sh: Syntax error: “(” unexpected和/bin/sh: [[: not found 这种莫名奇妙的错误原因是是linux将sh指向了dash而不是bash直接改配置dpkg-reconfigure dash选默认不是dash 阅读全文
摘要:
文章地址 http://developer.android.com/training/articles/perf-jni.htmlJNI TipsJNI is the Java Native Interface.It defines a way for managed code (written in the Java programming language) to interact with native code (written in C/C++).It's vendor-neutral, has support for loading code from dynamic sh 阅读全文
摘要:
If your project is linked with "-nostdlib -Wl,--no-undefined", you need to provide your own __dso_handle because crtbegin_so.o isn't linked. The content of __dso_handle doesn't matter. eg. extern "C" { extern void *__dso_handle __attribute__((__visibility__ ("hidden& 阅读全文
摘要:
Usage: configure [options]用 法:configure [选项]Options: [defaults in brackets after descriptions]选 项:[描述之后的方括号里的是默认值]Standard options:标准选项: --help print this message 打印这个信息,例如:./configure --help > ffmpegcfg.txt --logfile=FILE log tests and output to FILE [config.log] 记录测试日志并输出到的文件[默认:config.log] --d 阅读全文
摘要:
启动的时候 使用 python manage.py runserver 0.0.0.0:8000即可接收所有IP访问 阅读全文
摘要:
django 刚接触,想做一些restful api , google了一下,发现有现成的框架。Django REST framework。对使用做下记录: 安装 从http://django-rest-framework.org/下载,解压后$sudo python setup.py ins... 阅读全文
摘要:
今天在小米设备上遇到如下问题 10-15 17:04:36.899: W/dalvikvm(2767): ReferenceTable overflow (max=512) 10-15 17:04:36.909: W/dalvikvm(2767): JNI local reference table summary (512 entries): 10-15 17:04:36.909: W/dalvikvm(2767): Memory held directly by tracked refs is 16104 bytes 10-15 17:04:3... 阅读全文
摘要:
问题描述使用SDK Manager更新时出现问题Failedtofetch URLhttps://dl-ssl.google.com/android/repository/repository-6.xml,reason:Connectiontohttps://dl-ssl.google.com refusedFailedtofetch URL http://dl-ssl.google.com/android/repository/addons_list-1.xml,reason:Connectiontohttp://dl-ssl.google.com refusedFailedtofetch 阅读全文
摘要:
前提有python,easy_install关于easy_install 的安装,比较简单的装法 : wget -q http://peak.telecommunity.com/dist/ez_setup.py python ez_setup.py1 在http://www.djangoproject.com/download/ 下载最新版本2 建议安装virtual env sudo easy_install virtualenv 安装后,激活virtualenv 再装Django ,不污染环境 .3 安装 python MySQLdb easy_install MySQL-py... 阅读全文
摘要:
一、logcat中文乱码Android LOGCAT输出是UTF-8编码,而Windows CMD的默认编码设置是GBK。要想正确显示中文,需要设置在WINDOWS CMD窗口的编码设置,以下为设置步骤。1、打开cmd,执行chcp查看当前代码页 chcp Active code page: 9362、如果输出结果是936,那么请这行下面一条命令,将当前活动编码设为65001。如果已经是65001,可跳过此步骤 chcp 650013、修改窗口属性,改变字体在命令行标题栏上点击右键,选择"属性"->"字体",将字体修改为True Type字体&qu 阅读全文