2024夏休み旅行 神戸・2日目【前編】 zfinchyan.hatenablog.com ↑1日目はこちら 6:50 わたしと夫だけ先に起床 前日に買っておいたお芋のパンで朝ごはん 昨日の疲れからか、なかなか息子たちが起きてこなかったので、ゆっくり寝かせてから10:00にホテルの下にあるプレイゾーンに行って、パターゴルフやバス…
サッカーアジア杯、日本優勝しましたね。サッカー観戦日に記事を書くy_echoです。どうもこんばんは。 最近~/homebrew、~/perl5/perlbrewな開発環境に再構築したんですが、perlshインストール時に少し手作業が必要だったのでメモっときます。 perlshはPerlのインタラクティブシェル 「perl interactive shell」でググるといくつか他のものも発見できますが、ぼくはWEB-DB PRESS*1の記事(by id:naoyaさん)でその存在を知ったperlshを使ってます。 [y_echo@MacBook ~]% perlsh main[1]$ use Data::Dumper; main[2]$ $dumped = { foo => 'bar' }; HASH(0x10093edc8) main[3]$ print Dumper($dumped);
irb (Readline)で日本語が通るようにする MacにRVMでRuby 1.9.2をインストールしたとき、irbなどのReadlineのプロンプトに日本語を入力すると「???」に化けて、そのままEnterするとinvalid multibyte charなどのエラーになる問題の解決方法。 Bug #550によると、MacではGNU readlineの代わりにEditline Libraryが使われているそうで、GNU readlineを使えば解決するらしい。 RVMには簡単にGNU readlineを導入する機能があって、Rubyをインストールした後に修正する手順は下の通り(追記:一度Rubyを消さないとうまく行かないので修正。リンク先の丸写しです)。 rvm package install readline rvm remove 1.9.2 rvm install 1.9.2 -
2008年12月13日11:32 Ruby rubyのirbが便利すぎる!! ruby には、irb という便利ツールがあります。ruby リファレンスマニュアルによると irb は interactive ruby の略です。 ruby の式を標準入力から簡単に入力/実行するためのツールです。 まぁ、この通りです。実際に使ってみればすぐにわかりますが、ruby のコマンドを手軽に実行して、結果を確認できるものなんです。最近はこれを使って ruby を勉強しています。デフォルトではこんな感じで動作します。 ただ、irb はこのまま使うとなると色々と不満が・・。 ・カーソルで左右に移動できない ・入力の履歴を参照することができない ・見づらい これは結構痛い。特に履歴が使えないとか致命的です。。 と思って調べてみると、.irbrc という設定ファイルがあって、色々と設定することが出来るようで
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く