2014年4月20日 星期日

[Computer System] Delay of SSH

Empirical Setting:

The delay of response of command built upon ssh protocol (git, ssh...etc) come from the setting of

GSSAPIAuthentication


Turn it off in the ~/.ssh/config
GSSAPIAuthentication no

2014年4月16日 星期三

[Computer System] Linux /bin, /sbin/, /usr/bin, /usr/sbin

/bin: 
  This directory contains executable programs which are needed in single user mode and for all users.
/sbin: 
  Like /bin, this directory holds commands needed to boot the system such as init, ip, mount, but those commands are not frequently executed by normal users.

/usr/bin:
  This is the primary directory for executable programs and for all users.

/usr/sbin:
  This directory contains program binaries for system administration which are not essential for the boot process, for mounting /usr or for system repair.

/usr/local:
  Neither of the above. Please use /usr/local/bin or /usr/local/sbin for system-wide available scripts. The local path means it's not managed by the system packages

Reference: 
  1. Filesystem Hierarchy Standard
  2. Single User Mode
  3. Ubuntu Explaination

2014年3月12日 星期三

Note: Ubuntu 13 Installation in SSD

Enable the AHCI mode in BIOS;
Construct gpt partition table (In the older machine, gpt need the aid of BIOS to help construct the boot table. Therefore, we use the default partition (MSDOS) instead), which, however, I don't really understand the reason.

Check I/O Scheduler (use Deadline by default for SSD in Ubuntu 13)
Alignment is handled by the Gparted, and. on the other hand, there is not so much performance difference.
  1. While the installation process, we need to mount the partition just formatted mount as root.
  2. Installing...
  3. Enable TRIM (Good Explanation of TRIMRelated)

2013年12月29日 星期日

生活, 小念個咖啡書

Wifi。插座。

士林區

一杯咖啡(士林店)

  • 插座可及:
  • 網路速度:
  • 環境品質:
  • 剩餘座位:
    • 時間:   , 數量 
台北市士林區文林路291號
  


Orange 看電車咖啡

  • 插座可及: 75%位子插座可及
  • 網路速度: 一般使用 Nice
  • 環境品質: 舒適:)
  • 消費: 熱茶一壺160NTD
  • 剩餘座位(不含被訂走):

    • 時間: 星期天中午_寒冷陰天微雨12:20   , 數量: 2人桌x6,  4人桌x4, 
      • 12:50就只剩下2人桌x4了!!













    台北市士林區文林路302號
     

     流浪觀點
    台北市士林區福壽街13號
     

    2013年10月26日 星期六

    [Programming] Interface and Abstract Class

    Interface (from Java):
    Following reference from my colleague YaChun:
    A Interface can help designer to implement one function (method) for different class.
    Example:
    Interface CanFlying {
         public void doFlying();
    }

    Interface CanWalking {
         public void doWalking();
    }

    class ActionManager(){
         void doAction() {
          if (obj instanceof CanFlying) {                      <----- 是可飛的東西,就執行飛吧~
                         CanFlying flyObj = (CanFlying) obj;
                         flyObj.onFlying();
                   }

                   if (obj instanceof CanWalking) {                         <----- 是會走的東西,就執行走吧~
                         CanWalking walkObj = (CanWalking) obj;
                         walkObj.onWalking();
                   }
          }
    }

    -> one method ActionManager.doAction can deal with walking and flying of different classes 
    -> Polymorphism

    Abstract Class
    而Abstract class in C++, 一旦定義了一個pure virtual function 這個function 雖然定義好了傳進去的參數, 但是真實的動作會在 derived class 才定義, 這也是為了那實際上使用時只要有一個 actionManager 去 使用這個virtual function 那 也是可以透過一個actionManager 管理多個classes-> 同樣也是為了polymorphism

    兩個一起看的話在C++中, 若同時繼承多個abstract class 跟 Java 同時 implement 多個 interface 感覺概念上是類似的

    因此基於以上兩點, 我覺得 Interface 和 Abstract class 都是同樣目的 (polymorphism), 只是Java 透過 interface的定義, 而 C++透過繼承 abstract class 來達到.

    另外還有一點不同 可能是 java 在 compile time 的時候就會做到這個 polymorphism
    而C++ 的Pure function 應該是runtime 才會做的

    有關 C++ Abstract class 的文件
    http://www.parashift.com/c++-faq-lite/abcs.html

    2013年6月16日 星期日

    20110513包益民的與世界創意接軌

            開始決心整理手邊所有的資訊成為有用的知識並同時達到訓練寫作的效果,我打開了在兩年前在台大二活蘇格拉底廳,聆聽的包益民的演講。

            包益民這次演講的標題為"與世界創意接軌",但奇演講的內容確不完全是圍繞著這樣子的主題來鋪陳,而是有一種待有極端色彩的個人意志,以跳躍的方式來表達。大意且按下不表,稍後再娓娓道來。

            先從講者包益民的背景來觀察,就會慢慢可以想像他講述內容的原因。包益民畢業於美國著名的設計學校,並得到設計界數個著名講項的肯定,同時加上其兒時的經歷,可以看出這樣子的人擁有著對於自我想法的自信以及固執。在我的觀念裡,有這樣子性格的人物,都會喜歡一些帶著極端色彩的發言。

            演講的主軸大致上可分為三個部分

    1. Super Star Create Dream: 只跟超級巨星合作,也認為只有超級巨星才能夠創造形像、創造夢想。 同時, 超級巨星也是有地域之分的,就好像我們會認為法國人擁有紅酒, 瑞士人能夠製作精緻的表 ,我們必須瞭解我們自己的形像是什麼? 這也是為什麼行銷這麼重要。
    2. 瞭解一個地方的特性,才知道他們要什麼:
      1. 留意什麼樣的人,創作那個地方的attractive,這在相當程度上指引了這個地方的關鍵點。
      2. 瞭解文化且經過相處才能知道一個地方要的是什麼
    3. 台灣所面臨的壓力太小,所面對的世界太窄。

    20130503 從貧乏出走

            一直以來在與不同朋友以及各界人士交流的過程中,隨著成為一位所謂的碩士研究生的名銜以及逐漸增長的歲月,逐漸的讓我感受到自己本身知識涵養以及思考內涵的貧乏,其原因若要深就,自可歸納出兩股互為消長的力量在做拉扯,其一為越念越高的學歷以及年紀,隨著年月的成長,不難感受出在許多的環境中,自己已經被期待為一位能夠提出貢獻方針,替團體增加價值的角色,以經不同於以往能夠偽裝成一位無知的年輕人,而享受到被期待的光環;另一方面,自己因為疲於追尋不適合自己的目標,而在一路上消磨了自己許多雄心壯志。

       To practice my English typing technique, I will start  using English to write my article from now on. The benefit of using English to do the writing will not only improve my English writing skill and typing speed but also help me to improve my Mandarin Chinese typing skill in nearby future.

        To be brief. I conclude my shortage in three aspects.
    1. Professional skill: The professional skill I defined here includes the technology insight in computer science and electric engineering. I need to do more basis study to make myself in a position which is hard to be replaced by others
    2. Tool development and methodology: I am a man with great smart with. However, this makes me away from learning methodology and try to find a more efficient way to accomplished tasks.
    3. Global view and Model thinking: I don't have enough knowledge to construct a good thinking model for myself. I conclude my interest field at this stage as politics and economics and finance.