スマホUAに切り替える方法を教えて下さいという話を頂いたので、
図入りで説明したくなりました。
chromeだとアドオンなしで超簡単にできます。
1. Chromeのブラウザを立ち上げてから、Developer Toolsを開く
Macなら → Command
+Option
+I
キー
Windowsなら → F12
キー
2.スマホマークをクリック
3.デバイスを選択
(例) iPhone6
画面のサイズも切り替え可能。便利ですねー。
MacOSⅩ(10.10.2)で通常通りにrailsで bundle install したらエラー
% bundle install : : /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/iterator:341:10: fatal error: '__debug' file not found #include <__debug> ^ 1 error generated.
なんだかYosemiteのCommandLineToolsが悪さしてそう・・・
で、AppStoreでCommandLineToolsのバリデーションをアップデートしたら直った。
CommandLineToolsのバージョン:6.3
▼このあたりでお話あったようだ
https://github.com/knu/ruby-unf/issues/11
perlの環境構築するのにバージョンを切り替えられたりしたほうがいいので、 Perlbrewでインストールしてみた。
Perlbrew: http://perlbrew.pl/
$curl -kL http://install.perlbrew.pl | bash
homeディレクトリ下にperl5というディレクトリが作成される。
$vim ~/.zshrc (bashの人は~/.bashrc等) ▼追記内容 source ~/perl5/perlbrew/etc/bashrc
$source ~/.zshrc (bashの人は~/.bashrc等)
$perlbrew --version ~/perl5/perlbrew/bin/perlbrew - App::perlbrew/0.73
インストールできたもよう。
$perlbrew available perl-5.21.10 perl-5.20.2 perl-5.18.4 perl-5.16.3 perl-5.14.4 perl-5.12.5 perl-5.10.1 perl-5.8.9 perl-5.6.2 perl5.005_04 perl5.004_05 perl5.003_07
$perlbrew install perl-5.18.4
ログの確認しながら待つ。(結構時間かかる)
$tail -f ~/perl5/perlbrew/build.perl-5.18.4.log
$perlbrew list perl-5.18.4
$perlbrew switch 5.18.4 $perl -version This is perl 5, version 18, subversion 4 (v5.18.4) built for darwin-2level ・・・
完了!
slackにbot入れたいなと思ってhubotのインストールをしてみた。
$ npm install coffee-script hubot $ hubot -v -bash: hubot: コマンドが見つかりません
おや?パス通ってない。 とりあえずパス指定実行。
$ node_modules/hubot/bin/hubot -v /usr/bin/env: coffee: そのようなファイルやディレクトリはありません
coffee-scriptもパス通ってない・・・ 面倒なので、グローバルにインストールしてしまおう。
$ sudo npm install coffee-script hubot -g $ coffee -v CoffeeScript version 1.9.1 $ hubot -v connect deprecated multipart: use parser (multiparty, busboy, formidable) npm module instead ../../../usr/local/lib/node_modules/hubot/node_modules/express/node_modules/connect/lib/middleware/bodyParser.js:56:20 connect deprecated limit: Restrict request size at location of read ../../../usr/local/lib/node_modules/hubot/node_modules/express/node_modules/connect/lib/middleware/multipart.js:86:15 2.11.2
なんかエラー出た。
色々とぐぐってみたら、 hubot 2.9.x から Yeoman と generator-hubot が必須らしい。
$ sudo npm install -g yo generator-hubot $ mkdir mybot $ cd mybot $ yo hubot ? ===================================================================== We're constantly looking for ways to make yo better! May we anonymously report usage statistics to improve the tool over time? More info: https://github.com/yeoman/insight & http://yeoman.io ===================================================================== (Y/n)
レポートを取りたいと言っているが私はNo.
なにやらかわいいロボット出てきた。
あとは、質問形式で設定を進めるだけ。
やっとLINEスタンプが承認されました。
たしか9月に申請して、一度もリジェクトはされずにですが、 5ヶ月かかりました・・・
2月から申請したものは、たしか取り分が50%から35%になっているらしいですが、 それ以前に申請したものは2月過ぎてても50%のままらしいです。
Loose otter and friends of the water – LINE stickers | LINE STORE
これで儲けようとは全く思っていませんが、 スタンプかわいいと言われるとすごく嬉しいです。
第二弾はどうしようかな・・・40枚って結構、労力いるんだよね(笑)