Skip to content

Instantly share code, notes, and snippets.

View devlights's full-sized avatar
🤧
hay fever....

devlights devlights

🤧
hay fever....
View GitHub Profile
@devlights
devlights / visualstudio2017_install_blend_sdk.md
Last active June 26, 2018 09:38
[visualstudio2017][wpf] VS2017でsystem.windows.interactivity.dllをインストールする

以下のページの情報が有効だった。感謝。

Visual Studio 2017 - What happened to Expression interactions?

Use the Visual Studio 2017 installer to install "Blend for Visual Studio SDK for .NET", which you can find on the "Individual components" page, under the "SDKs, libraries, and frameworks" heading.

まとめると以下。

  • VS2017から Blend SDK のインストールは、 インストーラーの個別のコンポーネント タブの方にある
  • デフォルトでチェックONとなっていない
@devlights
devlights / japanese_keyboard_layout_with_remote_desktop_on_mac.md
Created June 26, 2018 08:01
[mac][azure][vm] Microsoft Azure VMのWindowsで日本語キーボードレイアウトを反映してリモートデスクトップする

以下の情報がとても役にたった。感謝!

Mac からのRDP 接続で日本語キーボードを設定する

以下、自分がうまくいった方法

  1. Microsoft Azure で Windows 10 のVMを作成
  2. 接続して日本語環境の設定を一通り行う。(言語設定や時刻設定など)
  3. 一旦ログオフしておく (もしくはAzureのポータルからVMごと再起動) 4. Parallels Client をダウンロードしてインストール
@devlights
devlights / python_source_build.md
Created June 19, 2018 05:17
[python] ソースからビルドするやり方 (ubuntu linux)

環境を最新に

$ sudo apt -y update
$ sudo apt -y upgrade

ビルドに必要なパッケージをインストール

@devlights
devlights / pip_memo.md
Created June 19, 2018 05:07
[python] pip メモ

自分の環境用にパッケージをインストール

デフォルトでは グローバルな環境 にインストールされる。

自分用にインストールする場合は

$ pip install --user lxml
@devlights
devlights / testtool_allpairs_generate_james_bach.md
Last active June 12, 2018 01:58
[テスト] オールペア法を使ってテストケースを自動生成してくれるツール (all-pairs法, pairwise法, james bach)

テストケースを自動生成してくれるツール

以下のページからダウンロードできる。

Test Tools

  • 中身は perl script となっている。
  • windows用に exe ファイルが付いている

使い方

@devlights
devlights / git_branch_confirm_upstream_settings.md
Created June 6, 2018 08:35
[git] ブランチに上流ブランチが設定されているかどうかを確認するコマンド (git, branch, upstream, -vv)

上流ブランチが設定されているかどうかを確認するコマンド

$ git branch -vv
@devlights
devlights / zmq_python_rep_example.py
Created May 21, 2018 08:30
[python][zeromq] REP-REQのサンプル (REPがサーバ、REQがクライアント)
import zmq
def main():
ctx = zmq.Context()
socket = ctx.socket(zmq.REP)
socket.bind('tcp://*:5560') #: https://stackoverflow.com/questions/6024003/why-doesnt-zeromq-work-on-localhost
while True:
m = socket.recv()
@devlights
devlights / ciso8601_example.py
Last active May 18, 2018 04:10
[python] 最速日付解析ライブラリ ciso8601 のサンプル
"""
日付解析ライブラリ:ciso8601のサンプル
最速らしいので試してみた。
"""
import argparse
import time
from datetime import datetime, timedelta
import ciso8601
@devlights
devlights / recursive_relog.py
Created May 17, 2018 03:54
[python][windows] relog コマンドを 再帰的に実行して blg ファイルを csv に変換 (パフォーマンスカウンタ, バイナリからCSVへ変換)
import argparse
import pathlib
import subprocess
def main(args):
for p in pathlib.Path(args.target_dir).rglob('*.blg'):
csv_path = p.with_suffix('.csv')
subprocess.call(f'relog "{p}" -o "{csv_path}" -f CSV')