ITeye博客

fengshenbang的博客

fengshenbang · 共 9 篇文章

maven install withou test

Add the parameter -Dmaven.test.skip=true or -DskipTests=true in the command line, depending on whether you want to skip test compilation and execution or only execution. See the example Skipping Tests in the Surefire Plugin's documentation for more details.

2010-11-05 15:05 · 评论(0)

mahout 项目管理杂记

1. svn checkout 出来source code 2. 在checkout 出来的目录建立eclipse工程文件 mvn -Declipse.workspace=<path-to-eclipse-workspace> eclipse:add-maven-repo mvn eclipse:eclipse 3. 分别将 mahout-core mahout-math mahout-utils mahout-example 导入工作目录下的工程文件,最好保留源码在check out出来的目录里 4. 在对项目文件做修改后,编译、打包都采用mvn命令 mvn complie mvn pac…

2010-11-05 14:36 · 评论(0)

mahout如何建立eclipse工程文件

1. Checkout mahout from svn into eclipse workspace. 2. Adding maven repositories to eclipse from command line-> mvn -Declipse.workspace=<path-to-eclipse-workspace> eclipse:add-maven-repo. 3. From mahout top level dir run this on command line -> mvn eclipse:eclipse. This generates all the eclipse fi…

2010-11-05 11:03 · 评论(0)

ubuntu 10.04 安装dropbox

1. 下载deb安装包,如附件1 2. 下载.dropbox-dist文件夹解压到用户home目录下 3. 在/etc/hosts文件里添加如下内容: 174.36.30.67 dropbox.com 174.36.30.71 www.dropbox.com 75.101.129.115 dl.dropbox.com 75.101.159.151 dl-web.dropbox.com 174.36.30.67 forums.dropbox.com

2010-10-14 14:20 · 评论(0)

hadoop增加heap内存

hadoop的设置文件主要在 $HADOOP_HOME/conf/hadoop_env.sh中, # Set Hadoop-specific environment variables here. # The only required environment variable is JAVA_HOME. All others are # optional. When running a distributed configuration it is best to # set JAVA_HOME in this file, so that it is correctly defined o…

2010-09-29 16:57 · 评论(0)

maven打成可执行jar包和添加自定义jar包

mahout项目是采用maven进行管理的,maven和ant一样都是项目管理的工具,它的特点在与对于第三方jar包的管理。比如项目中需要junit的jar包,只需要在pom.xml文件中加入如下代码即可: <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>3.8.1</version> <scope>test</scope> </dependency> Maven的repository就是dependency的仓库,它按照一定的规则将dependency存放起来,以作缓存,如果本机的 …

2010-09-27 15:38 · 评论(0)

java 线程同步 tips zz

因此, 关于线程同步,需要牢牢记住的第一点是:线程同步就是线程排队。同步就是排队。线程同步的目的就是避免线程“同步”执行。这可真是个无聊的绕口令。 关于线程同步,需要牢牢记住的第二点是 “共享”这两个字。只有共享资源的读写访问才需要同步。如果不是共享资源,那么就根本没有同步的必要。 关于线程同步,需要牢牢记住的第三点是,只有“变量”才需要同步访问。如果共享的资源是固定不变的,那么就相当于“常量”,线程同时读取常量也不需要同步。至少一个线程修改共享资源,这样的情况下,线程之间就需要同步。 关于线程同步,需要牢牢记住的第四点是:多个线程访问共享资源的代码有可能是同一份代码,也有可能是不同的代码;…

2010-06-28 14:12 · 评论(0)

java中的数据类型

在java中有两种数据类型,值类型和引用类型。像一些基本的数据类型如:int ,float,double,byte等都是值类型,而String,还有‘类’都是引用类型,其中数组也是引用类型。

2010-06-28 11:40 · 评论(0)

weka的StringToWordVector类解析

weka的StringToWordVector类可以将给定的文档格式的内容转换为vms模型的内容,而后者是文本分类必须的模块。按照weka要求,生成arff格式的文本: @relation D__java_weka_data @attribute text string @attribute class {test1,test2,test3} @data 'here we go go go go to do ',test1 'Mostly, I expect we are interested in indexing XPath queries',test1 'so what do you …

2010-06-20 18:01 · 评论(1)