2017年3月15日水曜日

pip install error: Unable to find vcvarsall.bat

 pip で "pip install error: Unable to find vcvarsall.bat" エラーが出てインストール出来ない



You will need
3.5 and later Visual C++ Build Tools 2015 or Visual Studio 2015
3.3 and 3.4 Windows SDK for Windows 7 and .NET 4.0
(Alternatively, Visual Studio 2010 if you have access to it)
2.6 to 3.2 Microsoft Visual C++ Compiler for Python 2.7


How to deal with the pain of “unable to find vcvarsall.bat” より

2016年1月14日木曜日

perl 先読み後読みパターンマッチ

 (?=パターン)  肯定の先読み  この先にパターンが出てくる場所にマッチ
 (?!パターン)  否定の先読み  この先にパターンが出てこない場所にマッチ
 (?<=パターン) 肯定の後読み  この前にパターンが出てきた場所にマッチ
 (?<!パターン) 否定の後読み  この前にパターンが出てこなかった場所にマッチ

2014年12月21日日曜日

~/.goaccessrcが反映されない


--no-global-config オプションを付けて実行する

goaccess --no-global-config -p access_log

cat `access_log-* 2>/dev/null` access_log | goaccess --no-global-config

config file に log_file を設定しているとパイプを通して実行できない。

https://github.com/allinurl/goaccess/issues/115

2014年8月26日火曜日

roxterm キーボードショートカットのカスタマイズ

Keyboard Shortcuts

There is no editor for keyboard shortcuts; instead they can be changed by pressing keys while the mouse is hovering over a menu item in the terminal, provided editable shortcuts are enabled in your desktop session. In GNOME you have to edit a "secret" option, either by running the command:

gconftool --type bool --set /desktop/gnome/interface/can_change_accels true

or by editing the /desktop/gnome/interface/can_change_accels option with gconf-editor ("Configuration Editor").




New Tab のショートカットをを Shift + Ctrl + T から Ctrl + F1 に変更したい。

メニューバーから変更したいコマンドをマウスで選択した状態で、新たに割り当てたいキーを押す。
この画像の状態で Ctrl + F1 を押す。




ショートカットが変更される。