kettle小试,抽取MongoDB数据至Mysql
1.MongoDB Input :填写连接信息,添加查询条件,如: {$query:{‘hp_stat_date’:’2015-09-28′}} 2.由于在Mongo中我的日期定义是Date类型,ISODate(“2015-08-25T00:00:00Z”),在MongoDB Input...
View ArticlePython中奇葩的unicode编码转换
1. unicode类型的utf8字符串 u'\xe4\xbd\xa0\xe5\xa5\xbd'.encode('latin1').decode('utf8') 2.utf8字符串类型的unicode字符串 '\\u4f60\\u597d'.decode("unicode-escape")
View ArticleSpring Data MongoDB 使用多个db
This configuration example works: <context:property-placeholder location="classpath:mongo.properties"/> <mongo:mongo id="mongo" host="${mongo.host}" port="${mongo.port}"> <mongo:options...
View Article命令行方式启动ssh tunnel
ssh \ -L local_port:service_host:service_port \ -p ssh_server_port \ -l ssh_server_username \ -N \ ssh_server_host
View ArticleApache Kylin使用
部署或建cube出问题大部分都是环境问题或hadoop hbase 版本问题 首先按照文档中所标注的版本进行部署 Recommended Hadoop Versions Hadoop: 2.4 – 2.7 Hive: 0.13 – 0.14 HBase: 0.98 – 0.99 JDK: 1.7+ 其中略坑的是 hbase的0.9*版本是不支持Hadoop...
View ArticleAndroid Studio + OpenCV
The below steps for using Android OpenCV sdk in Android Studio. This is a simplified version of this(1) SO answer. Download latest OpenCV sdk for Android from OpenCV.org and decompress the zip file....
View ArticleInstalling OpenCV 2.4.* with Python Support
Opencv的安装简直让想在图像处理方面试试水的新手抓耳挠腮,今天记录下心酸的安装过程,避免 fall in a same hole. 1. cd ~/ git clone https://github.com/Itseez/opencv.git git clone https://github.com/Itseez/opencv_contrib.git 2. cd ~/opencv mkdir...
View Articlepython opencv 去水印实现
主要利用了 opencv 的 inpaint 方法,实现类似蒙版的效果 http://docs.opencv.org/master/df/d3d/tutorial_py_inpainting.html#gsc.tab=0 效果:注意右下角&左上角 原图 处理后: ''' string to array ''' def get_opencv_img_from_string(data): arr...
View Article