- 博客(94)
- 资源 (2)
- 收藏
- 关注
原创 支持度 置信度
支持度(support)和置信度(confidence)是关联规则中的两个指标,代表规则的有用性和确定性。对于啤酒-尿布这个经典的关联规则:beers=>diapers[support=10%,confidence=60%]support=10%表示beers和diapers同时出现的概率是10%confidence=60%表示已知购买beers的条件下,购买diapers的概率是60
2013-03-30 22:19:29
5788
原创 先验概率 后验概率
简单点说,后验概率就是条件概率,先验概率是无条件的概率:假设,H表示顾客购买计算机;X表示顾客是男性,那么P(H)是顾客购买计算机的先验概率,不管顾客是男的还是女的;P(H | X)是后验概率,严格的说是顾客为男性的条件下,顾客购买计算机的后验概率,它反映的是,当我们已经知道顾客是男性时,顾客购买计算机的概率。先知道条件,再谈概率,所以叫后验概率。
2013-03-29 22:49:51
943
原创 检测到开型代码语句的递归 sas
当sas遇到这个错误后,即使你改正了错误,它还可能继续报错,解决办法: 点击工具栏的中断命令->取消提交的语句。
2013-03-17 10:04:23
6469
转载 unknown host .local
用ps -ef|grep avahi 查看了下。果然有该服务。利用sudo service avahi-daemon stop 关闭该服务后,ping 内网域名(机器名.local),能够ping通http://www.linuxidc.com/Linux/2011-04/34433.htm
2013-01-03 23:33:14
958
原创 Call to localhost/127.0.0.1:9000 failed on connection exception:java.net.ConnectException
可能到原因:1. 没有执行 hadoop namenode -format2. /etc/hosts文件中有 ::1 localhost6 master ,把这个注释掉
2013-01-03 22:46:27
33057
1
原创 html 动态显示元素文本
dynamic show function highlight(obj){var selected = document.getElementById("currency");document.getElementById("spantest").innerHTML=selected.options[sele
2012-08-10 11:15:28
9234
转载 类的初始化顺序
我们大家都知道,对于静态变量、静态初始化块、变量、初始化块、构造器,它们的初始化顺序以此是静态变量>静态初始化块>变量>初始化块>构造器。我们也可以通过下面的测试代码来验证这一点:没有继承关系的类Java代码public class InitialOrderTest { //静态变量 public static String sta
2012-07-27 14:57:01
662
原创 sql替换通配符
DECLARE @keyword varchar(100)SET @keyword = '%%'SET @keyword = REPLACE(@keyword,'\','\\')SET @keyword = REPLACE(@keyword,'%','\%')SET @keyword = REPLACE(@keyword,'_','\_')SET @keyword = REPL
2012-07-27 14:43:26
3524
转载 open in command line
win7: shift + right clickubuntu: sudo apt-get install nautilus-open-terminalnautilus -qhttp://www.thelinuxgeeks.info/how-to-open-terminal-here-in-ubuntu-12-04/
2012-07-23 12:35:48
751
原创 Jmockit
public class JurisdictionValidatorTest { private static JurisdictionValidator gJurisdictionValidator = null; @BeforeClass public static void setUp() throws Exception { Mockit.setUpMocks(
2012-07-13 20:13:27
860
原创 java oracle 时区
有4个地方影响时区:1. DB 的date类型: Date(不含微妙级时间),Timestamp(不含时区,含微妙时间),Timestamp with timezone(保持client的timezone),Timestamp with local time zone(把client的timezone转换成DB的timezone对应的时间)2.java.sql.Connection 的ti
2012-07-13 19:48:19
5370
原创 mocking webservice with SoapUI example
test case data config xml AuthenticateService.wsdl /mockrgtServicesV1 declare namespace ser='http://com.test.wagerlink/services'; //ser:authenticate[1]/s
2012-07-06 15:35:57
1588
原创 hadoop cygwin ssh config
ssh-host-config, 不要privilege userssh-keygen, 不设密码其他采用默认设置最后cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys从/usr/sbin/sshd启动sshd,不要从windows的service上启动,否则会要输入windows用户的密码或者,把/etc/ssh/s
2012-06-18 10:16:29
1067
原创 eclipse watch expression cannot be resolved to a type 表达式 类型无法解析
today I encountered an type resolving of expression in eclipse debuging. 1. stop at a break point2. add watch expression: " a.b.c.Test.class.toString()"3. evaluate the expression: error occurr
2012-06-08 07:18:48
1970
原创 JAVA 方法 默认访问级别
一直认为默认访问级别的java 方法对子类是不可见的,也就是不能被继承的,但是下面的例子挑战了这个看法public class TT { public static void main(String[] args) { B b=new B(); System.out.println(b.getA()); Sys
2012-05-12 19:56:25
6201
原创 删除多余 重复的行 oracle
有些表在设计时没有加约束条件,虽然有序列号,但是内容有很多重复的数据,比如id 姓 名1. 朱 亮2. 朱 亮3. 王 小丫4. 张 三 declare p_exist
2012-05-11 17:42:53
945
原创 httpclient ssl
1. http: PlainSocketFactory2. https: SSLSocketFactory( need TrustManager(usally X509TrustManager), SSLContext) package com.wagerworks.framework.test.util;import javax.net.ssl.SSLContext;im
2012-05-11 16:32:52
3398
原创 ant import relative path
... 如果A 和 B 不在同一个目录,则在projectA中调用projectB,则上面的echo找不到正确的build.properties文件。可以用-v查看他找到是什么文件。解决办法使用ant内置属性 ant.file.your-project-name project B的property改为 其中ant.file.B的值为pr
2012-05-11 16:09:44
2180
原创 start-stop-daemon example
example: run an ant task as a daemon thread#!/bin/shDESC="mock system"NAME="mocksystem"PIDFILE=/var/run/$NAME.pid#RUN_AS=hudsonRUN_AS=zhusEXE=/usr/bin/antd_start() { start-stop-daemo
2012-05-08 18:09:38
3377
原创 eclipse crashes when debuging eclipse崩溃 debug 调试
An unexpected error has been detected by HotSpot Virtual Machine one of the possible causes:project classpath too longshorten the project classpath by removing unnecessary dependencies will fi
2012-04-26 20:26:53
1076
转载 CreateProcess error=87, The parameter is incorrect
root cause:project classpath to long.As a workaround: Open your eclipse run configuration for the task that is failing.Choose the classpath tab, select the default classpath, click the "Edit..
2012-04-26 09:40:52
2191
原创 java file path abstract path absolute path canonical path
1. path,普通路径名,由getPath()方法返回,就是你构造File时指定路径名。如File f = new File("testFile.txt");则f.getPath()返回的就是"testFile.txt".2.abstract pathname,根据File的toString方法的说明,这个也是getPath()返回的结果,和上面的一样。String java.io.Fi
2012-01-07 23:19:42
2679
原创 eclipse 变量 高亮 eclipse variable highlight eclipse mark occurrences
1 要显示哪些类型windows-> preferences-> java-> Editor-> Mark Occurrences2 高亮显示的颜色Window->Preferences->General->Editors->Text Editors->Annotations->Occurrences3 有么有快捷键? 有: Alt + Shift + o
2012-01-05 12:24:06
3071
原创 check connection status, check session status, sqldeveloper, 检测DB连接状态
just to make a mementoto check oracle db session status with sqldeveloper:1. click Tools2. select Monitor Sessions3. select a connection4. click OK5. select Refresh time6. filter OS User
2011-12-01 09:35:53
1681
转载 extends Thread 与 implements Runnable 的区别
1、通过实现Runnable接口创建线程(1).定义一个类实现Runnable接口,重写接口中的run()方法。在run()方法中加入具体的任务代码或处理逻辑。(2).创建Runnable接口实现类的对象。(3).创建一个Thread类的对象,需要封装前面Runnable接口实现类的对象。(接口可以实现多继承)(4).调用Thread对象的start()方法,启动线程
2011-11-29 09:55:19
3018
原创 以\\开头的数字的正则表达式
目的:将字符串中不是以\开头的数字以*代替。如:对于字符串:abc11,cd123 \\0123,68,T5699处理后的结果应该是:abc*,cd* \0123,*,T*开始想到的表达式是(?在http://gskinner.com/RegExr/ 上验证的结果是abc*,cd1* \\0*,*,T*这就奇怪了,为什么\\0123中的123被匹配了?根据RegExr的实时
2011-11-25 19:18:07
6441
原创 detail design doc spirit
your detail design doc succeeds ifanyone from your team can easily start the implementation aftering reading your detail design doc withou
2011-09-27 09:51:50
614
原创 post data 丢失
if you firstly call getParameters to get URL parameter data, then you call getReader to read post data, you may find that post data is missing! so, if you want to get URL parameter data first, then pr
2011-06-23 17:40:00
937
原创 xsl 遍历模板
<br />有如下的XML结构:<br /><response name="test2"><br /> <Status><br /> <StatusCode>101</StatusCode><br /> <Message>no</Message><br /> <test><br />
2011-02-11 18:01:00
942
原创 SEVERE: Failed to record SCM polling java.lang.NullPointerException
<br />change the method requiresWorkspaceForPolling of BitKeeperSCM.java as follows:<br /> <br /><br />@Override<br />public boolean requiresWorkspaceForPolling() {<br />//return false;<br />return true; <br />}<br /> <br />recompile the bitkeeperPlugin so
2010-12-22 13:34:00
968
原创 Error starting modern compiler
<br />one of the possible causes:<br /> <br />the environment var JAVA_HOME and CLASSPATH does not match. This happes when you changed JAVA_HOME but left CLASSPATH intact.
2010-12-22 12:01:00
872
转载 java assert的使用
(一)首先明确: java断言Assert是jdk1.4引入的。jvm 断言默认是关闭的。断言是可以局部开启的,如:父类禁止断言,而子类开启断言,所以一般说“断言不具有继承性”。 断言只适用于复杂的调试过程。断言一般用于程序执行结果的判断,千万不要让断言处理业务流程。(二)判断eclipse是否开启了断言,代码如下:public class AssertTest {public static void main(String[] args) { boolean isOpen = false;
2010-12-13 15:16:00
2920
原创 SQL SERVER2008 EXPRESS setup -- the specified credentials for the sql server service are not valid
<br />follow the tips below to solve this error:<br /> <br />1. select a user from the drop down menu other than creating one on the spot<br />2. the password is the password of the user you selected not that you setup on the spot<br />3. the user you sele
2010-12-06 17:35:00
6099
转载 SQL SERVER identity
<br />SQL Server自动增长字段在建表的时候一般语法是: [field_name] [int] IDENTITY (1,1) NOT NULL , | | | 字段名 起始值 增长值 我们在插入数据的时候,不用标明自动增长字段,它的值会自动增长. 有些时候,我们需要把另外整理出来的数据(临时表)插入含自动增长字段的表里. 就需要一个小小的设置:
2010-12-03 17:56:00
2267
原创 重载toString方法,返回对象的详细信息
<br />默认的toString方法返回的信息类似于:com.igt.tcs.pams.token.common.model.Token@2952747b<br /> <br />若想打印出Token对象各个域的值信息,则要override toString:<br /> <br />1. simple:<br /> <br />@Override<br /> public String toString() {<br /> return ReflectionToStringBuilder.toStri
2010-09-15 11:54:00
2530
原创 This element neither has attached source nor attached Javadoc and hence no Javadoc could be found
download the source file. ie, commons-collections-3.2.1-srccd E:/spring-framework-2.5.6/lib/jakarta-commons/commons-collections-3.2.1-srcjar cvf commons-collections-src.jar -C src/ . (! a space before '.')attache source using commons-collections-src
2010-09-14 14:47:00
3980
原创 unmarshalling error
if this error is caused by generic class, it may be solved by adding @XmlSeeAlso({TokenAuditRecord.class, TokenMgmtAuditRecord.class, TokenPINAuditRecord.class, TokenRegAuditRecord.class}) before the class definition which takes generic class TokenAuditRec
2010-08-31 17:40:00
3639
原创 java super extends
? super vs ? extends principle: PSCE producer superconsumer extends
2010-08-31 17:21:00
690
原创 vmware7.0中使用NAT让ubuntu10.04上网
今天刚装的ubuntu10.04。虚拟机用的是vmware7.0。主机是xp sp2,网络是校园网,ip地址为59.69.75.xxx。因为学校的ip地址每人只能申请一个,所以安装ubuntu的时候选择了NAT网络模式,让ubuntu共享主机的连接上网。但是装完后,发现ubuntu的ip地址是类似192.168.XX.XX的C类ip地址,根本无法共享主机的59.69.75类型的网络上网。尝试更改u
2010-05-16 20:05:00
2343
分布式dask无法完成计算tsfresh extract_features
2024-07-16
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅