...

தமிழில் மொக்கைகள் ஆரம்பம்

தமிழில் தொடர்ந்து பதிவுகள் எழுதனுங்கறது என்னோட பல வருஷ ஆசை. ரொம்ப சோம்பேறித்தனமும், அப்புறம் தமிழ்ல டைப் பண்ணத்தெரியாததும் சேர்ந்து அந்த ஆசையை தள்ளிப்போட்டுக்கொண்டே வந்திடுச்சி. 

புது வருடம்.. புது ஆரம்பம்னு... எல்லாரும் சொல்றாங்க.  சரி நாமளும் அப்படியே நெனச்சு உருப்படியா இதையாச்சும் செய்யலாம்னு தோனிச்சு. அதோட இப்போ, கூகிள் மொழிப்பெயர்ப்பு கருவியைக்கொண்டு தமிழ் டைப்பிங்கும் கொஞ்சம் சுலபமா வருது 

ஆக இங்கே, தமிழில் என்னுடைய மொக்கையை ஆரம்பிக்கறேன். இந்த இந்த வருசத்திலேயச்சும் மனதிற்கு திருப்தி தருகிற மாதிரி கொஞ்சமாச்சும் உருப்படியா  எழுதனும் :) 

How To : Add 'active_record_shards' Rake Tasks to Rails Application

The 'active_record_shards' gem has its own implementation for the db rake tasks (like create, drop, etc) in its 'lib/active_record_shards/tasks.rb' file. To get this rake tasks into your rails application, add the below lines at the bottom of the Rakefile of your application.

require 'active_record_shards/tasks'



How to inspect the Filter Chain in Rails 3

Here is the Rails Console command to list the Filter Chain of a controller (eg: MyController)

MyController._process_action_callbacks.map(&:filter)

How To : Send emails via Gmail SMTP in Ruby

Here is a simple ruby code to send emails through Gmail SMTP servers.  This code uses the Mail gem available @ https://github.com/mikel/mail

require 'mail'

options = { 
            :address              => "smtp.gmail.com",
            :port                 => 587,
            :user_name            => '<gmail user name>@gmail.com',
            :password             => '<gmail password>',
            :authentication       => 'plain',
            :enable_starttls_auto => true  
}


Mail.defaults do
  delivery_method :smtp, options
end

Mail.deliver do
       to '<email of receiver>'
     from '<gmail user name>@gmail.com'
  subject 'Subject - Ruby Email via Gmail SMTP'
     body 'sample content sample content sample content '
end

Please do post your queries and suggestions in the comments section below.

KopyScreen.com - paste screenshots online.

Few weeks ago, I started reading about Go language and in that process, I wanted to build something using Go language. Just to keep things simple, I decided to build a simple website that would help to paste screenshots, annotate over the screenshot and then email it - thus started the project : KopyScreen.com


More features to be added slowly and steadily :)

TeamTalk - Getting Started with an Open Source Project

Whats is TeamTalk Project?
TeamTalk is a new side project, that I am planning to work during my free time. TeamTalk will be an open source project. 

Book Review : Go For No!

"Go for No!" was very short and simple, but was an awesome read. If you do any kind of job that involves getting plenty of rejections from people, then this book is a must read for you.