[AWS] 各サービスが稼働しているか確認するサイト
- 2014 5/27
AWS (Amazon Web Services) の各サービスが稼働しているか確認するサイト
・AWS Service Health Dashboard(公式)
たまにサービス死ぬので、常にそういうケースに備えておかないといけませんね・・・
AWS (Amazon Web Services) の各サービスが稼働しているか確認するサイト
・AWS Service Health Dashboard(公式)
たまにサービス死ぬので、常にそういうケースに備えておかないといけませんね・・・
Sublime Text2で、インデント(indent)に縦線を引く設定を教えてもらいました。
"draw_indent_guides": true, "indent_guide_options": ["draw_normal", "draw_active"] |
上記の設定を、[Preferences] → [Settings – User] から開くJSONファイルに追加するだけです。
Android から Google (Gmail) アカウントを端末から削除する手順をメモ。
今回は ARROWS NX から Google アカウントを削除したのですが、普段 Android を使わないので、メニューから削除できるのに気付きませんでした。
Node.js で wkhtmltopdf を使う方法をメモ。
(最終更新日:2014/11/28)
node-wkhtmltopdf
A Node.js wrapper for the wkhtmltopdf command line tool.
ということで、npm module だけだと使えないので wkhtmltopdf はインストールする必要があります。
wkhtmltopdf のインストール
# the wkhtmltopdf formula is now inactive but still available in the boneyard repository brew tap homebrew/boneyard # Install wkhtmltopdf brew install wkhtmltopdf |
wkhtmltopdf コマンドで、PDFを生成できることを確認します。
wkhtmltopdf "http://google.com" google.pdf |
以上です。
iOS アプリを久しぶりにビルドしようと思って pod install したところ、安定のエラーが発生しました。
pod install ――― MARKDOWN TEMPLATE ――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― ### Report * What did you do? * What did you expect to happen? * What happened instead? ### Stack ``` CocoaPods : 0.29.0 Ruby : ruby 1.9.3p448 (2013-06-27 revision 41675) [x86_64-darwin12.4.1] RubyGems : 1.8.25 Host : Mac OS X 10.9.2 (13C1021) Xcode : 5.1.1 (5B1008) Ruby lib dir : /Users/your_username/.rvm/rubies/ruby-1.9.3-p448/lib Repositories : master - https://github.com/CocoaPods/Specs.git @ b8a8633c844c3666a95b28edf1d821acfd1b1baf ``` ### Podfile ```ruby platform :ios, '6.0' pod 'NSLogger' pod 'Parse' ... ``` ### Error ``` Psych::SyntaxError - (/Users/your_username/.cocoapods/repos/master/CocoaPods-version.yml): mapping values are not allowed in this context at line 3 column 4 /Users/your_username/.rvm/rubies/ruby-1.9.3-p448/lib/ruby/1.9.1/psych.rb:203:in `parse' /Users/your_username/.rvm/rubies/ruby-1.9.3-p448/lib/ruby/1.9.1/psych.rb:203:in `parse_stream' /Users/your_username/.rvm/rubies/ruby-1.9.3-p448/lib/ruby/1.9.1/psych.rb:151:in `parse' /Users/your_username/.rvm/rubies/ruby-1.9.3-p448/lib/ruby/1.9.1/psych.rb:127:in `load' /Users/your_username/.rvm/rubies/ruby-1.9.3-p448/lib/ruby/1.9.1/psych.rb:297:in `block in load_file' /Users/your_username/.rvm/rubies/ruby-1.9.3-p448/lib/ruby/1.9.1/psych.rb:297:in `open' /Users/your_username/.rvm/rubies/ruby-1.9.3-p448/lib/ruby/1.9.1/psych.rb:297:in `load_file' /Users/your_username/.rvm/gems/ruby-1.9.3-p448/gems/cocoapods-0.29.0/lib/cocoapods/sources_manager.rb:261:in `version_information' /Users/your_username/.rvm/gems/ruby-1.9.3-p448/gems/cocoapods-0.29.0/lib/cocoapods/sources_manager.rb:222:in `repo_compatible?' /Users/your_username/.rvm/gems/ruby-1.9.3-p448/gems/cocoapods-0.29.0/lib/cocoapods/sources_manager.rb:281:in `master_repo_functional?' /Users/your_username/.rvm/gems/ruby-1.9.3-p448/gems/cocoapods-0.29.0/lib/cocoapods/command.rb:39:in `parse' /Users/your_username/.rvm/gems/ruby-1.9.3-p448/gems/claide-0.4.0/lib/claide/command.rb:179:in `parse' /Users/your_username/.rvm/gems/ruby-1.9.3-p448/gems/cocoapods-0.29.0/lib/cocoapods/command.rb:38:in `parse' /Users/your_username/.rvm/gems/ruby-1.9.3-p448/gems/claide-0.4.0/lib/claide/command.rb:211:in `run' /Users/your_username/.rvm/gems/ruby-1.9.3-p448/gems/cocoapods-0.29.0/lib/cocoapods/command.rb:51:in `run' /Users/your_username/.rvm/gems/ruby-1.9.3-p448/gems/cocoapods-0.29.0/bin/pod:24:in `<top (required)>' /Users/your_username/.rvm/gems/ruby-1.9.3-p448/bin/pod:19:in `load' /Users/your_username/.rvm/gems/ruby-1.9.3-p448/bin/pod:19:in `<main>' /Users/your_username/.rvm/gems/ruby-1.9.3-p448/bin/ruby_noexec_wrapper:14:in `eval' /Users/your_username/.rvm/gems/ruby-1.9.3-p448/bin/ruby_noexec_wrapper:14:in `<main>' ``` ――― TEMPLATE END ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― [!] Oh no, an error occurred. Search for existing github issues similar to yours: https://github.com/CocoaPods/CocoaPods/search?q=%28%2FUsers%2Fyour_username%2F.cocoapods%2Frepos%2Fmaster%2FCocoaPods-version.yml%29%3A+mapping+values+are+not+allowed+in+this+context+at+line+3+column+4&type=Issues If none exists, create a ticket, with the template displayed above, on: https://github.com/CocoaPods/CocoaPods/issues/new Don't forget to anonymize any private data! |
cocoapods を最新版にアップデートして、setup し直せば良いと Stack Overflow に書いてあったので、その通りやってみました。
・ios – CocoaPods install issue – Stack Overflow
gem update cocoapods
pod --version
0.32.1 |
cd ~/.cocoapods/repos rm -rf master pod setup |
再度、 pod install すれば OK
Apple から「Your iOS Distribution Certificate will expire in 30 days.」という内容のメールが着ました。
対応方法は下記を参考にしました
・プログラミング雑記: Certificate期限切れの通知が送られてきたら
今回は既に期限切れだったので、
以上です。
Ghost のブログテーマを変更しました。
・Ghostのテーマを作成するには – Ghost日本語ガイド
Ghost Marketplace に無料のテーマがいくつかあるので、この中から選びました。
・Free Archives » Ghost Marketplace
Scriptor という Theme を使いたいと思います。
・Scriptor – A Beautiful, Simple & Free Ghost Theme for Writers | Just Good Themes
ダウンロードしてきて、Zipファイルを解凍して、content/themes 以下へ移動します。
mv ~/Downloads/scriptor ./content/themes |
これだけで、Themeの設置は完了です。
あとは、Ghostのウェブ管理画面 http://127.0.0.1:2368/ghost/settings/general/ から、Themeを選択してSaveするだけでOKです。
以上です。
新しくブログを始めたくなって、折角なので Node.js 製ブログプラットフォーム「Ghost」を使うことにしました。
まず、開発環境で起動する手順は、公式ドキュメント(日本語)だけでサクッとできました。
・Ghostをインストールするには – Ghost日本語ガイド
次に、Ghost を Heroku へデプロイする手順ですが、こちらも手順記事がいくつか転がっていたので下記3つを参考にしてやりました。
・How To Install Ghost On Heroku
・Node.js – Ghostで作ったブログをherokuに公開する – Qiita
とりあえず、Heroku に公開するという最低限の準備ができたので、これから色々と触っていきたいと思います。
Node.js の path module を使って、下記のようにファイルの拡張子を取得することができます。
path.extname('index.html') // returns '.html' path.extname('index.coffee.md') // returns '.md' path.extname('index.') // returns '.' path.extname('index') // returns '' |