Nov 25

Simplicity is the Key

Category: Information

Image Source:farm2.static.flickr.com

It is quite interesting to recall how David Hansson, the creator of Ruby on Rails came up with this simple yet powerful tool for developers and programmers alike. Hansson, a native of Copenhagen has built an entire framework aiming to help simplify all the complexities of programming. And help developers save more time and energy thus be more productive with their work. It was his belief to look for alternative ways around the standard IDEAS of computer science that influence the work of programmers. This has led to so many complex product design, that would in turn lead to further complexity. He did not think of creating a complex framework for Google engineers to flock to. He instead concentrated on creating simple designs that would modify the database which developers face every time.

Comments are off for this post

Nov 20

アップルã¨ãƒ«ãƒ“ーãŒä¸€ç·’ã«

Category: Imp @ja


写真æä¾›:farm4.static.flickr.com

昨年ã€Mac OS X(レオパルド)ãŒãƒªãƒªãƒ¼ã‚¹ã•ã‚Œã€æŠ€è¡“è€…ã¨ãƒ‡ãƒ™ãƒ­ãƒƒãƒ‘ーを興奮ã•ã›ã¾ã—ãŸã€‚ OSパッケージã«ã¯ãƒ«ãƒ“ーアンドレイルズã®ãƒ•ルサãƒãƒ¼ãƒˆã‚‚å«ã¾ã‚Œã¦ã„ã¾ã—ãŸã€‚ ルビーオンレイルズã®åˆ—車ã¯ã„ã¾ã ã‚¢ãƒƒãƒ—ル内ã§èµ°ã£ã¦ã„ãŸã‚ˆã†ã§ã™ã€‚ ルビーをパッケージã«ä½¿ã£ãŸã‚¢ãƒƒãƒ—ルã®ãƒã‚¤ãƒ©ã‚¤ãƒˆã®å¹¾ã¤ã‹ã§ã‚ãªãŸãŒè¦‹é€ƒã—ãŸã‹ã‚‚ã—れãªã„ã‚‚ã®ã¯ä»¥ä¸‹ã§ã™ã€‚

  • iPhone設定ウェブユーティリティー - ユーザーãŒiPhoneを管ç†ã§ãるよã†ã«ãƒ«ãƒ“ãƒ¼ã‚ªãƒ³ãƒ¬ã‚¤ãƒ«ã‚ºã§æ›¸ã‹ã‚ŒãŸãƒ„ール
  • SproutCore JavaScriptフレームワーク - デスクトップã®ã‚ˆã†ãªã‚¢ãƒ—リケーションをウェブ上ã§ä½œæˆã™ã‚‹ã‚ˆã†ã«è¨­è¨ˆã•れã€ã‚¢ãƒƒãƒ—ãƒ«ã®æ–°MobileMeアプリケーションã«ä½¿ç”¨ã•れる。 注〠SproutCoreã¯ãƒ«ãƒ“ーã®ãƒ—ロジェクトã§ã¯ã‚りã¾ã›ã‚“ãŒã€ã‚·ã‚¹ãƒ†ãƒ ã«è‰¯ã„連çµã‚’æä¾›ã—ã¾ã™ã€‚
  • Macルビープロジェクト - Objective-Cランタイムスã«å¯¾ã™ã‚‹ã‚¢ãƒƒãƒ—ル自体ã®ãƒ«ãƒ“ーã®ãƒãƒ¼ãƒˆã€€- ã“れã«ã‚ˆã‚Šã€ãƒ‡ã‚¹ã‚¯ãƒˆãƒƒãƒ—開発ã®ã‚³ã‚³ã‚¢ã‚’çµ±åˆã™ã‚‹ã“ã¨ãŒéžå¸¸ã«ç°¡å˜ã«ãªã‚Šã¾ã—ãŸã€‚
  • Comments are off for this post

Oct 6

Ruby Migrations

Category: Information


Image Source: netbeans.org

Ruby Migrations support all the basic data types like string, text, integer, float, datetime, timestamp, time, date, binary and boolean.

  • string is basically used for small data types such as a title.
  • text is used for longer pieces of text data, such as the description.
  • float is used for decimals.
  • integer is used for whole numbers.
  • date and time is used to store either the date only or time only.
  • boolean is used for storing true or false values.
  • binary is used for storing data like images, audio, or movies.
  • datetime and timestamp is used to store the date and time into a column.

Rails Migration activities can be done using any front end GUI or direct on SQL prompt. Rails Migration makes all those activities very easy. Valid column options are: limit (:limit => “50â€), default (:default => “blahâ€), null (:null => false implies Not Null)

Comments are off for this post

Sep 29

Apple and Ruby Together

Category: Information


Image Source:farm4.static.flickr.com

Last year was an exciting thrill for the techies and developers alike, when Mac OS X (Leopard) was released. And with full support for Ruby and Rails included in the OS package. It seems that the Ruby on Rails train is still rolling with Apple. Some of highlights of Apple, using Ruby in its package, that you might have missed out includes:

  • The iPhone Configuration Web Utility – A tool written with Ruby on Rails allowing its user to manage iPhones.
  • The SproutCore JavaScript framework – Which is designed for making desktop-like applications on the web and is used in Apple’s new MobileMe applications. Fyi: SproutCore is not a Ruby project, but it does offer some good tie-ins to the system.
  • The MacRuby project – Apple’s own port of Ruby to the Objective-C runtimes – which should make it much easier to integrate with Cocoa for Desktop development.
  • Comments are off for this post

Aug 17

Ruby on Rails Development Tips


Image Source: www.web2.socialcomputingmagazine.com

Ruby on Rails is great for acquiring ideas prototyped super quick. These tips will slow down growth and make apps less portable, but definitely progress the speed your system
Ruby on rails coding style:
• Try to evade the over indulgence use of helpers since it adds overhead.
• You may think about using memcached to cache your model and library computation results.
• Use a custom configuration file for passwords and API keys instead of keeping them in your Subversion repository. Use YAML and mirror the style of database.yml.
• Use constants when desired. Instead of repeating strings like the address of your customer service reply email, set it once in a constant (in environment.rb or the appropriate environment file) and use that throughout your application.
• Keep time in UTC. A no brainer, and easy to do.
• Don’t loop through ActiveRecord models inside other models. Use keen loading if you need to exertion with multiple associated models. Better yet, write a custom SQL query and let the database do the work for you.

Comments are off for this post

Jul 1

RoR and Text Editors Part-2

Category: Basics

More on text editors that are used with RoR and we not discuss VIM or Vi Improved. Vim like Emacs is quite efficient and easy to use with RoR provided it is set-up properly. The nice about Vim is that it has the nifty way of highlighting syntax in ruby making it easy to trace and debug. It features advanced features such as having a selective command and insert mode with the first being the default mode upon startup. It is not a word processor so fonts and other word processor features are not to be expected.

TextPad
One of the quickest and easiest to use as a text editor for making RoR programs with straightforward interface and features mostly adept to windows users. Though considered a text editor it is capable of syntax highlighting, search , spell check and macro recording which makes it a choice of many developers.

ArachnoRuby
Is deployable on both windows based and Unix based systems and is considered to be the native editor of RoR. It was not too user friendly so it quickly lost favor of many developers who turned to the other specified editors for programming code.

Comments are off for this post

Jun 1

Before You Start

Assuming you have even just a little background in programming with any language there are four basic programs and extensions that you need but are provided by the quick installers you’ve just downloaded to your hard drive. You have The Ruby programming language program files, the Rails part of the programming extension/platform, MySql or your database query handling system and the Apache which is a web server that you use to emulate your application’s execution on the web. Granting you have these set up properly and tested (instructions for which are included in the installer package). You can now start building your first application with RoR.

Comments are off for this post

May 30

What to Look for in a Hosting Company that Supports Rails (Part 2)

Category: Information

5. Rails Documentation (that is why some websites have FAQ’s if they can’t solve your problem, then you might have a bigger problem)
6. Scalability Options (do they meet your demands presently and for the future?)
7. Pre-installed Gems (much better if they already have this)
8. mySQL, PostgreSQL and SQLite Databases (options are better than no choice at all)
9. Subversion, Trac, and/or Buzilla Hosting (company that supports developers are good companies)
10. A Website or Applications of Their Own Developed with Rails. (a good sign that they mean business with a framework)

Comments are off for this post

May 27

What to Look for in a Hosting Company that Supports Rails (Part 1)

Category: Information

Sure, you are about to go Rails, but which company works best? How would you know right? Well, the ten listed below are your criterias for a good Rails application in a company.

1. Shell/SSH Access (the command line is important)
2. Fast CGI, SCGI and/or Mongrel Support (needs to have speedy connection)
3. The Latest Ruby on Rails Releases (updating is important, if they don’t update, security problems may be up)
4. Support Staff who knows Rails (it is better to know someone who can guide you with your every single inquiry than taking a wild guess)

Comments are off for this post

May 24

Rails Render

Category: Information

Rails render is a well-built technique that assists you to provide your web pages. It has proven itself as easy to use and it is less time consuming. So, Rails on Ruby has Rails Render in supporting you to fix up your site. Tom make Rails Ruby easy to use, Rails Render has provided the following commands. It appears in different varieties like:

1. Action (renders an action in the present controller)
2. Partial (renders a part of your web page)
3. Template (renders a page, the file path is comparative to your application)
4. File (complete path is needed)
5. Text
6. Json

Comments are off for this post

« Previous PageNext Page »