文件描述符:文件描述符是一个小的非负整数,是内核用来标识特定进程正在访问的文件标准输入/输出/出错:shell为每个程序打开了三个文件描述符,STDIN_FILEON,STDOUT_FILEON,STDERR_FILEON,默认这三个文件描述符都链向终端不带缓冲的IO:函数open
read wri...
分类:
其他好文 时间:
2014-05-07 17:13:03
阅读次数:
284
//1、工厂模式 function createCar(){ var car = new
Object(); car.color="red"; ...
分类:
编程语言 时间:
2014-05-07 02:06:50
阅读次数:
520
今天下午做了一个滚动浏览效果,贴在此,积累$(function(){ /* * 滚动浏览 */
$.fn.autoScroll = function(o){ o = $.extend({ speed: 20, step : 1, up : null,
down : null }, o || {})....
分类:
其他好文 时间:
2014-05-07 01:49:02
阅读次数:
234
(1)pyhton
shell下导入MySQLdb失败。http://pypi.python.org/pypi/MySQL-python/(2)下载解压MySQL-python。http://pypi.python.org/packages/source/M/MySQL-python/MySQL-p...
分类:
数据库 时间:
2014-05-07 01:38:05
阅读次数:
502
新建一个文本文档,打开,输入以下字符Windows Registry Editor
Version
5.00[HKEY_CLASSES_ROOT\*\shell\runas]@="管理员取得所有权""NoWorkingDirectory"=""[HKEY_CLASSES_ROOT\*\shell\r...
分类:
其他好文 时间:
2014-05-07 01:30:55
阅读次数:
312
Cocos2d: jsb: ERROR: File
/Users/dcx_JD/Documents/cocos2d-x-2.2.2/scripting/javascript/bindings/generated/jsb_cocos2dx_auto.cpp:
Line: 4911, Function:...
分类:
Web程序 时间:
2014-05-07 00:41:38
阅读次数:
446
Sys.Application.add_load(function() {
var form = Sys.WebForms.PageRequestManager.getInstance()._form;
form._initialAction = form.action = window.location.href;
});
if (!documen...
分类:
Web程序 时间:
2014-05-06 23:36:38
阅读次数:
408
#include
#include
/*
英语原文:
In function-like macros, a # operator before an identifier in the replacement-list runs
the identifier through parameter replacement and encloses the r...
分类:
编程语言 时间:
2014-05-06 22:01:02
阅读次数:
378
$[]将数值赋予给变量:var=$[1+5],var=$[$a+$b]$()$1$0获取参数$#获取参数个数echothelastparameteris${$#}错误,大括号里面不能使用美元符号可以用${!#}
分类:
其他好文 时间:
2014-05-06 19:59:02
阅读次数:
259
(defun buffer-exists (bufname)
(not (eq nil (get-buffer bufname))))
(defun make-shell (name)
"Create a shell buffer named NAME."
(interactive "sName: ")
(if (buffer-exists "*eshell*")...
分类:
其他好文 时间:
2014-05-06 19:40:04
阅读次数:
262