<Date: 2010-09-30>
<Author: medcl>
<Category: Linux>
thrift入门与elasticsearch的thrift接口代码生成
下载
http://incubator.apache.org/thrift/download/
最新:http://www.thrift-rpc.org/?p=thrift.git;a=shortlog;h=refs/misc/instant
wget http://apache.freelamp.com//incubator/thrift/0.4.0-incubating/thrift-0.4.0.tar.gz
tar vxzf thrift-0.4.0.tar.gz
阅读这篇文章的其余部分 »

本文来自: thrift入门
<Date: 2010-09-29>
<Author: medcl>
<Category: 搜索, 资源分享>
<Date: 2010-09-21>
<Author: medcl>
<Category: 搜索>
<Date: 2010-09-21>
<Author: medcl>
<Category: 搜索>
<Date: 2010-09-20>
<Author: medcl>
<Category: 搜索>
测试ES版本0.10.0,ES的Query DSL很灵活,可以实现复杂的查询,这里提供个简单的例子。
curl -XGET 'http://localhost:9200/_all/default/_search?pretty=true' -d '
{
"explain": true,
"from": 1,
"size": 12,
"fields": [
"HasExperience",
"Name"
],
"query": {
"term": {
"HasExperience": true,
"__TENANTID": "100001"
},
"range": {
"Age": {
"from": 0,
"to": 100,
"includeLower": true,
"includeUpper": true
}
}
}
}
'
阅读这篇文章的其余部分 »

本文来自: ElasticSearch复杂查询DSL使用
<Date: 2010-09-16>
<Author: medcl>
<Category: Perl, 乱搞, 小道消息>

批量whois查询域名是否被注册的perl脚本,支持词典,支持任何后缀的域名,原理很简单,调用whois命令,比较返回结果。windows(cygwin)、linux测试通过。
使用方法: perl domain.pl '.com' 'domain(3).dict' #第一个参数为域名后缀,第二个为字典路径,两个参数都为必填哦。
阅读这篇文章的其余部分 »

本文来自: 域名批量查询脚本,附词典
<Date: 2010-09-16>
<Author: medcl>
<Category: cassandra, nosql>
Cassandra 0.7 及Lucandra 0.7 升级过程记录
Cassandra 0.7 中,所有的Schema信息都是liveupdate,所以不需要从配置文件加载,但是之前的那么多配置,如果可以直接加载进来就好了,cassandra提供了schematool就是解决这个问题的。
阅读这篇文章的其余部分 »

本文来自: Cassandra 0.7 及Lucandra 0.7 升级过程记录
<Date: 2010-09-13>
<Author: medcl>
<Category: SQL Server>
在sql server中,数据库不能同时为单用户模式和只供 dbo 使用模式
可以通过使用 alter database 命令来切换使用:
alter database DatabaseName set single_user
该命令限制用户只能逐个访问数据库
alter database DatabaseName set restricted_user
该命令限制只有 db_owner、dbcreator 或 sysadmin 角色的成员才能访问数据库
alter database DatabaseName set multi_user
该命令将数据库的访问权限返回其一般运行状态
在sql server中,数据库不能同时为单用户模式和只供 dbo 使用模式
可以通过使用 alter database 命令来切换使用:
alter database DatabaseName set single_user
该命令限制用户只能逐个访问数据库
alter database DatabaseName set restricted_user
该命令限制只有 db_owner、dbcreator 或 sysadmin 角色的成员才能访问数据库
alter database DatabaseName set multi_user
该命令将数据库的访问权限返回其一般运行状态

本文来自: SQL Server 切换用户模式
<Date: 2010-09-11>
<Author: medcl>
<Category: 资源分享>
xtranormal.com,一个很有创意的网站,提供了基本的舞台和人物以及简单的动作和表情,你可以在里面自己创建你的剧本,并且输入的文字会自动翻译成语音(机器翻译),最后可以导出影片,还支持多种语言,普通话、广东话都有,不错哦,做一些简单动画、贺卡、或者什么的,充分发挥你的想象力吧,你就是导演。。
阅读这篇文章的其余部分 »

本文来自: xtranormal,有意思