默认的可执行文件 /usr/sbin/apache2root@ty:/etc/init.d# netstat -anp |grep apachetcp6 0 0 :::80 :::* LISTEN ...
分类:
其他好文 时间:
2014-10-08 00:55:24
阅读次数:
648
在linux中,可以在交互界面和命令行使用调试,这里,记录下命令行的调试在命令行使用python27-mpdbuse_infix2postfix.py就可以进入调试模式>/root/py/algor/use_infix2postfix.py(7)<module>()->importtypes这是脚本的第一条语句h(elp)(Pdb)hDocumentedcommands(ty..
分类:
数据库 时间:
2014-10-02 13:55:43
阅读次数:
188
【题目简述】:其实就是根据题目描述:A permutation of the integers 1 to n is an ordering of these integers. So the natural way to represent a permutation is to list the integers in this order. With n = 5, a permutation...
分类:
其他好文 时间:
2014-09-19 13:53:15
阅读次数:
185
/// /// 实体对象转换DataTable /// /// 实体对象 /// DataTable public static DataTable GetDataTableByEntity(object entity) { DataTable dt = new DataTable(); Ty...
分类:
其他好文 时间:
2014-09-18 13:13:13
阅读次数:
207
参考三维旋转矩阵 + 矩阵加速这个还要用到仿射变换。平移translate tx ty tz1 0 0 tx0 1 0 ty0 0 1 tz0 0 0 1缩放scale kx ky kzkx 0 0 00 ky 0 00 0 kz 00 0 0 1绕任意轴(过原点)旋转(注意要把轴向量归一化,不然会...
分类:
其他好文 时间:
2014-09-09 11:13:28
阅读次数:
432
本系列作为Effective JavaScript的读书笔记。
Item 9:避免使用with关键字
重点:
设计with关键字本来是为了让代码变简洁,但是却起到了相反的效果,比如:
function f(x, y) {
with (Math) {
return min(round(x), sqrt(y)); // ambiguous references...
分类:
编程语言 时间:
2014-09-04 19:12:10
阅读次数:
288
一、容器vector
使用vector必须包含头文件:
#include
型别vector是一个定义于namespace std内的template:
[cpp]
view plaincopyprint?
templateclass _Ty, class _Ax = allocator >
第二个参数定义内存模型。我们一般采用默认的内存模型。
...
分类:
其他好文 时间:
2014-08-31 10:32:21
阅读次数:
239
几种典型的仿射变换: public static AffineTransform getTranslateInstance(doubl仿射变换-例e tx, double ty) 平移变换,将每一点移动到(x+tx, y+ty),变换矩阵为: [ 1 0 tx ] [ 0 1 ty ] [...
分类:
其他好文 时间:
2014-08-31 00:24:10
阅读次数:
358
[ 问题: ]
Some examples:
"0" => true
" 0.1 " => true
"abc" => false
"1 a" => false
"2e10" => true
Note: It is intended for the problem statement to be ambiguous. You should gather all requirements up front before implementing one....
分类:
其他好文 时间:
2014-08-27 16:43:58
阅读次数:
177
//车辆颜色 BasePage.BindVehicleColorQueryControl=function(formId,ctrId){ $("#"+ctrId).combobox("setValue",''); $("#"+ctrId).combobox({valueField:'Ty...
分类:
Web程序 时间:
2014-08-27 12:43:47
阅读次数:
212