2014年9月19日

mahout学习笔记3

摘要: Understanding user-based recommendation1.When recommendation goes wrong选择合适的data set作为训练数据2.When recommendation goes rightExploring the user-based rec... 阅读全文

posted @ 2014-09-19 18:32 ukouryou 阅读(143) 评论(0) 推荐(0) 编辑

mahout学习笔记2

摘要: Representing preference data1.Thre Preference ObjectOne object represents one user’s preference for one item.Preference is an interface, and the imple... 阅读全文

posted @ 2014-09-19 15:48 ukouryou 阅读(170) 评论(0) 推荐(0) 编辑

Mahout之(三)相似性度量

摘要: 转自http://www.douban.com/note/208193209/User CF 和 Item CF 都依赖于相似度的计算,因为只有通过衡量用户之间或物品之间的相似度,才能找到用户的“邻居”,才能完成推荐。上文简单的介绍了相似度的计算,但不完全,下面就对常用的相似度计算方法进行详细的介绍... 阅读全文

posted @ 2014-09-19 14:54 ukouryou 阅读(177) 评论(0) 推荐(0) 编辑

Mahout之(二)协同过滤推荐

摘要: 转自http://www.douban.com/note/205498112/协同过滤 —— Collaborative Filtering协同过滤简单来说就是根据目标用户的行为特征,为他发现一个兴趣相投、拥有共同经验的群体,然后根据群体的喜好来为目标用户过滤可能感兴趣的内容。协同过滤推荐 —— C... 阅读全文

posted @ 2014-09-19 14:51 ukouryou 阅读(143) 评论(0) 推荐(0) 编辑

Mahout之(一)数据承载

摘要: 转自http://www.douban.com/note/204399134/推荐数据的处理是大规模的,在集群环境下一次要处理的数据可能是数GB,所以Mahout针对推荐数据进行了优化。Preference在Mahout中,用户的喜好被抽象为一个Preference,包含了userId,itemId... 阅读全文

posted @ 2014-09-19 14:49 ukouryou 阅读(131) 评论(0) 推荐(0) 编辑

2014年9月18日

mahout学习笔记1

摘要: http://blog.csdn.net/zhoubl668/article/details/13297663http://www.cnblogs.com/dlts26/archive/2012/06/20/2555772.htmlhttps://mahout.apache.org/users/re... 阅读全文

posted @ 2014-09-18 17:02 ukouryou 阅读(137) 评论(0) 推荐(0) 编辑

2014年9月17日

mahout overview

摘要: mahout overviewCurrently Mahout supports mainly three use cases: Recommendation mining takes users' behavior and from that tries to find items users m... 阅读全文

posted @ 2014-09-17 17:15 ukouryou 阅读(90) 评论(0) 推荐(0) 编辑

2014年9月13日

memcached

摘要: 特点全内存运转哈希方式存储简单文本协议进行数据通信只操作字符型数据其它类型数据由应用解释,序列化和反序列化repcached提供复制功能一致性哈希算法 阅读全文

posted @ 2014-09-13 18:53 ukouryou 阅读(73) 评论(0) 推荐(0) 编辑

2014年9月12日

点积、叉积、行列式

摘要: http://www.cnblogs.com/ysjxw/archive/2008/07/21/1247708.html转自http://www.cppblog.com/shiming413/archive/2007/08/21/30494.html一、点。l 点的坐标A(x1, y1),B(x2,... 阅读全文

posted @ 2014-09-12 22:34 ukouryou 阅读(2836) 评论(0) 推荐(0) 编辑

2014年9月8日

shell

摘要: 1. shell executionchmod +x fileNamesh fileNamesource fileName2.conbine command管道 |重定向 输入 、>> ;错误输出 2> 、2>>;混合输出 &> &>>逻辑操作符 && , ||3.VariableVar1 = v... 阅读全文

posted @ 2014-09-08 21:41 ukouryou 阅读(113) 评论(0) 推荐(0) 编辑

2014年9月5日

Spring Batch

摘要: 转http://www.docin.com/p-553745032.html领域问题大批数据量的导入导出与业务处理无需人工干预,能自动执行的大批量任务健壮,不会应为无效数据或错误数据导致程序崩溃可靠,跟踪、监控、日志等相关的处理策略可扩展,并行和并发架构Domain Languagejob repo... 阅读全文

posted @ 2014-09-05 15:24 ukouryou 阅读(299) 评论(0) 推荐(0) 编辑

2014年8月14日

suggest

摘要: suggest org.apache.solr.spelling.suggest.Suggester org.apache.solr.spelling.suggest.tst.TSTLookup otherSchools 0.005 true suggesti... 阅读全文

posted @ 2014-08-14 16:11 ukouryou 阅读(138) 评论(0) 推荐(0) 编辑

spellcheck

摘要: https://cwiki.apache.org/confluence/display/solr/Spell+Checking string default otherSchools solr.DirectSolrSpellChecker i... 阅读全文

posted @ 2014-08-14 15:26 ukouryou 阅读(166) 评论(0) 推荐(0) 编辑

2014年7月3日

创建Weight对象

摘要: Weight对象是通过IndexSearcher.createNormalizedWeight(Query query)创建的 1 public Weight createNormalizedWeight(Query query) throws IOException { 2 query =... 阅读全文

posted @ 2014-07-03 17:59 ukouryou 阅读(346) 评论(0) 推荐(0) 编辑

2014年6月24日

python post json

摘要: __author__ = 'andy'#!/usr/bin/python3.2# -*- coding: utf-8 -*-from urllib.request import urlopenimport http.clientimport jsonimport osimport timebaseU... 阅读全文

posted @ 2014-06-24 12:03 ukouryou 阅读(986) 评论(0) 推荐(1) 编辑

2014年6月5日

有限状态机FSM

摘要: http://ai-depot.com/FiniteStateMachines/FSM.html 阅读全文

posted @ 2014-06-05 17:03 ukouryou 阅读(87) 评论(0) 推荐(0) 编辑

2014年5月31日

Android为什么要用JAVA做应用开发语言而不用C/C++

摘要: 转http://blog.csdn.net/developcoding/article/details/17176263一、C++是与cpu相关的本地代码,也就是说每种机型都要提供相应的编译器,而且每个应用都要分别编译成适应不同机型的版本 而Java只要开发商提供针对特定硬件平台的JVM,你的应用程... 阅读全文

posted @ 2014-05-31 15:53 ukouryou 阅读(4215) 评论(0) 推荐(1) 编辑

2014年5月30日

Solr Configuration Best Practices and Troubleshooting Tips

摘要: https://support.datastax.com/entries/38367716-Solr-Configuration-Best-Practices-and-Troubleshooting-TipsConfiguration Best Practices(Straying from the... 阅读全文

posted @ 2014-05-30 16:41 ukouryou 阅读(592) 评论(0) 推荐(0) 编辑

2014年5月21日

C++编程学习50个经典网站 强力推荐

摘要: 转http://blog.csdn.net/microzone/article/details/6684436C/C++是最主要的编程语言。这里列出了50名优秀网站和网页清单,这些网站提供c/c++源代码。这份清单提供了源代码的链接以及它们的小说明。我已尽力包括最佳的C/C++源代码的网站。这不是一... 阅读全文

posted @ 2014-05-21 15:31 ukouryou 阅读(202) 评论(0) 推荐(0) 编辑

C++经典开源项目

摘要: 转http://www.cppblog.com/chugf/archive/2011/06/24/149379.html个人觉得比较经典的C++开源项目,整理如下:1、log4cpluslog4cplus是C++编写的开源的日志系统,功能非常全面。C++版的log4j网址:http://log4cp... 阅读全文

posted @ 2014-05-21 15:27 ukouryou 阅读(801) 评论(0) 推荐(0) 编辑

2014年5月10日

Java多线程Race Condition vs. Data Race

摘要: http://blog.regehr.org/archives/490Arace conditionis a flaw that occurs when the timing or ordering of events affects a program’s correctness. General... 阅读全文

posted @ 2014-05-10 12:27 ukouryou 阅读(563) 评论(0) 推荐(0) 编辑

2014年5月6日

Java NIO2

摘要: DatagramChannelIf you want to receive datagrams at a certain local port number you have to bind to that local port number. If you only want to receive... 阅读全文

posted @ 2014-05-06 16:39 ukouryou 阅读(179) 评论(0) 推荐(0) 编辑

2014年5月1日

fedora android dev env eclipse launch error

摘要: adb version修复/lib/ld-linux.so.2: bad ELF interpreter: No such file or directory问题1、在64系统里执行32位程序如果出现/lib/ld-linux.so.2:bad ELF interpreter: No such fi... 阅读全文

posted @ 2014-05-01 17:12 ukouryou 阅读(334) 评论(0) 推荐(0) 编辑

2014年4月26日

java NIO

摘要: NIO1主要需要理解Selector,SelectableChannel和SelectionKey三个类之间的关系以及用法.Selector管理注册到Selector上SelectableChannel集合的就绪状态信息。它的核心是选择过程(select方法),他是通过调用底层操作系统select ... 阅读全文

posted @ 2014-04-26 10:58 ukouryou 阅读(159) 评论(0) 推荐(0) 编辑

2014年4月18日

从程序员到CTO的Java技术路线图

摘要: http://myhadoop.iteye.com/blog/2043061在技术方面无论我们怎么学习,总感觉需要提升自已不知道自己处于什么水平了。但如果有清晰的指示图供参考还是非常不错的,这样我们清楚的知道我们大概处于那个阶段和水平。Java程序员高级特性反射、泛型、注释符、自动装箱和拆箱、枚举类... 阅读全文

posted @ 2014-04-18 13:16 ukouryou 阅读(147) 评论(0) 推荐(0) 编辑

2014年3月16日

feodora git command autocomplete

摘要: yum install gitGit completion script is installed into /etc/bash_completion.d/ when you install git, no need to go to github. You just need to use it - add this line to your .bashrc:source /etc/bash_completion.d/git 阅读全文

posted @ 2014-03-16 14:01 ukouryou 阅读(167) 评论(0) 推荐(0) 编辑

2014年3月15日

fedora20 virtualbox 共享文件夹

摘要: win7上装的vitualBox,里面装的fedora20http://www.if-not-true-then-false.com/2010/install-virtualbox-guest-additions-on-fedora-centos-red-hat-rhel/http://www.binarytides.com/vbox-guest-additions-fedora-20/1. Update FedoraThe first thing to do is to upgrade all packages and make the system uptodate.$ sudo yum 阅读全文

posted @ 2014-03-15 20:39 ukouryou 阅读(304) 评论(0) 推荐(0) 编辑

2014年3月11日

java case

摘要: 1.public int getValue() throws Exception { try { System.out.println("1"); if (1 ==1) { throw new Exception(); } System.out.println("4"); return 1; } catch (Exception e) { System.out.println("2"); ... 阅读全文

posted @ 2014-03-11 10:12 ukouryou 阅读(102) 评论(0) 推荐(0) 编辑

2014年3月9日

virtualbox

摘要: 一,可以用vbox的clonehd方式,自动分配一个新的UUID"d:\Program Files\Oracle\VirtualBox\VBoxManage.exe" clonehd d:\QNX_ORI_SERVER.vdi I:\QNX_ORI_SERVER.vdi --format VDI二,可以用操作系统的命令复制,然后d:\Program Files\Oracle\VirtualBox\VBoxManage.exe" internalcommands setvdiuuid I:\QNX_ORI_SERVER.vdi 来更新一个新的UUID然后在vbox界 阅读全文

posted @ 2014-03-09 23:08 ukouryou 阅读(143) 评论(0) 推荐(0) 编辑

2014年3月6日

哑铃 图解

摘要: 1.坐姿单臂颈后臂屈伸A.重点锻炼部位:肱三头肌。B.开始位置:正坐在凳上,两脚平踏在地上,右手持铃,掌心向前,伸直在头顶上方。左手托于左侧腰间。C.动作过程:右上臂紧贴右侧耳旁,不准移动。持铃以半园弧落下至左肩上方,持铃下落越低越好。然后,以右臂肱三头肌的收缩力,持铃向上举起还原。重复做。左、右手交替做时,要完成同样次数。D.训练要点:持铃向头后对角线落下要比直接向后方落下的训练效果要好2.俯立臂屈伸A.重点锻炼部位:肱三头肌。 B.开始位置:自然站立在凳的一端,上体前屈至背部与地面平行,左手以手掌支撑在凳上,右手持哑铃,屈肘,使右上臂紧贴体侧与背部平行,前臂下垂。 C.动作过程:手持铃,上 阅读全文

posted @ 2014-03-06 11:09 ukouryou 阅读(310) 评论(0) 推荐(0) 编辑

2014年1月29日

Atomic

摘要: AtomicInteger/AtomicBoolean/AtomicLong/AtomicReferenceAtomicIntegerArray/AtomicLongArray/AtomicReferenceArrayAtomicIntegerFieldUpdater/AtomicLongFieldUpdater/AtomicReferenceFieldUpdaterAtomicMarkableReference/AtomicStampedReferenceAtomicMarkableReference类描述的一个的对,可以原子的修改Object或者Boolean的值,这种数据结构在一些缓存或 阅读全文

posted @ 2014-01-29 11:46 ukouryou 阅读(241) 评论(0) 推荐(0) 编辑

2014年1月24日

java1.7 Fork/Join 框架

摘要: http://www.infoq.com/cn/articles/fork-join-introduction1. 什么是Fork/Join框架Fork/Join框架是Java7提供了的一个用于并行执行任务的框架, 是一个把大任务分割成若干个小任务,最终汇总每个小任务结果后得到大任务结果的框架。我们再通过Fork和Join这两个单词来理解下Fork/Join框架,Fork就是把一个大任务切分为若干子任务并行的执行,Join就是合并这些子任务的执行结果,最后得到这个大任务的结果。比如计算1+2+。。+10000,可以分割成10个子任务,每个子任务分别对1000个数进行求和,最终汇总这10个子任务 阅读全文

posted @ 2014-01-24 17:49 ukouryou 阅读(507) 评论(0) 推荐(0) 编辑

2014年1月9日

upgrade steps

摘要: 3 solr instance :solr1/solr2/solr32 collection:collection_company/collection_useroriginal config[ATALINA_OPTS="-verbose:gc -Xms1024m -Xmx2048m -XX:+PrintGCDetails -Xloggc:logs/gc -DzkHost=192.168.3.30:2181,192.168.3.30:2281,192.168.3.30:2381 -DhostPort=8800 -DnumShards=1"]1. upload new cof 阅读全文

posted @ 2014-01-09 15:40 ukouryou 阅读(235) 评论(0) 推荐(0) 编辑

Solr 4.6 | Setting Up an External ZooKeeper Ensemble | upgrade solr to Solr4.6

摘要: 4.1----->4.6Solr从4.1到4.6还是有不少改变的。。。一、solr.xml在4.3版本开始Solr维护这两套不同格式的solr.xml,旧的遗留格式和自动发现模式,5.0以后会废除遗留格式而只支持自动发现;简单的说自动发现就是把原有格式里对core的定义放到了core.properties里在4.5版本开始Solr支持把solr.xml交给ZooKeeper维护关于solr.xml以及core.properties的格式参照https://cwiki.apache.org/confluence/display/solr/Solr+Cores+and+solr.xmlhtt 阅读全文

posted @ 2014-01-09 15:39 ukouryou 阅读(329) 评论(0) 推荐(0) 编辑

2014年1月6日

jvm

摘要: http://hi.baidu.com/ejjgexdatpkosur/item/9a00ddfc599cb1b631c19919JVM性能调优记录今天处理了一次性能问题,记录一下处理的过程。早上发现几台机器负载非常高,前端nginx的连接数接近2000。后端的应用服务器的响应情况很忙,最糟糕的情况达到了30多万毫秒。top看到进程运行情况:PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND3182 root 25 0 1028m 560m 9296 S 289.6 29.6 27:22.26 java3220 root 25 0 103 阅读全文

posted @ 2014-01-06 10:36 ukouryou 阅读(230) 评论(0) 推荐(0) 编辑

2014年1月5日

Hadoop 资源列表

摘要: http://www.coreservlets.com/hadoop-tutorial/ 阅读全文

posted @ 2014-01-05 21:39 ukouryou 阅读(93) 评论(0) 推荐(0) 编辑

2014年1月2日

links

摘要: http://www.diguage.com/archives/73.html 阅读全文

posted @ 2014-01-02 14:14 ukouryou 阅读(80) 评论(0) 推荐(0) 编辑

2013年12月29日

Hbase 安装

摘要: 1.下载解压2.conf/hbase-env.sh3.conf/hbase-site.xml hbase.rootdir hdfs://master:54310/hbase hbase.cluster.distributed true hbase.zookeeper.quorum master,slave1,slave2 ... 阅读全文

posted @ 2013-12-29 22:54 ukouryou 阅读(151) 评论(0) 推荐(0) 编辑

2013年12月22日

HBase简介(很好的梳理资料)

摘要: http://jiajun.iteye.com/blog/899632一、简介historystarted by chad walters and jim2006.11 G release paper on BigTable2007.2 inital HBase prototype created as Hadoop contrib2007.10 First useable Hbase2008.1 Hadoop become Apache top-level project and Hbase becomes subproject2008.10 Hbase 0.18,0.19 released 阅读全文

posted @ 2013-12-22 22:43 ukouryou 阅读(166) 评论(0) 推荐(0) 编辑

Hbase basic

摘要: HBase is a distributed column-oriented database built on top of HDFS. HBase is theHadoop application to use when you require real-time read/write random access tovery large datasets.Applications store data into labeled tables. Tables are made of rows and columns. Tablecells—the intersection of row a 阅读全文

posted @ 2013-12-22 17:13 ukouryou 阅读(251) 评论(0) 推荐(0) 编辑

导航