2011年7月28日 星期四

Google+ & Facebook 同步發表 (sync post)

Google+的確是十分好用,但可惜的是暫尚未普及,所以暫時還不能放棄facebook。
今期 e-zone (676期) 送了一本Google+的小册子,其中有一個不錯用的Chrome extension ,可以將google+的帖子同時分享至facebook (or twitter),所以在這裡轉貼一下。
Google+ & Facebook 同步發表拓展
https://chrome.google.com/webstore/detail/aamklbolfkledofgpbdllkangemkfdnb?hl=zh-TW

安裝方法:
  1. 進入這個extension的主頁,在右下角選安裝
    image
  2. 安裝程序簡單,不用數秒就已完成,然後你會發現Chrome 和Google+的右上角分別多了一個icon。
    image
  3. 假如安裝時,你已經登入了facebook,你按ctrl + F5 重新整理你的頁面後,你會發現在分享信息是多了facebook 的選項。
    image
  4. 只要你選了facebook,那你發佈到Google+ 的信息就會同時發佈到facebook。
    image
  5. 設定方面你可以在chrome 按一下右上角的image,就可以設定Google+ 和 facebook 賬戶的連結。
    image
Reference: e-zone (676期) - Google+ 新手速食天書

Printing multiple word documents with duplex settings in windows XP

Here is the steps:

  1. Open any one of the word document, the go to File –> Print.
  2. Then set the printer properties you want, like print on both sides, pages per sheet, etc.
    image
  3. Print the first document as normal.
  4. Then keep the first document open, don’t close it. Right click on the others file you want to print.
    On the menu, click on Print.
    image
  5. A new word window will pop up and disappear immediatly. The file will be printed with the printer setting of the 1st document.
  6. Repeat step 4 for all other file you want to print. In this way, you don’t need to open the word document one by one and select the print function.

Enjoy!

2011年7月14日 星期四

Use IE Tab on Chrome

因為毛毛公司要用到Outlook Web,自己維護的系統也要用到Internet Component Download,所以迫不得已要用IE。

要同時用IE和chrome很煩人,而且近期發現一個怪現象,就是我晚上log off 了windows 後,第二朝回來log in總總發現IE會吃掉我大部分系統資源,每天早上都要強迫我使出「ctrl + alt + del」大法……

這天早上「的起心肝」找找有沒有在chrome上用IE engine的方法,發現了一個很好用的extension:Chrome IE Tab Multi

https://chrome.google.com/webstore/detail/fnfnbeppfinmnjnjhedifcfllpcfgeea?hl=zh-TW

安裝後chrome 右上角會多了一個 IE 的icon:

image

每次你想在chrome開IE 的網頁,只要按一下這個icon,新開的tab 就會變成IE 的tab:

image

測試了Outlook web 和商台的網上直播都沒有問題,暫時我想我可以將IE 放在一旁了!

在XP 設定與天文台的Internet Time同步 (command line)

這兩天發現辦公室的電腦時間DELAY 了後多,經調查後懷疑公司DOMAIN SERVER 的時間有誤,所以希望把電腦時鐘和天文台的標準時間同步,一般電腦的設定如下:
http://www.hko.gov.hk/nts/Xp-syncc.htm
可是問題來了,由於公司電腦已經加入了domain,所以沒有「網際網絡時間」的選項……
幸好有Google 大神,原來可以透過command line 的方法來設定和天文台的時間同步,方法如下:

image

  1. net time /setsntp:stdtime.gov.hk
  2. net stop w32time
  3. net start w32time
  4. 等5-10分鐘左右,你會發現你的時間會自動和天文台同步了

Internet Component Download - INF File Architecture

Introduction

An information file (.inf) provide the installation instruction for IE to setup and register your software distribution. It consists of any number of name section. And each section can have multiple items.

Each section will have its own predefined purpose, such as updating the registry, executing a command, copying some file, etc.

Main Sections of an INF File in Internet Component Download:

  • [Add.Code]
    This section lists all the files to be installed, including optional files
    [Add.Code]
    filename1=section-name1
    filename2=section-name2

  • [Setup Hook]
    This section lists all hook that will be executed before setting up files in [Add.Code] section.
    [Setup Hooks]
    hookname1=section-name4
    hookname2=section-name5
    [hookname1]
    run=extrac32.exe /e /a /y /l c:\MyApplication\client MyApp.cab

  • [Version]
    For compatibility, the following lines must be added if we use hooks
    [Version]
    Signature="$CHICAGO$"
    AdvancedINF=2.0

  • [DefaultInstall]
    Installation section that is executed by default. Contains pointers to other sections specifying files to copy and delete, registry updates, .ini file updates, and so on. (for full list of pointer and the systax of this section please refer to here)
    In this post we will just talk about AddReg. AddReg pointer point to a section for adding subkeys or value names to the registory, optionally setting the value.

    [DefaultInstall]
    AddReg=AddRegSection
    [AddRegSection]
    HKLM,Software\MyApp,ProgramName,,"My Application"
    HKLM,Software\MyApp,"Program Location",,"%25%\MyApp.exe"

  • [Strings]
    Defines one or more strings keys. The Installer expands the strings key to the given string and uses it for further processing. You must enclose a strings key in percent signs (%).

    [String]
    String0=”MyApplication”
    String1=”Read me”


    Reference:
    Setup Information File (.inf) Definition
    About INF File Architecture

    2011年7月11日 星期一

    Value at Risk (VaR) – study notes 1

    Value at risk (VaR) is a technique used to estimate the probability of portfolio losses based on the statistical analysis of historical price trends and volatilities. It is commonly used  banks and security firms.

    VaR contains three components:

    1. a relatively high level of confidence (typically either 95% or 99%)
    2. a time period (a day, a month or a year) and
    3. an estimate of investment loss (expressed either in dollar or percentage terms)

    A common statement used in VaR: What is the most I can - with a 95% or 99% level of confidence -  expect to lose in dollars over the next month?

    There are three common methods of calculating VaR:

    1. The historical method
    2. The variance-covariance method
    3. The Monte Carlo simulation

    The following is an sample implementation of a single stock VaR (download it and run the macro in your local PC).

    https://docs.google.com/leaf?id=0B3dIVDUl8UFRNzMyMGNkMjktNGYzYi00OGU1LWFkOWMtZWE5YTJjYjU3NzVh&hl=zh_TW

    I would not go into the detail of these three methods, but if you want to know more I suggest you may read John C. Hull reading. Or there is some good online tutorial on finance in the following youtube channel:
    http://www.youtube.com/user/bionicturtledotcom

    Reference: http://www.mathfinance.cn/value-at-risk/

    2011年7月8日 星期五

    Google+Facebook

    剛獲邀請試用Google+,感覺還好,但暫時用的朋友不多,我想還是要觀察一段時間。

    但以下分享的是在Google+上用Facebook的方法,可以減少兩邊走的情況。

    http://crossrider.com/install/519-google-facebook

    LG Optimus Black (P970) recovery 大法

    早一兩天女友的Optimus Black 死了,死因是root 機後delete 多了重要的package,到致以下兩個情況:
    1. 開機後,出現LG logo 後十分鐘都不能正常boot 機
    2. boot 機後,只出現locked screen,你解lock 後出現空白畫面。
    因為小弟是iFan boy,所以不懂得如何復原,所以用了最原始的方法:Full recovery。以下是上網找到的步驟,小弟亦親身驗證了它是work 的。
    你需要以下的東西去進行recovery:
    a) PC with Internet
    b) 你電話的 IMEI 碼 (我的在機內入電池的位置,或打開電話撥*#06#查詢)
    c) LGmobile update (B2CAppSetup.exe)
    http://www.lg.com/hk/support/mc-support/mobile-phone-support.jsp
    Recovery 的步驟:
    1. 下載並安裝c
    2. 打開LGmobile update
    3. 如果你未裝電話的usb driver,到 Options & Help ->  Country & Language
      image
    4. 在Country 選擇香港
      image 
    5. 然後Click Install USB Driver
      image
    6. Double click “LGP970”,然後等待安裝完成。
      image
      image 
    7. 之後幾步是重點(對不起我沒有cap 圖,因為做這個動作時我沒有準備這篇blog),關掉你的電話,然後拆下電池。
    8. 按著Vol + 並把電話駁到電腦的usb,不要放手,直至window 告訴你它已經安裝好driver (右下角的氣泡提示)。
    9. Run LGMobile update(B2CAppSetup) -> Customer support –> Recovery
    10. 然後在彈出來的對話框輸入你電話的IMEI,然後按確定。
    11. 最後recovery 程式就會開始,靜靜的等待它完成吧。
    Reference: http://forum.xda-developers.com/showthread.php?t=1111771&page=5