- 博客(20)
- 资源 (16)
- 收藏
- 关注
转载 cassandra
cassandraCassandra 的集群配置 http://torycatkin.iteye.com/blog/1334966./bin/cassandra -f ./bin/nodetool -h m1 ringchown -R richy /var/log/cassandracd /home/richy/apache-cassandra-1.
2012-05-12 17:36:06
292
转载 mongodb 系统 副本集
mongodb 系统 副本集http://my.oschina.net/zhuzhu0129/blog/53290http://42087743.iteye.com/blog/1291316rm -r /data -fmkdir /datamkdir /data/mongodb_datamkdir /data/mongodb_logchown
2012-05-12 17:34:31
341
转载 mongodb 应用
mongodb 应用use testdb.foo.insert({"bar":"baz"})show dbsshow collectionsdb.foo.fine()db.foo.remove() /删除foo下的文档db.mailing.list.insert{"opt-out":true, "name":"richy"}db.mailing.
2012-05-12 17:33:11
392
转载 mongodb 副本集+分片
mongodb 副本集+分片1. 创建用户groupadd -g 20001 mongodbuseradd -u 20001 -g mongodb mongodbpasswd mongodb2.拷贝文件并解压cd /home/richy/Downloadssu mongodbcp mongodb-linux-i686-2.0.4.tgz /home/
2012-05-12 17:32:21
712
原创 junit 4.10
1) C.javapackage org.richy;import java.util.ArrayList;import java.util.HashMap;import java.util.List;import java.util.Map;public class C { public int add(int a, int b) {
2012-03-07 17:28:04
593
原创 ehcache.xml
永久保存 maxElementsInMemory="10000" eternal="true" overflowToDisk="true" timeToIdleSeconds="0" timeToLiveSeconds="0" me
2012-02-24 10:36:05
280
转载 java 读写文件
写文件: outStream = new FileOutputStream(new File("/home/richy/file1.txt")); outStream .write("内容"); outStream .close(); outStream2 = new
2012-02-20 16:35:31
279
原创 EhcacheUtil.java
package org.richy.util;import net.sf.ehcache.Cache;import net.sf.ehcache.CacheManager;import net.sf.ehcache.Element;/** * Ehcache缓存工具类 * @author richy * *使用主要方法: *(1)open *(2)p
2012-02-20 14:21:43
647
原创 java注释 common-annotations
进入common-annotations.jar所在目录执行:mvn install:install-file -DgroupId=javax -DartifactId=common-annotations -Dversion=1.0 -Dpackaging=jar -Dfile=common-annotations.jarpom.xml中添加: javax...
2011-09-28 11:28:07
601
原创 SpringSide3.0 演示地址
[INFO] SpringSide3.0 [INFO] 可访问以下演示网址:[INFO] http://localhost:8083/mini-service[INFO] http://localhost:8084/mini-web[INFO] http://localhost:8085/showcase
2011-09-23 15:28:48
121
原创 js gesture 事件 处理
http://wanglingshu.com/wp-content/uploads/ios-gesture.html var canvas = document.getElementById("canvas"), spirit, startScale, startRotation; function touchStart(e) { ...
2010-12-29 20:44:36
293
原创 js 备忘
//计算X,Y坐标值数量 var x_group=new Array(); var y_group=new Array(); for (i=0;i
2010-12-27 20:57:50
114
原创 eclipse 3.3 不能在 centos5.4下启动,已解决
可以新建一个eclipse启动脚本,问题就解决了,如:#!/bin/shexport MOZILLA_FIVE_HOME=/usr/java/jdk1.5.0_15/jre/lib/i386/client/usr/share/eclipse3.3.2/eclipse 这样一般版本在3.3以下的eclipse就能启动起来了。...
2010-10-19 18:45:54
93
原创 Hadoop 与 eclipse 开发环境
参照安装1) http://blog.youkuaiyun.com/savechina/archive/2010/06/08/5656937.aspx2)eclipse 需要3.3版本
2010-09-17 21:39:52
71
原创 IPHONE MinutesToMidnight 出现的编译错误,已找到解决方法
-(void)updateLabel { NSDate* now = [NSDate date]; int hour = 23 - [[now dateWithCalendarFormat:nil timeZone:nil] hourOfDay]; int min = 59 - [[now dateWithCalendarFormat:nil timeZone:nil] minuteO...
2010-09-13 10:46:47
136
原创 如何编译iPhone官方提供的HelloWorld (转载) 以及其他下载的DEMO
http://zhiwei.li/text/2010/03/%E5%A6%82%E4%BD%95%E7%BC%96%E8%AF%91iphone%E5%AE%98%E6%96%B9%E6%8F%90%E4%BE%9B%E7%9A%84helloworld/1)直接Build and Run, 抱怨找不到SDK 2.0打开工程, 在菜单中选择Projects, General标...
2010-09-08 16:53:08
431
原创 Thinkpad X200 Vmware MAC10.6 虚拟机 安装
一)准备1) mac安装包: [苹果操作系统.-.雪豹.10.6].snowleopard_10a432_userdvd.dmg2) vmware7.03) darwin300+Rebel_EFI+audio_for_VM7二)打开CPU VT,以支持64位二)安装 vmware7.0三)安装MAC 虚拟机1) 新建虚拟机 1cpu 10...
2010-09-01 21:20:49
590
原创 CentOS 安装 vsftp
1.检查是否安装rpm -qa | grep vsftpd2.安装yum install vsftpd3.查看状态 service vsftpd status4.手工启动service vsftpd start 5.设置每次开机时自动运行chkconfig vsftpd on6.检查FTP端口netstat -tl 7.相关配...
2010-08-14 12:08:31
102
原创 Putty 显示中文
1)查看LINUX语言cat /etc/sysconfig/i18n显示 LANG="zh_CN.UTF-8"2)putty设置2.1)Window-Translation-Received data assumed to be in which character set:改为 “UTF-8”2.2)Window-Appearance-Font setting...
2010-08-14 11:25:17
177
BeanShell 测试实例
2015-09-12
csh框架+cxf+spring+hibernate+mysql 注解 annotation xml json
2011-10-25
common-annotations.jar
2011-09-28
需求规格说明书-手机电子书开发需求规格说明书V10
2010-06-21
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人