instance_exec , changing self and params

Multi level STI in development mode

$LOADED_FEATURES and require, load, require_dependency

I am not seeing hoptoad messages. Now I know why.

Logging from initializers and plugings

List of only the elements that contains

Singleton function in JavaScript

nodejs just the right tool for ...

exception2db - Rails plugin to store exceptions in database

Regular expression in JavaScript

nodejs too many open files

Get started with nodejs in steps

Two ways of declaring functions and impact on variable hoisting

Lessons learned from JavaScript quizzes

git pull witout git pull origin experiment

Practical example of need for prototypal inheritance

Prototypal inheritance in JavaScript

return false considered harmful in live

Simplest jQuery slideshow code explanation

Build a google chrome extension using jQuery

Unit Testing JavaScript using Qunit . See live result and test code

How jQuery selects elements using Sizzle

Inject for array

DOMLint

Understanding jQuery effects queue

jQuery edge delegate method has arrived

jQuery show method edge case

jQuery fadeTo method fades even the hidden elements

Evaluating a boolean operation can return non boolean value in both ruby and in JavaScript

Order of format matters in respond_to block

How animate really works in jQuery. Simple animation case discussed

Is code documentation? Well it depends.

Act on Result made easy with jQuery Form

Handling JSON parsing natively in jQuery 1.4 and what changed from jQuery 1.3

How jQuery 1.4 fixed rest of live methods

Calling collect method on an array with single item

Hidden feature of jQuery Calling a method on a jQuery collection

Ruby EventMachine a short introduction

Running rake task in background and not blocking the port

hash method in ruby

ensure method in ruby

Use end more often in jQuery while building DOM elements

show_response to help debugging functional tests

JavaScript Basics Quiz

||= vs &&=

extending self in a module

How live method works in jQuery. Why it does not work in some cases. When to use livequery

Encapsulation in JavaScript

Dynamic restful routes

Integrating JavaScriptLint with mvim and getting rid of annoying warnings

Wrap your function with self invoking jQuery instead of performing find/replace

Easy partials

Enabling gzip on apache to send compressed data

Testing JavaScript with blue-ridge, Screw.Unit, env.js and Rhino in a rails application

session_expiration_management plugin to allow users to extend their sessions

always_at_bottom jQuery plugin which keeps footer at the bottom of page

Fixing ActiveRecord Base.all and making it friendlier to named_scope

Undoing a commit and "failed to push some refs to .." error

Understanding this in Javascript object literal

memcached and cache_fu

action caching in broken in plugin cache_fu

Why not use join instead

jQuery custom events

Handling AJAX errors and displaying friendly error messages to users

jQuery base code to create a jQuery plugin

jQuery.Data for inspecting jQuery internals and for storing information

Event propagation and peventDefault

jQuery recommends including stylesheets before including javascripts

What is JSONP?

Where is the code that actually translates _method value for put and delete requests

$stdout.sync = true to flush output immediately

Validating non active record model using active_record_no_table

Functional scope in Javascript and how Javascript continues to surprise me

Create fixed size thumbnail using attachment_fu . Example with pictures included

Do not have a column called notify. ActiveRecord will blow up

gem to quickly test your javascript javascript_lab

How to create a dynamic javascript widget

Ways to create String

How to call a private method without using send

Book Review Learning jQuery 1.3

Extending routes through plugins

before_save callback be careful accidentally do not return false

What is Inflector and how does it work

should_validate_format_of for easy format testing

JSON formatting that is easy on eyes

How cookie stores session data in Rails

Plugin admin_data for browsing, searching, editing and managing database records

Single quote, backslash and string substitution in ruby

Use Has.new to set a default value

Javascript double equal vs triple equal

How to handle exception while developing api in ruby on rails

Use exists? to check if a record exists or not

Javascript tip do not pollute global namespace with utility functions

Usage of Closure in Javascript

Understanding jQuery Plugin Pattern and self-invoking javascript function

How to find if my commits are executed in a transaction or not

Column change and adding data in the same migration

Autoloading and re opening a class

Use around_filter to ensure that each page has a title

Running one instance of rake task at a time using cron job

Testing lib code , autotest and keeping rake tasks simple

Restful architecture does not mean one to one mapping with model

Dirty object check and pushing more functionalities to model from controller

ActiveRecrod under used method merge_conditions

named_scope.size or named_scope.count trap

rescue_action_in_public, local_request? and how to configure local_request

Validating non ActiveRecord models in Rails 2.2

Query caching, random records and how to overcome query caching issue

How to resolve git merge conflict caused while doing git rebase

You need to learn git even if you are using some other version control system

Where is ruby installed? Where are gems installed?

I just render html and hence I do not need to worry about respond_to. Wrong!

Do not pass 'false' as a paramter

String interpolation and creating shoulda macro should_assign_to_value

Git branch name in the prompt

ParmalinkFu can slow down tests significantly

Override automatic updated_at in ActiveRecord/Rails

Difference between undef_method and remove_method

Use interative rebase feature of git to keep your master branch clean

Making dupllicate tests blow up in Shoulda

Code works in development but not in production - II

Follow ruby idioms but don't go overboard; if statement analysis

How to handle exceptions in controllers, rake tasks and regular classes using Hoptoad

Sanitizing html in model is easy with Sanitize

Code works in development but not in production - I

Iterating through model records in small chunck

How to use branch feature of git and work with github

Using Capistrano to deploy an application from github to slicehost slice

Setting up ftp server on slicehost

Marking the slicehost slice secure

Installing ruby, rails and other gems on slicehost

Installing mod rails on slicehost slice

Installing apache and MySQL on slicehost

DNS settings on slicehost

Configuring the ubuntu box on slicehost

Prompting for user input in capistrano

Calling a javascript function buried in iframe from the main window

Getting stage variable in capistrano

Updating rubygem to 1.3.1 on ubuntu

Getting scalar elements from Rails and issue with script/console

Creating select sql using construct_finder_sql

Living with Legacy Software Speech by DHH

Hash can have comma at the end

Ruby Conference Video Coding for Failure

Simple shell scripts I use

Beware of capitalize method

Updating rubygem to 1.3.0 on ubuntu

Saving has many association children after modifying the children

Understanding bindAsEventListener in prototype framework

Understanding bind in prototype framework

Prototype stopObserving works only on same method

Use alias_attribute to get an easy to remember name for your column operations

Ruby gsub edge case

Getting association_ids in has_many associations

Testing Getting your code tested is side benefit

Prototype javascript library - why classes start with Class.create()

alias vs alias_method

Using current_user in model and other places

How to find number of days in a year

Setting the id of a model to a pre defined value

Under the hood how named_scope works

Using checkboxes in Rails is best when used with []

Do not name any method called 'process'

Unique string key for a model

How to find all the associations on a model

Attaching multiple files in a nice user interface manner

Restoring the production/staging database on the local machine's database

Lessons from writing my own blogging engine roll_my_blog

Capistrano provides .caprc ; something similar to .irbrc and .railsrc

Using helpers in controllers

Testing tip use method login_as

show_sql method to see sql statements in script/console

Easy way to create and conditions from params

Installing a ruby on rails application using phusion passenger on ubuntu on slicehost

Model.first and Model.find( first, conditions => '') issue in postgresql

index_by method in activesupport

multiple joins with the same model

case insensitive search using like

putting callbacks in your class is easy with ActiveSupport

cattr_accessor is rails thing

Using built in observer in ruby

Dig into source code

kind_of? is helpful

Dir.glob vs Dir.chdir + more

How controller and view share instance variables

How helper_method brings methods to view level

require in ruby be careful with slashes

joins and includes in find

Why named_scope is a better tool than traditional find ( Part II)

Why named_scope is a better tool than traditional find ( Part I)

Building a conditional query with scoped

Auto timestamping in Rails

merging of two hashes with conditions

Is new an instance method or a class method?

Ruby doesn't believe in class methods

Keynote by Chris Wanstrath

Is defined? a method in ruby

Class within a class

UnboundMethod in ruby

sorting a hash based on the value

Rails does not turn column names into instance variables

has_many assocation extensions and pagination issue

rescuing from LoadError

Ruby is mainstreaming and it is about time documentation gets fixed

restful path with other options

polymorphic paths are nicer and underused

Ways to get to your constant

All models have .name method

rake tasks for testing lib, helper and all

Putting a marker before every new request

Delete link for nested resource

Why you can't add an array to a string

Watch autoload magic live

Autoloading changes for a Class in lib directory

Why the id of nil is 4 in Ruby

Fragment caching and Rails 2.1

Validating non active record models for rails 2.1

When to use self in ActiveRecord callbacks

Validating non active record models

to_yaml is not core

Iterating through models in small chunks

Routing for RESTful resource

Substituting variables in ruby string

How hash works with block in ruby

ActiveRecord Base.connection.quote

Rails under the hood How respond_to works

Working with Sphinx fulltext search engine using ultrasphinx

Ruby gets out of your way in development

FileList from Rake

ruby script/console tip less output

block vs lambda vs proc

rake db migrate reset VS rake db reset

include vs extend in Ruby

has_many association behind the scene action

Setting up Ruby on Rails on windows

Catching load error

Difference between puts "#{y}" and puts y

returning keyword

ActiveRecord pagination and being nice to RAM

Freezing a particular version of rails

ferret pagination using will_paginate

Representing string in alternate ways

capistrano set deploy_via, export

sudo and cd issue in capistrano

Migrating from wordpress to Mephisto and keeping data intact

God for restarting mongerl,apache,mysql, ferret_server

include, extend, module_eval, class_eval

Instance destroy vs class destroy vs class delete

Capistrano invoke command

Implementing rot13 in Ruby

I didn't know you could something like this

Understanding life cycle of Rails when the server starts up

How to get table names and column names automatically

How to do a redirect on an AJAX request

Range query and sorting in Acts as ferret / ferret

Understanding bind and bindAsEventListener in Javascript - Part II

Line break issue with RedCloth

Understanding bind and bindAsEventListener in Javascript

Symbol to proc goodie

Deciphering protected methods in Ruby

Ruby class variables and inheritance

Trying to make sense of instance_eval

Another attempt to understand plugin validates_existence

Model name as a variable

update_attribute doesn't trigger validation but update_attributes does

Migrating existing images to attachment_fu

New version of EventsInIndia.com is out there

This one is for myself

How to validate date

Focust on first element of the form - a great plugin

Raising the right exception, yell as logging, array shuffling, include in ActiveRecord

with_scope, symbol to proc and content_for

require vs require_dependency

View all your routes during startup of the server

Ruby class_eval in detail

Rails plugins - digging deeper

ruby script/runner

Commenting out the code in .rhtml

__FILE__ in ruby

Is this sign of maturity

How to provide focus to first input field or textarea on page

Article for ReadWriteWeb.com

Announcing the release of IndiaUpcoming.com

How dynamic finders work in Ruby and in Rails

REST is here in Rails

Convenient Finder Parameter in Rails

Java/J2EE getting too complicated

EventsInIndia.com is live

Hibernate collection filters

Problem with session.load in Hibernate

Touching collections to invoke lazy-loading

One-to-many uni-directional relationship and null issue

Hibernate session.close does _not_ call session.flush

Hibernate association behind the scene action