Published 12月 30, 2013 by Kevin

市集中莫名其妙的看不到windows 8.1的升級

市集中莫名其妙的看不到windows 8.1的升級

想要把windows 8升級到windows 8.1

  • 微軟的方法都作過一次,還是一樣在市集中看不到windows 8.1的升級
  • 再三確認了KB2871389已經裝了,還是一樣在市集中看不到windows 8.1的升級
  • 把市集開了又關,關了又開,還是一樣在市集中看不到windows 8.1的升級

只好很微軟風的把KB2871389移掉重裝,再去市集看一次,終於,老天保佑,看到了可愛的windows 8.1升級按鈕.

Read More
      edit
Published 12月 24, 2013 by Kevin

在Ubuntu 13.10安裝Git並以RVM安裝Ruby on Rails(RoR)

在Ubuntu 13.10安裝Git並以RVM安裝Ruby on Rails(RoR)

  1. 先作更新與安裝一些必要的套件,完成後,Git也裝好了.
    sudo apt-get update
    sudo apt-get install git-core curl zlib1g-dev build-essential libssl-dev libreadline-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt1-dev
    sudo apt-get install libgdbm-dev libncurses5-dev automake libtool bison libffi-dev
    sudo apt-get install software-properties-common
    
  2. 安裝與設定RVM
    curl -L https://get.rvm.io | bash -s stable
    source ~/.rvm/scripts/rvm
    echo "source ~/.rvm/scripts/rvm" >> ~/.bashrc
Read More
      edit
Published 12月 24, 2013 by Kevin

Ubuntu apt的Proxy設定

Ubuntu apt的Proxy設定

設定了使用者環境變數的Proxy後,apt-get仍然不能用,必須去編輯(新增)/etc/apt/apt.conf,加入以下設定.

#Export proxy
Acquire::http::proxy "http://proxy-ip:proxy-port/"
Acquire::https::proxy "http://proxy-ip:proxy-port/"     
Acquire::ftp::proxy "http://proxy-ip:proxy-port/"

如果是windows網域的認證

#Export proxy
Acquire::http::proxy "http://domain\username@password:proxy-ip:proxy-port/"
Acquire::https::proxy "http://domain\username@password:proxy-ip:proxy-port/"    
Acquire::ftp::proxy "http://domain\username@password:proxy-ip:proxy-port/"      
Read More
      edit
Published 12月 24, 2013 by Kevin

Ubuntu使用者環境變數的Proxy設定

Ubuntu使用者環境變數的Proxy設定

使用者環境變數的Proxy設定,在home目錄下,編輯.profile,加入以下設定.

#Export proxy
export http_proxy=http://proxy-ip:proxy-port
export https_proxy=http://proxy-ip:proxy-port       
export ftp_proxy=http://proxy-ip:proxy-port

如果是windows網域的認證

#Export proxy
export http_proxy=http://domain\\username:password@proxy-ip:proxy-port
export https_proxy=http://domain\\username:password@proxy-ip:proxy-port     
export ftp_proxy=http://domain\\username:password@proxy-ip:proxy-port       

重新載入.profile.

ubuntu:~$. ~/.profile
Read More
      edit
Published 12月 24, 2013 by Kevin

關閉Ubuntu的IPv6

關閉Ubuntu的IPv6

  1. 編輯/etc/sysctl.conf新增下面的資料:

    # Disable IPv6 configuration
    net.ipv6.conf.all.disable_ipv6 = 1
    net.ipv6.conf.default.disable_ipv6 = 1
    net.ipv6.conf.lo.disable_ipv6 = 1
    
  2. 重新載入/etc/sysctl.conf

    sudo sysctl -p
    

3.用ifconfig確認沒有IPv6 ip address

Read More
      edit
Published 12月 23, 2013 by Kevin

研究Windows的硬碟效能-使用效能監視器與WMI

研究Windows的硬碟效能-使用效能監視器與WMI

硬碟首先要注意的就是,每顆硬碟應該要獨立監控,並且確認監控的項目是實體硬碟或者是邏輯硬碟.
首先,我們先觀測硬碟在I/O執行時的延遲時間.
PhysicalDisk: Avg. Disk sec/Write
PhysicalDisk: Avg. Disk sec/Read
LogicalDisk: Avg. Disk sec/Write
LogicalDisk: Avg. Disk sec/Read
WMI也分為邏輯磁碟與實體硬碟:
Win32_PerfFormattedData_PerfDisk_LogicalDisk
Win32_PerfFormattedData_PerfDisk_PhysicalDisk
值分別為:
AvgDiskSecPerRead
AvgDiskSecPerWrite
在大多數的環境下,I/O的平均讀取執行的延遲時間大概可以分成下列的等級:
Read More
      edit
Published 12月 19, 2013 by Kevin

Nortel PBX 確認Key codes數量

Nortel PBX 確認Key codes數量

ld 22   
REQ  slt
ANALOGUE TELEPHONES   1868    LEFT   637    USED  1231
CLASS TELEPHONES         0    LEFT     0    USED     0
DIGITAL TELEPHONES     260    LEFT    126    USED   134
DECT USERS                0    LEFT     0    USED     0
IP USERS                 14    LEFT     4    USED     10
BASIC IP USERS           0    LEFT     0    USED     0
DECT VISITOR USERS        0    LEFT     0    USED     0
ACD AGENTS              42    LEFT    15    USED     27
Read More

      edit
Published 12月 16, 2013 by Kevin

Windows的CPU監控-使用效能監視器與WMI

研究Windows的CPU使用量-使用效能監視器與WMI

第一步就是確認CPU的使用率,如果有多CPU,還可以針對每一個CPU監控.如果要看所有CPU的平均使用率,則需要使用_Total那一個數值.
 Processor:% Processor Time
WMI 在:
Win32_PerfRawData_PerfOS_Memory  
Win32_PerfFormattedData_PerfOS_Memory
值為:
PercentProcessorTime
另外也可以監控Windows系統在CPU的使用率.
Processor: % Privileged Time
WMI值為:
Read More
      edit
Published 12月 12, 2013 by Kevin

Windows Server的記憶體監控-使用效能監視器與WMI

研究一下如何監控Windows的記憶體使用狀況-使用效能監視器與WMI

首先就是確認Windows目前可用的記憶體大小,也就是確認 :

Memory : Available Bytes

WMI的監控值是在:

Win32_PerfRawData_PerfOS_Memory
Win32_PerfFormattedData_PerfOS_Memory

分別有三種單位:

AvailableBytes
AvailableKBytes
AvailableMBytes

再來我們關心的就是虛擬記憶體使用狀況,也就是所謂的硬碟分頁檔,這個監控項目分為:

Read More
      edit
Published 12月 05, 2013 by Kevin

Blogger的Blockquote CSS自訂步驟

用Markdown在Blogger寫文章,卻發現Blockquote的語法出不來,google了一下,原來需要自訂CSS,網路上找的方法跟現在的Blogger不太一樣,就來記錄一下.


  1. 點選版面配置
  2. 點選右邊偏上方面的範本設計工具
  3. 出現Blogger 範本設計工具網頁後,點選左上的進階
  4. 網頁文字那一欄拉到最下面,並點選新增CSS
  5. 貼上下面的Code

    blockquote { border-left: 5px solid; border-color: #d1d1d1; margin-left: 2em; padding-left: 1em; }

  6. 點選套用至網誌
  7. 點選返回Blogger
  8. 完成

另外也Google到了一些特別Blockquote的CSS樣本.


22 Amazing Blockquote

Read More
      edit
Published 12月 05, 2013 by Kevin

Git 安裝與線上免費學習網站

      edit
Published 12月 05, 2013 by Kevin

用Markdown語法在Blogger寫文章

基本上是參考Blogging with Markdown的想法, 只不過是在Windows上的Markdown編輯器MarkdownPad上寫,寫完後才貼上Blogging的編輯器,貼上前,記得要先將Blogging編輯器上的撰寫切換到HTML.當然MarkdowanPad上也是要複製HTML的編碼才能貼上.


MarkdownPad要複製HTML的編碼,複製的方法是在Edit下的Copy Document as HTML.

Read More
      edit
Published 12月 05, 2013 by Kevin

Markdown 學習與windows編輯器

      edit
Published 12月 05, 2013 by Kevin

Ruby on Rails ( RoR ) 的免費線上學習網站

      edit