在ADO.NET对象模型中,Connection对象代表了与数据源之间的连接。
.NET框架中有两个Connection对象:一个是OleDbConnection,用于大多数的数据库连接,一个是SqlConnection,是MS开发的专门用于针对SQLServer的连接。在创建Connection对象之前,你必须先引用System.Data.OleDb或者System.Data.SqlC...
分类:
数据库 时间:
2014-07-22 23:04:14
阅读次数:
412
问题现象:
导入新的maven项目时,有时候pom.xml文件会提示一个错误信息:Missing artifact com.sun:tools:jar:1.5.0:system
问题原因:
maven是需要使用Jdk中的tools工具,而eclipse使用的是jre的运行环境,导致maven无法找到Jdk工具包tools.jar
解决方法:
1>将eclipse修改为jd...
分类:
其他好文 时间:
2014-05-01 17:56:11
阅读次数:
343
在用到opencv中出现
opencv error :assertion faild (src.depth()==dst.depth()&&src.size==dst.size)找这个bug找了好久,网上有这样几种说法:
1.check这两个图或者矩阵是不是初始化了
2.如果初始化了,初始化的大小是不是一样,即两者有没有相同的长宽
3.两者的depth深度是不是一样,即是不是一个是三通道...
分类:
其他好文 时间:
2014-04-29 13:38:22
阅读次数:
647
1.算法简介
朴素贝叶斯(Naive Bayes)是无监督学习的一种常用算法,易于实现,没有迭代,并有坚实的数学理论(即贝叶斯定理)作为支撑。
本文以拼写检查作为例子,讲解Naive Bayes分类器是如何实现的。对于用户输入的一个单词(words),拼写检查试图推断出最有可能的那个正确单词(correct)。当然,输入的单词有可能本身就是正确的。比如,输入的单词thew,用户...
分类:
其他好文 时间:
2014-04-29 13:38:20
阅读次数:
476
Problem:
You are trying to setup a mirroring on a Database called xxxDB(SQL server 2012).
You are getting this error while trying to setup mirroring.
“Neither the partner nor the witness server ins...
分类:
数据库 时间:
2014-04-29 13:33:20
阅读次数:
444
mysql5.6, [ERROR] Failed toopen log ,datadir物理迁移报错,log-bin-index,log-bin配置...
分类:
数据库 时间:
2014-04-29 13:27:20
阅读次数:
512
javafx maven集成采用javafx-maven-plugin,
主要分为几个目标:
jfx:jar
jfx:web
jfx:native
jfx:fix-classpath
jfx:generate-key-store
jfx:run
但是在
mvn clean jfx:run
时遇到了问题:
[ERROR] [Help 1] http://cwiki.ap...
分类:
编程语言 时间:
2014-04-29 13:22:21
阅读次数:
2406
FAILED: Error in metadata: java.lang.RuntimeException: MetaException(message:org.apache.hadoop.hive.serde2.SerDeException org.apache.hadoop.hive.hbase.HBaseSerDe: columns has 3 elements while hbase.columns.mapping has 4 elements (counting the key if implic...
分类:
其他好文 时间:
2014-04-29 13:17:21
阅读次数:
387
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace LinqToEntity
{
class Program
{
static void Main(string[] args)
{
//...
分类:
其他好文 时间:
2014-04-29 13:16:21
阅读次数:
574
参考了别人的demo之后发现建立一个管理类看起来舒服些,显得比较有条理……
但在建立与服务器连接当中,发现
Connect Error: {
NSLocalizedDescription = "You must set myJID before calling connect.";
}
这样的一个问题,知道是jid没有设置好,但是jid怎么设置呢?今天仍然没有弄清,如果有清楚...
分类:
其他好文 时间:
2014-04-29 13:13:20
阅读次数:
352