http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
http://www.w3.org/1999/xhtml">
$(function () {
if ($.cookie("UserName")) {//如果有值得话,则在文本中显示
...
分类:
其他好文 时间:
2014-05-07 08:58:28
阅读次数:
392
In file included from mod_shib_20.cpp:68:
mod_shib.cpp:118: warning: deprecated conversion from string constant to 'char*'
mod_shib.cpp: In member function 'virtual const char* ShibTargetApache::get...
分类:
其他好文 时间:
2014-05-07 06:04:50
阅读次数:
363
[Question]
Given an array of integers, find two numbers such that they add up to a specific target number.
The function twoSum should return indices of the two numbers such that they add up to t...
分类:
其他好文 时间:
2014-05-07 05:37:44
阅读次数:
278
function Sizzle( selector, context, results, seed )
{
var match,
elem, m, nodeType,
// QSA vars
i, groups, old, nid, newContext, newSelector;
...
分类:
Web程序 时间:
2014-05-07 05:27:07
阅读次数:
426
eshell是emacs shell的简称,是emacs自带的shell.开始设置的时候还在想是否要找到它的key map (eshell-mode-map?).
原来它是采用hook设置,如下所示
(add-hook 'eshell-mode-hook
(lambda ()
(local-set-key (kbd "C-j") 'switch-to...
分类:
其他好文 时间:
2014-05-07 05:25:39
阅读次数:
253
1.shell介于操作系统与用户之间,负责解释命令行
2./etc/shells 记录了系统支持的有效登录的shell
3./etc/passwd 最后一位可以看到用户默认的shell
4.直接输入shell的名称 可以切换shell
5.shell命令的记录可以用history查看 history -c 清除
历史命令存放在.bash_history文件中
...
分类:
其他好文 时间:
2014-05-07 05:11:21
阅读次数:
244
小弟五一回家去了,本想好好的享受下五一假期,谁知悲剧的人生不需要解释。好不容易过五关斩十将,跨千山趟万水,回到家里。吃着老妈做的好菜,第二天就莫名其妙的急性肠炎,这肚子闹腾的。NND,气死哥了,早知道就不回家了。好了,废话不多说,进入主题。
================
关于clientHeight、offsetHeight、scrollHeight
window.screen.avai...
分类:
编程语言 时间:
2014-05-07 04:19:56
阅读次数:
379
一直在写c++程序,不过对于一些作图程序来说,还是MATLAB比较实在。
de Casteljau算法是作贝塞尔曲线的一种高效的算法,其思想就是对[0,1]区间中所有的t,通过n个控制顶点不断递推得到一个顶点:下面是我的代码实现:
function deCasteljau(P,Q)
%P is 1*n matrix for X
%Q is 1*n matrix for...
分类:
其他好文 时间:
2014-05-07 03:14:37
阅读次数:
303
bash是linux上默认的shell,可以使用tab补全,上下键切换历史命令等。
客户的服务器忽然更改成了AIX,telnet上去一看,晕,竟然默认的是ksh,用起来感觉很别扭,还是安装bash吧
安装过程如下:
1、下载bash的rpm安装包
2、传到AIX上后,直接用RPM解开:
# rpm -...
分类:
其他好文 时间:
2014-05-06 18:59:04
阅读次数:
407
/**
* js实现继承:
* 1.基于原型链的方式
* 2.基于伪造的方式
* 3.基于组合的方式
*/
一、基于原型链的方式
function Parent(){
this.pv = "parent";
}
Parent.prototype.showParentValue = function(){
console.log(this.pv);
}...
分类:
Web程序 时间:
2014-05-06 18:49:35
阅读次数:
387