Windows 8.1 Pro
Visual Studio 2015 Community(非エンタープライズ向け無償版)
https://www.visualstudio.com/vs-2015-product-editions
OpenCV本体と、OpenCvSharpのバージョンを合わせるため、OpenCvSharpのバージョンを確認する。
| $beforeLetter = "D" | |
| $afterLetter = "E" | |
| # ドライブのボリューム番号を取得。 | |
| Write-Output "list volume" | DiskPart | ?{$_ -match ("Volume[ ]{1}(?<volume>\d)[ ]*"+ $beforeLetter)} | Out-Null | |
| $volume = $Matches["volume"] | |
| # ボリュームにドライブ文字を割り当てる。 | |
| Write-Output ("select volume {0}`nassign letter={1}" -f $volume, $afterLetter) | DiskPart | Out-Null |
| $header = @" | |
| プログレスバーサンプル | |
| "@ | |
| Write-Output $header | |
| $loop = $true | |
| while($loop){ |
| $target = "対象のホスト名か、IPアドレス" | |
| $logonUser = (Get-WmiObject Win32_ComputerSystem -ComputerName $target).UserName | |
| # リモートアクセスの資格情報を明示的に指定する場合 | |
| $admin = "ユーザ名" | |
| $pass = "パスワード" | |
| $securePass = ConvertTo-SecureString -String $pass -AsPlainText -Force | |
| $credential = New-Object System.Management.Automation.PSCredential($admin, $securePass) | |
| # コンソールから入力するなら、PromptForCredentialを使った方が楽 |
| # [int] カレントパスのフォルダサイズ | |
| (Get-ChildItem -Recurse -Force | Measure-Object -Sum Length).Sum | |
| # [string, int][] カレントパス配下に存在する各フォルダのサイズ | |
| Get-ChildItem | Select-Object Name,@{name="Size";expression={(Get-ChildItem $_.FullName -Recurse -Force | Measure-Object Length -Sum).Sum}} |
| [void][Reflection.Assembly]::LoadWithPartialName("System.Windows.Forms") | |
| $form = New-Object System.Windows.Forms.Form | |
| $form.StartPosition = [Windows.Forms.FormStartPosition]::CenterScreen | |
| $button = New-Object System.Windows.Forms.Button | |
| $button.Text = "Exit" | |
| $button.Add_Click({ $form.Close() }) # <= これ | |
| $form.Controls.Add($button) |
| ・Redmineソースコード(基本的には最新版) | |
| http://www.redmine.org/projects/redmine/wiki/Download | |
| ・Ruby言語 + Ruby on Rails(実行環境、RailsInstallerはGit同梱) | |
| http://railsinstaller.org/en | |
| ・SQLite(データベース。MySQL入れると管理が面倒なので) | |
| (program filesとかに置いて、PATHに追記する) | |
| http://www.sqlite.org/2014/sqlite-shell-win32-x86-3080600.zip | |
| ・IIS(Webサーバ。Apache入れると管理が面倒なので) | |
| ・IIS Application Request Routing |
Windows 8.1 Pro
Visual Studio 2015 Community(非エンタープライズ向け無償版)
https://www.visualstudio.com/vs-2015-product-editions
OpenCV本体と、OpenCvSharpのバージョンを合わせるため、OpenCvSharpのバージョンを確認する。
| # 16進数文字列で出力 | |
| (100).ToString("X") | |
| # => 64 | |
| # 16進数から10進数文字列に変換 | |
| [Convert]::ToString(0x64, 10) | |
| # => 100 | |
| [Convert]::ToString("0x64", 10) | |
| # => 100 |