自分も長らくはまっていたが、ここのページを見て解決できた。よかった。
Lint Roller? I Barely Know Her
wallacepolsom
occasionally subtle
Not today Justin

Janaina Medeiros
Misplaced Lens Cap

if i look back, i am lost
2025 on Tumblr: Trends That Defined the Year
noise dept.

sheepfilms

JBB: An Artblog!
art blog(derogatory)

Kiana Khansmith
Cosimo Galluzzi
Three Goblin Art

izzy's playlists!
Jules of Nature

Aqua Utopia|海の底で記憶を紡ぐ
seen from Maldives
seen from Türkiye

seen from India
seen from United States

seen from Sweden
seen from Germany

seen from United States

seen from United States
seen from United States
seen from United Kingdom

seen from Finland

seen from Australia

seen from Malaysia
seen from United States

seen from United States

seen from Argentina

seen from United States

seen from United Kingdom

seen from India

seen from Türkiye
@f13jp
自分も長らくはまっていたが、ここのページを見て解決できた。よかった。

Anya is live and ready to show you everything. Watch her strip, dance, and perform exclusive shows just for you. Interact in real-time and make your fantasies come true.
Free to watch • No registration required • HD streaming
さくらのVPS(Ubuntu 12.04)にDockerを入れてみる
最近、流行っているDockerをさくらのVPSに入れてみる。
カーネルのバージョン確認
$ uname -r 3.2.0-60-generic
Dockerが使えるのは 3.8 以上なので、カーネルをあげる必要がある。
カーネルのアップデート
$ sudo apt-get update $ sudo apt-get install linux-image-generic-lts-raring linux-headers-generic-lts-raring $ sudo reboot
Dockerのインストール
$ curl -s https://get.docker.io/ubuntu/ | sudo sh
Herokuのコマンド
よく忘れてしまうのでメモ代わりに書いておく。
Herokuにログイン
$ heroku login
アプリケーションを作成
$ heroku create
Masterに登録する
$ git push heroku master
web dynoを追加
$ heroku ps:scale web=1
MongoDBの追加
$ heroku addons:add mongolab
再起動
$ heroku restart
ドメインの登録
$ heroku domains:add xxx.examples.com
workerの停止
$ heroku ps:scale worker=0
環境変数の設定
$ heroku config:set HOGE_KEY=value
MacでRを起動したら"Setting LC_CTYPE failed, using C”と怒られた時の対処法
ターミナルを起動し、以下のようにコマンドをうってあげる
$ defaults write org.R-project.R force.LANG ja_JP.UTF-8
そして、Rを再起動。 これでR自体を日本語で使うことができるようになる。
CocoaPodsを0.30.0にしたらpod installでこけたので対応した
Travis上での話しだけど、きっとCocoaPods 0.30.0にした人は当てはまると思う。
$ pod install
としようとしたら、以下のようなエラーが出てしまった。
/gems/cocoapods-0.30.0/lib/cocoapods.rb:12: in `': undefined method `enforce_available_locales=' for I18n:Module (NoMethodError)
これは、i18nが古いのが問題らしく以下のようにアップデートすることで解消された。
$ sudo gem update i18n
参考:https://github.com/CocoaPods/CocoaPods/issues/1950

Anya is live and ready to show you everything. Watch her strip, dance, and perform exclusive shows just for you. Interact in real-time and make your fantasies come true.
Free to watch • No registration required • HD streaming
CocoaPodsでエラーが出てしまった場合の対処
CocoaPodsで以下の様なエラーが出てしまった場合の対処。
Pull is not possible because you have unmerged files. Please, fix them up in the work tree, and then use 'git add/rm ' as appropriate to mark resolution, or use 'git commit -a'.
以下のコマンドで、Podsが使っているリポジトリを消してあげる
$ rm -fr ~/.cocoapods
JSONをpretty-printするためのalias
いつも忘れてしまうので、メモ。
https://gist.github.com/y-ogi/5930932
Color Me APIをDjango Social Authに対応させる
ということで、Color MeをDjango Social Authから使えるようにするために書いてみた。
https://gist.github.com/y-ogi/5745903
RubyMotionでSimulatorを指定
以下の様にiOSバージョン、RetinaのSimulatorかどうを指定出来る。
$ rake target=6.1 retina=true
RubyMotionで実機動かそうとした時にProvisioning Profileが見つからないと言われた場合
個別で指定することが出来る。
Rakefileに以下の様に指定する。
Motion::Project::App.setup do |app| # Use `rake config' to see complete project settings. app.name = 'HelloMotion' app.provisioning_profile='/Users/[ID}/Library/MobileDevice/Provisioning Profiles/XXXXX.mobileprovision' app.codesign_certificate='iPhone Developer: XXXXXXXXX (XXXXXXXXXXX)' end
ちなみに、この設定をしなかった場合に以下の様に表示されてしまった。
rake device Build ./build/iPhoneOS-6.1-Development Compile ./app/app_delegate.rb Create ./build/iPhoneOS-6.1-Development/TestTest.app Link ./build/iPhoneOS-6.1-Development/TestTest.app/TestTest Create ./build/iPhoneOS-6.1-Development/TestTest.app/Info.plist Create ./build/iPhoneOS-6.1-Development/TestTest.app/PkgInfo Copy ./resources/[email protected] Create ./build/iPhoneOS-6.1-Development/TestTest.dSYM Create ./build/iPhoneOS-6.1-Development/TestTest.app/ResourceRules.plist Create ./build/iPhoneOS-6.1-Development/TestTest.app/embedded.mobileprovision ERROR! Can't find a provisioning profile named `(?-mix:iOS Team Provisioning Profile)'

Anya is live and ready to show you everything. Watch her strip, dance, and perform exclusive shows just for you. Interact in real-time and make your fantasies come true.
Free to watch • No registration required • HD streaming
Xcode5 Developer Previewを入れてRubyMotionが動かなくなった場合の対処
Titaniumのときとかもそうだったけど、以下のコマンドでアクティブなXcodeを変更する
$ sudo xcode-select --switch /Applications/Xcode.app
ちなみに、このコマンド実行前に、RubyMotionでSimulatorを起動しようとした場合、以下のように表示された。
$ rake ERROR! RubyMotion doesn't support any of these SDK versions: 7.0
ambiguous matches in iphone developer
とでてしまった場合の対処。
Keychainを起動して、iPhoneで検索。 このときにInvalidなCertificateが見つかった場合はそれを削除。
iPhone Developerの有効期限(1年)が切れてしまって、登録しなおした際に不要なCertificateが残ってしまったようだ。(たぶん)
PyCharmがバージョンアップ後に動かなくなってしまった時の対処
PyCharmを起動しようとすると一瞬Dockにアイコンが見えるような感じがしてすぐ終了してまうという現象になってしまった。
Terminalから以下のコマンドで起動しようとすると、以下の様に言われてしまった。
$ open /Applications/PyCharm.app LSOpenURLsWithRole() failed with error -10810 for the file /Applications/PyCharm.app.
調べて見ると、パーミッションがおかしいようであった。
以下の様なコマンドでめでたく解消された。
$ chmod +x /Applications/PyCharm.app/Contents/MacOS/pycharm
HomebrewのUpdateでエラーが出たので対処
Failure while executing: git pull -q origin refs/heads/master:refs/remotes/origin/master
$ sudo chown root:staff /usr/local $ sudo chmod -R 775 /usr/local
UIActionSheetをTabBarを使ったView上に出す
https://gist.github.com/4539137

Anya is live and ready to show you everything. Watch her strip, dance, and perform exclusive shows just for you. Interact in real-time and make your fantasies come true.
Free to watch • No registration required • HD streaming
CURLで取得したJSONをフォーマットした状態で表示
単にcurlしただけだと、読みにくかったり、Unicodeになっていたりする。 そんなときに、以下のようにaliasを登録しておくと、"| pjson"とつけるだけで、読みやすくなる。
https://gist.github.com/4063316
便利!MarkedをreStructuredTextのプレビューワーとして使う
## 概要 [Marked](http://click.linksynergy.com/fs-bin/click?id=5/g62QmW*O4&subid=&offerid=94348.1&type=10&tmpid=3910&RD_PARM1=https%3A%2F%2Fitunes.apple.com%2Fjp%2Fapp%2Fmarked%2Fid448925439%3Fmt%3D12) という、MarkdownのプレビューをしてくれるMac用のAppがある。 これを今回、reStructuredTextのプレビューを行うように設定を変更する。 ## 方針 MarkedはMarkdownの処理系を、設定で変更することが出来る。 ここに、reStructuredTextをHTMLに変換する"rst2html.py"を設定してやる。 ## rst2html.pyのインストール ターミナルから以下のコマンドで、docutilsとsphinxを入れてあげる。
$ sudo pip install docutils sphinx
## Markedに設定 Markedを起動し、PreferencesのBehaviorタブを開く。 Custom Markdown Processorに以下を設定する
/usr/local/bin/rst2html.py
あとは、プレビューしたいreStrucuturedTextを開けばプレビューされる。