CommandActionNotesvim file +54open file and go to
line 54any : command can be run using + on command linevim -O file1 file2open
file1 and file2 side b...
分类:
其他好文 时间:
2014-05-09 10:15:18
阅读次数:
420
declare @a intselect @a=20--COUNT(*) from
SEC_SecureUser while(@a>0)beginselect top 1 suUserID,SUID from SEC_SecureUser
where SUID not in(select top (...
分类:
其他好文 时间:
2014-05-09 09:58:20
阅读次数:
261
问题如题,这个问题困扰了我好几天,今天终于解决了,感谢[1]。首先,我要做的是android手机和电脑进行蓝牙通信,android发一句话,电脑端程序至少就要做到接受到那句话。android端发送信息的代码如下:try
{ Log.i("Test", "begin saying hello wor....
分类:
其他好文 时间:
2014-05-09 08:12:56
阅读次数:
505
今天开始和一个认识的学弟刷题。 学弟是个大牛,我还是个菜鸟。嘿嘿。杭电第一题我就wrong了好几次。
1 #include 2 using namespace std; 3 4 int main() 5 { 6 int A = 0,B = 0; 7
while(cin >> A ...
分类:
其他好文 时间:
2014-05-09 07:20:56
阅读次数:
494
outline:none;这句代码可以很好地去处链接点击过后出现的虚线border:transparent边框透明,不支持IE
分类:
Web程序 时间:
2014-05-09 05:42:38
阅读次数:
364
#includeusing namespace std;int main(){ int n =
0, sum; while (cin>>n) { sum = 0; // 这里要清零 for (int i =0; i <= n; i++)
{...
分类:
其他好文 时间:
2014-05-09 05:38:17
阅读次数:
241
高级I/O
非阻塞IO
非阻塞I/O使我们可以调用open、read和write这样的I/O操作,并使这些操作不会永久阻塞。如果这种操作不能完成,则调用立即出错返回,表示该操作如继续执行将阻塞。
对于一个给定的描述符有两种方法对其指定非阻塞I/O:
1) 如果调用open获得描述符,则可指定O_NONBLOCK标志
2) 对于已打开的一个描述符,则可调用fcntl,由...
分类:
系统相关 时间:
2014-05-09 01:16:55
阅读次数:
577
CREATE PROCEDURE dowhile()
BEGIN
DECLARE n int;
set n=1;
WHILE n
do
INSERT into hasindex(num) VALUES (n);
set n=n+1;
END WHILE;
END;
CALL dowhile();...
分类:
其他好文 时间:
2014-05-09 01:04:44
阅读次数:
293
在搭建一个spring3.0+hibernate+jpa项目框架,根据网友提供的例子,在junit下做了一个存储数据的测试,报如下异常:org.springframework.transaction.TransactionSystemException:CouldnotcommitJPAtransaction;nestedexceptionisjavax.persistence.RollbackException:Errorwhi..
分类:
其他好文 时间:
2014-05-09 00:56:47
阅读次数:
1238