#87 Generating RSS Feeds (revised) May 26, 2012 | 8 minutes | Views If you have a page containing a dynamic list of records, consider providing an RSS or Atom feed for it. It is quite easy to do with XML Builder and the atom_feed helper method as shown in this episode. Subscribe to Wa...
Posted by wbailey on May 27, 2012 — 0 comments Claws provides a command line interface to your Amazon Web Services account. With this release it now properly supports multiple regions allowing all instances to be reported along with their region displayed. Check out a screenshot of th...
HowTo Install Redmine in Apache Tomcat¶ As I'm running an Apache Tomcat Server already, I wanted to run redmine in it with Jruby, so I won't have to manage a mongrel/passenger setup. It was much easier than I though, and works very well with Redmine version 0.8.0 and 0.8.6 on Ubuntu K...
Forms in web applications are an essential interface for user input. However, form markup can quickly become tedious to write and maintain because of form control naming and their numerous attributes. Rails deals away with these complexities by providing view helpers for generating fo...
February 16, 2010 Tagged: rails view helpers time time_ago_in_words override i18n Comments (View) The More You Know: custom time descriptions Fred asked if we could shorten the “about 1 month ago” text in an information-rich table that was squeezing the created_at data. I’m not famili...
#337 Capistrano Recipes Mar 27, 2012 | 13 minutes | Deployment , Production , Tools Get the most out of Capistrano by writing specific recipes with ERB templates. Here I show how to deploy to a blank VPS by running just a few Capistrano commands. Subscribe to Watch Episode Tweet Show ...
Flexible schema : with Cassandra, like a document store, you don’t have to decide what fields you need in your records ahead of time. You can add and remove arbitrary fields on the fly. This is an incredible productivity boost, especially in large deployments. True scalability : Cassa...
なお、非 ASCII な文字を含むリテラルを magic comment なしに書いていた場合、US-ASCII ではない文字が存在しているとして、invalid multibyte char というエラーになります。これはソースコードの可搬性を確保するための処置です。スクリプトの作者は自分の書いたスクリプトがどのエンコーディングで記述されているかを知っています。しかし、そのスクリプトを入手した第三者が後からエンコーディングを知ることは簡単ではありません。日本語ならば NKF.guess 等でエンコーディングを推測することも不可能ではありませんが、ヨーロッパ系のエ...
To find the current layout, Rails first looks for a file in app/views/layouts with the same base name as the controller. For example, rendering actions from the PhotosController class will use app/views/layouts/photos.html.erb (or app/views/layouts/photos.builder ). If there is no suc...
27may2012 Interrogations , frightening photographs by Donald Weber. An Interactive Tutorial of the Sequent Calculus , by Edward Z. Yang. Engelbart’s Violin , “Conventional wisdom in the technology community holds that the personal computer revolution gave everyone access to profession...
What happened to reloading in Sinatra 0.9.2? What are my deployment options? How do I use sessions? How do I use session-based flash? Can I run Sinatra under Ruby 1.9? How do I get the “route” for the current page? How do I access helpers from within my views? How do I render partials...
But this approach becomes increasingly impractical as the table size increases, since User.all.each instructs Active Record to fetch the entire table in a single pass, build a model object per row, and then keep the entire array of model objects in memory. Indeed, if we have a large n...
This works on OS X (screenshot of result is at the top of this post) but it's all generic so if you can get JRuby and the SWT JAR and support files for your platform, this same code will render a native looking window with a label and button control on whatever platform you're running...
Warbler is a gem to make a Java jar or war file out of any Ruby, Rails, Merb, or Rack application. Warbler provides a minimal, flexible, Ruby-like way to bundle up all of your application files for deployment to a Java environment.
ディレクトリ・サービスは、LANなどのコンピュータネットワーク上にあるユーザ 情報、接続されているプリンターなどの資源を記憶し、検索しやすいようにまとめた ものである。ネットワークを一元管理するための情報を保存し、利用するために、 企業等の比較的規模の大きいコンピュータネットワークで利用されることが多い。 (中略) 代表的なディレクトリ・サービスとしてはDNSやオープンソースのOpenLDAP、 サン・マイクロシステムズにより開発されたNIS、ノベルのNDS、アップルのMac OS X Serverに標準搭載されているOpen Directory、マイクロソフトの...
goldentype stats overview Overview 1.0.1 1.0.0 golden ratio typography for compass 433 total downloads 0 downloads today 0 / 13,460 highest rank today
A generator for Ruby FFI bindings, directly from header files via LLVM's Clang compiler
Screencast: Hover Content in Rails and Prototype from Erik Andrejko on Vimeo . It is often a good idea to show content when the user hovers the mouse above a link or an element in a page. This technique has been abused by some , but when used correctly it can enhance the user's experi...
2005-03-26: RAA source code search [experimental] is opened at http://raa.ruby-lang.org/gonzui/ . For more details . 2004-05-28: RAA stopped. We detected penetration into helium.ruby-lang.org. Helium was the canonical name of raa.ruby-lang.org, which hosts whole RAA service. For more ...
バックトレースを扱う際の問題点と解決案 筆者は、現在の Ruby にはバックトレース関連で 2 つの問題点があると思っています。 1 つ目は、バックトレース内でファイル名や行番号がひとつの文字列に埋め込まれている点です。 caller() #=> ["ex2.rb:6:in `f2'", "ex2.rb:2:in `f1'", "ex2.rb:15"] このせいで、ファイル名や行番号を取り出すのにいちいち正規表現を使って切り出さなければならず、手間がかかるだけでなく結構な動作コストがかかってしまいます。 caller().each do |str| str =~ ...
tap 1.4.0 A configurable, distributable workflow framework. install gem install tap Download Documentation Subscribe Stats Authors Simon Chiang 11,623 total downloads 1,203 for this version Owners Links Homepage Gemfile gem "tap", "~> 1.4.0" Versions 1.4.0 January 9, 2011 1.3.0 May 2,...
Secure, encrypted file uploads using Crypt19 and CarrierWave