Linux shell 读取一行方法一通过指定IFS--Internal Field Separator,IFS默认情况下是,可以下脚本中设定IFS值DEMO 1$cat t1.txt abcfd $cat test_IFS.sh #! /bin/shIFS="c"for LINE in `ca.....
分类:
系统相关 时间:
2014-08-11 20:32:42
阅读次数:
384
#include int main(){ int n; while(scanf("%d",&n),n) { int a[101],min,k,i,t; k=0; for(i=0;i<n;i++) scanf("%d",&a[i]); min=a[0]; for(i=1;i<n;i++) if(a[i...
分类:
其他好文 时间:
2014-08-11 20:30:12
阅读次数:
189
[root@test]# /usr/local/mysql/bin/mysql -urootERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)[root@test]#...
分类:
数据库 时间:
2014-08-11 20:29:02
阅读次数:
248
一些扩展文件在php的源码包中是已经存在的,如果需要的话可以直接用源码包中的扩展进行安装
这些扩展文件在
源码包中的位置(视情况而定):
/usr/local/src/php-5.5.11/ext
例如:openssl
进入相应的目录:#cd /usr/local/src/php-5.5.11/ext/openssl
php的安装目录:/usr/loca/php
运行:#/usr/l...
分类:
Web程序 时间:
2014-08-11 17:50:42
阅读次数:
235
Can't locate Time/HiRes.pm in @INC (@INC contains: /usr/local/lib/perl5 /usr/local/share/perl5 /usr/lib/perl5/vendor_perl /usr/share/perl5/vendor_perl...
分类:
其他好文 时间:
2014-08-11 17:19:42
阅读次数:
169
什么是SSL?SSL(Secure Socket Layer): 是为Http传输提供安全的协议,通过证书认证来确保客户端和网站服务器之间的数据是安全。Open SSL下载地址:http://www.openssl.org/source/一、下载并安装支持SSL的Apache1.安装配有SSL模块的...
1 import java.sql.*; 2 3 public class ConnectAccess { 4 5 6 public static void main(String args[]){ 7 ConnectAccess ca = new Conne...
分类:
数据库 时间:
2014-08-11 14:44:52
阅读次数:
185
#include //#include int main(){ int N; scanf("%d",&N); int i,num,a[1005]={0}; num=0; while(N--) { scanf("%d",&i); if(a[i]==0) { a[i]=1; num++; } } pri...
分类:
其他好文 时间:
2014-08-11 14:25:32
阅读次数:
185
How to choose q() to sample theta? Usally gausian, for the parameter u and sigma, we can get from cross validation.Importance sampling can only work o...
分类:
其他好文 时间:
2014-08-11 11:47:22
阅读次数:
171
在进行数据库操作时,如还原数据库,有时候显示如下错误Exclusive access could not be obtained because the database is in use 可以使用下面语句,关闭当前链接以便继续操作。 use Master ALTER DATABASE yourd...
分类:
数据库 时间:
2014-08-11 11:33:22
阅读次数:
241