VSCommands for Visual Studio 2013をインストールする
VSCommands for Visual Studio 2013 extension
Q AND Aにも書かれていたが
VisualStudio 2015をインストールしていたせいでエラーが出た
次のエラーが発生したため、拡張機能をインストール出来ませんでした: 拡張機能 'VSCommands for Visual Studio 2013'には、インストールされていない.Net Frameworkのバージョンが必要です。
7-ZIPでSquaredInfinity.VSCommands.VS12.vsixを開き、その中からextension.vsixmanifestを開く
そのファイルの16行目の
<Dependency Id="Microsoft.Framework.NDP" DisplayName="Microsoft .NET Framework" Version="4.5" />
を
<Dependency Id="Microsoft.Framework.NDP" DisplayName="Microsoft .NET Framework" MinVersion="4.5" />
に変えて保存しエディタを閉じる。
そうすると7-ZIPが
'extension.vsixmanifest'ファイルが更新されています。 書庫を更新しますか?
と聞いてくるのでOKを押して編集したSquaredInfinity.VSCommands.VS12.vsixを実行するとインストールが出来る
GitHubでファイルを履歴ごと削除する
基本的にはここに書いてあることをそのまますればできるが実行したところエラーが出た
git filter-branch --index-filter 'git rm --cached --ignore-unmatch Rakefile' --prune-empty --tag-name-filter cat -- --all
エラー内容
fatal: bad revision 'rm'
'を"に変えたら正常に出来た
git filter-branch --index-filter "git rm --cached --ignore-unmatch Rakefile" --prune-empty --tag-name-filter cat -- --all
GUID_ContainerFormatJpegが定義されているヘッダ
error C2065: 'GUID_ContainerFormatJpeg' : 定義されていない識別子です。続きを読む
libcurlで0バイト(空)をPOSTするときの注意点
前の記事で触れたが空のPOSTをするときは明示的に0バイトだということを書かなかればならない
curl_easy_setopt(curl, CURLOPT_POSTFIELDSIZE, 0);
If you want to do a zero-byte POST, you need to set CURLOPT_POSTFIELDSIZE explicitly to zero, as simply setting CURLOPT_POSTFIELDS to NULL or "" just effectively disables the sending of the specified string. libcurl will instead assume that you'll send the POST data using the read callback!
CURLOPT_POSTFIELDS