This domain may be for sale!
ベイジアンフィルターという仕組みを知ったのは、何年か前に迷惑メールの多さに困り始めた頃だった。OSX付属のMailにも迷惑メールフィルター機能は存在するが、これがあまり賢くない。(いくら学習させても、すり抜けてくる迷惑メールが日に何通かあり、また必要なメールを迷惑メールとしてしまったり。)そんな時に巡り会ったのが、PopfileMgrだった。 使い始めは全くトンチンカンな分類だが、間違って分類した時は、正しく訂正して学習させる。そうしているうちに、驚くほど高精度にメールを分類できるようになる。単なる迷惑メールのフィルタリングだけに留まらず、設定した通りに、どんな風にも分類してくれる。(例えば、「プライベート」「仕事」「DM」「買物」「迷惑」など。) 最近の1ヶ月を振り返って、迷惑メールか、それ以外で、その分類の精度を確認してみた。最近では1日に50通前後の迷惑メールが届く。今確認したところ
WEB+DB PRESS vol.56 届きました。技術評論社様、@inao 様、献本あざーっす! 献本と言えど、ビビッと電波を受信しないとレビューしないんで、割り引かなくていいですよ。(前号はリクエストが記事になったにも関わらずレビューしてない) WEB+DB PRESS Vol.58posted with amazlet at 10.08.22編 技術評論社 売り上げランキング: 108 Amazon.co.jp で詳細を見る 今号は特にラインナップがすばらしく、第1特集は「詳解 Rails 3」、第2特集「Emacs 活用∞」、第3特集は「HTML5×CSS3 革新ビフォーアフター」である。その他の記事も、NoSQL 一番の出世頭「Cassandra 実践入門」があったり、Ruby の連載記事は「今日から始める Ruby 1.9.2」で、stable バージョンリリースとのタイミング
Moving fast should not mean breaking things for your users. While testing on localhost is a good start, you need a near identical replica of production to catch any bugs before your code goes live. That is where a staging environment comes in. Heroku pipelines handle the infrastructure layout for you, keeping your deployment workflow clean and automated. Developers With Heroku's flexible app platf
hatena.vimの動作確認も兼ねて。 unscoped で論理削除されたものも引っ張ってこれるかと思ったら違った。 # mongoid-2.0.2/lib/mongoid/paranoia.rb <中略...> module ClassMethods #:nodoc: # Override the default +Criteria+ accessor to only get existing # documents. Passes all arguments up to +NamedScope.criteria+ # # Returns: # # A +Criteria+ for deleted_at not existing. def criteria(*args) super.where(:deleted_at.exists => false) end # Find delete
Action Mailer Base¶ ↑ Action Mailer allows you to send email from your application using a mailer model and views. Mailer Models¶ ↑ To use Action Mailer, you need to create a mailer model. $ bin/rails generate mailer Notifier The generated model inherits from ApplicationMailer which in turn inherits from ActionMailer::Base. A mailer model defines methods used to generate an email message. In these
Railsインストール - tetu1984の日記の続き 状況 scrip consoleを使おうとしたら以下の感じで怒られた $ ./script/console Loading development environment (Rails 2.3.5) /usr/local/ruby/1.8.7/lib/ruby/1.8/irb/completion.rb:10:in `require': no such file to load -- readline (LoadError) from /usr/local/ruby/1.8.7/lib/ruby/1.8/irb/completion.rb:10 from /usr/local/ruby/1.8.7/lib/ruby/1.8/irb/init.rb:254:in `require' from /usr/local/ruby/1.8.7
目の前にはcsvの山がある。これをrdbに突っ込まないといけない。その後railsアプリがそのrdbを使うのである。csvは何種類かあって,素直にテーブルに対応しているわけじゃない。つーことは突っ込むときにActiveRecordを使えればラクじゃろと思った。ARだけじゃなくて,便利なメソッドがたくさん入っているActiveSupportも使いたい。とりあえず何も考えずにスクリプトを書いてみる。 require 'rubygems' require_gem 'activerecord' とすればARは(ActiveSupportも)使えるようになる。でもモデルはrailsで作ったモデルをそのまま使いたい。同じ定義をコピペしてもいいんだけど,バージョンがずれたりすると困るし。 require 'rubygems' require_gem 'activerecord' $LOAD_PATH.p
『るびま』は、Ruby に関する技術記事はもちろんのこと、Rubyist へのインタビューやエッセイ、その他をお届けするウェブ雑誌です。 Rubyist Magazine について 『Rubyist Magazine』、略して『るびま』は、日本 Ruby の会の有志による Rubyist の Rubyist による、Rubyist とそうでない人のためのウェブ雑誌です。 最新号 Rubyist Magazine 0058 号 バックナンバー Rubyist Magazine 0058 号 RubyKaigi 2018 直前特集号 Rubyist Magazine 0057 号 RubyKaigi 2017 直前特集号 Rubyist Magazine 0056 号 Rubyist Magazine 0055 号 Rubyist Magazine 0054 号 東京 Ruby 会議 11 直
とりあえず、rubyから セルへの記入 色づけ(背景色) フォント変更(bold, italic) 名前の定義 名前へのリンクの作成 をやってみました。 require 'excel' require 'file-win32' def addName(doc, name, cell) doc.names.add(name, "=%s!%s" % [cell.worksheet.name, cell.address]) end Excel.runDuring(true, true) do |excel| doc = excel.workbooks.add doc.worksheets(1).name = "LL" ruby = doc.worksheets(1).cells(1,1) ruby.value = 'Ruby' perl = doc.worksheets(1).cells(2,1
Posted by Sam on Jun 09, 2009 at 12:00 AM UTC - 5 hrs From time to time I like to actually post a bit of code on this programming blog, so here's a stream-of-conscious (as in "not a lot of thought went into design quality") example that shows how to: Open Excel, making it invisible (or visible) to the user. Create a workbook and access individual worksheets Add data to a cell, or retrieve data fro
並列1000コネクションに耐える! Ruby のイベント駆動ライブラリ Rev と EventMachine の HTTPクライアント こんにちは、takada-at です。 Rubyのイベント駆動型ネットワークプログラミングフレームワーク Rev と EventMachine で HTTPクライアントを動かしてみました。 イベント駆動型ネットワークプログラミングフレームワークとは何か説明しだすと難しいですが、一言で言うと、以下のようになります。 # ふつうのフロー駆動型プログラム Net::HTTP.start(host, port){|http| res = http.get(path) #この処理が終わってから } puts "done" #この次の処理が実行される # イベント駆動型プログラム client = Rev::HttpClient::connect(host, port
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く