2010/07/23
查詢 PowerShell 版本
PS C:\> Get-Host
Name : ConsoleHost
Version : 2.0
InstanceId : 9c0bcffb-f780-402f-b4ab-696e29a34f67
UI : System.Management.Automation.Internal.Host.InternalHostUserI
nterface
CurrentCulture : zh-TW
CurrentUICulture : zh-TW
PrivateData : Microsoft.PowerShell.ConsoleHost+ConsoleColorProxy
IsRunspacePushed : False
Runspace : System.Management.Automation.Runspaces.LocalRunspace
PS C:\>
Name : ConsoleHost
Version : 2.0
InstanceId : 9c0bcffb-f780-402f-b4ab-696e29a34f67
UI : System.Management.Automation.Internal.Host.InternalHostUserI
nterface
CurrentCulture : zh-TW
CurrentUICulture : zh-TW
PrivateData : Microsoft.PowerShell.ConsoleHost+ConsoleColorProxy
IsRunspacePushed : False
Runspace : System.Management.Automation.Runspaces.LocalRunspace
PS C:\>
2010/07/07
PowerShell Array
宣告:
Add Array:
Get Array:
Array Contains & Notcontains:
[array]$tmpary= @()
Add Array:
$tmpary+= "a"
$tmpary+= "b"
$tmpary+= "c"
Get Array:
if ($ary.Count -gt 0)
{
foreach ($element in $ary)
{
echo $element
}
}
Array Contains & Notcontains:
if ($tempary -contains "a")
{
echo "a exists."
}
if ($tempary -notcontains "d")
{
echo "d not exists."
}
2010/06/25
Linux Topic
ctrl-alt-breakspace : go to command mode
init 3 : go to command mode
system-config-display --reconfig : 調整解析度
runlevel : 查看run level
echo "password" | passwd student -stdim : 修改student這個使用者的密碼
history : 找出執行過的command
ifconfig eth0 : view network
service network restart : 重啟網路
ctrl-alt [f1-f6] : swith command mode
ctrl-alt [f7] : swith to x windows
init 3 : go to command mode
system-config-display --reconfig : 調整解析度
runlevel : 查看run level
echo "password" | passwd student -stdim : 修改student這個使用者的密碼
history : 找出執行過的command
ifconfig eth0 : view network
service network restart : 重啟網路
ctrl-alt [f1-f6] : swith command mode
ctrl-alt [f7] : swith to x windows
2010/06/03
在那裡可以找到ObjectDumper?
http://blogs.msdn.com/b/ericwhite/archive/2008/08/14/object-dumper-an-invaluable-tool-for-writing-code-in-the-functional-programming-style.aspx
C:\Program Files\Microsoft Visual Studio 9.0\Samples\1033\CSharpSamples.zip
把CSharpSamples.zip解壓縮後就可以看到ObjectDumper的專案
C:\Program Files\Microsoft Visual Studio 9.0\Samples\1033\CSharpSamples.zip
把CSharpSamples.zip解壓縮後就可以看到ObjectDumper的專案
2010/05/13
訂閱:
文章 (Atom)
-
一個糖果有一個糖果紙 一個糖果1元 現在商店在作促銷 3個糖果紙可以換1個糖果 請問 15元最多可以吃幾個糖果?
-
簡單整理一下今天看到的這篇文章, 未來可以用指標來改善團隊狀況。 ----- 軟體工程的重要的指標 DORA 指標 (DevOps Research Assessment) 1. 部署頻率: 產品多快發佈出去 2. 投入到交貨的時間 (Lead-Time For Ch...
-
內容取自 Producthunt =============================== "What's a tool that changed your life?" - us to freelancers on Twitt...