Hyper-v下安装测试环境:CentOS 6.5, 默认的Python 2.6, web2py主机Win8.1问题:远程管理显示“管理因不安全通道而关闭”,只能访问网页,不能进入管理界面。找了n多方法,不得门道,最后在stackoverflow找到可行的方法如下:# openssl genrsa ...
分类:
Web程序 时间:
2014-07-24 05:07:48
阅读次数:
404
参考文章:SQL Server 游标运用:查看一个数据库所有表大小信息(Sizes of All Tables in a Database)分享一个SQLSERVER脚本(计算数据库中各个表的数据量和每行记录所占用空间)监控SQLServer 数据库表每天的空间变化情况仔细拜读上面三位的文章,不会的...
分类:
数据库 时间:
2014-07-24 05:07:08
阅读次数:
314
Pebble
Solitaire
Pebble solitaire is an interesting game. This is a game where you are given a board with an arrangement of small cavities, initially all but one occupied by a pebble each. The...
分类:
其他好文 时间:
2014-07-23 22:38:37
阅读次数:
344
题目:10954 - Add All
题目大意:求n个数的和,但是有点不一样的是题目要求计算最少花费。每次两个数相加,得到的那个数就是每次计算的cost。
解题思路:之前没有想到用multiset,自己写好麻烦。要求cost 最小的话,说明每次都将这些数里面最小的两个做相加,这样每次花费都是最小的。用multiset,就可以将每次计算的结果插入这些已经有序的数据中相应的位置,使...
分类:
其他好文 时间:
2014-07-23 22:35:17
阅读次数:
234
参考jQuery官网API文档1、.attr()获取 :$( "a" ).attr( "href" );设置:$( "a" ).attr( "href", "allMyHrefsAreTheSameNow.html" ); $( "a" ).attr({ title: "all titles are...
分类:
Web程序 时间:
2014-07-23 22:26:47
阅读次数:
378
也是自己之前学习的笔记。读文件file_obj2=open('hello.txt','w')conta='my name is Bb'file_obj2.write(conta)v=file_obj2.readlines()print v输出不唯一数1 (这是一个国外Python练习网站上的题...
分类:
编程语言 时间:
2014-07-23 22:21:17
阅读次数:
497
一, find 命令find 命令有三部分构成 1,你要搜索的目录(. 当前目录, ~家目录, /根目录)。 2,你的搜索条件。 3,搜索到后要执行的动作。常用命令:1, find . -name my*在当前目录下搜索,名字以my开头的文件, 然后输出到标准输出。 my* 和 ‘my*’一样,加不...
分类:
其他好文 时间:
2014-07-23 22:20:27
阅读次数:
216
Methods and arrangements for object identification. An identification request is received from different objects of a network. Attributes and values o...
分类:
Web程序 时间:
2014-07-23 22:19:07
阅读次数:
354
Permutation SequenceThe set[1,2,3,…,n]contains a total ofn! unique permutations.By listing and labeling all of the permutations in order,We get the fo...
分类:
其他好文 时间:
2014-07-23 22:11:47
阅读次数:
327