2017年3月2日木曜日

Dockerの期待と現実~Docker都市伝説はなぜ生まれるのか~

https://www.slideshare.net/zembutsu/docker-expectations-and-reality

Windows コマンドプロンプト 空白がある場合

Windows でパスに空白を含むときの回避策 - 自分の仕事を憎むには人生は余りにも短い
http://garapon.hatenablog.com/entry/20080124/1201149409


「"」で囲む        cd "c:\Program Files\test"
MS-DOS8.3形式で短縮する  cd c:\PROGRA~1\test

GitでShift-JIS 文字化け

git diff や git show でShift-JISのファイルを扱う - Qiita
http://qiita.com/mather314/items/a6b4bad59e2edd659dd4

SourceTree V1.10.20.1 がWindows7でインストールできなかった件

SourceTree V1.10.20.1 が Windows7(32ビット) にインストールできなかった(デスクトップにSourceTreeアイコンができるのですが、その後無反応状態)ので
過去のバージョンを探してインストールしました。

以下に過去のバージョンのディレクトリ情報がありました。
https://www.sourcetreeapp.com/update/windowsupdates.txt

[1.9.10.0]
Name = SourceTree
ProductVersion = 1.9.10.0
URL = https://downloads.atlassian.com/software/sourcetree/windows/SourceTreeSetup_1.9.10.0.exe
Size = 17847544
ReleaseDate = 15/11/2016
MD5 = dd8d4d28d9e1674388419b3ebbbd058b
ServerFileName = SourceTreeSetup_1.9.10.0.exe
Flags = NoCache
RegistryKey = HKUD\Software\Atlassian\SourceTree\Version
Version = 1.9.10.0
Description = SourceTree update to version 1.9.10.0
DescriptionHtml1 = <a href="https://www.sourcetreeapp.com/update/WindowsReleaseNotes.html">Release Notes for all versions</a>
Description1 = Release Notes for all versions
AutoCloseApplication = [APPDIR]tools\putty\pageant.exe|;;NoRestart
Replaces = All

[1.9.9.20]
・・・
・・・

この中から直前のバージョン
SourceTreeSetup_1.9.10.0.exe
をダウンロードしました。これはすんなりインストールできました。

2017年3月1日水曜日

たった1行!jQueryで指定箇所までアニメーションつきで自動スクロールさせる方法 - Qiita

AJAXのコールバック呼び出し順序 - Qiita



    $.ajax({ type: 'post',
        url: 'appmigration/test.json',
        data: [{'key': 'hoge'}], // {'name': 'key', 'value': 'hoge'} とも書ける
        dataType: 'json',
        beforeSend: function() {
            alert('before');
        },
        statusCode: {
            200: function() {
                alert('200');
            },
            400: function() {
                alert('400');
            }
        }
    }).done(function(data){
        alert('done');
    }).fail(function(data){
        alert('fail');
    }).always(function(data){
        alert('always');
    });

before -> done -> always -> 200となる。

GoogleのSHA-1のはなし 暗号等セキュリティ勉強会