background preloader

Rails Installer

Rails Installer

AppSumo: A Discount Bundle of Webapp Credits Suited to Ruby Developers By Peter Cooper / November 14, 2010 AppSumo is an intriguing "bad ass developer bundle" that brings together $1543 of credit for ten different Web app development related resources (most are Ruby focused or have Ruby APIs) for a mere $47 purchase. The services include: Twilio - an API driven telephony service (I use this — it's great)Heroku - the Ruby webapp hosting environmentHoptoad - the errors notification serviceNew Relic - the performance monitoring and application management serviceAs well as Recurly, SendGrid, MongoHQ, SauceLabs, Infochimps and Linode. Sadly I'm already signed up with most of these services and most of the credits are for new or upgraded accounts only, but if you want to give any of the above services a try or want to build a new app that relies on them, this looks like a steal. I also need to put a big fat disclaimer here in case you have problems with AppSumo: I'm not related to AppSumo, getting nothing from them (shame!)

Ruby on Rails製のブログCMS「PersonLab 自分でブログを立ち上げようと思ったら、エンジンには何を使うだろうか。MovebleTypeやWordPressが有名ではあるが、有名なものをただ使うのは何となく嫌だと言う人もいる。規模が大きくなりすぎて、コントロール不可能なイメージがあるのだ。 シンプルながら基本機能は抑えたブログエンジン 小規模で、それでいてカスタマイズも容易そうなブログエンジンがある。 今回紹介するオープンソース・ソフトウェアはPersonLab、個人のアイデンティティを確立できるブログシステムだ。 PersonLabはRuby on Railsで作られたブログエンジンで、中国語がベースになっている。 管理画面 ブログの右上にはユーザのプロフィール画像が表示され、利用しているWebサービスの一覧が表示できる。 管理画面はシンプルながらも使い勝手が良い。 既にあるブログエンジンはとても優秀なものが多い。 ブログエントリー画面 PersonLab Demo huacnlee's personlab at master - GitHub MOONGIFTプレミアムに登録して運営をサポートしてください! Ruby On Rails and PHP Cloud Hosting PaaS | Managed Rails Development | Engine Yard Platform as a Service A Look Into Ruby’s Object Model By Peter Cooper / November 3, 2010 A few days ago, Burke Libbey, a Winnipeg based Ruby and Rails developer, gave a presentation called Ruby's Object Model: Metaprogramming and Other Magic to the Winnipeg.rb Ruby user group. I though it was interesting enough to embed here. Presentations about metaprogramming and how the Ruby object model works are hardly anything new, but Burke has approached it in a friendly, easy to understand (though terse - but that's why it's a presentation) fashion, despite including the relevant C from MRI on the slides. Topics covered include how classes and objects are represented and related to each other, how singleton classes work, how method lookups work, and.. "more magic." Note: If your reader doesn't support embedded presentations, click here to see the presentation on Slideshare.

Magazine - Win32OLE 活用法 【第 2 回】 Excel ここまでで、Excel のオブジェクトモデルの概略を理解できました。 これから私たちは、Excel ファイルを実際に扱っていく方法について 学んでいきます。 この章では特に、 既存の Excel ファイルを Ruby でパースする 方法について学びます。 Excel ファイルの全データを出力 この節では、Excel ファイルに含まれる全シートの全セルの値を 出力するスクリプトについて説明します。 私たちは次のことについて学びます。 ファイルの絶対パスの取得方法Excel ファイルの開き方全ワークシートに対して処理を行う方法全行、全列に対して処理を行う方法ブックの閉じ方、始め処理、終わり処理のイディオムセルの値の取得の仕方Excel のセルの型と Ruby の型の関係 それでは、まずはスクリプトを見てみましょう。 excel1.rb 1| require 'win32ole' 2| 3| def getAbsolutePath filename 4| fso = WIN32OLE.new('Scripting.FileSystemObject') 5| return fso.GetAbsolutePathName(filename) 6| end 7| filename = getAbsolutePath("sample1.xls") 8| 9| xl = WIN32OLE.new('Excel.Application') 10| 11| book = xl.Workbooks.Open(filename) 12| begin 13| book.Worksheets.each do |sheet| 14| sheet.UsedRange.Rows.each do |row| 15| record = [] 16| row.Columns.each do |cell| 17| record << cell.Value 18| end 19| puts record.join(",") 20| end 21| end 22| ensure 23| book.Close 24| xl.Quit 25| end このスクリプトでは、Excel 表のデータを Ruby で扱えるように読み出しています。 これだけのスクリプトでも説明すべきことはいろいろとあります。 ここが出力を行う箇所になります。

Heroku | Cloud Application Platform Michael Hartl’s 15 Hours of Rails 3 Screencasts By Peter Cooper / October 13, 2010 Have you seen Michael Hartl's RailsTutorial.org? It's a free online "book" that walks you through from start to finish with building either a Rails 2.3 or Rails 3.0 app (though a $39 PDF rendering is also available). After finishing the book, Michael set to work on some screencasts covering the same ground in video form and it's now released: the The Ruby on Rails Tutorial screencasts, clocking in at over 15 hours of content, are now live. Michael's project is the latest in a line of self publishing efforts in the Ruby and Rails communities and it's gone down a storm on Hacker News. At $85, they might seem steep to some readers, but if you basically want to be able to look "over the shoulder" of an experienced Rails developer and see how a Rails development environment is set up and how multiple apps are built, there's nothing that can beat this. So if you want to learn Rails 3.0 in a practical manner from the ground up, check out Michael's screencasts.

Magazine - Ruby Library Report 【第 3 回】 O/R マッピング 登録データ [プロジェクト名] RAA:tapkit[作成者] 鈴木 鉄也[URL] 0.5.2[レポート環境] ruby-1.8(cygwin), PostgreSQL 7.4.5 概要 TapKit は EOF (Enterprise Objects Framework) を Ruby で実装した物です。 YAML による定義ファイルを用いて DB や マッピングの情報を記述します。 作者からの声 TapKit は単純な興味から作りました。 特徴を簡潔に述べて頂いて助かりました。 サンプル ユーティリティー TapKit では YAML でマッピング定義であるモデルファイルを記述します。 付属の modeler コマンドでモデルファイルを DB から直接リレーション等の情報を読み取って生成することが出来ます。 $ modeler PostgreSQL modeler-sample.yaml Login database with DBI URL: dbi:Pg:RLR_DB Username: babie Password: Selectable tables - ... 引数で与える adapter 名は MySQL, PostgreSQL, OpenBase, CSV の何れかを指定できます。 "URL:" プロンプトでは DBIの接続文字列を入力します。 最後に、"Select tables:" プロンプトでモデルファイルに書き出すテーブルをカンマ区切りで指定しますが、この時、空白を入れてはいけません。 modeler コマンドは設定ファイル自動生成してくれますが、未だ発展途上のようで、精度は今回のサンプルを用いた限りではイマイチです。 単純な参照 rorm と同じく単純な参照を行ってみましょう。 tapkit-simple.yaml コードの説明に移る前に YAML の各要素について解説します。 設定は大きく分けて 3 つのセクションがあります。 adapter_name TapKit の対応するアダプターを指定します。 connection DB との接続に関するセクションです。 entities エンティティ(テーブル)に関するセクションです。 url user password name

mhartl/rails_tutorial_sublime_text File: GUIDE.txt [spreadsheet-0.6.5.2 Documentation] This guide is meant to get you started using Spreadsheet . By the end of it, you should be able to read and write Spreadsheets. Reading is easy! First, make sure all that code is loaded: require 'spreadsheet' Worksheets come in various Encodings. Spreadsheet.client_encoding = 'UTF-8' Let’s open a workbook: book = Spreadsheet.open '/path/to/an/excel-file.xls' We can either access all the Worksheets in a Workbook… book.worksheets …or access them by index or name (encoded in your client_encoding) sheet1 = book.worksheet 0 sheet2 = Book.worksheet 'Sheet1' Now you can either iterate over all rows that contain some data. sheet1.each do |row| # do something interesting with a row end Or you can tell Worksheet how many rows should be omitted at the beginning. sheet2.each 2 do |row| # do something interesting with a row end Or you can access rows directly, by their index (0-based): row = sheet1.row(3) To access the values stored in a Row, treat the Row like an Array . row[0] row.format 2 Writing is easy row.at(3)

Related: