- エンジニアにもわかる「ユーザーインターフェース設計」 (Yahoo! JAPAN Tech Blog)
- 「Perl技術者の雇用を増やしたい」,普及推進団体Japan Perl Associationが活動開始:ITpro
- 「Perl技術者の雇用を増やす」、JPAが本格始動 − @IT
2009-04-10 Fri
■ 今日の del.icio.us (2009-04-10)
■ 飲み @ bar D
tag: [alcohol]
bar-code,crow-bar の系列のゴルフシミュレータのおいてある
レストラン・バー.
シミュレータの利用は一時間 6000 円.
〒420-0852
静岡市葵区紺屋町 6-91 紺屋町中ビル 4F
TEL: 054-260-5500
■ no target オープン
他の店舗に較べ,明るくて広い.
とりあえず,T-shirts 取り置き.
■ smtp で大量にメールを送信する
tag: [Ruby]
Postfix のパフォーマンス確認のため,
以下のような script で大量に送信をしてみた.
#!/usr/bin/ruby require 'net/smtp' THREADS = 4 NUM = 5000 # 1 thread 当たりの送信件数 CONTENT = "a" * 4 * 1024 MAILSERVER = "postfix.example.com" TO = "[email protected]" threads = [] (1..THREADS).each do |i| threads << Thread.new do puts "start thread: #{1}" (1..NUM).each do |i| Net::SMTP.start(MAILSERVER, 25) { |smtp| smtp.send_mail("test mail #{i} to #{TO}.\n#{CONTENT}", "[email protected]", TO) } end end end threads.each do |i| i.join end