PIXNET

系統環境與套件版本

  • 作業系統環境: Ubuntu 9.04 Server x2
  • Hadoop 0.20.2 Fully-distributed modes
  • HBase 0.89.20100621 Fully-distributed modes
  • Thrift 0.5.0

1. 下載 Thrift 0.5.0

1 wgetftp://ftp.stu.edu.tw/Unix/Web/apache//incubator/thrift/0.5.0-incubating/thrift-0.5.0.tar.gz

2. 安裝 Thrift 相依套件

Thrift 需要 C++ 的 libboost 函式庫, 以及 flex, libtool 方能運作
1 sudo apt-get install libboost-dev automake libtool flex bison g++

chph 發表在 痞客邦 留言(0) 人氣()

test article

 

 


chph 發表在 痞客邦 留言(7) 人氣()

/**
 * 取得螢幕解析度的寬
 * @param activity 初始化用
 * @return 螢幕解析度的寬
 * @author Webber
 */
public static double getPixelsWidth(Context context) {
        DisplayMetrics dm = new DisplayMetrics();
        ((Activity) context).getWindowManager().getDefaultDisplay().getMetrics(dm);
        return dm.widthPixels;
}
/**
 * 取得螢幕解析度的高
 * @param activity 初始化用
 * @return 螢幕解析度的高
 * @author Webber       
 */
public static double getPixelsHeight(Context context) {
        DisplayMetrics dm = new DisplayMetrics();
        ((Activity) context).getWindowManager().getDefaultDisplay().getMetrics(dm);
        return dm.heightPixels;
}

        /***********************************
         ** Multiline block comments
         **********************************/
      
        $stringWithUrl = "http://alexgorbatchev.com";
        $stringWithUrl = 'hello world';
        
        ob_start("parseOutputBuffer");          // Start Code Buffering
        session_start();
        
        function parseOutputBuffer($buf) {
                global $portal_small_code, $portal_gzcompress;
                global $PHP_SELF, $HTTP_ACCEPT_ENCODING;
      
                // cleaning out the code.
                if($portal_small_code && !$portal_gzcompress) {
                        $buf = str_replace("    ", "", $buf);
                        $buf = str_replace("\n", "", $buf);
                        $buf = str_replace(chr(13), "", $buf);
                }
        }
package tutorial;
      import com.opensymphony.xwork2.ActionSupport;
      public class HelloWorld extends ActionSupport {
        private String name;
        public String getName() {
        return name;
        }
        public void setName(String name) {
                this.name = name;
        }
        public String execute() {
                name = "Hello, " + name + "!"; 
                return SUCCESS;
        }
      }

chph 發表在 痞客邦 留言(0) 人氣()

app test 0529

Tulips  


chph 發表在 痞客邦 留言(0) 人氣()

  • Nov 23 Sun 2008 14:51
  • 密碼文章 test

  • 這是一篇加密文章,請輸入密碼
  • 密碼提示:
  • 請輸入密碼:
Close

您尚未登入,將以訪客身份留言。亦可以上方服務帳號登入留言

請輸入暱稱 ( 最多顯示 6 個中文字元 )

請輸入標題 ( 最多顯示 9 個中文字元 )

請輸入內容 ( 最多 140 個中文字元 )

reload

請輸入左方認證碼:

看不懂,換張圖

請輸入驗證碼