Lazy Diary @ Hatena Blog

PowerShell / Java / miscellaneous things about software development, Tips & Gochas. CC BY-SA 4.0/Apache License 2.0

Entries from 2018-08-01 to 1 month

Test Page for Parameters for Opening PDF Files

<embed> tag (1) : page=pagenum (2) : zoom=scale (3) : zoom=scale,left,top (4) : view=Fit (5) : view=FitH (6) : view=FitH,top (7) : view=FitV (8) : view=FitV,left (9) : view=FitB (10) : view=FitBH (11) : view=FitBH,top (12) : view=FitBV (13) : vie</embed>…

How to change locale of error messages of PowerShell interpreter

Problem You can set locale of the current thread in PowerShell like below: [System.Threading.Thread]::CurrentThread.CurrentCulture = [System.Globalization.CultureInfo]("en-US") But error messages of PowerShell interpreter shows in current …

How to use additional character encodings in PowerShell Core (Linux) and Desktop (Windows)

Problem You have to call [System.Text.Encoding]::RegisterProvider([System.Text.CodePagesEncodingProvider]::Instance) when you want to use additional character encodings in PowerShell Core (Linux). On the other hand, calling [System.Text.En…

暑中見舞いの宿題

(A) 夏休みに「先生に書中見舞いのハガキを出すこと」という宿題がある地域。ハガキはかもめーるを使用する。親から「早く書かないと残暑見舞いになっちゃうよ!」などと急かされる。 (B) 書中見舞いの宿題が存在しない地域。書中見舞いを書かないので、かも…

家庭用Wi-Fiルータで同一サブネット上の別マシンに接続できない

最近の(といってもここ10年くらいの)家庭用Wi-Fiルータには「プライバシーセパレータ」という機能がある。この機能では、ルータ上のLANポート同士の通信を禁止できる。この機能を有効にしておけば、他人に自宅のアクセスポイントへアクセスを許可する際に…

子の名に使える非漢字 JIS X 0213:2004版

法務省 戸籍統一文字情報のページから、自作のPowerShellコマンドレットGet-KosekiMojiを使って、JIS X 0213:2004(いわゆるJIS2004、JIS第3水準・第4水準文字を含む規格)の非漢字について、法務省の定める「子の名に使える文字」かを調査した。まず単純に…