2012年11月29日 星期四

Ubuntu Linux networking example

/etc/network/interfaces 指定IP
iface eth0 inet static
address 192.168.0.124
netmask 255.255.255.0
gateway 192.168.0.254
sudo /etc/init.d/networking restart

2012年11月25日 星期日

幾種 Time Machine能備份的方法

  1. A local Hard Drive Formatted with A Mac File System
  2. A Time Capsule
  3. A AFP Share on a Lion or Snow Leopard
  4. A Linux Server running the newest version of nettalk.

安裝 NetAtalk前先安裝下面元件
yum -y install gcc
yum -y install automake autoconf
yum -y install db4-devel
yum -y install db4
yum -y install cups-devel
yum -y install GSSAPI
yum -y install libgssapi-devel
yum -y install libgssapi
yum -y install  libgssapi-devel
yum -y install krb5-devel
yum -y install krb4-devel
yum -y install pam-devel
yum -y install shadow-devel
yum -y install openssl-devel
yum -y install cracklib-devel
yum -y install cracklib

2012年11月22日 星期四

VMWare 9安裝 OSX 10.8.0 64元版之設定

安裝完 VMWare後,要記得執行 VMWare Unlocker 1.1.0才能順利的安裝且執行起來。

VMWare Unlocker 1.1.0

Virtual Machine Settings Device 部份

1. Processer: 愈多愈好

VM_Process

2. Hard Disk: 選 SCSI 0:1 Hard Disk(SCSI)

VM_HardDisk

3. CD/ROM(SCSI): 選 SCSI 0:10 CD/DVD(SCSI)

VM_CDROM

4. Network Adapter: 先選 NAT, 之後可以改。

VM_NetWork

5. USB Controller: 不動

VM_USB

6. Disaply: 選 Accelerate 3D graphics

VM_Display

Options部份

7. General: Enhanced virtual keyboard: 選 Use if available (recommended)

VM_General

8. Advanced: Disable memory page trimming打勾

VM_Advanced

安裝完後的畫面

VM_OSX

雖然是安裝成功了,還是有許多問題, 尋問孤狗大神,Mac OS是硬體支援度不像Windows,它只支援它所賣的硬碟規格
  • OSX VM的好處是我在PC安裝的VM可以直接在NB上執行
  • OSX iTune可以使用, 並可以升級到 Moutain Lion 10.8.2.
  • OSX VM上可以上網
  • OSX 沒有聲音
  • OSX 無法看影片
有機會再找台有nVidia獨顯的機器試試看!

Canon 580 EX II vs Canon 600EX-RT

http://www.michaelthemaven.com/?postID=2329&canon-speedlite-600-ex-rt-vs-580exii-is-it-worth-the-extra-cost

 

優點:
- 600幾乎不會錯過的閃燈,而當它發生時,通常是電池耗盡的問題。
- 點陣屏更令眼睛舒適也更容易理解。
- 一旦你掌握的控制,速度更快和更容易瀏覽。
- 600在功能上與580EXii是非常,非常相似。理智的選擇,他們幾乎是相同的。
- 600專用的無線按鈕,非常快且很容易找到使用的竅門。
- 是的,我曾親自升級,但我不相信花額外的錢是值得的。在大多數情況下,580工作的很好。
- 佳能改變ST-E3電池。 原本ST-E2的電池是昂貴的(每個美金20元),多燈觸發器ST-E3-RT也比ST-E2體積更小,重量更輕。

缺點:
- 正如在視頻中,價格是最大的缺點。
- 600是一個很大的比580的大,越來越重
- 至少可以說缺乏ST-E3的光控和自動對焦輔助。
- 在手動模式下我要推 -/+按鈕,即使有快捷方式啟動的自定義功能13。

Canon 600EX-RT 簡單開箱

580ex_600ex

600 GN 60 580 GN58 430 GN43
What億華數位☆最新 Canon 600EX-RT 閃燈 ( 600 EX RT ) ~平輸~現貨2 : 16,000元

❤長虹數位❤ CANON 600 EX-RT 600EX-RT 600EX內置2.4Ghz無線電傳送閃光控制的閃光燈 【平行輸入 未稅價】, NT$ 15,500元

數位達人【原裝進口】 Canon Speedlite 600EX-RT版 600 EX-RT 600EX RT 無線電波, NT$15,500元

數位達人 台北市中山區松江路1-1號
檢視較大的地圖
數位達人 光華店

600 可以到200mm
580 just 105mm

Built-in AF-assist beam compatible with Canon's new 61-Point High Density Reticular AF
對焦比580強

紅外線輔助對焦很重要, 550D用紅外線輔助對焦會便快, 本來對比不明顯的對不到焦都會對的到,
如果是白牆是對不到焦的, 你550D用紅外線輔助對焦對的到.



2012年11月21日 星期三

可以用Dropbox建立網站

 

site44 四步驟

  1. Sign: 用 Dropbox的帳號登入
  2. Create your site: 例 hello.site44.com
  3. Check that out!: 檢查一下 dropbox目錄應該會出現一個共享目錄 hello.site.com
  4. Edit your site: 這時你就可以放上網頁(ex:index.html)了, 用法如 http://hello.site.com/index.html

site44-4steps

網頁呈現程式碼

SyntaxHighlighter 3.0.83

簡單的說只要在 .html檔的 內加入下面的 jscript即可 呈現下面的效果

<head>
 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
 <title>SyntaxHighlighter 3.0.83</title>
    <!-- 設定載入 shCore.css 與 shThemeDefault.css -->
 <link type="text/css" rel="stylesheet" href="http://alexgorbatchev.com/pub/sh/current/styles/shCoreDefault.css"/>
 <link type="text/css" rel="stylesheet" href="http://alexgorbatchev.com/pub/sh/current/styles/shThemeDefault.css"/>
<!-- 設定需要載入的核心檔案 shCore.js -->
<script type="text/javascript" src="https://sites.google.com/site/cpchou0110/js/syntaxhighlighter_3-0-83/scripts/shCore.js"></script>
    <!-- 設定需要載入的程式語言檔案 -->
    <script src='http://alexgorbatchev.com/pub/sh/current/scripts/shAutoloader.js' type='text/javascript'></script>               
    <script src='http://alexgorbatchev.com/pub/sh/current/scripts/shBrushAppleScript.js' type='text/javascript'></script>         
    <script src='http://alexgorbatchev.com/pub/sh/current/scripts/shBrushPlain.js' type='text/javascript'></script>               
    <script src='http://alexgorbatchev.com/pub/sh/current/scripts/shBrushBash.js' type='text/javascript'></script>                
    <script src='http://alexgorbatchev.com/pub/sh/current/scripts/shBrushColdFusion.js' type='text/javascript'></script>          
    <script src='http://alexgorbatchev.com/pub/sh/current/scripts/shBrushCpp.js' type='text/javascript'></script>                 
    <script src='http://alexgorbatchev.com/pub/sh/current/scripts/shBrushCSharp.js' type='text/javascript'></script>              
    <script src='http://alexgorbatchev.com/pub/sh/current/scripts/shBrushCss.js' type='text/javascript'></script>                 
    <script src='http://alexgorbatchev.com/pub/sh/current/scripts/shBrushDelphi.js' type='text/javascript'></script>              
    <script src='http://alexgorbatchev.com/pub/sh/current/scripts/shBrushDiff.js' type='text/javascript'></script>                
    <script src='http://alexgorbatchev.com/pub/sh/current/scripts/shBrushErlang.js' type='text/javascript'></script>              
    <script src='http://alexgorbatchev.com/pub/sh/current/scripts/shBrushGroovy.js' type='text/javascript'></script>              
    <script src='http://alexgorbatchev.com/pub/sh/current/scripts/shBrushJava.js' type='text/javascript'></script>                
    <script src='http://alexgorbatchev.com/pub/sh/current/scripts/shBrushJavaFX.js' type='text/javascript'></script>              
    <script src='http://alexgorbatchev.com/pub/sh/current/scripts/shBrushJScript.js' type='text/javascript'></script>             
    <script src='http://alexgorbatchev.com/pub/sh/current/scripts/shBrushPerl.js' type='text/javascript'></script>                
    <script src='http://alexgorbatchev.com/pub/sh/current/scripts/shBrushPhp.js' type='text/javascript'></script>                 
    <script src='http://alexgorbatchev.com/pub/sh/current/scripts/shBrushPlain.js' type='text/javascript'></script>               
    <script src='http://alexgorbatchev.com/pub/sh/current/scripts/shBrushPowerShell.js' type='text/javascript'></script>          
    <script src='http://alexgorbatchev.com/pub/sh/current/scripts/shBrushPython..js' type='text/javascript'></script>             
    <script src='http://alexgorbatchev.com/pub/sh/current/scripts/shBrushRuby.js' type='text/javascript'></script>                
    <script src='http://alexgorbatchev.com/pub/sh/current/scripts/shBrushSass.js' type='text/javascript'></script>                
    <script src='http://alexgorbatchev.com/pub/sh/current/scripts/shBrushScala.js' type='text/javascript'></script>               
    <script src='http://alexgorbatchev.com/pub/sh/current/scripts/shBrushSql.js' type='text/javascript'></script>                 
    <script src='http://alexgorbatchev.com/pub/sh/current/scripts/shBrushVb.js' type='text/javascript'></script>                  
    <script src='http://alexgorbatchev.com/pub/sh/current/scripts/shBrushXml.js' type='text/javascript'></script>                 
    <script src='http://alexgorbatchev.com/pub/sh/current/scripts/shLegacy.js' type='text/javascript'></script>                   

 <!-- 設定啟用 highlighter -->
 <script type="text/javascript">
  SyntaxHighlighter.config.bloggerMode = true; 
  SyntaxHighlighter.all();
    </script>
</head>
另外,我將 SyntaxHighlighter 3.0.83的 jscript放在Google site, 以下是我常要匯入的語言
<head>
 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
 <title>SyntaxHighlighter 3.0.83</title>
    <!-- 設定載入 shCore.css 與 shThemeDefault.css -->
 <link type="text/css" rel="stylesheet" href="https://sites.google.com/site/cpchou0110/js/syntaxhighlighter_3-0-83/styles/shCoreDefault.css"/>
 <link type="text/css" rel="stylesheet" href="https://sites.google.com/site/cpchou0110/js/syntaxhighlighter_3-0-83/styles/shThemeDefault.css"/>
<!-- 設定需要載入的核心檔案 shCore.js -->
<script type="text/javascript" src="https://sites.google.com/site/cpchou0110/js/syntaxhighlighter_3-0-83/scripts/shCore.js"></script>
    <!-- 設定需要載入的程式語言檔案 -->
    <script src='https://sites.google.com/site/cpchou0110/js/syntaxhighlighter_3-0-83/scripts/shAutoloader.js' type='text/javascript'></script>               
    <script src='https://sites.google.com/site/cpchou0110/js/syntaxhighlighter_3-0-83/scripts/shBrushPlain.js' type='text/javascript'></script>               
    <script src='https://sites.google.com/site/cpchou0110/js/syntaxhighlighter_3-0-83/scripts/shBrushCSharp.js' type='text/javascript'></script>              
    <script src='https://sites.google.com/site/cpchou0110/js/syntaxhighlighter_3-0-83/scripts/shBrushCss.js' type='text/javascript'></script>                 
    <script src='https://sites.google.com/site/cpchou0110/js/syntaxhighlighter_3-0-83/scripts/shBrushDiff.js' type='text/javascript'></script>                
    <script src='https://sites.google.com/site/cpchou0110/js/syntaxhighlighter_3-0-83/scripts/shBrushJava.js' type='text/javascript'></script>                
    <script src='https://sites.google.com/site/cpchou0110/js/syntaxhighlighter_3-0-83/scripts/shBrushJavaFX.js' type='text/javascript'></script>              
    <script src='https://sites.google.com/site/cpchou0110/js/syntaxhighlighter_3-0-83/scripts/shBrushJScript.js' type='text/javascript'></script>             
    <script src='https://sites.google.com/site/cpchou0110/js/syntaxhighlighter_3-0-83/scripts/shBrushPerl.js' type='text/javascript'></script>                
    <script src='https://sites.google.com/site/cpchou0110/js/syntaxhighlighter_3-0-83/scripts/shBrushPhp.js' type='text/javascript'></script>                 
    <script src='https://sites.google.com/site/cpchou0110/js/syntaxhighlighter_3-0-83/scripts/shBrushPlain.js' type='text/javascript'></script>               
    <script src='https://sites.google.com/site/cpchou0110/js/syntaxhighlighter_3-0-83/scripts/shBrushPowerShell.js' type='text/javascript'></script>          
    <script src='https://sites.google.com/site/cpchou0110/js/syntaxhighlighter_3-0-83/scripts/shBrushSql.js' type='text/javascript'></script>                 
    <script src='https://sites.google.com/site/cpchou0110/js/syntaxhighlighter_3-0-83/scripts/shBrushXml.js' type='text/javascript'></script>                 
 <!-- 設定啟用 highlighter -->
 <script type="text/javascript">
  SyntaxHighlighter.config.bloggerMode = true; 
  SyntaxHighlighter.all();
    </script>
</head>  
  

 

今天Oracle 專家介紹 Engineered System-Exalogic Elastic Cloud相關整理

Exalogic Elastic Cloud的功能是有軟體+硬體的服務。
網路的架構也是一種標準
(Fact: 10GBPS Ethernet has a MTU of 1.5K – while Infiniband uses a 64K MTU for Inifiniband over IP protocol and 32K MTU or more for Socket Direct Protocol).
WinSock API也有支援

Hyper-V PowerShell Create/Start/Suspend/Stop VM

記得要有足夠的權限才能執行

Create VM

 

New-VM -Name "WinServer2008R2" -MemoryStartupBytes 2GB -BootDevice "CD" -NewVHDPath "d:\vm\WinServer2008R2.vhdx" -NewVHDSize (2048 * 1000 * 10) -SwitchName "虛擬交換器" 

Start/Suspend/Stop VM

runas /user:administrator "powershell Suspend-VM -Name ""Win7x86"""  
runas /user:administrator "powershell Start-VM -Name ""Win7x86""" 
runas /user:administrator "powershell Stop-VM -Name ""Win7x86""" 

2012年11月20日 星期二

有效控制血糖 從飲食調整做起

有效控制血糖 從飲食調整做起

【大紀元記者李郁玫臺北報導】罹患糖尿病為了有效控制血糖,需要飲食限制嗎?營養師說,只要掌控好份量,血糖控制在標準範圍內,選擇均衡營養的健康食材,沒有食物是不能吃的。

臺北醫學大學附設醫院營養師鐘子雯表示,糖尿病初期有4種典型症狀,3多1少-—喝多、尿多、吃多、體重減少。鐘子雯提醒,對血糖影響較大的食物,有澱粉類、水果類、奶類與甜食類,因此吃這4類食物要有所控制。

此外,糖尿病患要特別注意自己的血糖數值,血糖標準:空腹血糖(早晨飯前)80~130㎎ / dl,飯後2小時血糖<180㎎ / dl,糖化血色素(A1C)7%以下。長期血糖過高會導致多種併發症,嚴重者亦有截肢的可能。

如何有效控制血糖?除了飲食要做好控制之外,持續運動、維持理想體重都是控制血糖的必要條件。@◇

糖尿病患 飲食原則

1. 主食類:挑全榖或全麥的食物為主食,男性每餐1碗,女性每餐8分滿。

2. 蔬菜類:每餐總量2~3種,每種半碗。

3. 豆魚肉蛋類:多選擇黃豆製品與白肉,蛋黃1星期最多3個,每餐總量約4根手指的寬度。

4. 水果類:每天吃2次水果,1次約拳頭大小的份量,少喝果汁。

5. 奶類:選擇低脂或脫脂奶飲用,每天1.5~2杯,1杯250㏄。

6. 油脂類:炒菜可用芥花油、葵花油、沙拉油,涼拌菜可用橄欖油、苦茶油、麻油。

7. 堅果類:每天份量1~2湯匙,核桃、杏仁豆、腰果、花生等均可食用。

控制血糖 檢視飲食狀況

若依照糖尿病飲食原則後,仍無法有效控制血糖,必須檢視自己是否有下述問題並諮詢營養師予以協助改善。
□ 吃太油
□ 配菜吃太少
□ 水果吃太多
□ 牛奶當水喝
□ 是否有定食定量
□ 主食飯麵吃太多
□ 常在外面吃飯或應酬
□ 點心的份量與選擇不恰當

Test

Hello SyntaxHighlighter

function helloSyntaxHighlighter()
{
 return "hi!";
}

2012年11月19日 星期一

行車記錄器 VOSONIC GV6330的車充電源線解決方案



原本之前購買的行車記錄器 VOSONIC GV6330的車充電源線,在車上使用不當而損壞,
然後去光華買條 (USB接行車記錄器)轉接器+ Power Adater(BELKINUSB,不過最大只有1A輸出),造成 GV6330常常不停的要format sd,後來去車麗屋找了一個不知名品牌的Power Adapter,有一個USB輸出可達 2A,一試之後就正常了。不過GV6330真的是蠻耗電的。


2A PowerAdapterBELKIN
RoHS Dual USB BELKIN