前台页面:Excel导入SQL数据库 后台代码:注意添加引用using System.Data.OleDb;using System.Data.SqlClient;string strConn = "Data Source=192.168.0.8;DataBase=BR_BMS;Uid=DP;Pw....
分类:
Web程序 时间:
2015-07-13 18:28:06
阅读次数:
144
1.把文本文件变为sequence file:
mahout seqdirectory -i file://$(pwd)/news/
-o file://$(pwd)/news-seq/ -c UTF-8 -chunk 64 -xm sequential
mahout seqdirectory -i file://$(pwd)/1/
-o file://$(pw...
分类:
其他好文 时间:
2015-07-10 22:19:24
阅读次数:
372
1.vi nginx_pwd.pl #!/usr/bin/perl use strict; my $pw=$ARGV[0]; printcrypt($pw,$pw)."\n"; 2. chmod +x nginx_pwd.pl 3.perl nginx_pwd.pl 密码 4.vi nginx.conf location/nginx-status{ ??????????...
分类:
其他好文 时间:
2015-07-08 11:12:33
阅读次数:
180
参考: http://www.exchangecn.com/office365/20150108_540.html$pw = ConvertTo-SecureString 'password' -AsPlainText -Force$creds = New-Object -Typename Syst...
分类:
系统相关 时间:
2015-07-03 15:27:18
阅读次数:
166
自动备份数据库脚本#!/bin/bash#autobakcupmysql#by2015-7-2BAK_DIR="/data/backup/`date+%Y%m%d`"MYSQL_DB=discuzMYSQL_USER=rootMYSQL_PW=123456MYSQL_CMD=/usr/bin/mysqldumpif[$UID-ne0];thenecho"Musttobeuserootforrunshell.."exitfiif[!-d"$BAK_DAR"];thenmkdir-p$BAK_D..
分类:
系统相关 时间:
2015-07-03 00:23:47
阅读次数:
206
2015年6月28日 11:45:10 星期日今天实验用小海龟svn客户端的svn+ssh协议去链接版本库, 期望会快一点儿首先在设置里记着将连接ssh用的用户名和密码一块儿写到输入框中: -l 用户名 -pw 密码 (否则, 你在执行svn命令时会一直提醒你输入用户名密码)接着在svn check...
分类:
其他好文 时间:
2015-06-28 14:07:57
阅读次数:
107
protected?void?doGet(HttpServletRequest?request,?????
????HttpServletResponse?response)?throws?ServletException,??
????????IOException?{?
????PrintWriter?pw?=?res...
分类:
其他好文 时间:
2015-06-26 13:40:40
阅读次数:
123
以独立语句将newed对象置入智能指针本节我们需要学习的知识核心是注意编译器在同一语句中,调用次序具有不确定性,不同语句中,调用次序确定。
上面的话什么意思?
请看以下代码:int priority();
int processWidget(shared_ptr pw, int priority);
processWidget(shared_prt pw(new...
分类:
编程语言 时间:
2015-06-24 16:22:53
阅读次数:
173
下午遇到一个很奇怪的现象,一个网址: http://192.168.1.3/login?action=a&fr=b.com注意网址后面的参数形式,action参数在前,最后一个参数值的尾部含有.comlogin程序的代码是这样的:pw.println("Content-Type: text/plai...
分类:
Web程序 时间:
2015-06-17 15:00:28
阅读次数:
141