Posts
Ruby on Rails Interview Questions: Advanced
In my previous post, I listed a few general interview questions for Ruby on Rails jobs. This one is intended to be more of an advanced level, not for the rookies :-)
What is Rack?Sketch out a deployment architecture of a Ruby on Rails application utilizing multiple servers.How can you secure a rails application to counter for Session Fixation?Where can I get the core rails framework source code?How can you reuse the models from one rails project into another?
Posts
Ruby on Rails Interview Questions
Ruby Specific Questions
The best place for learning ruby is to get started with the programming-ruby. It fairly covers the important bits in a very readable language. Here are a few quick questions on ruby:
What is rubygems?What is a Symbol?What is the difference between a Symbol and String?What is the purpose of yield?How do you define class variables?How do you define instance variables?How do you define global variables?How can you dynamically define a method body?
Posts
Uploading files with blog post
At times I wanted to push some files with my blog so that people can download and check something locally. Up until now, it was not a straight-forward way. I either uploaded the file to my own server or google pages or somewhere. Then linked it on the blog.
However, you can now publish files from Windows Live SkyDrive (total free space of 25 GB) or Google Docs (Total free space 1GB).
Posts
Experience notes from a RoR code review job
Recently I had the opportunity to review a ruby on rails code. The project aims to create an online market place for experts, with a similar model to some other freelancing/outsourcing sites. Here is how and what I reviewed:
I had a read-only access to the code and no download was allowed locally. So, I didn't get to run the code, tests or any tool to auto-generate some reports on the code.
Posts
Home/End key in Mac ( MacBook Pro ) Windows on Bootcamp
If you are anything like me, you love using the home and end key to quickly move to the start/end of a line of text. But, in Apple MacBook Pro, there is no default home/end key! I searched the internet and found Command + Left/Right to the rescue on OS X.
But, then I installed windows 7 on my Mac and it was nightmare to edit without the home/end keys.
Posts
acts_as_permalinkable: SEO friendly rails URLs using my first RoR plugin
As a byproduct of my work on www.campzero.com, I released my first ruby on rails plugin called acts_as_permalinkable on github athttp://github.com/smsohan/acts_as_permalinkableA comprehensive documentation is given at the github page. If you ever need to use search engine friendly urls or permalink like this blog, you may consider using the acts_as_permalinkable plugin. It takes less than 3 minutes to add the permalink feature to your rails model!Get started by the following and you are free to contribute!
Posts
Added Crummy to generate breadcrumbs for CampZero.com
According to google's SEO guideline, its a good idea to provide breadcrumbs to your web contents. This is good in two ways: a) It helps people to find path to move up the navigation stack and b) it helps the google and other search engines to get a feel about your web content's hierarchical organization.To add this breadcrumbs support, in my application www.campzero.com, a going to be online service marketplace for Bangladesh, I simply used the Crummy plugin.
Posts
Sitemap-generator for your Rails App and deployment solution
When talking about Search Engine Optimization for your public web pages, you probably try to follow the google guidelines for search engine optimization. Its a good one to get started with. For my recent project, www.campzero.com, I read the document and tried to follow the steps. Today, I worked on generating sitemap for www.campzero.com using the following:Installed the site-map generator plugin following this link at Aktagon's, github linkFor some reason, probably because of permission issues, my plugin install didn't generate the sample sitemap.
Posts
How to strip html tags, truncate and highlight texts in ruby on rails
Recently, I had the following requirements as I was working on CampZero.com - the going to be service marketplace of Bangladesh.Remove all html tags other than hyperlinks and new lines from a html fragmentTruncate the text to show only first 200 characters of the text and append ellipsis (...) in case the text was truncated.Highlight an array of words in the text to show the search query worlds that matchedThe first one, getting rid of all but hyperlinks and new lines was achieved by the following code:
Posts
How is Rails plugins helping me in developing CampZero.com?
I am up to a web venture called www.CampZero.com - an online market place for you service providers in Bangladesh. This is somewhat similar in spirit to classified sites like ebay and craigslist, but the target market it consciously chosen to be the service industry. Anyway, I will go to the point why I picked rails for this project and how it is paying off.
A little background about me.