Categories
- FFMpeg (5)
- Libav (1)
- Google (3)
- iBeacon (1)
- LDAP (3)
- Me (2)
- Network (11)
- OS (149)
- RTMP (4)
- SIP (1)
- Kamailio (1)
- SNMP (1)
- VMware (20)
- VCP考試 (1)
- 伺服器 網站服務 (105)
- 名詞解釋 (4)
- 專案管理 (1)
- 工具軟體 (51)
- Adobe (1)
- FMS (1)
- Cloudera (1)
- Docker (1)
- Eclipse (4)
- Intellij (2)
- OBS (2)
- Office (10)
- Excel (4)
- PowerPoint (5)
- Postman (2)
- Splunk (13)
- Virtualbox (2)
- Visual Studio (2)
- 文字編輯器 (10)
- Sublime Text 2 (6)
- Sublime Text 3 (3)
- Vim (3)
- 連線工具 (1)
- Xshell (1)
- Adobe (1)
- 程式語言 (80)
- CSS (2)
- HTML (2)
- iOS (1)
- Java (30)
- JavaScript (5)
- jQuery (4)
- jsTree (2)
- JSP (3)
- PHP (16)
- Python (8)
- Ruby (1)
- sed (1)
- Shell Script (8)
- Windows Bash Script (1)
- XML (1)
- 資料庫 (37)
- FFMpeg (5)
Category Archives: 伺服器 網站服務
Xibo & Nginx-rtmp
20141226 更新 不要用這個~~因為不穩定~Orz 環境: Ubuntu 14.04.01 1. 安裝build deb需要的套件 apt-get install dpkg-dev 創建source code目錄 mkdir -p /usr/src/nginx cd /usr/src/nginx 透過apt-get下載nginx的source code apt-get source nginx 安裝git apt-get install git 透過git下載nginx-rtmp-module的source code git clone https://github.com/arut/nginx-rtmp-module.git 將rtmp、xlst模組功能加入設定檔中 cd nginx-1.4.6/ vim debian/rules common_configure_flags := … Continue reading
Posted in Nginx, Ubuntu, Xibo
Leave a comment
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
Javascript的月份是從0開始…
受教了~修正 etherpad 的日期顯示以 “yyyy-mm-mm hh-mm” 顯示的過程中發現月份總是少一個月 可是看 code 又沒有什麼問題 所以用 google 搜尋 “jquery + 少1個月” 及 “javascript + 少1個月” 發現了是 javascript 對於月份是少一個月 Orz… 所以 etherpad 的原本的寫法還不錯,貼上來註記一下 var converterPad = function (UNIX_timestamp) { var a = new Date(UNIX_timestamp); //原本的寫法是用英文顯示 //var months … Continue reading
Posted in etherpad, JavaScript
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
Etherpad-lite in Ubuntu 14.04 x64 server
etherpad 安裝基本套件需求 sudo apt-get install gzip git-core curl python libssl-dev pkg-config build-essential 更新安裝nodejs的來源 sudo curl -sL https://deb.nodesource.com/setup | sudo bash – 安裝nodejs sudo apt-get install nodejs 新增etherpad的使用者 sudo useradd etherpad -m -s /bin/bash -r sudo passwd etherpad 將etherpad使用者加入sudoers中 sudo usermod … Continue reading
Posted in etherpad, MySQL, Nagios, Ubuntu
Leave a comment
git push 失敗
當要push的時候發生了一點錯誤…. [tdg@udnlap01 mail]$ git push -u 20141028 master Enter passphrase for key ‘/home/tdg/.ssh/id_rsa’: To git@cowman.no-ip.org:udn/udn_mail_log.git ! [rejected] master -> master (non-fast-forward) error: failed to push some refs to ‘git@cowman.no-ip.org:udn/udn_mail_log.git’ To prevent you from losing history, non-fast-forward updates were rejected Merge … Continue reading
Posted in Git
Leave a comment