By Ilya Grigorik on June 13, 2009 Benchmarking, profiling and debugging are all areas where better tool support could really benefit the Ruby community. Built in benchmark library and extensions such as ruby-prof provide us with a minimal level of introspection to help identify the common bottlenecks, but they still fall short of the available tools for the JVM, or other dynamic runtimes. If you'r
Author: Daniel J. Berger Author: Park Heesob Contributor: Shashank Date Here you will find documentation for the libraries of the win32utils project. These libraries are designed to help you interface with various MS Windows systems, ranging from the clipboard to services. The Win32Utils project only supports the NT family of operating systems. That means Windows NT 4, Windows 2000, Window
■ [misc] プログラマの仕事場 耳鼻科で思いついたネタ。 「病院の診察室できょろきょろしてはいけないよ」 「どうして?」 「尖った道具を見つけたら、何をされるのだろうと無駄に不安になるからさ。」 「レストランで厨房を覗き込んではいけないよ」 「どうして?」 「手の洗い方が雑なのを見つけたら、それで大丈夫なのかと不安になるからさ。」 「ねえパパ、パパはプログラマだよね」 「そうだよ」 「パパの職場も見てはいけないの?」 ■ [ruby] Webアプリのテストに役立つらしい「Webrat」って何だ? WebratはRubyのライブラリで、 def test_sign_up visit "/" click_link "Sign up" fill_in "Email", :with => "good@example.com" select "Free account" click_butto
Ruby Weekly is a weekly newsletter covering the latest Ruby and Rails news. So here we are right in the down period between Christmas and the start of the New Year. Few big releases or new developments come out at this time of the year, so it's a good time to either enjoy time offline or.. to get reading some insightful articles we wouldn't normally have time for! Luckily a few Rubyists have been
本稿ではRubyを使ってシンプルなPOP3サーバ(POPd)を作成します。POP3は、いわゆる「メールの受信」のときに使われるプロトコルです。実際にPOP3でサービスを提供するサーバを作成していく過程を通じて、ネットワークプログラミングの基礎、POP3の仕組み、Rubyによるネットワークプログラミング/UNIXシステムプログラミングについて学びます。 はじめに 本稿ではRubyを使ってシンプルなPOP3サーバを作成します。 POP3は、いわゆる「メールの受信」のときに使われるプロトコル(通信規約)です。本稿では、このPOP3でサービスを提供するサーバの作成を通じて、以下のことを学びます。 ネットワークプログラミングの基礎 POP3の仕組み Rubyによるネットワークプログラミング RubyによるUNIXシステムプログラミング POPdの概要 本稿で作成するPOP3サーバ(POPd)は、イン
Current Ruby Releases These are the complete API documents for base classes, modules, and included libraries in the current stables releases of Ruby. Complete API docs for Ruby 3.2.2 Complete API docs for Ruby 3.1.4 Complete API docs for Ruby 3.0.6 Complete API docs for Ruby 2.7.8 Complete API docs for Ruby 3.3.0.preview2 Older Ruby Releases Complete 3.2.1 Complete 3.2.0 Complete 3.1.2 3.1.1 Core
日本語データを扱うなら、テキストファイルじゃなくてちゃんとRDBに保存した方が良いですね。区切り文字とかが面倒をかけてきて、今回はクロールしてきたデータの一部を手動で修正してしまった。 できた。→大きいサイズ http://www.flickr.com/photos/shokai/3028846281/sizes/o/ 英語blogはHTML除去してsplit(/[^A-Z^a-z]+/)で分割すれば単語が取り出せたが、日本語blogはMeCabで形態素解析し、名詞だけを取り出すようにした。 Mac用 形態素解析エンジンMeCabをインストールしなおし(utf8で) - 橋本詳解 MeCabのRubyバインディングをインストール - 橋本詳解 Ubuntu用 MeCab Rubyバインディングをインストール - 橋本詳解 使用方法 twitterの友人のタイムラインを取得してとりあえずMe
The Ruby Core Library documentation is very similar for Kernel.system, Kernel.exec and %x[..]. Recently I needed to kick off a system process, so I spent some time working with all 3 options. Kernel.exec does exactly what the documentation states:Replaces the current process by running the given external command. If exec is given a single argument, that argument is taken as a line that is subject
書いたわけ yhara くんの『それany?で』を読んでいて,Enumerable.Any メソッド (System.Linq)」が来るのが面白かったので作ってみた.「同化はすでに始まっているのだ!」 対応表 るりまの「http://doc.loveruby.net/refm/api/view/class/Enumerable:title=」と MSDN Library の「Enumerable メソッド (System.Linq)」とをにらめっこしながらざっと分かる範囲でマッピング.間違いありそうなのでご注意を.さらに対応関係が微妙な奴も ? マーク付けてたりそもそも対応するものが無いことにしていたり結構適当なのでご注意を. とりあえずコピペしたものをひな形に使う等して,誰か完成させて下さいませ.あとついでに prototype.js の Enumerable とのマッピングもやってくれ
By Ilya Grigorik on July 08, 2008 Every language has its idiosyncrasies and Ruby is no different, hence, below is a collection of handy optimizations to keep in mind next time you're working on a Ruby project. Majority of them appear to fall into the syntactic sugar category, but it's important to understand the motivation behind each, as there is usually a concrete reason for the performance diff
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く