發表文章

目前顯示的是 9月, 2011的文章

Mac中久違的頓號

在Mac系統中,常常要找頓號找不到....終於忍不住到Google查一下ㄡ....原來.... 問:請問如何使用預設的輸入法打出「、」(頓號)? 答:如果是「雪豹」預設的注音的話,只要直接按「\」(就是delete)下面那個,就會出現

JavaScript get the doGet parameters

在javascript中也可以模仿jsp取得doGet的參數喔∼ 下面是寫法跟範例: /*取得doGet url中某個名稱變數的值*/  function gup( name ){ name = name.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]"); var regexS = "[\\?&]"+name+"=([^&#]*)"; var regex = new RegExp( regexS ); var results = regex.exec( window.location.href ); if( results == null ) return ""; else return results[1]; } /*使用gup取得doGet參數值,並加到redirect的網址後面*/  if(gup('path') != null && gup('path') != ''){ document.location=document.location=(baseUrl+gup('path')); } else { alert('Sorry, parameter error!'); }

Mongo on Mac OS

Easy way to install mongodb on Mac OS... 1. Download the suitable version for your mac...     http://www.mongodb.org/downloads 2. Unzip to your specific folder...     ex: $HOME/opt/mongo-xxxx.tgz 3. Create default db file path: /data/db/     $> sudo mkdir -p /data/db 4. Change permission of db file path     $> sudo chown USER:staff /data     $> sudo chown USER:staff /data/db 5. Start service     $> cd $MONGODB_HOME/bin     $> ./mongod Test for connection: 1. Connect DB:     $> cd $MONGODB_HOME/bin     $> ./mongo 2. If no error, you will got prompt '>', try simple computing...     > 3 + 3     (and it will result...)     > 6

Cloud Computing

雲端運算定義: 2009 年 10 月 7 日定案,定義如下: Cloud computing is a model for enabling convenient, on-demand network access to a shared pool of configurable computing resources (e.g., networks, servers, storage, applications, and services) that can be rapidly provisioned and released with minimal management effort or service provider interaction. This cloud model promotes availability and is composed of five essential characteristics, three service models, and four deployment models. * Cloud service model (SaaS, PaaS, IaaS) * Cloud deployment model - Private Cloud, - Community Cloud, - Public Cloud, Hybrid Cloud * Cloud Characteristic: - On-demand self-service 有需求時自助服務 - Broad network access 普遍網路存取 - Resource pooling 資源共享 - Rapid elasticity 快速彈性佈署 - Measured service 服務量測