默认情况下,同时安装了 64 位和 32 位版本的 Integration Services 命令提示实用工具的 64 位计算机将在命令提示符处运行 32 位版本。运行 32 位版本的原因是:在 PATH 环境变量中,32 位版本的目录路径显示在 64 位版本的目录路径之前。(通常,32 位目录路径...
分类:
其他好文 时间:
2014-06-25 20:50:58
阅读次数:
617
标准库:一些最爱
sys
sys这个模块让你能够访问与python解释器联系紧密的变量和函数。
sys模块中一些重要的函数和变量
函数/变量 描述
argv 命令行参数,包括脚本名称
exit([arg]) 退出当前程序,可选参数为给定的返回值或者错误信息
modules 映射模块名字到载入模块的字典
path 查找模块所在目录的目录名列表
platform 类似sunos5或...
分类:
编程语言 时间:
2014-06-25 19:21:36
阅读次数:
230
(一)
缺省情况下swap动作可由标准程序库提供的swap算法完成:
namespace std {
template
void swap(T& a, T& b) {
T temp(a);
a = b;
b = temp;
}
}这个函数是异常安全性编程的核心,并且是用来处理自我赋值可能性的一个常见机...
分类:
编程语言 时间:
2014-06-25 00:30:27
阅读次数:
336
在实际的软件编程中,经常会遇到资源的争用,比如下面的例子:
[cpp]
view plaincopyprint?
class Counter { private: int value; public: Counter(int c) { value = c; }
int GetAndIncrement()
{ int temp = value;
//进入危险区 valu...
分类:
其他好文 时间:
2014-06-24 23:51:10
阅读次数:
400
如今很多App应用,都用到了侧边栏的效果,比如网易新闻(还带有偏移缩小),今日头条(普遍这种),Path(最先应用这种抽屉效果,所以这种效果也叫Path效果),code4App上已经有很多网友写的第三方侧边栏类,大家可以直接拿来用.这里我主要的是介绍一下这种效果的实现原理,涉及了几个知识点,在其他地方也能用到.
UINavigationController和UITabBa...
分类:
其他好文 时间:
2014-06-24 23:33:59
阅读次数:
288
1、构建session抽象类,实现Session_set_save_hanlder函数必须的基础函数View Code2、编写txt文本模式具体方法实现类save_path = 'D:\session'; if(!is_dir($this->save_path)){ ...
分类:
其他好文 时间:
2014-06-24 22:39:38
阅读次数:
165
1.Could not find gem 'sqlite3 (>= 0)' in any of the gem sources listed in you
r Gemfile
2.ERROR: While executing gem ... (Gem::FilePermissionError)
You don't have write permissions into the /usr/local/lib/ruby/gems/1.9.1 director.y
3.rails 3遇到 Could n...
分类:
其他好文 时间:
2014-06-24 22:18:45
阅读次数:
316
Given a triangle, find the minimum path sum from top to bottom. Each step you may move to adjacent numbers on the row below.For example, given the fol...
分类:
其他好文 时间:
2014-06-24 18:56:54
阅读次数:
240
Anchor 对象更改一个链接的文本、URL 以及 target使用 focus() 和 blur()向超链接添加快捷键Document 对象使用 document.write() 向输出流写文本使用 document.write() 向输出流写 HTML返回当前文档的标题返回当前文档的 URL返回...
分类:
编程语言 时间:
2014-06-24 14:41:22
阅读次数:
388
在Java中为了进行I/O操作,需要用适当的I/O类创建对象,这些对象包含从文件中读数据的方法和向文件中写数据的方法。例如:要将文本写入temp.txt的文件,1 PrintWriter pw = new PrintWriter("temp.txt");2 pw.print("Hello Java!...
分类:
编程语言 时间:
2014-06-24 12:22:32
阅读次数:
256