April 2013
1 post
5 tags
Remove backup file created by gEdit (files ending...
I have a project on github which I develop on Ubuntu. I used gedit for a while to write all my codes (I am currently using Sublime Text2) and it create backup files for each file I work on. And when I commit my projects on Github, this back up files are also uploaded to github. It was fine for a while, but in one of my interview I have been asked the reason why there are two copies of same file...
Apr 6th
June 2012
1 post
Uploading Rails 3 site on a server with Cpanel
Hi Last week I upload Rails 3.0.7 site on server. Provider of server had CentOS 5.8 (Final) and Cpanel and WHM 11.32.2. It took me more than week to successfully upload site. I would like share that pain staking process with you. First of all I was provided with root user name and password and Web Host Manager (WHM) root login. First of Cpanel 11.32.2 doesn’t support Rails 3 at all. So...
Jun 6th
May 2012
1 post
“Little Update to my first “File Upload in Rails” blog. File multiple...”
May 3rd
April 2012
2 posts
Which is Better? Writing presentation logic in...
Today I was writing code for displaying users on the webpage (in view file). I have to display 7 users profile pic on home page of certain website. But the condition was as such: First 4 profile pic will be top females (based on how frequently they visited site) and last 3 were male. These pictures were to shown of the same user’s who are in the same country as in site visitor. For...
Apr 23rd
How to upload multiple files in Ruby on Rails (No...
Today I was working on uploading multiple images in one of my Rails project. I would like to share what I did. I was using Rails 3.0.10 with carrierwave although I am pretty sure it can be used with paperclip and may be other gems like dragonfly. Here is my view file: <% form_for @screenshot,:url=>{:action=>"create"},:html => {:multipart => true} do |f| %> <input...
Apr 11th
March 2012
1 post
I read an interesting article through Talentopoly...
Today I read an interesting article through emails I receive from talentpoly and as a Developer It felt so right that I couldn’t stop my self to publishing it. I want to share this good article with all of you. Just check it out at http://22ideastreet.com/blog/2010/02/02/guilty-developer-syndrome/ or below is the post content written by Anthony Panozzo as it is. “ I’ve noticed that...
Mar 5th