免責聲明

Disclaimer (免責聲明)
繼續閱覽代表您接受以上的免責聲明.
To continue reading means you accept the above disclaimer.

2014年5月19日 星期一

windows 8.1 + microsoft account

拖了好一陣子, 還是決定試試 windows 8.1 , 看是否如想像中的 ...
果然 !

我是用hyperV的windows 8 vm (fixed-size vhd) 來試
整個從windows 8 升級到 windows 8.1 過程 要花不少時間 --

下載及安裝超過50分鐘 (cht adsl 10Mbps)

安裝完成需要重新啟動, 之後藍屏白字
(類似 Applying/Configuring/Changing  ... %...的字母, 老眼昏花 沒看仔細 )
也得要40分鐘

重新啟動完成後 碰到的
第一個問題就是remote desktop(rdp) 無法連線 :
因為關掉了 "Find devices and content"
導致network type 變成 public
public network環境讓 firewall 的預設值阻擋 rdp ...

第二個問題 無法登入
因為在升級8.1 時 一時找不著避開microsoft account (windows live account) 的方法
升級完成後, 登入的帳號就與安裝時所輸入的 microsoft account 綁在一起
( tied with microsoft account ) .
原來的本機帳戶( local account ) 似乎消失不見了 ...

第三個問題 IE 三不五時 就當掉 特別是在google.com.tw 輸入中文時,
之前在windows 8 時 還好好的,  原來 windows 8.1 自動把 IE10 也升級到 IE11 ...


[WorkArounds]

1. 將 network type 改為 private
Settings -> change PC Settings ->Network -> connections -> Ethernet -> click to show properties about the Ethernet adapter -> turn on  "Find devices and content"

2.  將與microsoft account的結解開,
 Settings -> change PC Settings ->Accounts -> Your Account -> click on "Disconnect" ...


*** 其實在升級8.1 時可以避開這個結, 當畫面要求sign-in microsoft account 時,
選擇 create new account , 然後在下一個畫面的下方 選擇
"Continue using my existing account" ...


3. 在 IE 的icon 上 right-click 再 right-click , 選擇 Run as administrator
還沒找到更方便的方法 ...
*** note, 2014.06.06, IE11的中文輸入恢復正常了, 應該是Windows 自動更新(auto update) . 在更新過程中, task tray 語言工具列 曾出現"繁體" 與 "Chinese bopomo" 並存的奇怪狀態, 後來消失了 ...










[ref]
http://windows.microsoft.com/en-us/windows-8/update-from-windows-8-tutorial

http://answers.microsoft.com/en-us/ie/forum/ie11-iewindows8_1/internet-explorer-11-on-windows-81-cannot-display/098d2a3c-6c0f-40ed-869f-97c2119c5284





2014年5月15日 星期四

Windows 命令列 + grep + php

[Q]  Windows 命令列 是否有類似 Linux 的 grep ?
* findstr
* 安裝GnuWin32 或者 Cygwin 或者 Mingw

C:\> netstat -n | findstr 3389
C:\> dir | findstr php.ini
C:\> php -i |findstr error_log


[Q]  php cli mode (php 的命令列模式) 如何設定 記錄檔 (log file)?
$ php -i | grep error_log
修改php.ini 中 error_log 的值, 確認該路徑可寫入

$ php -c /etc/php5/cli/php.ini -r " error_log('test 123'); "
$ tail /var/log/php_errors.log


[Q]  How to set error log for PHP CLI?
* chk the error_log location
* make sure php cli is run with enough permission to write to error_log file


//===
php -v
php --ini
php -i
php -h
php -r "echo 'run echo cmd'; "
php -c  myphp.conf //use myphp.conf as php.ini ???
php -c mydir  //look for php.ini under mydir

[ref]
http://stackoverflow.com/questions/1416241/is-there-a-pattern-matching-utility-like-grep-in-windows

http://stackoverflow.com/questions/6387542/php-cli-wont-log-errors