下記のエラーがでました。
1 2 3 4 5 |
$ vagrant up A version of the box you're loading is formatted in a way that Vagrant cannot parse: '2.0.0-alpha'. Please reformat the version to be properly formatted. It should be in the format of X.Y.Z. |
1 2 |
$ vi Vagrantfile config.vm.box_check_update = false |
Twitter:
Warning: Undefined array key "Twitter" in /home/sazaeau/mizoshiri.com/public_html/blog.mizoshiri.com/wp-content/plugins/sns-count-cache/sns-count-cache.php on line 2897
0 | Facebook: 0 | Google Plus:
Warning: Undefined array key "Google+" in /home/sazaeau/mizoshiri.com/public_html/blog.mizoshiri.com/wp-content/plugins/sns-count-cache/sns-count-cache.php on line 2897
0 | Hatena: 0 | Pocket: 0 | Total: 0 | Feedly: 0
MacでAustraliaからもしQQ Musicを聞きたい場合Proxy Serverにこいつを追加すべし。
1 |
http://yo.uku.im/proxy.pac |
QQがだめなら酷我音乐(kuwo Music)を導入を検討すべし
http://www.kuwo.cn/down/index
Twitter:
Warning: Undefined array key "Twitter" in /home/sazaeau/mizoshiri.com/public_html/blog.mizoshiri.com/wp-content/plugins/sns-count-cache/sns-count-cache.php on line 2897
0 | Facebook: 0 | Google Plus:
Warning: Undefined array key "Google+" in /home/sazaeau/mizoshiri.com/public_html/blog.mizoshiri.com/wp-content/plugins/sns-count-cache/sns-count-cache.php on line 2897
0 | Hatena: 0 | Pocket: 0 | Total: 0 | Feedly: 0
今までpgAdmin3を使っていたのですが、これが遅い、落ちるたりするのでなかなか使い勝手がよくなかったのですが、先日Posticoなるものを発見して使い出しましたが、かなり気にいっております。
SSH経由での接続ももちろん可能です
Vagrantの中にあるPostgresなんかにもこれで接続できます
サポートしてPostgreSQLのバージョン
PostgreSQL 8.0, 8.4, 9.1, 9.2, 9.3 9.4、Amazon Redshiftもサポートしているようです。
Posticoはlibpq 9.3.8のパッチをつかっているそうです。
トライアル版と有料版の違い
トライアル版は、お気に入りに5 connectionまでした登録できません。
トライアル版は、1画面でしかしようできなくなっています。
テーブル内の検索機能がありません。()
トライアル版には、期間制限がないので、ずっと使い続けることも可能です。
正直無料版でもよかったのですが、開発者に敬意を示して、ちゃんと有料版を購入しました。
Postico v1.0.9 – 2016/08/05
Command + pのQuick Openなるものが追加されていますが、すぐにテーブルに飛べるのでかなり便利です。
Twitter: 0 | Facebook: 0 | Google Plus: 0 | Hatena: 8 | Pocket: 6 | Total: 14 | Feedly: 0
rbenvを使ってRubyの環境を構築していると思うのですが、
最新のRubyのVersionを入れたい場合、始めにrbenvのUpgradeをしたほうがより最新のものが入ってきますので、その方法をメモしておきます。
1 2 |
brew update brew upgrade rbenv ruby-build |
これで終わりです。
あとは、下記のコマンドで最新のRubyの一覧がでてきます。
1 |
rbenv install -l |
Installはこんな感じですね。
1 2 3 4 5 |
rbenv install 2.2.3 rbenv global 2.2.3 rbenv rehash ruby -v ruby 2.2.3p173 (2015-08-18 revision 51636) [x86_64-darwin14] |
Twitter:
Warning: Undefined array key "Twitter" in /home/sazaeau/mizoshiri.com/public_html/blog.mizoshiri.com/wp-content/plugins/sns-count-cache/sns-count-cache.php on line 2897
0 | Facebook: 0 | Google Plus:
Warning: Undefined array key "Google+" in /home/sazaeau/mizoshiri.com/public_html/blog.mizoshiri.com/wp-content/plugins/sns-count-cache/sns-count-cache.php on line 2897
0 | Hatena: 0 | Pocket: 1 | Total: 1 | Feedly: 0
Macを強制終了したら、VagrantとVirtualBoxのリンクがなぜか切れて、vagrant upで立ち上げると新規にBoxをつくろうとするトラブルにあいました。
で、調べたところ.vagrantがもっているVirtualBoxのIDを設定がなくっているようなので、調べてつなげてあげて解決できました。
1 2 |
$ VBoxManage list vms "Boxの名前" {1d2d2dee0-b3ad-4d7d-9e14-ca3d24a8s4f50}//UUID |
このUUIDをコピーしてきます。そのあと下記のファイルに追加して完了です。
1 2 |
$ vi .vagrant/machines/default/virtualbox/id 1d2d2dee0-b3ad-4d7d-9e14-ca3d24a8s4f50 |
Twitter:
Warning: Undefined array key "Twitter" in /home/sazaeau/mizoshiri.com/public_html/blog.mizoshiri.com/wp-content/plugins/sns-count-cache/sns-count-cache.php on line 2897
0 | Facebook: 0 | Google Plus:
Warning: Undefined array key "Google+" in /home/sazaeau/mizoshiri.com/public_html/blog.mizoshiri.com/wp-content/plugins/sns-count-cache/sns-count-cache.php on line 2897
0 | Hatena: 1 | Pocket: 1 | Total: 2 | Feedly: 0
今いるフォルダをAtomで開く
1 |
open ./ -a Atom |
memo.txtをChormeで開く
1 |
open memo.txt -a Google\ Chrome |
ちなみに、zshを使っているかもしれませんが、-aを入力してTabを押すとアプリケーションを補完してくれます(/Application/の中に入っている状態ですね。)
Twitter:
Warning: Undefined array key "Twitter" in /home/sazaeau/mizoshiri.com/public_html/blog.mizoshiri.com/wp-content/plugins/sns-count-cache/sns-count-cache.php on line 2897
0 | Facebook: 0 | Google Plus:
Warning: Undefined array key "Google+" in /home/sazaeau/mizoshiri.com/public_html/blog.mizoshiri.com/wp-content/plugins/sns-count-cache/sns-count-cache.php on line 2897
0 | Hatena: 0 | Pocket: 0 | Total: 0 | Feedly: 0
こんな感じのファイル郡を一括にhtmlからphpに変更したい場合
1 2 3 4 |
$ ls index.html test.html contactus.html |
1 2 3 |
$ for f in *.html; do mv $f ${f%.html}.php; done |
Twitter:
Warning: Undefined array key "Twitter" in /home/sazaeau/mizoshiri.com/public_html/blog.mizoshiri.com/wp-content/plugins/sns-count-cache/sns-count-cache.php on line 2897
0 | Facebook: 0 | Google Plus:
Warning: Undefined array key "Google+" in /home/sazaeau/mizoshiri.com/public_html/blog.mizoshiri.com/wp-content/plugins/sns-count-cache/sns-count-cache.php on line 2897
0 | Hatena: 0 | Pocket: 0 | Total: 0 | Feedly: 0
HomebrewをUpdateしようとすると下記のエラーがでた。
1 2 |
brew update Error: Failure while executing: git checkout -q master |
いちどgitをリセットしてやる
1 2 |
cd /usr/local git reset --hard FETCH_HEAD |
Twitter:
Warning: Undefined array key "Twitter" in /home/sazaeau/mizoshiri.com/public_html/blog.mizoshiri.com/wp-content/plugins/sns-count-cache/sns-count-cache.php on line 2897
0 | Facebook: 0 | Google Plus:
Warning: Undefined array key "Google+" in /home/sazaeau/mizoshiri.com/public_html/blog.mizoshiri.com/wp-content/plugins/sns-count-cache/sns-count-cache.php on line 2897
0 | Hatena: 0 | Pocket: 0 | Total: 0 | Feedly: 0
会社から支給されたMacBook Proの環境構築中に地味にハマったので、メモしておきます。
はじめに、rbenvでRuby2.1の環境を構築してから、Vagrantをgem installで入れたのですが、Versionが1.08と古かったので、gem uninstall vagrantで消しました。
その後、Vagrantのサイトからdmgをダウンロードしてきて、最新のvagrant(1.4.3)を入れたのですが、terminalでvagrantを叩いても、下記ようなエラーになり地味に解決までに時間がかかりました。
1 2 3 |
$ vagrant -v rbenv: vagrant: command not found The `vagrant' command exists in these Ruby versions:2.1.0 |
はじめは、zshの問題かと思い、.zshrcなどにaliasを追加したのですが、それでもだめでした。
oh-my-zshでzshを管理しているので、oh-my-zshの問題かと思い調べていたのですが、解決方法は簡単でした。
1 2 3 4 |
$ vi ~/.zshrc alias vagrant /Applications/Vagrant/bin/vagrant $ source ~/.zshrc |
問題はgemで入れた残骸の問題でした。
なので、下記のように残骸を消して問題なく解決できましたとー
1 2 3 4 5 |
$ which vagrant /Users/UserName/.rbenv/shims/vagrant $ rm -rf /Users/UserName/.rbenv/shims/vagrant $ vagrant -v Vagrant 1.4.3 |
Twitter:
Warning: Undefined array key "Twitter" in /home/sazaeau/mizoshiri.com/public_html/blog.mizoshiri.com/wp-content/plugins/sns-count-cache/sns-count-cache.php on line 2897
0 | Facebook: 0 | Google Plus:
Warning: Undefined array key "Google+" in /home/sazaeau/mizoshiri.com/public_html/blog.mizoshiri.com/wp-content/plugins/sns-count-cache/sns-count-cache.php on line 2897
0 | Hatena: 0 | Pocket: 0 | Total: 0 | Feedly: 0
Sorry. No data so far.