include $(top_srcdir)/common.mkbin_PROGRAMS=lib_LIBRARIES=lib_LTLIBRARIES=lib_LTLIBRARIES+=libStringProcess.laINCLUDES=-I /home/liuyu/MyTars/boost_1_5...
分类:
其他好文 时间:
2014-12-30 15:10:20
阅读次数:
190
# -*- coding: utf-8 -*-import argparseargs = "-f hello.txt -n 1 2 3 -x 100 -y b -z a -q hello @args.txt i_am_bar -h".split() # 使用@args.txt要求fromfile_p...
分类:
编程语言 时间:
2014-12-30 13:11:57
阅读次数:
212
1.启动一个程序使用命令:adb shell am start 包名/类名或分两步走: $ adb shell $ am start -n {包(package)名}/{包名}.{活动(activity)名称}2.关闭一个程序:adb shell amforce-stop 包名
分类:
移动开发 时间:
2014-12-30 11:35:07
阅读次数:
370
/*延迟加载的特性*Lazy load of images in ListView*I am using a ListView to display some images and captions associated with those images.*I am getting the ima...
分类:
移动开发 时间:
2014-12-29 16:46:30
阅读次数:
167
当自己开发了一个so文件,如何调试呢?
对与如何编写一个so,请参考文章:http://blog.csdn.net/zz7zz7zz/article/details/41448987
对于如何进行gdb调试,请参考文章:http://blog.csdn.net/zz7zz7zz/article/details/41654457
假设我们的源文件分别是:
filea.c
#include
void fun1()
{
printf("i am from filea fun1 \n");
...
分类:
数据库 时间:
2014-12-29 15:18:20
阅读次数:
202
没有写过英文版的网页不知道,
写过也未必知道,
在网页中,把英文放在div里面的话,
div对于长单词,采用优先原则,
允许英语长单词超出我这个div的宽度,
比如如下的代码:
I am a looooooooooooooooooooooooooooooooooooooooong word!
本来我设置了这个图层的宽度是100px,希望里面的所有东西,遇到边界自动换行,即得到如下...
分类:
Web程序 时间:
2014-12-29 10:27:54
阅读次数:
144
TRegExpr正则表达式2006-10-24 10:55DELPHi中的REGEXPR [ 2006-03-29 11:33:46 am | Author: Admin ]其实这个Pascal单元我在几个论坛上面都推荐过,也是我唯一会用的DELPHI下面的正则表达式实现。 正则表达式是个极其繁琐....
分类:
其他好文 时间:
2014-12-28 22:12:39
阅读次数:
168
browserAction设置browser action的badge文字,badge 显示在图标上面chrome.browserAction.setBadgeText({text:"i am test"})设置badge的背景颜色。// chrome.browserAction.setBadgeB...
TFT屏幕 TFT ( Thin Film Transistor 薄膜晶体管) ,是有源矩阵类型液晶显示器(AM-LCD)中的一种,TFT在液晶的背部设置特殊光管,能够“主动的”对屏幕上的各个独立的象素进行控制,这也就是所谓的主动矩阵TFT(aCTive matrix TFT)的来历,这样能够大大....
分类:
其他好文 时间:
2014-12-26 20:18:49
阅读次数:
269
indexOf 返回字符串中指定字符首次出现的位置 var str="hello, I am Miss bean!"; str.indexOf("l")//结果为2indexOf('l',2) //表示从第2位开始查找l元素首次出现的位置1 var str="hello, I am Miss b.....
分类:
Web程序 时间:
2014-12-26 12:38:44
阅读次数:
170