2012年10月23日 星期二

PowerGUI (免費的PowerShell GUI 開發工具)

http://powergui.org

ref:
The Will Will Web | 介紹好用工具:PowerGUI 與 PowerShell v2 Snippets

Toad Data Modeler (Data Modeling and Database Design)

http://www.quest.com/toad-data-modeler/

免費版最多儲存25個的實例
不支援反向工程和資料流圖形(Data Flow Diagrams)

2.x免費版只支援SQL Server 2005的資料類型(不支援2008/2012新增的資料類型)

2012年10月14日 星期日

w32tm /tz (查看目前系統時區)


PS C:\Users\Rex> w32tm /tz
時區: 目前:TIME_ZONE_ID_UNKNOWN Bias: -480min (UTC=LocalTime+Bias)
  [Standard Name:"台北標準時間" Bias:0min Date:(未指定)]
  [Daylight Name:"台北日光節約時間" Bias:-60min Date:(未指定)]

get-command (查看可用命令)

get-command -syntax =>包含參數
get-command a* =>所有name為a開頭的



PS C:\Users\Rex> get-command Get-Proce*

CommandType     Name                                                Definition
-----------     ----                                                ----------
Cmdlet          Get-Process                                         Get-Process [[-Name] ] [-ComputerName ...


PS C:\Users\Rex> get-command Get-Proce* -syntax
Get-Process [[-Name] ] [-ComputerName ] [-Module] [-FileVersionInfo] [-Verbose] [-Debug] [-ErrorAct
ion ] [-WarningAction ] [-ErrorVariable ] [-WarningVariable ] [-Out
Variable ] [-OutBuffer ]
Get-Process -Id [-ComputerName ] [-Module] [-FileVersionInfo] [-Verbose] [-Debug] [-ErrorAction tionPreference>] [-WarningAction ] [-ErrorVariable ] [-WarningVariable ] [-OutVariabl
e ] [-OutBuffer ]
Get-Process [-ComputerName ] [-Module] [-FileVersionInfo] -InputObject [-Verbose] [-Debug] [-Erro
rAction ] [-WarningAction ] [-ErrorVariable ] [-WarningVariable ] [
-OutVariable ] [-OutBuffer ]...



Get-Process (查看執行緒)

http://technet.microsoft.com/zh-tw/library/dd347630.aspx

輸出到檔案:
Get-Process > D:\process.txt

PS C:\Users\Rex> get-process -id 0

Handles  NPM(K)    PM(K)      WS(K) VM(M)   CPU(s)     Id ProcessName
-------  ------    -----      ----- -----   ------     -- -----------
      0       0        0         24     0               0 Idle


PS C:\Users\Rex> get-process -name firefox*

Handles  NPM(K)    PM(K)      WS(K) VM(M)   CPU(s)     Id ProcessName
-------  ------    -----      ----- -----   ------     -- -----------
    297      43    72088     113252   401     1.70   6828 firefox

註:會和Windows工作管理員(taskmgr)看到的PID一致
停止: stop-process -id 8888
         stop-process -name firefox
         taskkill /IM mytest.exe /F

Ubuntu 12.04安裝ownCloud 4

rex@ubuntu:~$ wget http://download.opensuse.org/repositories/isv:ownCloud:ownCloud2012/xUbuntu_12.04/Release.key

rex@ubuntu:~$ sudo apt-key add Release.key

rex@ubuntu:~$ echo 'deb http://download.opensuse.org/repositories/isv:ownCloud:ownCloud2012/xUbuntu_12.04//'\| sudo tee /etc/apt/sources.list.d/owncloud.list

rex@ubuntu:~$ sudo apt-get update

rex@ubuntu:~$ sudo apt-get install ownCloud

 =======

rex@ubuntu:~$ sudo vi /etc/php5/apache2/php.ini

rex@ubuntu:~$ sudo service apache2 restart

修改php.ini的memory_limit、post_max_size和upload_max_filesize
存檔後重啟Apache
ownCloud登入頁面 http://IP/owncloud/

 =======

設定完成後,使用者可登入http://IP/owncloud/ 上傳檔案
可以使用WebDAV client軟體透過以下url連到ownCloud
(該url也登入ownCloud在左下角的Settings->Personal找到)
http://IP/owncloud/files/webdav.php

Windows WebDAV Client軟體:
http://www.netdrive.net

各作業系統WebDAV連線設定:
http://owncloud.org/support/webdav/

 =======
Ubuntu 正體中文站:
http://www.ubuntu-tw.org/

ownCloud官網:
http://owncloud.org/

wiki關於WebDAV說明:
http://en.wikipedia.org/wiki/WebDAV



2012年10月13日 星期六

使用dcpromo開啟網域服務精靈

dcprpmo /adv

註:adv表示進階模式安裝,未加此參數也可在GUI勾選