2014-01-01から1年間の記事一覧
とりあえず例としてContent-Typeはoctet-stream self.response.headers["Content-Type"] = "application/octet-stream; "拡張子はCSV SetHeaderString = 'attachment; filename="' JpStr = u'_日本語ファイル名_'.encode('utf-8') JpStr = urllib.quote(JpSt…
Mongoのgoドライバ,mgoを入れようとしたらBazaarがないよと go: missing Bazaar command. See http://golang.org/s/gogetcmd package labix.org/v2/mgo: exec: "bzr": executable file not found in $PATHBazaarが足りないのでbrewで入れる brew install bzr…
Macでgo getしようとすると cannot download, $GOPATH must not be set to $GOROOTが出るので対応方法 パスを確認 which go/usr/local下にあると permission denyされちゃうので sudo suGOPATHを設定 export GOPATH=/usr/local/go/bin設定したら go get gith…
.xcodeprojでHeader Search Pathsを追加する時に便利なもの自身のルートパスに使えるやつ$(SRCROOT)使用例"$(SRCROOT)/AdditionalHeaderPath/PathToHeader"