MySQL – Dump those tables

So how do you take backup of your MySQL database? Simple, launch SQLYog or HeidiSQL and export your database. Well its an easy solution on Windows. How would you go about it on Linux or simply put how wud you do it on command prompt. The answer is mysqldump. Its there on your system once […]

Read more "MySQL – Dump those tables"

Letz Talk Ruby and Rails

This is about Ruby and of course Rails. So lets get onto Ruby on Rails wagon. These are some things that I keep using these days: To check for empty file field: @image = Image.create params[:image] unless params[:image][:file_data].kind_of? StringIO here params[:image][:file_data] is the hash for image to be loaded. If the file field is blank, […]

Read more "Letz Talk Ruby and Rails"