Ruby on Railsにはrails dbconsoleというコマンドがある。config/database.ymlの接続情報を使ってデータベースクライアント(mysqlとか、psqlとか)を立ち上げてくれる、やや便利なやつで、DBからちょっとした情報を手軽に得たいときに重宝している。たとえば、こんな感じの使い方である。 $ echo "show variables" | bin/rails dbconsole -pところが、これが私の環境に限りいつのまにか使えなくなっていたので、さて困ったぞと。 続きを読む タコの本である。とにかくタコについて詳しく書いてある。例えば、ご存じであろうか…タコは、腕の吸盤で味を感じ取れるらしいぜ。 Octopus!: The Most Mysterious Creature in the Sea Katherine Harmon Courage Cur
![idesaku blog](https://cdn-ak-scissors.b.st-hatena.com/image/square/06a15c64ba0ceec233d86d71001ebb29a9dcbf5d/height=288;version=1;width=512/https%3A%2F%2Fcdn.blog.st-hatena.com%2Fimages%2Ftheme%2Fog-image-1500.png)