if exists(select * from master.sys.sysprocesses
where spid in (select blocked from
master.sys.sysprocesses))begin---确定进程被锁住的其他资源select spid 进程,STATUS ...
分类:
其他好文 时间:
2014-05-16 06:38:48
阅读次数:
329
在这一节,我们用MCMC框架来考察几个例子。 一、和共轭凸函数的关系 设$M$是函数$p:
\mathbb{R}^n \mapsto [-\infty, \infty]$的上境图,易知此时有\begin{align*} w^* = p(
\boldsymbol{0} ) \end{align...
分类:
其他好文 时间:
2014-05-16 00:10:31
阅读次数:
502
在配置apache服务时经常遇到DocumentRoot must be a
directory的错误提示,刚接触到apache时折腾了几个小时才找到错误的原因,出现这样的错误一般都是由于selinux的原因。SELinux(Security-Enhanced
Linux) 是美国国家安全局(NSA...
分类:
系统相关 时间:
2014-05-15 10:07:38
阅读次数:
561
LeetCode-001 Two Sum
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 the target, where index1 must be less than index2...
分类:
其他好文 时间:
2014-05-15 04:34:50
阅读次数:
293
Regular Expression Special Characters
"."---Any single character(a "wildcard")
"["---Begin character class
"]"---End character class
"{"---Begin count
"}"---End count
"("---Begin grouping
")"...
分类:
其他好文 时间:
2014-05-15 01:41:09
阅读次数:
548
下是centos6.4里安装vim配置操作命令[BEGIN]2014/5/13星期二上午10:08:54
[root@bogon~]#rpm-qa|grepvim
[root@bogon~]#yumremovevimvim-enhancedvim-commonvim-minimal
[root@bogon~]#wgetftp://ftp.vim.org/pub/vim/unix/vim-7.4.tar.bz2
[root@bogon~]#yumupdatewget
[root@..
分类:
其他好文 时间:
2014-05-15 00:36:45
阅读次数:
379
05-14 22:16:42.808: E/AndroidRuntime(22906): FATAL
EXCEPTION: main05-14 22:16:42.808: E/AndroidRuntime(22906):
java.lang.RuntimeException: Unable to s...
分类:
其他好文 时间:
2014-05-14 23:16:55
阅读次数:
405
Blocked a frame with origin "null" from accessing a frame with origin "null". Protocols, domains, and ports must match....
分类:
其他好文 时间:
2014-05-14 19:30:36
阅读次数:
292
//只扩展为wstring,不考虑编码
std::wstringString2WString(conststd::string&str)
{
std::wstringwstr(str.length(),L‘‘);
std::copy(str.begin(),str.end(),wstr.begin());
returnwstr;
}
//只拷贝低字节至string中
std::stringWString2String(conststd::wstring&ws..
分类:
其他好文 时间:
2014-05-14 15:58:11
阅读次数:
262
令\[S_i=\sum_{k=1}^n k^i
m^k\]我们有\[\begin{eqnarray*}(m-1)S_i & = & mS_i - S_i \\& = &
\sum_{k=1}^n k^i m^{k+1} - \sum_{k=1}^n k^i m^k \\& = & \sum_{k=2...
分类:
其他好文 时间:
2014-05-14 10:45:13
阅读次数:
357