Category Archives: Wisemapping

Wisemapping 調整網頁縮圖功能

因為原本 wisemapping 搭配的是 immediatenet 提供的網頁縮圖服務 測試的失敗率有點高~主要還是因為不支援 https 的原因 所以使用 page2images 提供的服務取代掉 {wisemapping home directory}/webapps/wisemapping/js/mindplot-min.js //註解掉舊有的設定 //var d=new Element(“img”,{src:”http://immediatenet.com/t/m?Size=1024×768&URL=”+b.getModel().getUrl(),img:b.getModel().getUrl(),alt:b.getModel().getUrl()}); //var d=new Element(“img”,{src:”http://free.pagepeeker.com/v2/thumbs.php?size=m&refresh=1&url=”+b.getModel().getUrl()}); //設定 function 以便取得連結相關資訊 //包含hostname、pathname等 var cowgetLocation = function(href) { var cowl = document.createElement(“a”); cowl.href = href; return cowl; } … Continue reading

Posted in Wisemapping | Leave a comment

Wisemapping REST API #2

後來發現 wisemapping 提供的 api doc 網站還不錯 功能都有了,包含查詢、刪除等功能 只是測試的時候要小心,因為資料真的會被刪掉….Orz 網址 link:http://{伺服器IP}/map/doc/rest/index.html

Posted in Wisemapping | Leave a comment

Nginx Proxy Setting…

因為 wisemapping 預設使用 8080 port etherpad 預設使用 9001 port 都很麻煩~~所以就使用 nginx proxy 幫忙轉址了 以下是測試很久的設定檔 location /pad { rewrite ^/pad(/.*)$ $1 break; proxy_pass http://localhost:9001/; proxy_set_header Host $host; proxy_buffering off; access_log /var/log/nginx/etherpad.log; error_log /var/log/nginx/etherpad.log; } location /map { #rewrite ^/map(/.*)$ $1 break; … Continue reading

Posted in etherpad, Nginx, Wisemapping | Leave a comment

Wisemapping REST API

只有幾個… 不知道哪邊才有詳細的API List … Orz Ref. wisemapping-support › create and register a user via REST API Obtaining user information by email: * Template Path: /service/admin/users/email/{user.email}.json * Example: curl “http://{host.name}:{host.port}/{context.path}/service/admin/users/email/{user.email}.json” –get –basic -u “admin@wisemapping.org:admin” Deleting a based on the user id: … Continue reading

Posted in Wisemapping | Leave a comment

[Wisemapping] find user by email in Python

#! /usr/bin/python # coding:utf-8 # curl “http://localhost:8080/wisemapping/service/admin/users/email/{使用者帳號信箱}.json” –get –basic -u “admin@wisemapping.org:admin” import sys import urllib2 import base64 import yaml import datetime username = ‘admin@wisemapping.org’ password = ‘admin’ if len(sys.argv) == 2: request = urllib2.Request(“http://localhost:8080/wisemapping/service/admin/users/email/%s.json” % sys.argv[1]) base64string = base64.encodestring(‘%s:%s’ % … Continue reading

Posted in Python, Wisemapping | Leave a comment

Wisemapping in Ubuntu 14.04 x64 server

Wisemapping 環境 : Ubuntu 14.04 x64 server 檢查系統是否已裝了 java development kit,如果是openjdk就先移除掉 java -version 安裝 Java Development Kit (版本>7) sudo apt-get install software-properties-common python-software-properties sudo add-apt-repository ppa:webupd8team/java sudo apt-get update sudo apt-get install oracle-java7-installer 下載 wisemapping binary檔案 wget https://bitbucket.org/wisemapping/wisemapping-open-source/downloads/wisemapping-v3.0.4.zip 安裝 unzip … Continue reading

Posted in MySQL, Ubuntu, Wisemapping | Leave a comment