模块的搜索路径:When a module namedspamis imported, the
interpreter searches for a file namedspam.pyin the current directory, and then
in the list of director...
分类:
编程语言 时间:
2014-05-26 15:09:11
阅读次数:
367
目前Smart
phone里Message菜单里没有让用户选择短信编码方式的菜单,Android手机对于短信编码方式的做法是:优先使用GSM
7bit去编码,如果短信里有些字符是无法用GSM 7bit编码的,则采用UCS2去编码。有些客户希望做成像某些feature
phone那样,能有菜单让用户去...
分类:
其他好文 时间:
2014-05-26 14:55:20
阅读次数:
293
https://wiki.postgresql.org/wiki/Apt sudo nano
/etc/apt/sources.list.d/pgdg.list粘贴deb http://apt.postgresql.org/pub/repos/apt/
precise-pgdg mainctrl+o...
分类:
数据库 时间:
2014-05-26 14:20:46
阅读次数:
437
1 /** 2 * 把返回的数据集转换成Tree 3 * @param array $list
要转换的数据集 4 * @param string $pid parent标记字段 5 * @param string $level level标记字段 6 *
@return array 7...
分类:
其他好文 时间:
2014-05-26 14:01:51
阅读次数:
225
最近在阅读Framework Design
Guidelines,本着现学现用的原则,于是就用FxCop工具对代码进行规范性检查时,发现了很多问题,其中包括命名以及一些设计上的规范。其中,Do not
expose generic lists 这条设计规范引起了我的注意。该规范指出“不要在对象模型中...
分类:
其他好文 时间:
2014-05-26 12:32:20
阅读次数:
294
Guava Maven Dependency com.google.guava guava
{guava.version}Guava 常用方法示例Lists实例化 ListList list = Lists.newArrayList();Maps实例化
MapMap>> map =...
分类:
其他好文 时间:
2014-05-26 10:53:50
阅读次数:
233
labels:Collection List Set和Map用法与区别 java 散列表
集合Collection接 口的接口对 象的集合├List子接口按进入先后有序保存可
重复│├LinkedList接口实现类链表插入删除没有同步线程不安全│├ArrayList接口实现类数组随机访问没有同步线程...
分类:
其他好文 时间:
2014-05-26 10:20:32
阅读次数:
177
android:autoLink设置是否当文本为URL链接/email/电话号码/map时,文本显示为可点击的链接。可选值(none/web/email/phone/map/all)
android:autoText如果设置,将自动执行输入值的拼写纠正。此处无效果,在显示输入法并输入的时候起作用。....
分类:
其他好文 时间:
2014-05-26 09:37:22
阅读次数:
213
Given a linked list and a value x, partition it
such that all nodes less than x come before nodes greater than or equal to x.You
should preserve the o...
分类:
其他好文 时间:
2014-05-26 09:35:28
阅读次数:
266
假定web application 名称为news,你在浏览器中输入请求路径:
http://localhost:8080/news/main/list.jsp 则执行下面向行代码后打印出如下结果:1、
System.out.println(request.getContextPath()); 打印...
分类:
其他好文 时间:
2014-05-24 08:05:54
阅读次数:
264