久々にRailsプラグインの紹介です。 BackgroundFu は、Jacek Becela氏による、時間がかかる処理をバックグラウンドプロセスで実行するためのRailsプラグインです。 使い方ですが、まずはインストール。 1 % svn export https://svn.trix.pl/public/background_fu vendor/plugins/background_fu
Recent plugins 2008-10-11 [2399] cheat 2008-10-11 [2397] Fly Between Projects 2008-10-11 [1658] The NERD tree 2008-10-10 [2258] Git Branch Info 2008-10-10 [2398] hfile 2008-10-09 [1239] autoit.vim 2008-10-09 [2396] Cutting and pasting txt file in middle 2008-10-09 [2395] Fly Between Projects 2008-10-09 [1567] rails.vim 2008-10-09 [2204] TwitVim Read more...
RaPT は、Ruby on Railsのプラグインを管理するためのツールです。 RaPT is a replacement for the plugin script included with the Rails distribution. It's a little more fault-tolerant and featured than the default plugin script. The main additional feature is the ability to search for Rails plugins from the command line. なんとなく、名前がdebianのaptに似てると思うのは僕だけでしょうか。 以前から、RailsプラグインにもRubyGemsに相当するような パッケージ管理ツールがほしいと思っていたのですが、 これを使えば
jRails プラグインは、RailsアプリケーションのデフォルトJavaScriptライブラリである prototype.js + script.aculo.us の環境から、 jQuery を使うようにするためのRailsプラグインです。 プラグインをインストールする方法は、通常のRailsプラグインと同様です。 1 % ./script/plugin install http://ennerchi.googlecode.com/svn/trunk/plugins/jrails インストールすると、jQuery関係のJavaScriptファイル郡が public/javascripts以下にコピーされます。 あとは、jRailsプラグインがRailsのJavaScriptヘルパーをjQuery対応に してくれるので、そのままRailsアプリケーションを開発することができます。 当然な
→ ‘async_observer’ What Async Observer is a Rails plugin that provides deep integration with Beanstalk. beanstalkd is a fast, distributed, in-memory work-queue service. Its interface is generic, but is intended for use in reducing the latency of page views in high-volume web applications by running most time-consuming tasks asynchronously. Installing First you need to download and install beanstal
Fuシリーズ に新しい仲間が登場。 Running Long Background Tasks In Ruby On Rails Made Dead Simple BackgroundFu is simple. It has a nice interface resembling ActiveRecord (see examples below). It is small (51 lines of code, 73 lines of specs) and easily understandable. It’s perfect for doing those shiny ajax progress bars showing how busy your box is. It just works. 名前からして BackgrounDRB に近いのですが、機能も似ています。でももっとシンプル(D
最近話題の ActiveScaffold の開発メンバーでもあるLance Ivy氏のレポート。 How Rails' Benchmarks Lie I’ve been on a benchmarking blogging spree lately. Creating BenchmarkForRails (B4R) with its non-invasive benchmarking technique has made it very easy to play around with timing of key Rails methods and develop a better picture of the true costs. The results have been amazing. Railsのベンチマークでは測定しきれない部分の ベンチマークを可能にする Benchmark
m.class_collisions( *class_names) 生成するクラス名の衝突を検出します。 Generatorで生成する予定のクラス名をすべて列記しておきましょう。 m.directory(relative_path) RAILS_ROOTからの相対パスで、指定したディレクトリを利用する事を 宣言します。 m.template(relative_source, relative_destination, template_options = {}) Generatorが生成するファイルを宣言します。relative_sourceは、templatesディレクトリからの相対パスでERbテンプレートを指定します。relative_destinationには生成されるファイルの場所をRAILS_ROOTからの相対パスで記述します。 template_optionsには、:assig
Railsにははじめからprototype.jsやイフェクト用のeffects.jsが入っているので、手軽にJavaScriptによる各種イフェクトを楽しむことができる。 だが、人によってはprototype.jsよりも、プラグインで拡張できて軽量なjQueryの方がお好みだろう。その際にはこれを使おう。 今回紹介するオープンソース・ソフトウェアはjRails、Rails向けjQueryプラグインだ。 jRailsはプラグインとして提供されているのでインストールが容易に完了する。それだけで15種類を超えるイフェクトや、Ajaxによるデータの送受信を実装できる。 例えばクリックすると左右に震える「Shake」、クリックすると下に落ちる「DropOut」、下からせり出してくる「Grow」など。さらにprototype.jsやScriptaculo.usを使った際に利用される「form_remo
http://d.hatena.ne.jp/Rommy/20070514/1179164848 sqlite3を使用したMagic Multi-Connectionsの分かりやすいサンプルコードが合ったのでMySQL版を作ってみた。 ただこれだけじゃ芸がないので、 1.http://blog.tkmr.org/tatsuya/show/311-twitter-db-railsで書かれているロジックを元にしたランダムによるDBアクセス分散を組み込む。 2.自分で書いてみたあんまり良い感じには見えない重み付けによるDBアクセス分散を実装。 以下ソース。 変なコメントとか動作確認用のコードが混じってるけどあんまり気にしない。 require "rubygems" require "fileutils" require "active_record" require "magic_multi_co
■1 yaml_waml:「to_yamlでUTF-8な日本語がbinaryになってしまう問題を回避するRailsプラグイン」 id:Rommyさんの「日本語をto_yamlするとエンコードされてしまう問題を安直な方法で解決する」に該当する状況と幾つか遭遇したので、ほぼそのままRailsプラグインにしてみた。助かりました。ありがとうございます。 このプラグインはRuby本体のYAMLが修正されるまで(いつ??)のツナギとして、ar_fixturesと併用できます。Railsは1.2RC2(リリース乙)で動作確認しました。edgeでは試してません。インストールは、Railsプラグインなので例によって、以下のSVNリポジトリを対象にplugin/installなりvendor/pluginsにsvn:externalで。 リポジトリ (2008/01/22追記:URLを変更しました) バージョ
Bluehost - Top rated web hosting provider - Free 1 click installs For blogs, shopping carts, and more. Get a free domain name, real NON-outsourced 24/7 support, and superior speed. web hosting provider php hosting cheap web hosting, Web hosting, domain names, front page hosting, email hosting. We offer affordable hosting, web hosting provider business web hosting, ecommerce hosting, unix hosting.
In this walkthrough, I go through the available options and an example using attachment_fu to handle file uploads and image thumbnailing, and responds_to_parent to implement the iframe remoting pattern to work around javascript’s security restrictions on file system access. You can also download the complete example. This is an outdated article. I will be updating with a new article soon. Step 1.
Vimはそのままでもシェルプログラミング用の非常に優れたエディタだが、ほんの少し調整するだけで、スクリプトを書くための本格的なIDEに変身もする。Vimの調整は自分で行なうことも可能だが、Fritz Mehner氏によるBash Supportプラグインをインストールすれば手軽に行なうことができる。 Bash Supportをインストールするには、zipアーカイブをダウンロードして ~/.vimディレクトリにコピーし、アーカイブを展開する。また、~/.vimrcファイルの中にいくつかの個人情報を付け加えておくと便利なので、~/.vimrcファイルを開いて以下のような3行を追加しよう。 let g:BASH_AuthorName = 'Your Name' let g:BASH_Email = 'my@email.com' let g:BASH_Company = 'Company Name
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く