1:编写一个程序,确定分别由signed ,unsigned 限定的char short long int的取值范围。采用打印标准头文件中的相应值以及直接计算两种方式实现。头文件的实现方式:#include #include /*determin range of int types*/int ma...
分类:
其他好文 时间:
2014-08-06 14:14:51
阅读次数:
229
Q:在安装setuptools时Python ez_setup.py,或者安装其他egg包,有时候会碰到: UnicodeDecodeError错误,这是为什么呢?
安装setuptools时UnicodeDecodeError错误
mimetypes.init() # try to read system mime.types
File "C:\Python27\lib\mim...
分类:
其他好文 时间:
2014-08-05 19:35:50
阅读次数:
201
错误代码如下:
E:\>wsimport -keep service.xml
parsing WSDL...
[WARNING] src-resolve: Cannot resolve the name 'soapenc:Array' to a(n) 'type definition' component.
line 505 of file:/E:/service1.xml#types...
分类:
Web程序 时间:
2014-08-05 19:27:20
阅读次数:
242
Initialization of bean failed; nested exception is java.lang.reflect.MalformedParameterizedTypeExcep严
重: Exception sending context initialized event t...
分类:
编程语言 时间:
2014-08-05 18:12:29
阅读次数:
253
参考资料:http://www.w3cschool.cc/sqlite/sqlite-data-types.html在SQLite中,数据类型的概念看起来很模糊,刚开始接触感觉跟C语言提供的数据类型概念相差甚远,不知道这是功能的弱化还是灵活性的提高,只能且行且体会吧。在数据类型小节提出了存储类和Af...
分类:
数据库 时间:
2014-08-05 10:59:09
阅读次数:
218
转至:https://github.com/CSSLint/csslint/wiki/Bulletproof-font-faceWhen using @font-face to declare multiple font types for cross browser compatibility, ...
分类:
Web程序 时间:
2014-08-05 10:49:39
阅读次数:
700
过了之后感觉以前真的做过这种类型的题。
之前一直很疑惑二级排序的优先级问题,现在发现二级排序真的没有绝对的优先级。
对于此题,若按W排序,则有1到i件物品的W均小于等于第i+1件物品(设为A)的W,那么对于第i+1件我们在[1,i]中要选取一个B,使得B.w
这就是所谓的最接近A的B。
因为对于W,后面的均大于等于前面的,所以我们需要一个尽可能大的H。
Splay_Tree实现。
#...
分类:
其他好文 时间:
2014-08-04 21:43:38
阅读次数:
309
最近搞了个 os x Server 把自己mac 配个web 服务器。研究下 ios 企业级应用发布。网上很多地方都是这个:对于 OS X Server,将以下 MIME 类型添加到 Web 服务的“MIME Types”(MIME 类型)设置中:application/octet-stream i...
分类:
其他好文 时间:
2014-08-04 20:58:08
阅读次数:
221
警告信息“Nested weights are bad for performance”的消除方法 原因分析:在布局进行嵌套使用时,父布局与子布局都使用了android:layout_weight,但不是必须使用时,便会出现如题所示的警告信息。 解决方法:根据实际情况,去除子布局中非必须使用的a.....
分类:
其他好文 时间:
2014-08-04 13:49:17
阅读次数:
210
JsRender DemosExample Scenario: Accessing parent data.Stepping up through the views (tree of nested rendered templates) TitleLang...
分类:
Web程序 时间:
2014-08-03 15:10:25
阅读次数:
294