CSS Frameworks

By : saikiran - Designholik

A framework is a basic conceptual structure which you can use as a “scratch” for your web-projects. For instance, instead of defining global reset, consistent baseline, typographic rules or basic styles for forms over and over again — every time you work on a new project — you can prepare a default-style once and reuse it in all your future projects. This is what you call a CSS Framework. Major Advantages of CSS Frameworks

  • Increase productivity.
  • Cross Bowser Compatibility
  • Clean, Well structured easy to maintain code base.
Disadvantages of CSS Frameworks
  • Takes time to understand the CSS framework.
  • You ...

more info..
Topics : CSS Design

Rails and Django commands : comparison and conversion

By : Shabda Raaj

The most commonly used Rails commands and their Django equivalents

Rails | Django

rails console | shell
rails server | runserver
rake | None
rails generate | None
rails dbconsole | dbshell
rails app_name | startproject/ startapp
rake db:create | syncdb

The salient points to note are,

  1. Django has all commands via, Rails has it broken into rails and rake.
  2. Overall there are more Rails+Rake commands available than Django commands
  3. There is no one to one mapping between Rails and Django commands. Eg. There are no equivalent to rake doc:* or rake ...

more info..

The Rails and Django models layer Rosseta stone

By : Shabda Raaj

Rails Active records and Django models are more similar than they are different. This is a quick guide to converting between Rails 3 and Django 1.2, and is available on github at

Defining models

Both Django and Rails keep the canonical database representation in ruby or python.


class Post(models.Model):
    name = models.CharField(max_length = 100, )
    slug = models.CharField(max_length = 100, )
    body = models.TextField()

class Comments(models.Model):
    post = models.ForeignKey(Post)
    username = models.CharField(max_length = 100, )
    comment = models.TextField()


ActiveRecord::Schema.define(:version => 20100319195739) do

  create_table "comments", :force ...

more info..
© Agiliq, 2009-2012