Archive for year 2014


Installing Ruby RVM is the best Tool to manage multiple versions in your system. # Update your package manager first: $ sudo apt-get update # Install dependencies for ruby # This installs CURL, Git and other dependencies sudo apt-get install git-core curl zlib1g-dev build-essential libssl-dev libreadline-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt1-dev libcurl4-openssl-dev python-software-properties sudo apt-get […]


Read More..

Problem I have to edit a proposal among many proposals. When we click edit button a popup appears with all fields filled. There is a button ‘Verify’ to preview the proposal before sending to client via Email. Suppose URL to edit proposal is proposals/:id/edit  It shows a popup with all fields filled and a ‘Send’ and […]


Read More..

Though they look and sound similar, there is significant difference between these method. Some forcefully update the record where some only set the attributes but do not send the query to the database.


Read More..

Jquery Date Picker: Disable Previous Date 

ShivaShiva Bhusal (CTO) 0 Min. Read Oct 7, 2014
 Rails Ruby JS

To disable the user to select dates earlier than a date, you need to create a Date object of your barrier date as follows #Create a Date Object barrierDate = new Date(“2014/02/12”); #Apply datepicker to a field #You can also set format of date you prefer $(‘#idOfDateField’).datepicker({minDate: barrierDate});


Read More..

window.parent gives you access to the Parent document of iFrame. This code is supposed to be accessed inside of iframe
Read More..

Custom Close Button : Magnific Popups J Query 

ShivaShiva Bhusal (CTO) 0 Min. Read Sep 30, 2014
 Rails Ruby JS

We can close magnific popup in various ways We can add a button within the popup and assign a function on click event like $(‘#close-button-verify’).click(function(){ //This will close the most recently popped dialog //This method specially works for auto popped dialogs i.e. //Popup you opened using $.magnificPopup.open() $.magnificPopup.close(); }); If popup is triggered via onClick […]


Read More..

It’s very easy to send Email via rails 3 and above. You just need to write few lines of codes and you are done. There are two ways you want to send email You can just send email via any Email address you wish, eg: someone@example.com Next is, you can send email via email servers […]


Read More..

You can send email from any email address by just configuring the SMTP address to ISP's email settings.
Read More..

Submit form data via AJAX using jQuery
Read More..

HTML forms provide three methods of encoding. application/x-www-form-urlencoded (the default) multipart/form-data text/plain The specifics of the formats don’t matter to most developers. The important points are: When you are writing client-side code, all you need to know is use multipart/form-data when your form includes any <input type=”file”> elements. When you are writing server-side code: Use […]


Read More..


You might also like


Write To Me

Hire me shiva bhusal
We'll never share your email with anyone else.
I'll never share your email with anyone else.