Sucess is…………when ‘Signature’ becomes an ‘Autograph’
Posts Tagged ‘lessons’
Success…….
Posted in Fun-and-morals, tagged lessons, morals on January 7, 2009 | Leave a Comment »
Handling Multiple foreign keys in Rails
Posted in Ruby on Rails, tagged lessons, Ruby on Rails on December 15, 2008 | Leave a Comment »
In some cases, you may want to have multiple foreign keys map to a single model. The following example explains how the “user_id” and “favorite_id” in a single table(Favourites) map to the User Model(table). class Favourite < ActiveRecord::Base belongs_to :user belongs_to :favourite_user, :class_name => “User”, :foreign_key => “favourite_id” end Now you can play around without [...]
True Christmas
Posted in Scriptures, tagged lessons, morals, Scriptures on December 14, 2008 | Leave a Comment »
Make us worthy, Lord, to serve our fellow men throughout the world who live and die in poverty and hunger. Give them through our hands this day their daily bread, and by our understanding love, give peace and joy.-Mother Teresa Good news is that, there are still many kind-hearted men in the world, they are [...]
Rails Migration symbols – Data Types
Posted in Ruby on Rails, tagged lessons, programming, Ruby on Rails on December 4, 2008 | Leave a Comment »
Migration column type… Converts to MySQL field type… Available options :binary TINYBLOB, BLOB, MEDIUMBLOB, or LONGBLOB2 :limit => 1 to 4294967296 (default = 65536)2 :boolean TINYINT(1) – :date DATE – :datetime DATETIME – :decimal DECIMAL :precision => 1 to 63 (default = 10) :scale => 0 to 30 (default = 0)3 :float FLOAT – :integer [...]
Install Ferret on windows
Posted in Ruby on Rails, tagged installations, lessons, Ruby on Rails on December 1, 2008 | Leave a Comment »
Download the ferret gem for windows from http://rubyforge.org/frs/?group_id=1028 (E.g) http://rubyforge.org/frs/download.php/34135/ferret-0.11.6-mswin32.gem Move to the directory where you downloaded the gem (cd Desktop/<download-location>) and do gem install <filename> (E.g) gem install ferret-0.11.6-mswin32.gem You may also need, gem install acts_as_ferret, for your project.
Erase free disk space – Disk Cleanup – Mac
Posted in Rails - Mac Leopard, tagged lessons, Mac OS on November 27, 2008 | Leave a Comment »
When you delete files by emptying the Trash, Mac OS X deletes the information used to access the files but doesn’t actually delete the files. Although the disk space used by deleted files is marked as free space, deleted files remain intact until new date is written over them. Because of this, deleted files can [...]
Don’t Blame, but Thank
Posted in Fun-and-morals, tagged lessons, morals on November 25, 2008 | Leave a Comment »
“Do not blame God for creating the tiger. Thank Him for not giving him wings.”
The procedure entry point mysql_stmt_row_tell could not be located in the dynamic link library LIBMYSQL.dll
Posted in Weird Errors, tagged bug fixes, lessons, MySQL, Ruby on Rails on November 25, 2008 | Leave a Comment »
If you are getting the following error, here is a quick fix that will get you working again. You will need to manually copy the libmysql.dll to the rubybin directory. Search for libmysql.dll file and copy it to the rubybin folder and
ERROR : could not find gem rails locally or in a repository
Posted in Weird Errors, tagged bug fixes, installations, lessons, Ruby on Rails, tips on November 25, 2008 | Leave a Comment »
If you find this error during rails installation, one solution may be this. Setting up http proxy Gem install behind proxy – MAC
Rails flash[:notice] problem
Posted in Ruby on Rails, tagged bug fixes, lessons, Ruby on Rails, tips on November 20, 2008 | Leave a Comment »
flash[:notice] is meant only for redirect action, because the message is only cleared after the redirected view request. So if you don’t redirect the request, and you click on the next request, that message will still be displayed. But sometimes, we just want to display custom error messages only for current request without the redirection [...]