Docker for Mac vs. Docker Toolbox - Docker Documentation Get started with Docker for Mac - Docker Documentation 結局Docker for MacはDocker Toolboxと比べてどこが良いのか - Qiita Install Docker for Mac - Docker Documentation インストールのロ…
問題 jobとしてシェルスクリプトを投げるタイプのjob-queueシステムにおいて、シェルスクリプトから pip install --user で入れたpython binを参照させると、どうやらimportでコケている模様。 # 中略 pkg_resources.DistributionNotFound: The 'filtertool=…
問題 scpがエラー無く終わるが、何も転送されていない % scp otiai10@foobar.com:~/test.txt ~/ Enter passphrase for key '/User/otiai10/.ssh/foobar': foobar % % ls -la | grep test.txt % # ← あれーん? tl;dr, 解決 リモート側の.bashrcでログイン時…
わけあってリモートサーバでvimでがんがんコードの編集する仕事をしており、あと単調なので、なんかドキドキしたいと思い、1時間ごとにcolorschemeを勝手に変えるvimrcの断片を書いたのでメモ 追記 2017/05/15 id:foooomioさんありがとうございます!助かり…
$ cd $ mkdir -p opt/src $ cd opt/src $ wget https://storage.googleapis.com/golang/go1.8.1.linux-amd64.tar.gz $ tar zxvf go1.8.1.linux-amd64.tar.gz $ mv go ~/opt/.go # GOROOT用 $ mkdir -p ~/proj/go # GOPATH用 $ export GOROOT=~/opt/.go $ exp…
ゴール macOS Sierra上でsamtoolsコマンドが使える 参考 samtools を使って bam/sam を操作する | Tips for NGS Data Analysis Samtools ログ % cd % mkdir opt % mkdir opt/src % cd opt/src % wget https://github.com/samtools/htslib/releases/download/…
追記 2018/02/25 brewで入れると色々横着なので、ちゃんとインストールし直した。 otiai10.hatenablog.com 以下原文、読まなくていいです。 Rust、話題なので、やってみる。ミーハーなので。 brew install rust % brew install rust % rustc -V rustc 1.16.0…
まずnew Worker(“./my/worker”) というやつ Workerのコンストラクタにファイルパスを渡すやつからしてwebpackだとどう解決されるのか問題。 worker-loader - npm webpack/webpack.config.js at master · webpack/webpack · GitHub 以上を参考にして、まず np…
import React from 'react'; import ReactDOM from 'react-dom' import {Router, Routes, browserHistory} from 'react-router'; import {MyFancyLayout} from '../../layouts'; import { LoginPage, // これと HomePage, SettingPage, NotFoundPage, // こ…
ぜったいなんかやり方あるだろと思いつつなかなか見つからなくてググり続けたりして6時間ぐらいハマったのでメモ。 import React from 'react'; import {Editor, EditorState, CompositeDecorator} from 'draft-js'; const getEmojiURL = (key) => { // TODO…
とりあえず ./node_modules/.bin/jest --no-cache # package.jsonのscriptsや、-gで入れてる場合は、 "jest --no-cache" ですもちろん。 としたら通った。 DRY Learning React Native: Building Native Mobile Apps with JavaScript作者: Bonnie Eisenman出…
ゴール ブラウザのJavaScriptで、MediaStreamを動画ファイルにしてローカルに保存できるようにしたい。 参考 MediaStream Recording API - Web APIs | MDN Using the MediaStream Recording API - Web APIs | MDN tl;dr 好きな方法でMediaStreamを取得する g…
Problem $ bundle install --jobs=3 --retry=3 --deployment Fetching gem metadata from https://rubygems.org/........ Fetching version metadata from https://rubygems.org/.. Fetching dependency metadata from https://rubygems.org/. Your bundle i…
「Travis CIでCIしたい」なのか「TravisでCIしたい」なのか悩みました。 参考 Automate Testing & Build Delivery with fastlane and Travis CI | Macoscope Blog iOS: Continuous Integration with Travis CI and Fastlane tl;dr gem install fastlane 必要…
追記 2018/07/26 このプロジェクトはDocker on Herokuに移行したので、一時的に「Deploy to Heroku」ボタンは動かなくなってます。Dockerでデプロイ可能なので、以下をご参考ください。 github.com 以下原文 このエントリはGo (その2) Advent Calendar 2016 …
というか、マウントである。 メモ まず入って出れることだけ確認。--rmで終了時にコンテナも抹消する。 % uname Darwin % docker run -i -t --rm library/ubuntu root@7f3902552705:/# uname Linux root@7f3902552705:/# exit exit % docker ps -a CONTAINER…
やることは3つ UITableViewのseparatorInsetをゼロにする これはインターフェースビルダーからでも変更可能 UITableViewCellのlayoutMarginsをゼロにする UITableViewCellのpreservesSuperviewLayoutMarginsを無効にする func viewDidLoad() { super.viewDid…
コンパイルして、共有ライブラリとして読み込まれる.soファイルをつくれることを確認したい。APIファイル(.hとか)はReleases · tesseract-ocr/tesseract · GitHubを解凍すれば同梱されてる。ついでに同環境下でそのTesseract-OCRがちゃんと動くことも確認…
たとえば、Macでdocker-machine使ってて、debianの環境が手っ取り早くほしい。 % docker-machine create -d virtualbox foobar % eval $(docker-machine env foobar) % docker run -i -t --rm library/debian -i -t この端末のstdin/stdoutでsshする --rm コ…
追記 2017/11/29 この記事を書いた時点で無かったような気がするんですが、今はHerokuでDockerが動きます。無料で。すばらしい。 たとえばこのプロジェクトは完全にDockerでruntime定義してHerokuにホストしてあります。 github.com 以下原文 かつてこれ↓を…
count = 5 count.times.map { |i| i * i } # => [0, 1, 4, 9, 16] let count = 5 [Int](0..<count).map { $0 * $0 } // => [0, 1, 4, 9, 16] こうすか、しらんけど</count).map>
What is this document for? "gosseract" is a Tesseract-OCR wrapper for Golang, and this document is for an issue reported to "gosseract" github.com Reproduce the issue Set up environment for simulating CentOS # because I'm using MacOS % doc…
let filepath = NSBundle.mainBundle().pathForResource("message", ofType:"json") // 1. Resourcesっていうグループ(と物理ディレクトリ)作ってるけど、ファイル名だけでよい // 2. 返り値はnullable(String?)なので注意 let data = NSData(contentsOf…
参考 JSON Web Tokens - jwt.io GitHub - dgrijalva/jwt-go: Golang implementation of JSON Web Tokens (JWT) jwt - GoDoc GitHub - slok/go-jwt-example: Golang & jwt (Jason web token) example ← なんかこれ今時点で動かなかったので package main impo…
ゴール StackView(やAutoLayout)を使っていて、1/3分割にしたいときがある Multiplierに整数や小数は入れたことあるけど、分数(無限分数)はどうやって入れるんだ? 調査 stackoverflow.com 解決 StackViewで3分の1ってどうやるんだろと思ったら「1:3」(…
stackoverflow.com Preference Accounts View Details 今あるやつ全部捨てる(右クリック) Xcodeを殺す(← ここ重要) 再起動 Preference > Accounts > View Details で、「Download All」
twittercommunity.com Xcodeにおいてbundle identifierを変更する Fabricデスクトップアプリにおいて「+ New App」というボタンがあるのでクリック 同プロジェクトを選択する チュートリアルが始まるが、だいたいのことは済んでるので、⌘+Bとか適当にしてチ…
ゴール たとえば 基本的にPortrait(縦向き)のみに制限したいんだけど、特定の画面だけではLandscape(横向き)を許可したい 特定のViewで、強制的に向きを変えることはできる けど、これは向きを変えるだけであって、ふたたび端末をぐるっとすると縦向きに…
なんかいつの間にこんなrepoあったの go - Git at Google git clone https://go.googlesource.com/go とりあえず現状確認 % go version go version go1.6.2 darwin/amd64 % echo $GOROOT /Users/otiai10/.go/1.6.2 % ls /Users/otiai10/.go 1.4.3 1.5.3 1.6.2…
いかんせんスケジュールがギリギリだったので、個別にエントリ書くのは無理でした TableView TableViewの各Rowの高さを指定したい tableView.rowHeight swiftでtableViewの高さを変更する - Qiita TableViewのボーダーを消したい tableView.separatorStyle =…