<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-2672081878218216740</id><updated>2026-10-09T10:22:16.106-07:00</updated><category term="Ruby On Rails"/><category term="Java"/><category term="Javascript"/><category term="Rails Library"/><category term="Ruby"/><category term="Database"/><category term="Operating System"/><category term="Opensource"/><category term="Rails Caching"/><category term="Rake"/><category term="Useful information"/><category term="Ajax"/><category term="Git"/><category term="Mobile Apps"/><category term="Servers"/><category term="Testing"/><category term="Active Record"/><category term="Hacking"/><category term="Rails Active Record"/><category term="Reserch"/><category term="Security"/><category term="Social Networking"/><category term="others"/><title type='text'>My Experience With Programming by G S Rao</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://railsdocuments.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2672081878218216740/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://railsdocuments.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/2672081878218216740/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/17871013736706019733</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>88</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-2672081878218216740.post-6294529769350798508</id><published>2016-07-07T23:43:00.002-07:00</published><updated>2016-07-07T23:43:32.536-07:00</updated><title type='text'>Enabling password authentication for new ec2 box | ssh, ssh config, EC2 setup, new user in EC2, PasswordAuthentication</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;strong style=&quot;border: 0px; box-sizing: border-box; color: #7c705e; font-family: &#39;Open Sans&#39;, Helvetica, Arial, sans-serif; font-size: 16px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Your EC2 box only contain .pem auth to enable password authentication follow the steps&lt;/strong&gt;&lt;br /&gt;
&lt;strong style=&quot;border: 0px; box-sizing: border-box; color: #7c705e; font-family: &#39;Open Sans&#39;, Helvetica, Arial, sans-serif; font-size: 16px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;/strong&gt;&lt;br /&gt;
&lt;div class=&quot;googlepublisherpluginad&quot; style=&quot;-webkit-text-stroke-width: 0px; border: 0px; box-sizing: border-box; clear: none; color: #7c705e; font-family: &#39;Open Sans&#39;, Helvetica, Arial, sans-serif; font-size: 16px; font-style: normal; font-variant-caps: normal; font-weight: 300; height: auto; letter-spacing: normal; margin: 0px; orphans: auto; outline: 0px; padding: 0px; text-align: center; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; width: 535.59375px; word-spacing: 0px;&quot;&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; border: 0px; box-sizing: border-box; color: #7c705e; font-family: &#39;Open Sans&#39;, Helvetica, Arial, sans-serif; font-size: 16px; font-style: normal; font-variant-caps: normal; font-weight: 300; letter-spacing: normal; margin: 0px 0px 24px; orphans: auto; outline: 0px; padding: 0px; text-align: start; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; border: 0px; box-sizing: border-box; color: #7c705e; font-family: &#39;Open Sans&#39;, Helvetica, Arial, sans-serif; font-size: 16px; font-style: normal; font-variant-caps: normal; font-weight: 300; letter-spacing: normal; margin: 0px 0px 24px; orphans: auto; outline: 0px; padding: 0px; text-align: start; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;
By default your ec2 box come with .pem authentication, once you create your user and password for that user you can’t able to login with that credentials because EC2 by default disables that functionality.&lt;/div&gt;
&lt;div style=&quot;border: 0px; box-sizing: border-box; color: #7c705e; font-family: &#39;Open Sans&#39;, Helvetica, Arial, sans-serif; font-size: 16px; margin-bottom: 24px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
Edit ssh config file by below command&lt;/div&gt;
&lt;div style=&quot;border: 0px; box-sizing: border-box; color: #7c705e; font-family: &#39;Open Sans&#39;, Helvetica, Arial, sans-serif; font-size: 16px; margin-bottom: 24px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;code style=&quot;border: 0px; box-sizing: border-box; font-family: Monaco, Consolas, &#39;Andale Mono&#39;, &#39;DejaVu Sans Mono&#39;, monospace; font-size: 0.8125em; line-height: 1.84615em; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;$ sudo vim /etc/ssh/sshd_config&amp;nbsp;&lt;/code&gt;&lt;/div&gt;
&lt;div style=&quot;border: 0px; box-sizing: border-box; color: #7c705e; font-family: &#39;Open Sans&#39;, Helvetica, Arial, sans-serif; font-size: 16px; margin-bottom: 24px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
Search for&amp;nbsp;&lt;strong style=&quot;border: 0px; box-sizing: border-box; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;PasswordAuthentication&lt;/strong&gt;&amp;nbsp;setting and setit to yes&lt;/div&gt;
&lt;div style=&quot;border: 0px; box-sizing: border-box; color: #7c705e; font-family: &#39;Open Sans&#39;, Helvetica, Arial, sans-serif; font-size: 16px; margin-bottom: 24px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;code style=&quot;border: 0px; box-sizing: border-box; font-family: Monaco, Consolas, &#39;Andale Mono&#39;, &#39;DejaVu Sans Mono&#39;, monospace; font-size: 0.8125em; line-height: 1.84615em; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;PasswordAuthentication yes&lt;/code&gt;&lt;/div&gt;
&lt;div style=&quot;border: 0px; box-sizing: border-box; color: #7c705e; font-family: &#39;Open Sans&#39;, Helvetica, Arial, sans-serif; font-size: 16px; margin-bottom: 24px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
Restart ssh server&lt;/div&gt;
&lt;div style=&quot;border: 0px; box-sizing: border-box; color: #7c705e; font-family: &#39;Open Sans&#39;, Helvetica, Arial, sans-serif; font-size: 16px; margin-bottom: 24px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;code style=&quot;border: 0px; box-sizing: border-box; font-family: Monaco, Consolas, &#39;Andale Mono&#39;, &#39;DejaVu Sans Mono&#39;, monospace; font-size: 0.8125em; line-height: 1.84615em; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;$sudo /etc/init.d/ssh reload&lt;/code&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://railsdocuments.blogspot.com/feeds/6294529769350798508/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://railsdocuments.blogspot.com/2016/07/enabling-password-authentication-for.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2672081878218216740/posts/default/6294529769350798508'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2672081878218216740/posts/default/6294529769350798508'/><link rel='alternate' type='text/html' href='http://railsdocuments.blogspot.com/2016/07/enabling-password-authentication-for.html' title='Enabling password authentication for new ec2 box | ssh, ssh config, EC2 setup, new user in EC2, PasswordAuthentication'/><author><name>SubbaRao</name><uri>http://www.blogger.com/profile/01538869633157981677</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2672081878218216740.post-3395636088293993030</id><published>2016-07-07T23:42:00.003-07:00</published><updated>2016-07-07T23:42:37.017-07:00</updated><title type='text'>Deployment instructions using github hooks to Ec2 or any cloud VS like HEROKU does | deployment, github hooks, heroku, set production server, set server, EC2</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div style=&quot;border: 0px; box-sizing: border-box; color: #7c705e; font-family: &#39;Open Sans&#39;, Helvetica, Arial, sans-serif; font-size: 16px; margin-bottom: 24px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
Prepare your&amp;nbsp;&lt;strong style=&quot;border: 0px; box-sizing: border-box; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;github&lt;/strong&gt;&amp;nbsp;repo on /var/www folder to follow the best practice.&lt;/div&gt;
&lt;div style=&quot;border: 0px; box-sizing: border-box; color: #7c705e; font-family: &#39;Open Sans&#39;, Helvetica, Arial, sans-serif; font-size: 16px; margin-bottom: 24px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;code style=&quot;border: 0px; box-sizing: border-box; font-family: Monaco, Consolas, &#39;Andale Mono&#39;, &#39;DejaVu Sans Mono&#39;, monospace; font-size: 0.8125em; line-height: 1.84615em; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;$cd /var/www&lt;/code&gt;&lt;/div&gt;
&lt;div style=&quot;border: 0px; box-sizing: border-box; color: #7c705e; font-family: &#39;Open Sans&#39;, Helvetica, Arial, sans-serif; font-size: 16px; margin-bottom: 24px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
Create a source code folder with your application name&lt;/div&gt;
&lt;div style=&quot;border: 0px; box-sizing: border-box; color: #7c705e; font-family: &#39;Open Sans&#39;, Helvetica, Arial, sans-serif; font-size: 16px; margin-bottom: 24px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;code style=&quot;border: 0px; box-sizing: border-box; font-family: Monaco, Consolas, &#39;Andale Mono&#39;, &#39;DejaVu Sans Mono&#39;, monospace; font-size: 0.8125em; line-height: 1.84615em; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;$ sudo mkdir &amp;lt;Project Name&amp;gt;.com&lt;/code&gt;&lt;/div&gt;
&lt;div style=&quot;border: 0px; box-sizing: border-box; color: #7c705e; font-family: &#39;Open Sans&#39;, Helvetica, Arial, sans-serif; font-size: 16px; margin-bottom: 24px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
Create a folder for github source code&lt;/div&gt;
&lt;div style=&quot;border: 0px; box-sizing: border-box; color: #7c705e; font-family: &#39;Open Sans&#39;, Helvetica, Arial, sans-serif; font-size: 16px; margin-bottom: 24px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;code style=&quot;border: 0px; box-sizing: border-box; font-family: Monaco, Consolas, &#39;Andale Mono&#39;, &#39;DejaVu Sans Mono&#39;, monospace; font-size: 0.8125em; line-height: 1.84615em; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;$ sudo mkdir &amp;lt;Project Name&amp;gt;.com.git&lt;/code&gt;&lt;/div&gt;
&lt;div style=&quot;border: 0px; box-sizing: border-box; color: #7c705e; font-family: &#39;Open Sans&#39;, Helvetica, Arial, sans-serif; font-size: 16px; margin-bottom: 24px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
Change to project github repo folder&lt;/div&gt;
&lt;div style=&quot;border: 0px; box-sizing: border-box; color: #7c705e; font-family: &#39;Open Sans&#39;, Helvetica, Arial, sans-serif; font-size: 16px; margin-bottom: 24px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;code style=&quot;border: 0px; box-sizing: border-box; font-family: Monaco, Consolas, &#39;Andale Mono&#39;, &#39;DejaVu Sans Mono&#39;, monospace; font-size: 0.8125em; line-height: 1.84615em; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;$cd img-cloud-qa.com.git/&lt;/code&gt;&lt;/div&gt;
&lt;div style=&quot;border: 0px; box-sizing: border-box; color: #7c705e; font-family: &#39;Open Sans&#39;, Helvetica, Arial, sans-serif; font-size: 16px; margin-bottom: 24px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
Initiate github bare to prepare folder&lt;/div&gt;
&lt;div style=&quot;border: 0px; box-sizing: border-box; color: #7c705e; font-family: &#39;Open Sans&#39;, Helvetica, Arial, sans-serif; font-size: 16px; margin-bottom: 24px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;code style=&quot;border: 0px; box-sizing: border-box; font-family: Monaco, Consolas, &#39;Andale Mono&#39;, &#39;DejaVu Sans Mono&#39;, monospace; font-size: 0.8125em; line-height: 1.84615em; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;$sudo git init --bare&lt;/code&gt;&lt;/div&gt;
&lt;div style=&quot;border: 0px; box-sizing: border-box; color: #7c705e; font-family: &#39;Open Sans&#39;, Helvetica, Arial, sans-serif; font-size: 16px; margin-bottom: 24px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
Jump to&amp;nbsp;&lt;strong style=&quot;border: 0px; box-sizing: border-box; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;em style=&quot;border: 0px; box-sizing: border-box; font-family: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;hooks&lt;/em&gt;&lt;/strong&gt;&amp;nbsp;to prepare your hooks for git preparation of project so you can start pushing your code to github.&lt;/div&gt;
&lt;div style=&quot;border: 0px; box-sizing: border-box; color: #7c705e; font-family: &#39;Open Sans&#39;, Helvetica, Arial, sans-serif; font-size: 16px; margin-bottom: 24px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;code style=&quot;border: 0px; box-sizing: border-box; font-family: Monaco, Consolas, &#39;Andale Mono&#39;, &#39;DejaVu Sans Mono&#39;, monospace; font-size: 0.8125em; line-height: 1.84615em; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;$cd hooks&lt;/code&gt;&lt;/div&gt;
&lt;div style=&quot;border: 0px; box-sizing: border-box; color: #7c705e; font-family: &#39;Open Sans&#39;, Helvetica, Arial, sans-serif; font-size: 16px; margin-bottom: 24px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
Now we are ready with hooks set to your project, create a post-receive file to execute your steps with shell script, below example is a node project and i am doing npm install and restarting web server.&lt;/div&gt;
&lt;div style=&quot;border: 0px; box-sizing: border-box; color: #7c705e; font-family: &#39;Open Sans&#39;, Helvetica, Arial, sans-serif; font-size: 16px; margin-bottom: 24px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;code style=&quot;border: 0px; box-sizing: border-box; font-family: Monaco, Consolas, &#39;Andale Mono&#39;, &#39;DejaVu Sans Mono&#39;, monospace; font-size: 0.8125em; line-height: 1.84615em; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;$sudo nano post-receive&lt;/code&gt;&lt;/div&gt;
&lt;div style=&quot;border: 0px; box-sizing: border-box; color: #7c705e; font-family: &#39;Open Sans&#39;, Helvetica, Arial, sans-serif; font-size: 16px; margin-bottom: 24px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;code style=&quot;border: 0px; box-sizing: border-box; font-family: Monaco, Consolas, &#39;Andale Mono&#39;, &#39;DejaVu Sans Mono&#39;, monospace; font-size: 0.8125em; line-height: 1.84615em; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;br style=&quot;box-sizing: border-box;&quot; /&gt;#!/bin/sh&lt;/code&gt;&lt;/div&gt;
&lt;div style=&quot;border: 0px; box-sizing: border-box; font-family: inherit; font-size: 13px; font-style: inherit; margin-bottom: 24px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
error_exit ()&lt;br style=&quot;box-sizing: border-box;&quot; /&gt;{&lt;br style=&quot;box-sizing: border-box;&quot; /&gt;echo &quot;$1&quot; 1&amp;gt;&amp;amp;2&lt;br style=&quot;box-sizing: border-box;&quot; /&gt;exit 1&lt;br style=&quot;box-sizing: border-box;&quot; /&gt;}&lt;/div&gt;
&lt;div style=&quot;border: 0px; box-sizing: border-box; color: #7c705e; font-family: &#39;Open Sans&#39;, Helvetica, Arial, sans-serif; font-size: 16px; margin-bottom: 24px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;code style=&quot;border: 0px; box-sizing: border-box; font-family: Monaco, Consolas, &#39;Andale Mono&#39;, &#39;DejaVu Sans Mono&#39;, monospace; font-size: 0.8125em; line-height: 1.84615em; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;git --work-tree=/var/www/&amp;lt;Project Name&amp;gt;.com --git-dir=/var/www/&amp;lt;Project Name&amp;gt;.com.git checkout -f&lt;br style=&quot;box-sizing: border-box;&quot; /&gt;cd /var/www/&amp;lt;Project Name&amp;gt;.com || error_exit &quot;error changing directory!. now exiting...&quot;&lt;br style=&quot;box-sizing: border-box;&quot; /&gt;npm install || error_exit &quot;error running npm install! now exiting ...&quot;&lt;br style=&quot;box-sizing: border-box;&quot; /&gt;FOREVER_ROOT=/etc/forever forever restart -l /etc/forever/&amp;lt;Project Name&amp;gt;.log bin/www || error_exit &quot;error starting forever server! now exiting ...&quot;&lt;/code&gt;&lt;/div&gt;
&lt;div style=&quot;border: 0px; box-sizing: border-box; color: #7c705e; font-family: &#39;Open Sans&#39;, Helvetica, Arial, sans-serif; font-size: 16px; margin-bottom: 24px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
Finally assign the proper permissions to the user to write files to to folder&lt;/div&gt;
&lt;div style=&quot;border: 0px; box-sizing: border-box; color: #7c705e; font-family: &#39;Open Sans&#39;, Helvetica, Arial, sans-serif; font-size: 16px; margin-bottom: 24px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;code style=&quot;border: 0px; box-sizing: border-box; font-family: Monaco, Consolas, &#39;Andale Mono&#39;, &#39;DejaVu Sans Mono&#39;, monospace; font-size: 0.8125em; line-height: 1.84615em; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;$sudo chown -R deploy:deploy www/&lt;/code&gt;&lt;/div&gt;
&lt;div style=&quot;border: 0px; box-sizing: border-box; color: #7c705e; font-family: &#39;Open Sans&#39;, Helvetica, Arial, sans-serif; font-size: 16px; margin-bottom: 24px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;strong style=&quot;border: 0px; box-sizing: border-box; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Once all above steps done you are ready to deploy push your code to your project with below steps&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;border: 0px; box-sizing: border-box; color: #7c705e; font-family: &#39;Open Sans&#39;, Helvetica, Arial, sans-serif; font-size: 16px; margin-bottom: 24px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;code style=&quot;border: 0px; box-sizing: border-box; font-family: Monaco, Consolas, &#39;Andale Mono&#39;, &#39;DejaVu Sans Mono&#39;, monospace; font-size: 0.8125em; line-height: 1.84615em; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;git add remote &amp;lt;user&amp;gt;@&amp;lt;ip or host&amp;gt;:/var/www/&amp;lt;Project Name&amp;gt;.com.git&lt;br style=&quot;box-sizing: border-box;&quot; /&gt;git push master&lt;/code&gt;&lt;/div&gt;
&lt;div style=&quot;border: 0px; box-sizing: border-box; color: #7c705e; font-family: &#39;Open Sans&#39;, Helvetica, Arial, sans-serif; font-size: 16px; margin-bottom: 24px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
Ex:-&lt;/div&gt;
&lt;code style=&quot;border: 0px; box-sizing: border-box; color: #7c705e; font-family: Monaco, Consolas, &#39;Andale Mono&#39;, &#39;DejaVu Sans Mono&#39;, monospace; font-size: 0.8125em; line-height: 1.84615em; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;/code&gt;&lt;br /&gt;
&lt;div style=&quot;border: 0px; box-sizing: border-box; color: #7c705e; font-family: &#39;Open Sans&#39;, Helvetica, Arial, sans-serif; font-size: 16px; margin-bottom: 24px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;code style=&quot;border: 0px; box-sizing: border-box; font-family: Monaco, Consolas, &#39;Andale Mono&#39;, &#39;DejaVu Sans Mono&#39;, monospace; font-size: 0.8125em; line-height: 1.84615em; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;git add remote prod deploy@gsrao.xyz:/var/www/myapp.com.git&lt;br style=&quot;box-sizing: border-box;&quot; /&gt;git push prod master&lt;/code&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://railsdocuments.blogspot.com/feeds/3395636088293993030/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://railsdocuments.blogspot.com/2016/07/deployment-instructions-using-github.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2672081878218216740/posts/default/3395636088293993030'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2672081878218216740/posts/default/3395636088293993030'/><link rel='alternate' type='text/html' href='http://railsdocuments.blogspot.com/2016/07/deployment-instructions-using-github.html' title='Deployment instructions using github hooks to Ec2 or any cloud VS like HEROKU does | deployment, github hooks, heroku, set production server, set server, EC2'/><author><name>SubbaRao</name><uri>http://www.blogger.com/profile/01538869633157981677</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2672081878218216740.post-7103370000216923387</id><published>2016-07-07T23:42:00.000-07:00</published><updated>2016-07-07T23:42:08.022-07:00</updated><title type='text'>Ruby on Rails 3.x Skip callback and validation and reset Callback | Ruby on Rails, Skip callback, validation, reset Callback</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div style=&quot;border: 0px; box-sizing: border-box; color: #7c705e; font-family: &#39;Open Sans&#39;, Helvetica, Arial, sans-serif; font-size: 16px; margin-bottom: 24px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
This will work for Rails 3.x onwords&lt;/div&gt;
&lt;div style=&quot;border: 0px; box-sizing: border-box; color: #7c705e; font-family: &#39;Open Sans&#39;, Helvetica, Arial, sans-serif; font-size: 16px; margin-bottom: 24px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;border: 0px; box-sizing: border-box; color: #7c705e; font-family: &#39;Open Sans&#39;, Helvetica, Arial, sans-serif; font-size: 16px; margin-bottom: 24px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
Model.skip_callback(“create”,:after,:trigger_my_method)&lt;/div&gt;
&lt;div style=&quot;border: 0px; box-sizing: border-box; color: #7c705e; font-family: &#39;Open Sans&#39;, Helvetica, Arial, sans-serif; font-size: 16px; margin-bottom: 24px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
in the above line ‘create’ and ‘after’ represents callback name so it represents ‘after_create’ callback, and the callback method is ‘trigger_my_method’, so totally the above line skips below callback&lt;/div&gt;
&lt;div style=&quot;border: 0px; box-sizing: border-box; color: #7c705e; font-family: &#39;Open Sans&#39;, Helvetica, Arial, sans-serif; font-size: 16px; margin-bottom: 24px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
after_create :trigger_my_method&lt;/div&gt;
&lt;div style=&quot;border: 0px; box-sizing: border-box; color: #7c705e; font-family: &#39;Open Sans&#39;, Helvetica, Arial, sans-serif; font-size: 16px; margin-bottom: 24px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
You can skip validations just by passing :validate =&amp;amp;gt; false as parameter to save method&lt;/div&gt;
&lt;div style=&quot;border: 0px; box-sizing: border-box; color: #7c705e; font-family: &#39;Open Sans&#39;, Helvetica, Arial, sans-serif; font-size: 16px; margin-bottom: 24px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
Model.save(:validate =&amp;amp;gt; false)&lt;/div&gt;
&lt;div style=&quot;border: 0px; box-sizing: border-box; color: #7c705e; font-family: &#39;Open Sans&#39;, Helvetica, Arial, sans-serif; font-size: 16px; margin-bottom: 24px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
As before skipping callback, you can reset same callback for reset by below ling&lt;/div&gt;
&lt;div style=&quot;border: 0px; box-sizing: border-box; color: #7c705e; font-family: &#39;Open Sans&#39;, Helvetica, Arial, sans-serif; font-size: 16px; margin-bottom: 24px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
Model.set_callback(“create”,:after,:trigger_my_method)&lt;/div&gt;
&lt;div style=&quot;border: 0px; box-sizing: border-box; color: #7c705e; font-family: &#39;Open Sans&#39;, Helvetica, Arial, sans-serif; font-size: 16px; margin-bottom: 24px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
This line will reset the below callback&lt;/div&gt;
&lt;div style=&quot;border: 0px; box-sizing: border-box; color: #7c705e; font-family: &#39;Open Sans&#39;, Helvetica, Arial, sans-serif; font-size: 16px; margin-bottom: 24px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
after_create :trigger_my_method&lt;/div&gt;
&lt;div style=&quot;border: 0px; box-sizing: border-box; color: #7c705e; font-family: &#39;Open Sans&#39;, Helvetica, Arial, sans-serif; font-size: 16px; margin-bottom: 24px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
Example:-&lt;/div&gt;
&lt;div style=&quot;border: 0px; box-sizing: border-box; color: #7c705e; font-family: &#39;Open Sans&#39;, Helvetica, Arial, sans-serif; font-size: 16px; margin-bottom: 24px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
Skip callback and validation and&amp;nbsp; rest the skiped callback&lt;/div&gt;
&lt;div style=&quot;border: 0px; box-sizing: border-box; color: #7c705e; font-family: &#39;Open Sans&#39;, Helvetica, Arial, sans-serif; font-size: 16px; margin-bottom: 24px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
Post.skip_callback(“create”,:after,:trigger_my_method)&lt;/div&gt;
&lt;div style=&quot;border: 0px; box-sizing: border-box; color: #7c705e; font-family: &#39;Open Sans&#39;, Helvetica, Arial, sans-serif; font-size: 16px; margin-bottom: 24px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
post=Post.new(params[:post])&lt;/div&gt;
&lt;div style=&quot;border: 0px; box-sizing: border-box; color: #7c705e; font-family: &#39;Open Sans&#39;, Helvetica, Arial, sans-serif; font-size: 16px; margin-bottom: 24px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
post.save(:validate =&amp;amp;gt; false)&lt;/div&gt;
&lt;div style=&quot;border: 0px; box-sizing: border-box; color: #7c705e; font-family: &#39;Open Sans&#39;, Helvetica, Arial, sans-serif; font-size: 16px; margin-bottom: 24px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
Post.set_callback(“create”,:after,:trigger_my_method)&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://railsdocuments.blogspot.com/feeds/7103370000216923387/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://railsdocuments.blogspot.com/2016/07/ruby-on-rails-3x-skip-callback-and.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2672081878218216740/posts/default/7103370000216923387'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2672081878218216740/posts/default/7103370000216923387'/><link rel='alternate' type='text/html' href='http://railsdocuments.blogspot.com/2016/07/ruby-on-rails-3x-skip-callback-and.html' title='Ruby on Rails 3.x Skip callback and validation and reset Callback | Ruby on Rails, Skip callback, validation, reset Callback'/><author><name>SubbaRao</name><uri>http://www.blogger.com/profile/01538869633157981677</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2672081878218216740.post-87834570769161954</id><published>2016-07-07T23:41:00.004-07:00</published><updated>2016-07-07T23:41:39.493-07:00</updated><title type='text'>Ruby one of the method of creating a single ton method | Ruby, single ton method</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;pre class=&quot;lang-rb prettyprint prettyprinted&quot; style=&quot;background-color: rgba(0, 0, 0, 0.027451); border: 0px; box-sizing: border-box; color: #7c705e; font-family: &#39;Courier 10 Pitch&#39;, Courier, monospace; font-size: 0.8125em; line-height: 1.84615em; margin-bottom: 24px; margin-top: -2px; max-width: 100%; outline: 0px; overflow: auto; padding: 24px; vertical-align: baseline;&quot;&gt;&lt;code style=&quot;border: 0px; box-sizing: border-box; font-family: Monaco, Consolas, &#39;Andale Mono&#39;, &#39;DejaVu Sans Mono&#39;, monospace; font-size: 0.8125em; line-height: 1.84615em; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; box-sizing: border-box; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;cat &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; box-sizing: border-box; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;typ&quot; style=&quot;border: 0px; box-sizing: border-box; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;String&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; box-sizing: border-box; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; box-sizing: border-box; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;new&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; box-sizing: border-box; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;border: 0px; box-sizing: border-box; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&quot;cat&quot;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; box-sizing: border-box; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;)&lt;/span&gt;
&lt;span class=&quot;kwd&quot; style=&quot;border: 0px; box-sizing: border-box; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;def&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; box-sizing: border-box; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; cat&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; box-sizing: border-box; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; box-sizing: border-box; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;speak
    &lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;border: 0px; box-sizing: border-box; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&#39;miaow&#39;&lt;/span&gt;
&lt;span class=&quot;kwd&quot; style=&quot;border: 0px; box-sizing: border-box; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;end&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; box-sizing: border-box; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
cat&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; box-sizing: border-box; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; box-sizing: border-box; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;speak &lt;/span&gt;&lt;span class=&quot;com&quot; style=&quot;border: 0px; box-sizing: border-box; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;#=&amp;amp;gt; &quot;miaow&quot; &lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; box-sizing: border-box; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
cat&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; box-sizing: border-box; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; box-sizing: border-box; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;singleton_methods &lt;/span&gt;&lt;span class=&quot;com&quot; style=&quot;border: 0px; box-sizing: border-box; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;#=&amp;amp;gt; [&quot;speak&quot;] &lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://railsdocuments.blogspot.com/feeds/87834570769161954/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://railsdocuments.blogspot.com/2016/07/ruby-one-of-method-of-creating-single.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2672081878218216740/posts/default/87834570769161954'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2672081878218216740/posts/default/87834570769161954'/><link rel='alternate' type='text/html' href='http://railsdocuments.blogspot.com/2016/07/ruby-one-of-method-of-creating-single.html' title='Ruby one of the method of creating a single ton method | Ruby, single ton method'/><author><name>SubbaRao</name><uri>http://www.blogger.com/profile/01538869633157981677</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2672081878218216740.post-1952861064546646466</id><published>2016-07-07T23:41:00.000-07:00</published><updated>2016-07-07T23:41:07.741-07:00</updated><title type='text'>Ruby Rightsignature API to prefill the template | Ruby, Rightsignature, API to prefill template</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div style=&quot;border: 0px; box-sizing: border-box; color: #7c705e; font-family: &#39;Open Sans&#39;, Helvetica, Arial, sans-serif; font-size: 16px; margin-bottom: 24px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
For this Please signup with&amp;nbsp;&lt;a href=&quot;https://rightsignature.com/&quot; style=&quot;-webkit-transition: all 0.2s ease-in-out; border: 0px; box-sizing: border-box; color: #bd5532; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; text-decoration: none; transition: all 0.2s ease-in-out; vertical-align: baseline;&quot;&gt;https://rightsignature.com/&lt;/a&gt;&amp;nbsp;to get your api key and secrets&lt;/div&gt;
&lt;div style=&quot;border: 0px; box-sizing: border-box; color: #7c705e; font-family: &#39;Open Sans&#39;, Helvetica, Arial, sans-serif; font-size: 16px; margin-bottom: 24px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
Generate a new API key by the url&amp;nbsp;&lt;a href=&quot;https://rightsignature.com/oauth_clients/new&quot; style=&quot;-webkit-transition: all 0.2s ease-in-out; border: 0px; box-sizing: border-box; color: #bd5532; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; text-decoration: none; transition: all 0.2s ease-in-out; vertical-align: baseline;&quot;&gt;https://rightsignature.com/oauth_clients/new&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;border: 0px; box-sizing: border-box; color: #7c705e; font-family: &#39;Open Sans&#39;, Helvetica, Arial, sans-serif; font-size: 16px; margin-bottom: 24px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
Install&lt;span style=&quot;border: 0px; box-sizing: border-box; font-family: inherit; font-size: small; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&amp;nbsp;rightsignature-api g&lt;span style=&quot;border: 0px; box-sizing: border-box; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;em by the command&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;border: 0px; box-sizing: border-box; color: #7c705e; font-family: &#39;Open Sans&#39;, Helvetica, Arial, sans-serif; font-size: 16px; margin-bottom: 24px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;border: 0px; box-sizing: border-box; font-family: inherit; font-size: small; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;border: 0px; box-sizing: border-box; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;gem install&lt;span style=&quot;border: 0px; box-sizing: border-box; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&amp;nbsp;rightsignature-api&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;border: 0px; box-sizing: border-box; color: #7c705e; font-family: &#39;Open Sans&#39;, Helvetica, Arial, sans-serif; font-size: 16px; margin-bottom: 24px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;border: 0px; box-sizing: border-box; font-family: inherit; font-size: small; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;gem ‘&lt;/span&gt;&lt;span style=&quot;border: 0px; box-sizing: border-box; font-family: inherit; font-size: small; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;border: 0px; box-sizing: border-box; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;border: 0px; box-sizing: border-box; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;border: 0px; box-sizing: border-box; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;border: 0px; box-sizing: border-box; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;rightsignature-api&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;‘&amp;nbsp;&lt;/span&gt;&amp;nbsp; in your gem file&lt;/span&gt;&lt;/div&gt;
&lt;h2 style=&quot;border: 0px; box-sizing: border-box; clear: both; color: #bd5532; font-family: Bitter, Georgia, Times, serif; font-size: 26px; font-weight: normal; line-height: 1; margin: 24px 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;border: 0px; box-sizing: border-box; font-family: inherit; font-size: small; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Setup your api with secret key by the code&amp;nbsp;&lt;/span&gt;&lt;/h2&gt;
&lt;h2 style=&quot;border: 0px; box-sizing: border-box; clear: both; color: #bd5532; font-family: Bitter, Georgia, Times, serif; font-size: 26px; font-weight: normal; line-height: 1; margin: 24px 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;/h2&gt;
&lt;pre style=&quot;background-color: rgba(0, 0, 0, 0.027451); border: 0px; box-sizing: border-box; color: #7c705e; font-family: &#39;Courier 10 Pitch&#39;, Courier, monospace; font-size: 0.8125em; line-height: 1.84615em; margin-bottom: 24px; margin-top: -2px; max-width: 100%; outline: 0px; overflow: auto; padding: 24px; vertical-align: baseline;&quot;&gt;&lt;code style=&quot;border: 0px; box-sizing: border-box; font-family: Monaco, Consolas, &#39;Andale Mono&#39;, &#39;DejaVu Sans Mono&#39;, monospace; font-size: 0.8125em; line-height: 1.84615em; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;@rs_connection = RightSignature::Connection.new(:api_token =&amp;amp;gt; YOUR_TOKEN)&lt;/code&gt;&lt;/pre&gt;
&lt;pre style=&quot;background-color: rgba(0, 0, 0, 0.027451); border: 0px; box-sizing: border-box; color: #7c705e; font-family: &#39;Courier 10 Pitch&#39;, Courier, monospace; font-size: 0.8125em; line-height: 1.84615em; margin-bottom: 24px; margin-top: -2px; max-width: 100%; outline: 0px; overflow: auto; padding: 24px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;border: 0px; box-sizing: border-box; font-family: inherit; font-size: small; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;border: 0px; box-sizing: border-box; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&amp;nbsp;You can view th&lt;span style=&quot;border: 0px; box-sizing: border-box; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;e list of templates by the &lt;span style=&quot;border: 0px; box-sizing: border-box; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;code&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;background-color: rgba(0, 0, 0, 0.027451); border: 0px; box-sizing: border-box; color: #7c705e; font-family: &#39;Courier 10 Pitch&#39;, Courier, monospace; font-size: 0.8125em; line-height: 1.84615em; margin-bottom: 24px; margin-top: -2px; max-width: 100%; outline: 0px; overflow: auto; padding: 24px; vertical-align: baseline;&quot;&gt;&lt;code style=&quot;border: 0px; box-sizing: border-box; font-family: Monaco, Consolas, &#39;Andale Mono&#39;, &#39;DejaVu Sans Mono&#39;, monospace; font-size: 0.8125em; line-height: 1.84615em; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;@rs_connection.templates_list&lt;/code&gt;&lt;/pre&gt;
&lt;pre style=&quot;background-color: rgba(0, 0, 0, 0.027451); border: 0px; box-sizing: border-box; color: #7c705e; font-family: &#39;Courier 10 Pitch&#39;, Courier, monospace; font-size: 0.8125em; line-height: 1.84615em; margin-bottom: 24px; margin-top: -2px; max-width: 100%; outline: 0px; overflow: auto; padding: 24px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;border: 0px; box-sizing: border-box; font-family: inherit; font-size: small; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;border: 0px; box-sizing: border-box; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;border: 0px; box-sizing: border-box; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;border: 0px; box-sizing: border-box; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;If you want to&amp;nbsp; vi&lt;span style=&quot;border: 0px; box-sizing: border-box; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;ew &lt;span style=&quot;border: 0px; box-sizing: border-box; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;more details of template&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;background-color: rgba(0, 0, 0, 0.027451); border: 0px; box-sizing: border-box; color: #7c705e; font-family: &#39;Courier 10 Pitch&#39;, Courier, monospace; font-size: 0.8125em; line-height: 1.84615em; margin-bottom: 24px; margin-top: -2px; max-width: 100%; outline: 0px; overflow: auto; padding: 24px; vertical-align: baseline;&quot;&gt;&lt;code style=&quot;border: 0px; box-sizing: border-box; font-family: Monaco, Consolas, &#39;Andale Mono&#39;, &#39;DejaVu Sans Mono&#39;, monospace; font-size: 0.8125em; line-height: 1.84615em; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;@rs_connection.template_details(guid)&lt;/code&gt;&lt;/pre&gt;
&lt;pre style=&quot;background-color: rgba(0, 0, 0, 0.027451); border: 0px; box-sizing: border-box; color: #7c705e; font-family: &#39;Courier 10 Pitch&#39;, Courier, monospace; font-size: 0.8125em; line-height: 1.84615em; margin-bottom: 24px; margin-top: -2px; max-width: 100%; outline: 0px; overflow: auto; padding: 24px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;border: 0px; box-sizing: border-box; font-family: inherit; font-size: small; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;border: 0px; box-sizing: border-box; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;border: 0px; box-sizing: border-box; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;border: 0px; box-sizing: border-box; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;border: 0px; box-sizing: border-box; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;You need to Clone a template to fill and send the template&lt;span style=&quot;border: 0px; box-sizing: border-box; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; as a document&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;div style=&quot;border: 0px; box-sizing: border-box; color: #7c705e; font-family: &#39;Open Sans&#39;, Helvetica, Arial, sans-serif; font-size: 16px; margin-bottom: 24px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;border: 0px; box-sizing: border-box; font-family: inherit; font-size: small; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;code style=&quot;border: 0px; box-sizing: border-box; font-family: Monaco, Consolas, &#39;Andale Mono&#39;, &#39;DejaVu Sans Mono&#39;, monospace; font-size: 0.8125em; line-height: 1.84615em; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;@rs_connection.prepackage(guid)&lt;/code&gt;&lt;/div&gt;
&lt;div style=&quot;border: 0px; box-sizing: border-box; color: #7c705e; font-family: &#39;Open Sans&#39;, Helvetica, Arial, sans-serif; font-size: 16px; margin-bottom: 24px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;code style=&quot;border: 0px; box-sizing: border-box; font-family: Monaco, Consolas, &#39;Andale Mono&#39;, &#39;DejaVu Sans Mono&#39;, monospace; font-size: 0.8125em; line-height: 1.84615em; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;border: 0px; box-sizing: border-box; font-family: inherit; font-size: large; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Pre fill the required&amp;nbsp;&lt;span style=&quot;border: 0px; box-sizing: border-box; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;templates by the code (wre need to use merge fields to fil the dat&lt;span style=&quot;border: 0px; box-sizing: border-box; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;a&lt;span style=&quot;border: 0px; box-sizing: border-box; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;, you can&#39;t use the te&lt;span style=&quot;border: 0px; box-sizing: border-box; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;xt fields to pre fill&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;)&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;
&lt;pre style=&quot;background-color: rgba(0, 0, 0, 0.027451); border: 0px; box-sizing: border-box; color: #7c705e; font-family: &#39;Courier 10 Pitch&#39;, Courier, monospace; font-size: 0.8125em; line-height: 1.84615em; margin-bottom: 24px; margin-top: -2px; max-width: 100%; outline: 0px; overflow: auto; padding: 24px; vertical-align: baseline;&quot;&gt;&lt;code style=&quot;border: 0px; box-sizing: border-box; font-family: Monaco, Consolas, &#39;Andale Mono&#39;, &#39;DejaVu Sans Mono&#39;, monospace; font-size: 0.8125em; line-height: 1.84615em; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;@rs_connection.prefill(guid, subject, roles, options={})&lt;/code&gt;&lt;/pre&gt;
&lt;div style=&quot;border: 0px; box-sizing: border-box; color: #7c705e; font-family: &#39;Open Sans&#39;, Helvetica, Arial, sans-serif; font-size: 16px; margin-bottom: 24px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;code style=&quot;border: 0px; box-sizing: border-box; font-family: Monaco, Consolas, &#39;Andale Mono&#39;, &#39;DejaVu Sans Mono&#39;, monospace; font-size: 0.8125em; line-height: 1.84615em; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;border: 0px; box-sizing: border-box; font-family: inherit; font-size: large; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Send the template to signature by the code&amp;nbsp;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;
&lt;pre style=&quot;background-color: rgba(0, 0, 0, 0.027451); border: 0px; box-sizing: border-box; color: #7c705e; font-family: &#39;Courier 10 Pitch&#39;, Courier, monospace; font-size: 0.8125em; line-height: 1.84615em; margin-bottom: 24px; margin-top: -2px; max-width: 100%; outline: 0px; overflow: auto; padding: 24px; vertical-align: baseline;&quot;&gt;&lt;code style=&quot;border: 0px; box-sizing: border-box; font-family: Monaco, Consolas, &#39;Andale Mono&#39;, &#39;DejaVu Sans Mono&#39;, monospace; font-size: 0.8125em; line-height: 1.84615em; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;@rs_connection.send_template(guid, subject, roles, options={})&lt;/code&gt;&lt;/pre&gt;
&lt;pre style=&quot;background-color: rgba(0, 0, 0, 0.027451); border: 0px; box-sizing: border-box; color: #7c705e; font-family: &#39;Courier 10 Pitch&#39;, Courier, monospace; font-size: 0.8125em; line-height: 1.84615em; margin-bottom: 24px; margin-top: -2px; max-width: 100%; outline: 0px; overflow: auto; padding: 24px; vertical-align: baseline;&quot;&gt;&lt;code style=&quot;border: 0px; box-sizing: border-box; font-family: Monaco, Consolas, &#39;Andale Mono&#39;, &#39;DejaVu Sans Mono&#39;, monospace; font-size: 0.8125em; line-height: 1.84615em; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;border: 0px; box-sizing: border-box; font-family: inherit; font-size: large; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Not&lt;span style=&quot;border: 0px; box-sizing: border-box; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;e:- We&lt;span style=&quot;border: 0px; box-sizing: border-box; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; &lt;span style=&quot;border: 0px; box-sizing: border-box; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;can pref&lt;span style=&quot;border: 0px; box-sizing: border-box; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;ill &lt;span style=&quot;border: 0px; box-sizing: border-box; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;only merge fi&lt;span style=&quot;border: 0px; box-sizing: border-box; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;eld not text or other field&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;pre style=&quot;background-color: rgba(0, 0, 0, 0.027451); border: 0px; box-sizing: border-box; color: #7c705e; font-family: &#39;Courier 10 Pitch&#39;, Courier, monospace; font-size: 0.8125em; line-height: 1.84615em; margin-bottom: 24px; margin-top: -2px; max-width: 100%; outline: 0px; overflow: auto; padding: 24px; vertical-align: baseline;&quot;&gt;&lt;code style=&quot;border: 0px; box-sizing: border-box; font-family: Monaco, Consolas, &#39;Andale Mono&#39;, &#39;DejaVu Sans Mono&#39;, monospace; font-size: 0.8125em; line-height: 1.84615em; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;border: 0px; box-sizing: border-box; font-family: inherit; font-size: large; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/code&gt;&lt;code style=&quot;border: 0px; box-sizing: border-box; font-family: Monaco, Consolas, &#39;Andale Mono&#39;, &#39;DejaVu Sans Mono&#39;, monospace; font-size: 0.8125em; line-height: 1.84615em; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;border: 0px; box-sizing: border-box; font-family: inherit; font-size: large; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;border: 0px; box-sizing: border-box; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;border: 0px; box-sizing: border-box; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;border: 0px; box-sizing: border-box; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;border: 0px; box-sizing: border-box; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;border: 0px; box-sizing: border-box; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;border: 0px; box-sizing: border-box; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Mer&lt;span style=&quot;border: 0px; box-sizing: border-box; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;ge field is found while creating a template&lt;span style=&quot;border: 0px; box-sizing: border-box; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;, is shown in below image&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;pre style=&quot;background-color: rgba(0, 0, 0, 0.027451); border: 0px; box-sizing: border-box; color: #7c705e; font-family: &#39;Courier 10 Pitch&#39;, Courier, monospace; font-size: 0.8125em; line-height: 1.84615em; margin-bottom: 24px; margin-top: -2px; max-width: 100%; outline: 0px; overflow: auto; padding: 24px; vertical-align: baseline;&quot;&gt;&lt;code style=&quot;border: 0px; box-sizing: border-box; font-family: Monaco, Consolas, &#39;Andale Mono&#39;, &#39;DejaVu Sans Mono&#39;, monospace; font-size: 0.8125em; line-height: 1.84615em; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;border: 0px; box-sizing: border-box; font-family: inherit; font-size: large; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/code&gt;&lt;a href=&quot;https://rightsignature.com/oauth_clients/new&quot; style=&quot;-webkit-transition: all 0.2s ease-in-out; border: 0px; box-sizing: border-box; color: #bd5532; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; text-decoration: none; transition: all 0.2s ease-in-out; vertical-align: baseline;&quot;&gt;https://rightsignature.com/oauth_clients/new&lt;/a&gt;&lt;/pre&gt;
&lt;div class=&quot;separator&quot; style=&quot;border: 0px; box-sizing: border-box; color: #7c705e; font-family: &#39;Open Sans&#39;, Helvetica, Arial, sans-serif; font-size: 16px; margin-bottom: 24px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjqDqxfVzYEUsA6Bff8N2WZJZDWh3-MhA-2DNY-nmc9Fzrv-dVUd2ZPyjwfKAIxmWb3EqCJYMUjjVWFz377bKveCS-BefHvWjVwe6_2UGkLDAxGYOy_5utlMp-y64iEyND-CfELwML2j_Bm/s1600/Screenshot-3.png&quot; style=&quot;-webkit-transition: all 0.2s ease-in-out; border: 0px; box-sizing: border-box; color: #bd5532; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; text-decoration: none; transition: all 0.2s ease-in-out; vertical-align: baseline;&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; height=&quot;180&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjqDqxfVzYEUsA6Bff8N2WZJZDWh3-MhA-2DNY-nmc9Fzrv-dVUd2ZPyjwfKAIxmWb3EqCJYMUjjVWFz377bKveCS-BefHvWjVwe6_2UGkLDAxGYOy_5utlMp-y64iEyND-CfELwML2j_Bm/s1600/Screenshot-3.png&quot; style=&quot;border: 0px; box-sizing: border-box; height: auto; max-width: 100%;&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://railsdocuments.blogspot.com/feeds/1952861064546646466/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://railsdocuments.blogspot.com/2016/07/ruby-rightsignature-api-to-prefill.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2672081878218216740/posts/default/1952861064546646466'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2672081878218216740/posts/default/1952861064546646466'/><link rel='alternate' type='text/html' href='http://railsdocuments.blogspot.com/2016/07/ruby-rightsignature-api-to-prefill.html' title='Ruby Rightsignature API to prefill the template | Ruby, Rightsignature, API to prefill template'/><author><name>SubbaRao</name><uri>http://www.blogger.com/profile/01538869633157981677</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjqDqxfVzYEUsA6Bff8N2WZJZDWh3-MhA-2DNY-nmc9Fzrv-dVUd2ZPyjwfKAIxmWb3EqCJYMUjjVWFz377bKveCS-BefHvWjVwe6_2UGkLDAxGYOy_5utlMp-y64iEyND-CfELwML2j_Bm/s72-c/Screenshot-3.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2672081878218216740.post-7524795462191668809</id><published>2016-07-07T23:40:00.002-07:00</published><updated>2016-07-07T23:40:23.614-07:00</updated><title type='text'>My router blocking facebook and youtube video play only for my laptop not other laps in same network, my lap works if i bypass modem. | router, blocking, facebook, youtube, video play</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div style=&quot;border: 0px; box-sizing: border-box; color: #7c705e; font-family: &#39;Open Sans&#39;, Helvetica, Arial, sans-serif; font-size: 16px; margin-bottom: 24px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;border: 0px; box-sizing: border-box; color: red; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;b style=&quot;box-sizing: border-box;&quot;&gt;Question :&lt;/b&gt;&lt;/span&gt;&amp;nbsp;I have reset factory settings, reboot my modem, pc, clear cache, etc. still its not loading facebook but will load any and all other websites. When i bypass the router, connect directly to my modem, facebook works. why is this happening?&lt;/div&gt;
&lt;div style=&quot;border: 0px; box-sizing: border-box; color: #7c705e; font-family: &#39;Open Sans&#39;, Helvetica, Arial, sans-serif; font-size: 16px; margin-bottom: 24px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;border: 0px; box-sizing: border-box; color: #3d85c6; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;b style=&quot;box-sizing: border-box;&quot;&gt;Solution :&lt;/b&gt;&lt;/span&gt;&amp;nbsp;It is because of TCP packet size for that we need to change the MTU size of our tcp connection, below commands will help to do that&lt;/div&gt;
&lt;div style=&quot;border: 0px; box-sizing: border-box; color: #7c705e; font-family: &#39;Open Sans&#39;, Helvetica, Arial, sans-serif; font-size: 16px; margin-bottom: 24px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;border: 0px; box-sizing: border-box; font-family: inherit; font-size: x-small; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;i style=&quot;box-sizing: border-box;&quot;&gt;&lt;span style=&quot;border: 0px; box-sizing: border-box; color: blue; font-family: inherit; font-size: 13px; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;$ifconfig&amp;nbsp;&lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;border: 0px; box-sizing: border-box; color: #7c705e; font-family: &#39;Open Sans&#39;, Helvetica, Arial, sans-serif; font-size: 16px; margin-bottom: 24px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
above command will display the available networks with name and if addrsss&lt;/div&gt;
&lt;div style=&quot;border: 0px; box-sizing: border-box; color: #7c705e; font-family: &#39;Open Sans&#39;, Helvetica, Arial, sans-serif; font-size: 16px; margin-bottom: 24px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
Ex:-&lt;/div&gt;
&lt;div style=&quot;border: 0px; box-sizing: border-box; color: #7c705e; font-family: &#39;Open Sans&#39;, Helvetica, Arial, sans-serif; font-size: 16px; margin-bottom: 24px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;border: 0px; box-sizing: border-box; font-family: inherit; font-size: x-small; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;border: 0px; box-sizing: border-box; color: blue; font-family: inherit; font-size: 13px; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;$ifconfig&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;border: 0px; box-sizing: border-box; color: #7c705e; font-family: &#39;Open Sans&#39;, Helvetica, Arial, sans-serif; font-size: 16px; margin-bottom: 24px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;border: 0px; box-sizing: border-box; font-family: inherit; font-size: x-small; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;border: 0px; box-sizing: border-box; color: blue; font-family: inherit; font-size: 13px; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;eth0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Link encap:Ethernet&amp;nbsp; HWaddr b8:ca:3a:d4:63:1d&lt;br style=&quot;box-sizing: border-box;&quot; /&gt;UP BROADCAST MULTICAST&amp;nbsp; MTU:1492&amp;nbsp; Metric:1&lt;br style=&quot;box-sizing: border-box;&quot; /&gt;RX packets:0 errors:0 dropped:0 overruns:0 frame:0&lt;br style=&quot;box-sizing: border-box;&quot; /&gt;TX packets:0 errors:0 dropped:0 overruns:0 carrier:0&lt;br style=&quot;box-sizing: border-box;&quot; /&gt;collisions:0 txqueuelen:1000&lt;br style=&quot;box-sizing: border-box;&quot; /&gt;RX bytes:0 (0.0 B)&amp;nbsp; TX bytes:0 (0.0 B)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;border: 0px; box-sizing: border-box; color: #7c705e; font-family: &#39;Open Sans&#39;, Helvetica, Arial, sans-serif; font-size: 16px; margin-bottom: 24px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
lo&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Link encap:Local Loopback&lt;br style=&quot;box-sizing: border-box;&quot; /&gt;inet addr:127.0.0.1&amp;nbsp; Mask:255.0.0.0&lt;br style=&quot;box-sizing: border-box;&quot; /&gt;inet6 addr: ::1/128 Scope:Host&lt;br style=&quot;box-sizing: border-box;&quot; /&gt;UP LOOPBACK RUNNING&amp;nbsp; MTU:65536&amp;nbsp; Metric:1&lt;br style=&quot;box-sizing: border-box;&quot; /&gt;RX packets:776 errors:0 dropped:0 overruns:0 frame:0&lt;br style=&quot;box-sizing: border-box;&quot; /&gt;TX packets:776 errors:0 dropped:0 overruns:0 carrier:0&lt;br style=&quot;box-sizing: border-box;&quot; /&gt;collisions:0 txqueuelen:0&lt;br style=&quot;box-sizing: border-box;&quot; /&gt;RX bytes:79415 (79.4 KB)&amp;nbsp; TX bytes:79415 (79.4 KB)&lt;/div&gt;
&lt;div style=&quot;border: 0px; box-sizing: border-box; color: #7c705e; font-family: &#39;Open Sans&#39;, Helvetica, Arial, sans-serif; font-size: 16px; margin-bottom: 24px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
wlan0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Link encap:Ethernet&amp;nbsp; HWaddr 60:6c:66:26:6c:9f&lt;br style=&quot;box-sizing: border-box;&quot; /&gt;inet addr:192.168.2.101&amp;nbsp; Bcast:192.168.2.255&amp;nbsp; Mask:255.255.255.0&lt;br style=&quot;box-sizing: border-box;&quot; /&gt;inet6 addr: fe80::626c:66ff:fe26:6c9f/64 Scope:Link&lt;br style=&quot;box-sizing: border-box;&quot; /&gt;UP BROADCAST RUNNING MULTICAST&amp;nbsp; MTU:1500&amp;nbsp; Metric:1&lt;br style=&quot;box-sizing: border-box;&quot; /&gt;RX packets:50480 errors:0 dropped:0 overruns:0 frame:0&lt;br style=&quot;box-sizing: border-box;&quot; /&gt;TX packets:42606 errors:0 dropped:0 overruns:0 carrier:0&lt;br style=&quot;box-sizing: border-box;&quot; /&gt;collisions:0 txqueuelen:1000&lt;br style=&quot;box-sizing: border-box;&quot; /&gt;RX bytes:58833138 (58.8 MB)&amp;nbsp; TX bytes:6534754 (6.5 MB)&lt;/div&gt;
&lt;div style=&quot;border: 0px; box-sizing: border-box; color: #7c705e; font-family: &#39;Open Sans&#39;, Helvetica, Arial, sans-serif; font-size: 16px; margin-bottom: 24px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
In above my current network is wlan0 with ip 192.168.2.101&lt;/div&gt;
&lt;div style=&quot;border: 0px; box-sizing: border-box; color: #7c705e; font-family: &#39;Open Sans&#39;, Helvetica, Arial, sans-serif; font-size: 16px; margin-bottom: 24px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
So now we need to change MTU for wlan0 with below command&lt;/div&gt;
&lt;div style=&quot;border: 0px; box-sizing: border-box; color: #7c705e; font-family: &#39;Open Sans&#39;, Helvetica, Arial, sans-serif; font-size: 16px; margin-bottom: 24px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;border: 0px; box-sizing: border-box; font-family: inherit; font-size: x-small; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;border: 0px; box-sizing: border-box; color: blue; font-family: inherit; font-size: 13px; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;$sudo ifconfig wlan0 mtu 1492&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;border: 0px; box-sizing: border-box; color: #7c705e; font-family: &#39;Open Sans&#39;, Helvetica, Arial, sans-serif; font-size: 16px; margin-bottom: 24px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
That will reset the MTU to 1492 and my problem solved.&amp;nbsp;&lt;img alt=&quot;:)&quot; class=&quot;wp-smiley&quot; src=&quot;http://gsrao.xyz/wp-includes/images/smilies/simple-smile.png&quot; style=&quot;background-image: none !important; background-position: initial initial !important; background-repeat: initial initial !important; border: none !important; box-shadow: none !important; box-sizing: border-box; display: inline !important; height: 1em !important; margin: 0px 0.07em !important; max-height: 1em; max-width: 100%; padding: 0px !important; vertical-align: -0.1em !important; width: 1em !important;&quot; /&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://railsdocuments.blogspot.com/feeds/7524795462191668809/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://railsdocuments.blogspot.com/2016/07/my-router-blocking-facebook-and-youtube.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2672081878218216740/posts/default/7524795462191668809'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2672081878218216740/posts/default/7524795462191668809'/><link rel='alternate' type='text/html' href='http://railsdocuments.blogspot.com/2016/07/my-router-blocking-facebook-and-youtube.html' title='My router blocking facebook and youtube video play only for my laptop not other laps in same network, my lap works if i bypass modem. | router, blocking, facebook, youtube, video play'/><author><name>SubbaRao</name><uri>http://www.blogger.com/profile/01538869633157981677</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2672081878218216740.post-3676510240314414803</id><published>2016-07-07T23:39:00.005-07:00</published><updated>2016-07-07T23:39:55.132-07:00</updated><title type='text'>Rails working with multiple databases customize the generator | Rails, multiple databases, customize generator</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div style=&quot;border: 0px; box-sizing: border-box; color: #7c705e; font-family: &#39;Open Sans&#39;, Helvetica, Arial, sans-serif; font-size: 16px; margin-bottom: 24px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
In ROR working with multiple databases ( Mysql + MongoID or Postgres + MongoId ) for performance is good, but how can i give default generator database to pick-up while generating the models&lt;/div&gt;
&lt;div style=&quot;border: 0px; box-sizing: border-box; color: #7c705e; font-family: &#39;Open Sans&#39;, Helvetica, Arial, sans-serif; font-size: 16px; margin-bottom: 24px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
edit&lt;i style=&quot;box-sizing: border-box;&quot;&gt;&amp;nbsp;application.rb&lt;/i&gt;&amp;nbsp;in config folder and add below code&lt;/div&gt;
&lt;div style=&quot;border: 0px; box-sizing: border-box; color: #7c705e; font-family: &#39;Open Sans&#39;, Helvetica, Arial, sans-serif; font-size: 16px; margin-bottom: 24px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;border: 0px; box-sizing: border-box; color: #0b5394; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;config.generators do |g|&lt;br style=&quot;box-sizing: border-box;&quot; /&gt;g.orm&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; :active_record&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;border: 0px; box-sizing: border-box; color: #7c705e; font-family: &#39;Open Sans&#39;, Helvetica, Arial, sans-serif; font-size: 16px; margin-bottom: 24px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;border: 0px; box-sizing: border-box; color: #0b5394; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;end&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;border: 0px; box-sizing: border-box; color: #7c705e; font-family: &#39;Open Sans&#39;, Helvetica, Arial, sans-serif; font-size: 16px; margin-bottom: 24px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
So every time in next generators will take active record as default for moddels&lt;/div&gt;
&lt;div style=&quot;border: 0px; box-sizing: border-box; color: #7c705e; font-family: &#39;Open Sans&#39;, Helvetica, Arial, sans-serif; font-size: 16px; margin-bottom: 24px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
In case of using mongoid and active record this will be helpful&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://railsdocuments.blogspot.com/feeds/3676510240314414803/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://railsdocuments.blogspot.com/2016/07/rails-working-with-multiple-databases.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2672081878218216740/posts/default/3676510240314414803'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2672081878218216740/posts/default/3676510240314414803'/><link rel='alternate' type='text/html' href='http://railsdocuments.blogspot.com/2016/07/rails-working-with-multiple-databases.html' title='Rails working with multiple databases customize the generator | Rails, multiple databases, customize generator'/><author><name>SubbaRao</name><uri>http://www.blogger.com/profile/01538869633157981677</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2672081878218216740.post-3375149539409057603</id><published>2016-07-07T23:39:00.002-07:00</published><updated>2016-07-07T23:39:24.247-07:00</updated><title type='text'>ROR HEROKU Working with file storage like paperclip in heroku for free of cost ( paperclip and dropbox) paperclip-dropbox config | ROR, HEROKU, file storage, paperclip, in heroku, free of cost, paperclip, dropbox, paperclip-dropbox config</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div style=&quot;border: 0px; box-sizing: border-box; color: #7c705e; font-family: &#39;Open Sans&#39;, Helvetica, Arial, sans-serif; font-size: 16px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;div style=&quot;border: 0px; box-sizing: border-box; font-family: inherit; font-style: inherit; margin-bottom: 24px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
In my project i am using paper-clip and deployed to heroku, heroku not allows the file storage but to use aws normally, i don’t want to spend money so i can use drop box storage which will gives 2gb free storage space.&lt;/div&gt;
&lt;div style=&quot;border: 0px; box-sizing: border-box; font-family: inherit; font-style: inherit; margin-bottom: 24px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
So i am using paper-clip with drop box with library papercklip-dropbox gem, steps to follow are given below.&lt;/div&gt;
&lt;ol style=&quot;border: 0px; box-sizing: border-box; font-family: inherit; font-style: inherit; list-style-image: initial; list-style-position: initial; margin: 0px 0px 24px 24px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;li style=&quot;border: 0px; box-sizing: border-box; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;border: 0px; box-sizing: border-box; font-family: verdana, geneva; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Include&amp;nbsp; gem “paperclip-dropbox” in your gem file&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;border: 0px; box-sizing: border-box; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;border: 0px; box-sizing: border-box; font-family: verdana, geneva; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Run the command&amp;nbsp;&lt;i style=&quot;box-sizing: border-box;&quot;&gt;$bundel install&amp;nbsp;&lt;/i&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;border: 0px; box-sizing: border-box; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;border: 0px; box-sizing: border-box; font-family: verdana, geneva; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Create&lt;b style=&quot;box-sizing: border-box;&quot;&gt;&amp;nbsp;drop box api app&lt;/b&gt;&amp;nbsp;in&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;border: 0px; box-sizing: border-box; font-family: verdana, geneva; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;a href=&quot;https://www.dropbox.com/developers/apps&quot; style=&quot;-webkit-transition: all 0.2s ease-in-out; border: 0px; box-sizing: border-box; color: #bd5532; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; text-decoration: none; transition: all 0.2s ease-in-out; vertical-align: baseline;&quot;&gt;https://www.dropbox.com/developers/apps&lt;/a&gt;&amp;nbsp;&amp;nbsp; and give read write permissions it gives you the&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;border: 0px; box-sizing: border-box; font-family: verdana, geneva; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;b style=&quot;box-sizing: border-box;&quot;&gt;App key&amp;nbsp;&lt;/b&gt;and&amp;nbsp;&lt;/span&gt;&lt;b style=&quot;box-sizing: border-box;&quot;&gt;App secret&amp;nbsp;&amp;nbsp;&lt;/b&gt;which will used in further configeration&lt;/li&gt;
&lt;li style=&quot;border: 0px; box-sizing: border-box; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Generate the other required details using available details, run the rake task to generate other details “&lt;i style=&quot;box-sizing: border-box;&quot;&gt;$&lt;/i&gt;&lt;span style=&quot;border: 0px; box-sizing: border-box; font-family: &#39;courier new&#39;, courier; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;i style=&quot;box-sizing: border-box;&quot;&gt;rake dropbox:authorize APP_KEY=your_app_key APP_SECRET=your_app_secret ACCESS_TYPE=your_access_typ&amp;nbsp;&lt;/i&gt;“, this command will generate the&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;border: 0px; box-sizing: border-box; font-family: verdana, geneva; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;access_token, access_token_secret, user_id&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;border: 0px; box-sizing: border-box; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;border: 0px; box-sizing: border-box; font-family: verdana, geneva; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Create&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;border: 0px; box-sizing: border-box; font-family: verdana, geneva; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;dropbox_config.yml&amp;nbsp; file in config folder and place all keys got in previous steps&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;box-sizing: border-box;&quot; /&gt;&lt;span style=&quot;border: 0px; box-sizing: border-box; font-family: verdana, geneva; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;app_key:&amp;nbsp; YOUR_APP_KEY&lt;br style=&quot;box-sizing: border-box;&quot; /&gt;app_secret: YOUR_APP_SECRET&lt;br style=&quot;box-sizing: border-box;&quot; /&gt;access_token: YOUR_ACCESS_TOKEN&lt;br style=&quot;box-sizing: border-box;&quot; /&gt;access_token_secret:&amp;nbsp; YOUR_ACCESS_TOKEN_SECRET&lt;br style=&quot;box-sizing: border-box;&quot; /&gt;user_id:&amp;nbsp; YOUR_USER_ID&lt;br style=&quot;box-sizing: border-box;&quot; /&gt;access_type: “app_folder”&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;border: 0px; box-sizing: border-box; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;border: 0px; box-sizing: border-box; font-family: verdana, geneva; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&amp;nbsp;Now relace paper clip code with new code for attachment, like User profile picture&lt;/span&gt;&lt;br style=&quot;box-sizing: border-box;&quot; /&gt;&lt;span style=&quot;border: 0px; box-sizing: border-box; font-family: verdana, geneva; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;i style=&quot;box-sizing: border-box;&quot;&gt;#added for paperclip-dropbox gem&lt;br style=&quot;box-sizing: border-box;&quot; /&gt;has_attached_file :picture,&lt;br style=&quot;box-sizing: border-box;&quot; /&gt;:storage =&amp;amp;gt; :dropbox,&lt;br style=&quot;box-sizing: border-box;&quot; /&gt;:dropbox_credentials =&amp;amp;gt; “#{Rails.root}/config/dropbox_c&lt;br style=&quot;box-sizing: border-box;&quot; /&gt;onfig.yml”,&lt;br style=&quot;box-sizing: border-box;&quot; /&gt;:styles =&amp;amp;gt; { :medium =&amp;amp;gt; “300×300” , :thumb =&amp;amp;gt; “100×100&amp;amp;gt;”},&lt;br style=&quot;box-sizing: border-box;&quot; /&gt;:dropbox_options =&amp;amp;gt; {&lt;br style=&quot;box-sizing: border-box;&quot; /&gt;:path =&amp;amp;gt; proc { |style| “#{Rails.env}/#{style}/#{id}_#{picture.original_filename}”}, &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; :unique_filename =&amp;amp;gt; true&lt;br style=&quot;box-sizing: border-box;&quot; /&gt;}&lt;/i&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;border: 0px; box-sizing: border-box; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;border: 0px; box-sizing: border-box; font-family: verdana, geneva; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;i style=&quot;box-sizing: border-box;&quot;&gt;Deploy your code&amp;nbsp; in heroku you can, you can see all files or images uploaded as profile pictures will store in your drop box.&lt;/i&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/div&gt;
&lt;div style=&quot;border: 0px; box-sizing: border-box; color: #7c705e; font-family: &#39;Open Sans&#39;, Helvetica, Arial, sans-serif; font-size: 16px; margin-bottom: 24px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;border: 0px; box-sizing: border-box; font-family: verdana, geneva; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;i style=&quot;box-sizing: border-box;&quot;&gt;Enjoy the drop box free usage in cloud&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://railsdocuments.blogspot.com/feeds/3375149539409057603/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://railsdocuments.blogspot.com/2016/07/ror-heroku-working-with-file-storage.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2672081878218216740/posts/default/3375149539409057603'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2672081878218216740/posts/default/3375149539409057603'/><link rel='alternate' type='text/html' href='http://railsdocuments.blogspot.com/2016/07/ror-heroku-working-with-file-storage.html' title='ROR HEROKU Working with file storage like paperclip in heroku for free of cost ( paperclip and dropbox) paperclip-dropbox config | ROR, HEROKU, file storage, paperclip, in heroku, free of cost, paperclip, dropbox, paperclip-dropbox config'/><author><name>SubbaRao</name><uri>http://www.blogger.com/profile/01538869633157981677</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2672081878218216740.post-1972364920928468914</id><published>2016-07-07T23:38:00.002-07:00</published><updated>2016-07-07T23:38:52.390-07:00</updated><title type='text'>AngularJS e2e Testing Using Protractor and automate Grunt Task, with useful code modules | e2e, Testing, Protractor, automate Grunt Task</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span style=&quot;background-color: white; color: #7c705e; font-family: &#39;Open Sans&#39;, Helvetica, Arial, sans-serif; font-size: 16px;&quot;&gt;Please check my post on my company blog post on&amp;nbsp;&lt;/span&gt;&lt;a href=&quot;http://blog.liftoffllc.in/2015/01/angularjs-end-to-end-testing-with.html&quot; style=&quot;-webkit-transition: all 0.2s ease-in-out; border: 0px; box-sizing: border-box; color: #bd5532; font-family: &#39;Open Sans&#39;, Helvetica, Arial, sans-serif; font-size: 16px; margin: 0px; outline: 0px; padding: 0px; text-decoration: none; transition: all 0.2s ease-in-out; vertical-align: baseline;&quot;&gt;AngularJs e2e testing&lt;/a&gt;&lt;span style=&quot;background-color: white; color: #7c705e; font-family: &#39;Open Sans&#39;, Helvetica, Arial, sans-serif; font-size: 16px;&quot;&gt;.&lt;/span&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://railsdocuments.blogspot.com/feeds/1972364920928468914/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://railsdocuments.blogspot.com/2016/07/angularjs-e2e-testing-using-protractor.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2672081878218216740/posts/default/1972364920928468914'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2672081878218216740/posts/default/1972364920928468914'/><link rel='alternate' type='text/html' href='http://railsdocuments.blogspot.com/2016/07/angularjs-e2e-testing-using-protractor.html' title='AngularJS e2e Testing Using Protractor and automate Grunt Task, with useful code modules | e2e, Testing, Protractor, automate Grunt Task'/><author><name>SubbaRao</name><uri>http://www.blogger.com/profile/01538869633157981677</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2672081878218216740.post-2480687203938650014</id><published>2012-04-07T11:28:00.000-07:00</published><updated>2012-09-05T04:07:24.919-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Mobile Apps"/><title type='text'>Mobile Android development api with ruby language</title><content type='html'>please follow the below link&lt;p&gt;&lt;a href=&quot;http://ruboto.org/&quot;&gt;http://ruboto.org/&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://railsdocuments.blogspot.com/feeds/2480687203938650014/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://railsdocuments.blogspot.com/2012/04/mobile-android-development-api-with.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2672081878218216740/posts/default/2480687203938650014'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2672081878218216740/posts/default/2480687203938650014'/><link rel='alternate' type='text/html' href='http://railsdocuments.blogspot.com/2012/04/mobile-android-development-api-with.html' title='Mobile Android development api with ruby language'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/17871013736706019733</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2672081878218216740.post-6972097431155293323</id><published>2012-03-28T10:09:00.001-07:00</published><updated>2012-12-05T04:35:16.192-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Ajax"/><category scheme="http://www.blogger.com/atom/ns#" term="Javascript"/><title type='text'>Ruby on Rails enable history in ajax calls</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;big&gt;&lt;big&gt;Refer below link&lt;br /&gt;       &lt;/big&gt;&lt;/big&gt;&lt;br /&gt;
&lt;a href=&quot;http://lindsaar.net/2008/2/21/history-buttons-with-ajax-and-ruby-on-rails&quot;&gt;http://lindsaar.net/2008/2/21/history-buttons-with-ajax-and-ruby-on-rails&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;big&gt;&lt;big&gt;and use the code&lt;br /&gt;       &lt;/big&gt;&lt;/big&gt;&lt;br /&gt;
&lt;table style=&quot;letter-spacing: normal; orphans: 2; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px;&quot;&gt;       &lt;tbody&gt;
&lt;tr&gt;           &lt;td class=&quot;webkit-line-content&quot;&gt;window.dhtmlHistory.create({&lt;/td&gt;         &lt;/tr&gt;
&lt;tr&gt;           &lt;td class=&quot;webkit-line-number&quot;&gt;&lt;br /&gt;&lt;/td&gt;           &lt;td class=&quot;webkit-line-content&quot;&gt;&lt;br /&gt;&lt;/td&gt;         &lt;/tr&gt;
&lt;tr&gt;           &lt;td class=&quot;webkit-line-number&quot;&gt;&lt;br /&gt;&lt;/td&gt;           &lt;td class=&quot;webkit-line-content&quot;&gt;toJSON: function(o) {&lt;/td&gt;         &lt;/tr&gt;
&lt;tr&gt;           &lt;td class=&quot;webkit-line-number&quot;&gt;&lt;br /&gt;&lt;/td&gt;           &lt;td class=&quot;webkit-line-content&quot;&gt;return JSON.stringify(o); &lt;/td&gt;         &lt;/tr&gt;
&lt;tr&gt;           &lt;td class=&quot;webkit-line-number&quot;&gt;&lt;br /&gt;&lt;/td&gt;           &lt;td class=&quot;webkit-line-content&quot;&gt;&lt;br /&gt;&lt;/td&gt;         &lt;/tr&gt;
&lt;tr&gt;           &lt;td class=&quot;webkit-line-number&quot;&gt;&lt;br /&gt;&lt;/td&gt;           &lt;td class=&quot;webkit-line-content&quot;&gt;} , fromJSON: function(s) {&lt;/td&gt;         &lt;/tr&gt;
&lt;tr&gt;           &lt;td class=&quot;webkit-line-number&quot;&gt;&lt;br /&gt;&lt;/td&gt;           &lt;td class=&quot;webkit-line-content&quot;&gt;&lt;br /&gt;&lt;/td&gt;         &lt;/tr&gt;
&lt;tr&gt;           &lt;td class=&quot;webkit-line-number&quot;&gt;&lt;br /&gt;&lt;/td&gt;           &lt;td class=&quot;webkit-line-content&quot;&gt;return JSON.parse(s); &lt;/td&gt;         &lt;/tr&gt;
&lt;tr&gt;           &lt;td class=&quot;webkit-line-number&quot;&gt;&lt;br /&gt;&lt;/td&gt;           &lt;td class=&quot;webkit-line-content&quot;&gt;&lt;br /&gt;&lt;/td&gt;         &lt;/tr&gt;
&lt;tr&gt;           &lt;td class=&quot;webkit-line-number&quot;&gt;&lt;br /&gt;&lt;/td&gt;           &lt;td class=&quot;webkit-line-content&quot;&gt;} &lt;/td&gt;         &lt;/tr&gt;
&lt;tr&gt;           &lt;td class=&quot;webkit-line-number&quot;&gt;&lt;br /&gt;&lt;/td&gt;           &lt;td class=&quot;webkit-line-content&quot;&gt;&lt;br /&gt;&lt;/td&gt;         &lt;/tr&gt;
&lt;tr&gt;           &lt;td class=&quot;webkit-line-number&quot;&gt;&lt;br /&gt;&lt;/td&gt;           &lt;td class=&quot;webkit-line-content&quot;&gt;}); &lt;/td&gt;         &lt;/tr&gt;
&lt;/tbody&gt;     &lt;/table&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;big&gt;&lt;big&gt;instead of&lt;/big&gt;&lt;/big&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;pre style=&quot;background-color: #f8f8f8; color: #110000; font-family: monospace; font-size: 11px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 10px; margin: 0px; orphans: 2; overflow: auto; padding: 1em 0px; text-align: left; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span class=&quot;pt&quot; style=&quot;color: #333399; font-weight: bold;&quot;&gt;window&lt;/span&gt;.dhtmlHistory.create({&lt;tt style=&quot;font-family: monospace; line-height: 10px;&quot;&gt; &lt;/tt&gt;  toJSON: &lt;span class=&quot;r&quot; style=&quot;color: #008800; font-weight: bold;&quot;&gt;function&lt;/span&gt;(o) {&lt;tt style=&quot;font-family: monospace; line-height: 10px;&quot;&gt; &lt;/tt&gt;    &lt;span class=&quot;r&quot; style=&quot;color: #008800; font-weight: bold;&quot;&gt;return&lt;/span&gt; &lt;span class=&quot;pt&quot; style=&quot;color: #333399; font-weight: bold;&quot;&gt;Object&lt;/span&gt;.toJSON(o);&lt;tt style=&quot;font-family: monospace; line-height: 10px;&quot;&gt; &lt;/tt&gt;  },&lt;tt style=&quot;font-family: monospace; line-height: 10px;&quot;&gt; &lt;/tt&gt;  fromJSON: &lt;span class=&quot;r&quot; style=&quot;color: #008800; font-weight: bold;&quot;&gt;function&lt;/span&gt;(s) {&lt;tt style=&quot;font-family: monospace; line-height: 10px;&quot;&gt; &lt;/tt&gt;    &lt;span class=&quot;r&quot; style=&quot;color: #008800; font-weight: bold;&quot;&gt;return&lt;/span&gt; s.evalJSON();&lt;tt style=&quot;font-family: monospace; line-height: 10px;&quot;&gt; &lt;/tt&gt;  }&lt;tt style=&quot;font-family: monospace; line-height: 10px;&quot;&gt; &lt;/tt&gt;});    &lt;/pre&gt;
&lt;br /&gt;
&lt;pre style=&quot;background-color: #f8f8f8; color: #110000; font-family: monospace; font-size: 11px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 10px; margin: 0px; orphans: 2; overflow: auto; padding: 1em 0px; text-align: left; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px;&quot;&gt;&lt;big&gt;&lt;big&gt;&lt;big&gt;on that post  Happy learning&lt;/big&gt;&lt;/big&gt;&lt;/big&gt;&lt;/pre&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://railsdocuments.blogspot.com/feeds/6972097431155293323/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://railsdocuments.blogspot.com/2012/03/ruby-on-rails-enable-history-in-ajax.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2672081878218216740/posts/default/6972097431155293323'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2672081878218216740/posts/default/6972097431155293323'/><link rel='alternate' type='text/html' href='http://railsdocuments.blogspot.com/2012/03/ruby-on-rails-enable-history-in-ajax.html' title='Ruby on Rails enable history in ajax calls'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/17871013736706019733</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2672081878218216740.post-1649323705388423978</id><published>2012-03-20T10:07:00.001-07:00</published><updated>2012-09-05T04:08:09.881-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Hacking"/><title type='text'>Hacking and Crackers Knowledge</title><content type='html'>Following are the importent web sites to know hackers and crackers&lt;p&gt;Vulnerability Research&lt;br&gt;Websites&lt;p&gt;&lt;a href=&quot;http://www.securitytracker.com&quot;&gt;www.securitytracker.com&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://www.microsoft.com/security&quot;&gt;www.microsoft.com/security&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://www.securiteam.com&quot;&gt;www.securiteam.com&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://www.packetstormsecurity.com&quot;&gt;www.packetstormsecurity.com&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://www.hackerstorm.com&quot;&gt;www.hackerstorm.com&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://www.hackerwatch.org&quot;&gt;www.hackerwatch.org&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://www.securityfocus.com&quot;&gt;www.securityfocus.com&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://www.securitymagazine.com&quot;&gt;www.securitymagazine.com&lt;/a&gt;&lt;br&gt;####################################################&lt;br&gt;Securitytracker&lt;p&gt;&lt;a href=&quot;http://www.securitytracker.com&quot;&gt;www.securitytracker.com&lt;/a&gt;&lt;br&gt;#####################################################&lt;br&gt;Securiteam&lt;br&gt;(www securiteam com)&lt;br&gt;&lt;a href=&quot;http://www.securiteam.com&quot;&gt;www.securiteam.com&lt;/a&gt;)&lt;br&gt;###################################################&lt;br&gt;Secunia (&lt;a href=&quot;http://secunia.com/product/&quot;&gt;secunia.com/product/&lt;/a&gt;)&lt;p&gt;####################################################&lt;br&gt;Hackerstorm Vulnerability Database&lt;br&gt;Tool (&lt;a href=&quot;http://www.hackerstorm.com&quot;&gt;www.hackerstorm.com&lt;/a&gt;)&lt;br&gt;####################################################&lt;br&gt;SecurityFocus&lt;br&gt;&lt;a href=&quot;http://www.securityfocus.com&quot;&gt;www.securityfocus.com&lt;/a&gt;&lt;br&gt;####################################################&lt;br&gt;SecurityMagazine&lt;br&gt;&lt;a href=&quot;http://www.securitymagazine.com&quot;&gt;www.securitymagazine.com&lt;/a&gt;&lt;br&gt;#######################################################&lt;br&gt;SC Magazine&lt;br&gt;&lt;a href=&quot;http://www.scmagazine.com&quot;&gt;www.scmagazine.com&lt;/a&gt;&lt;br&gt;####################################################&lt;br&gt;&lt;a href=&quot;http://www.usdoj.gov&quot;&gt;http://www.usdoj.gov&lt;/a&gt; (cont&amp;#39;d)&lt;br&gt;#####################################################</content><link rel='replies' type='application/atom+xml' href='http://railsdocuments.blogspot.com/feeds/1649323705388423978/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://railsdocuments.blogspot.com/2012/03/hacking-and-crackers-knowledge.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2672081878218216740/posts/default/1649323705388423978'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2672081878218216740/posts/default/1649323705388423978'/><link rel='alternate' type='text/html' href='http://railsdocuments.blogspot.com/2012/03/hacking-and-crackers-knowledge.html' title='Hacking and Crackers Knowledge'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/17871013736706019733</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2672081878218216740.post-8279581079667469280</id><published>2012-03-20T02:44:00.001-07:00</published><updated>2012-09-05T04:08:41.965-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Rails Caching"/><title type='text'>Rails Memcache issues</title><content type='html'>&lt;b&gt;&lt;big&gt;&lt;big&gt;&lt;font color=&quot;#ff0000&quot;&gt;Error :-&lt;/font&gt;&lt;/big&gt;&lt;/big&gt;&lt;/b&gt;&lt;br&gt;     down_retry_delay not reached for localhost:11211 (0.001 seconds     left)&lt;br&gt;     down_retry_delay not reached for localhost:11211 (0.001 seconds     left)&lt;br&gt;     down_retry_delay not reached for localhost:11211 (0.001 seconds     left)&lt;br&gt;     down_retry_delay not reached for localhost:11211 (0.001 seconds     left)&lt;br&gt;     [2012-03-20 15:08:28] ERROR NoMethodError: You have a nil object     when you didn&#39;t expect it!&lt;br&gt;     You might have expected an instance of Array.&lt;br&gt;     The error occurred while evaluating nil.each&lt;br&gt;     &amp;nbsp;&amp;nbsp;&amp;nbsp;     /usr/local/lib/ruby/gems/1.9.1/gems/rack-1.3.6/lib/rack/handler/webrick.rb:71:in     `service&#39;&lt;br&gt;     &amp;nbsp;&amp;nbsp;&amp;nbsp; /usr/local/lib/ruby/1.9.1/webrick/httpserver.rb:111:in `service&#39;&lt;br&gt;     &amp;nbsp;&amp;nbsp;&amp;nbsp; /usr/local/lib/ruby/1.9.1/webrick/httpserver.rb:70:in `run&#39;&lt;br&gt;     &amp;nbsp;&amp;nbsp;&amp;nbsp; /usr/local/lib/ruby/1.9.1/webrick/server.rb:183:in `block in     start_thread&#39;&lt;br&gt;     cache: [GET /assets/kanga_custom/search_merchant.js?body=1] miss,     store&lt;br&gt;     Dalli::Server#connect localhost:11211&lt;br&gt;     localhost:11211 failed (count: 3)&lt;br&gt;     localhost:11211 is still down (for 2.030 seconds now)&lt;br&gt;     &lt;br&gt;     and &lt;br&gt;     &lt;br&gt;     root@rao-desktop:~/Aptana Studio 3 Workspace/Kanga# irb&lt;br&gt;     irb(main):001:0&amp;gt; require &#39;dalli&#39;&lt;br&gt;     =&amp;gt; true&lt;br&gt;     irb(main):002:0&amp;gt; dc = Dalli::Client.new(&#39;localhost:11211&#39;)&lt;br&gt;     =&amp;gt; #&amp;lt;Dalli::Client:0x9f89338 @servers=&quot;localhost:11211&quot;,     @options={:expires_in=&amp;gt;0}, @ring=nil&amp;gt;&lt;br&gt;     irb(main):003:0&amp;gt; dc.set(&#39;abc&#39;, 123)&lt;br&gt;     I, [2012-03-20T15:04:48.093716 #2419]&amp;nbsp; INFO -- : localhost:11211     failed (count: 0)&lt;br&gt;     Dalli::RingError: No server available&lt;br&gt;     &amp;nbsp;&amp;nbsp;&amp;nbsp; from     /usr/local/lib/ruby/gems/1.9.1/gems/dalli-1.1.5/lib/dalli/ring.rb:45:in     `server_for_key&#39;&lt;br&gt;     &amp;nbsp;&amp;nbsp;&amp;nbsp; from     /usr/local/lib/ruby/gems/1.9.1/gems/dalli-1.1.5/lib/dalli/client.rb:263:in     `perform&#39;&lt;br&gt;     &amp;nbsp;&amp;nbsp;&amp;nbsp; from     /usr/local/lib/ruby/gems/1.9.1/gems/dalli-1.1.5/lib/dalli/client.rb:139:in     `set&#39;&lt;br&gt;     &amp;nbsp;&amp;nbsp;&amp;nbsp; from (irb):3&lt;br&gt;     &amp;nbsp;&amp;nbsp;&amp;nbsp; from /usr/local/bin/irb:12:in `&amp;lt;main&amp;gt;&#39;&lt;br&gt;     irb(main):004:0&amp;gt; &lt;br&gt;     &lt;big&gt;&lt;b&gt;&lt;font color=&quot;#006600&quot;&gt;&lt;br&gt;           Solution:-&lt;/font&gt;&lt;/b&gt;&lt;/big&gt;&lt;br&gt;     &lt;br&gt;     Try 127.0.0.1 instead of localhost. in delli gem configuration&lt;br&gt;     &lt;br&gt;     &lt;br&gt;     &lt;br&gt;   </content><link rel='replies' type='application/atom+xml' href='http://railsdocuments.blogspot.com/feeds/8279581079667469280/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://railsdocuments.blogspot.com/2012/03/rails-memcache-issues.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2672081878218216740/posts/default/8279581079667469280'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2672081878218216740/posts/default/8279581079667469280'/><link rel='alternate' type='text/html' href='http://railsdocuments.blogspot.com/2012/03/rails-memcache-issues.html' title='Rails Memcache issues'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/17871013736706019733</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2672081878218216740.post-5499300692983511373</id><published>2012-03-19T02:30:00.001-07:00</published><updated>2012-09-05T04:09:07.451-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Ruby"/><title type='text'>Ruby slice big array into equal parts</title><content type='html'>&lt;pre class=&quot;lang-rb prettyprint&quot;&gt;&lt;code&gt;&lt;span class=&quot;pln&quot;&gt;By using each_slice we can convert single dimension array in to multi dimention array  foo&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;each_slice&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;lit&quot;&gt;3&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;).&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;to_a &lt;/span&gt;&lt;span class=&quot;com&quot;&gt;#=&amp;gt; [[&quot;1&quot;, &quot;2&quot;, &quot;3&quot;], [&quot;4&quot;, &quot;5&quot;, &quot;6&quot;], [&quot;7&quot;, &quot;8&quot;, &quot;9&quot;], [&quot;10&quot;]]&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; &lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;   </content><link rel='replies' type='application/atom+xml' href='http://railsdocuments.blogspot.com/feeds/5499300692983511373/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://railsdocuments.blogspot.com/2012/03/ruby-slice-big-array-into-equal-parts.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2672081878218216740/posts/default/5499300692983511373'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2672081878218216740/posts/default/5499300692983511373'/><link rel='alternate' type='text/html' href='http://railsdocuments.blogspot.com/2012/03/ruby-slice-big-array-into-equal-parts.html' title='Ruby slice big array into equal parts'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/17871013736706019733</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2672081878218216740.post-2782042048614240842</id><published>2012-03-12T22:43:00.000-07:00</published><updated>2012-09-05T04:09:19.253-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Mobile Apps"/><title type='text'>Mobile app implementation</title><content type='html'>create an android app by phonegap&lt;p&gt;&lt;a href=&quot;http://mobile.tutsplus.com/tutorials/phonegap/creating-an-android-hello-world-application-with-phonegap/&quot;&gt;http://mobile.tutsplus.com/tutorials/phonegap/creating-an-android-hello-world-application-with-phonegap/&lt;/a&gt;&lt;p&gt;rhoconnect for data synchronization&lt;p&gt;&lt;a href=&quot;http://docs.rhomobile.com/rhoconnect/command-line&quot;&gt;http://docs.rhomobile.com/rhoconnect/command-line&lt;/a&gt;&lt;p&gt;phonegap home page&lt;p&gt;&lt;a href=&quot;http://phonegap.com&quot;&gt;http://phonegap.com&lt;/a&gt;&lt;p&gt;rhomobile impotent doc&lt;p&gt;&lt;a href=&quot;http://docs.rhomobile.com/rhoconnect/install#rhoconnect-gem-for-linux-and-non-rhostudio&quot;&gt;http://docs.rhomobile.com/rhoconnect/install#rhoconnect-gem-for-linux-and-non-rhostudio&lt;/a&gt; &lt;p&gt;&lt;br&gt;&lt;a href=&quot;http://docs.rhomobile.com/rhodes/install#rhodes-gem-for-linux-and-non-rhostudio&quot;&gt;http://docs.rhomobile.com/rhodes/install#rhodes-gem-for-linux-and-non-rhostudio&lt;/a&gt;&lt;p&gt;&lt;a href=&quot;https://app.rhohub.com/&quot;&gt;https://app.rhohub.com/&lt;/a&gt;&lt;p&gt;buld phonegap buld&lt;p&gt;&lt;a href=&quot;https://build.phonegap.com/apps&quot;&gt;https://build.phonegap.com/apps&lt;/a&gt;&lt;p&gt;phonegap starting tutorial&lt;p&gt;&lt;a href=&quot;http://phonegap.com/start&quot;&gt;http://phonegap.com/start&lt;/a&gt;&lt;p&gt;phonegap docs api&lt;p&gt;&lt;a href=&quot;http://docs.phonegap.com/en/1.5.0/index.html&quot;&gt;http://docs.phonegap.com/en/1.5.0/index.html&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://railsdocuments.blogspot.com/feeds/2782042048614240842/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://railsdocuments.blogspot.com/2012/03/mobile-app-implementation.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2672081878218216740/posts/default/2782042048614240842'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2672081878218216740/posts/default/2782042048614240842'/><link rel='alternate' type='text/html' href='http://railsdocuments.blogspot.com/2012/03/mobile-app-implementation.html' title='Mobile app implementation'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/17871013736706019733</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2672081878218216740.post-8059797315762852432</id><published>2012-03-11T22:26:00.001-07:00</published><updated>2012-09-05T04:09:52.706-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Ruby On Rails"/><title type='text'>rails3 assets precompile command</title><content type='html'>Rails production server assets precompile command debugging way&lt;p&gt;RAILS_ENV=production bundle exec rake assets:precompile --trace</content><link rel='replies' type='application/atom+xml' href='http://railsdocuments.blogspot.com/feeds/8059797315762852432/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://railsdocuments.blogspot.com/2012/03/rails3-assets-precompile-command.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2672081878218216740/posts/default/8059797315762852432'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2672081878218216740/posts/default/8059797315762852432'/><link rel='alternate' type='text/html' href='http://railsdocuments.blogspot.com/2012/03/rails3-assets-precompile-command.html' title='rails3 assets precompile command'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/17871013736706019733</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2672081878218216740.post-8729963321310343116</id><published>2012-03-06T05:38:00.001-08:00</published><updated>2012-09-05T04:10:03.835-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Javascript"/><title type='text'>close current browser tab</title><content type='html'>I used the script&lt;p&gt;&amp;lt;script type = &amp;quot;text/javascript&amp;quot;&amp;gt;&lt;p&gt;    function closeWindow(){&lt;br&gt;         window.open(&amp;#39;&amp;#39;,&amp;#39;_self&amp;#39;,&amp;#39;&amp;#39;);&lt;br&gt;         window.close();&lt;br&gt;    }&lt;p&gt;&amp;lt;/script&amp;gt;&lt;p&gt;this works well with IE (it overrides prompt) and chrome but is not &lt;br&gt;working with Firefox as by default Firefox don&amp;#39;t allow to close tab &lt;br&gt;using JavaScript&lt;br&gt;It is needed to follow these steps in Firefox&lt;br&gt;1. Go to address bar and type about:config&lt;br&gt;2. Go to parameter dom.allow_scripts_to_close_windows&lt;br&gt;3. Set its value as true</content><link rel='replies' type='application/atom+xml' href='http://railsdocuments.blogspot.com/feeds/8729963321310343116/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://railsdocuments.blogspot.com/2012/03/close-current-browser-tab.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2672081878218216740/posts/default/8729963321310343116'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2672081878218216740/posts/default/8729963321310343116'/><link rel='alternate' type='text/html' href='http://railsdocuments.blogspot.com/2012/03/close-current-browser-tab.html' title='close current browser tab'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/17871013736706019733</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2672081878218216740.post-1404301990057834159</id><published>2012-03-01T10:37:00.001-08:00</published><updated>2012-09-05T04:10:33.334-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Opensource"/><title type='text'>Rails opensource projects for contributing rails developers</title><content type='html'>&lt;a href=&quot;https://github.com/popular/forked&quot;&gt;https://github.com/popular/forked&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;https://rubyforge.org/account/login.php&quot;&gt;https://rubyforge.org/account/login.php&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://www.redmine.org/login&quot;&gt;http://www.redmine.org/login&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://www.opensourcerails.com/&quot;&gt;http://www.opensourcerails.com/&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;https://github.com/wycats/merb-core/tree&quot;&gt;https://github.com/wycats/merb-core/tree&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://rubygame.org/&quot;&gt;http://rubygame.org/&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://www.thepeoplesfeed.com/&quot;&gt;http://www.thepeoplesfeed.com/&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://raa.ruby-lang.org/&quot;&gt;http://raa.ruby-lang.org/&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://ironruby.net/&quot;&gt;http://ironruby.net/&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://datamapper.org/&quot;&gt;http://datamapper.org/&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://www.webresourcesdepot.com/23-amazing-and-open-source-ruby-on-rails-applications/&quot;&gt;http://www.webresourcesdepot.com/23-amazing-and-open-source-ruby-on-rails-applications/&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://railsdocuments.blogspot.com/feeds/1404301990057834159/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://railsdocuments.blogspot.com/2012/03/rails-opensource-projects-for.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2672081878218216740/posts/default/1404301990057834159'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2672081878218216740/posts/default/1404301990057834159'/><link rel='alternate' type='text/html' href='http://railsdocuments.blogspot.com/2012/03/rails-opensource-projects-for.html' title='Rails opensource projects for contributing rails developers'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/17871013736706019733</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2672081878218216740.post-5121412902387975535</id><published>2012-02-28T21:22:00.000-08:00</published><updated>2012-09-05T04:10:56.870-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Rails Active Record"/><title type='text'>Rails zip_code validations with prefix zero issue</title><content type='html'>rails if we make zip_code as integer value in database it will not gives &lt;br&gt;the zip_code validations when we give zip_code as 01234 it takes as 1234 &lt;br&gt;like all prefix zeros&lt;p&gt;solution:-&lt;p&gt;we have to to make zip_code as string then it will validates zip_code &lt;br&gt;properly to all zip_codes like 01234</content><link rel='replies' type='application/atom+xml' href='http://railsdocuments.blogspot.com/feeds/5121412902387975535/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://railsdocuments.blogspot.com/2012/02/rails-zipcode-validations-with-prefix.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2672081878218216740/posts/default/5121412902387975535'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2672081878218216740/posts/default/5121412902387975535'/><link rel='alternate' type='text/html' href='http://railsdocuments.blogspot.com/2012/02/rails-zipcode-validations-with-prefix.html' title='Rails zip_code validations with prefix zero issue'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/17871013736706019733</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2672081878218216740.post-5904059934152952631</id><published>2012-02-28T01:49:00.001-08:00</published><updated>2012-09-05T04:11:15.108-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Rails Caching"/><title type='text'>Rails action catching with parameters values</title><content type='html'>&lt;a href=&quot;http://cobaltedge.com/rails-action-caching-with-query-parameters&quot;&gt;http://cobaltedge.com/rails-action-caching-with-query-parameters&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://railsdocuments.blogspot.com/feeds/5904059934152952631/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://railsdocuments.blogspot.com/2012/02/rails-action-catching-with-parameters.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2672081878218216740/posts/default/5904059934152952631'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2672081878218216740/posts/default/5904059934152952631'/><link rel='alternate' type='text/html' href='http://railsdocuments.blogspot.com/2012/02/rails-action-catching-with-parameters.html' title='Rails action catching with parameters values'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/17871013736706019733</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2672081878218216740.post-2403596739229611068</id><published>2011-12-29T19:19:00.001-08:00</published><updated>2012-09-05T04:11:32.490-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Ruby On Rails"/><title type='text'>Ruby on Rails all installations in ubuntu</title><content type='html'>&lt;div dir=&quot;ltr&quot;&gt;&lt;br&gt;Ruby on Rails all installations in ubuntu&lt;br&gt;&lt;br&gt;####################################################&lt;br&gt;#                                                                                       #&lt;br&gt;#      &lt;a href=&quot;https://help.ubuntu.com/community/RubyOnRails&quot;&gt;https://help.ubuntu.com/community/RubyOnRails&lt;/a&gt;          #&lt;br&gt;  #                                                                                       #&lt;br&gt;####################################################&lt;br&gt; &lt;/div&gt; </content><link rel='replies' type='application/atom+xml' href='http://railsdocuments.blogspot.com/feeds/2403596739229611068/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://railsdocuments.blogspot.com/2011/12/ruby-on-rails-all-installations-in.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2672081878218216740/posts/default/2403596739229611068'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2672081878218216740/posts/default/2403596739229611068'/><link rel='alternate' type='text/html' href='http://railsdocuments.blogspot.com/2011/12/ruby-on-rails-all-installations-in.html' title='Ruby on Rails all installations in ubuntu'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/17871013736706019733</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2672081878218216740.post-2974400321770939034</id><published>2011-12-04T23:55:00.001-08:00</published><updated>2012-09-05T04:11:44.049-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Ruby"/><title type='text'>PDFTron SDK for ruby Sample code</title><content type='html'>The sample code for PDFTron is giver separate for all languages&lt;p&gt;&lt;a href=&quot;http://www.pdftron.com/pdfnet/samplecode.html&quot;&gt;http://www.pdftron.com/pdfnet/samplecode.html&lt;/a&gt;&lt;p&gt;Click on ruby link in each topic for ruby code.</content><link rel='replies' type='application/atom+xml' href='http://railsdocuments.blogspot.com/feeds/2974400321770939034/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://railsdocuments.blogspot.com/2011/12/pdftron-sdk-for-ruby-sample-code.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2672081878218216740/posts/default/2974400321770939034'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2672081878218216740/posts/default/2974400321770939034'/><link rel='alternate' type='text/html' href='http://railsdocuments.blogspot.com/2011/12/pdftron-sdk-for-ruby-sample-code.html' title='PDFTron SDK for ruby Sample code'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/17871013736706019733</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2672081878218216740.post-2764467358586608238</id><published>2011-11-24T03:01:00.001-08:00</published><updated>2012-09-05T04:12:54.248-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Rails Library"/><category scheme="http://www.blogger.com/atom/ns#" term="Ruby On Rails"/><title type='text'>issue while installing rails_admin gem in ruby on rails</title><content type='html'>&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: separate;       color: rgb(0, 0, 0); font-family: &#39;Times New Roman&#39;; font-style:       normal; font-variant: normal; font-weight: normal; letter-spacing:       normal; line-height: normal; orphans: 2; text-indent: 0px;       text-transform: none; white-space: normal; widows: 2;       word-spacing: 0px; font-size: medium;&quot;&gt;&lt;span         class=&quot;Apple-style-span&quot; style=&quot;color: rgb(51, 51, 51);         font-family: helvetica,arial,freesans,clean,sans-serif;         font-size: 12px; line-height: 16px;&quot;&gt;         &lt;p style=&quot;margin: 10px 0px; padding: 0px; line-height: 1.5em !           important;&quot;&gt;if we get the error while installing rails_admin           for the error&lt;br&gt;           lib/rails_admin/config/fields/types.rb:11:in `load&#39;:           Unsupported field datatype: binary (RuntimeError)&lt;br&gt;           we have to follow below code in           config/initializers/rails_admin.rb&lt;br&gt;         &lt;/p&gt;         &lt;p style=&quot;margin: 10px 0px; padding: 0px; line-height: 1.5em !           important;&quot;&gt;since I don&#39;t display the binary field I put this           monkey patch in my initializer:&lt;/p&gt;         &lt;div class=&quot;highlight&quot; style=&quot;margin: 0px; padding: 0px;           background-color: rgb(255, 255, 255);&quot;&gt;           &lt;pre style=&quot;margin: 1em 0px; padding: 5px; font: 12px &#39;Bitstream Vera Sans Mono&#39;,Courier,monospace; background-color: rgb(250, 250, 250); border: 1px solid rgb(221, 221, 221); color: rgb(68, 68, 68); overflow: auto;&quot;&gt;&lt;span class=&quot;k&quot; style=&quot;margin: 0px; padding: 0px; font-weight: bold;&quot;&gt;module&lt;/span&gt; &lt;span class=&quot;nn&quot; style=&quot;margin: 0px; padding: 0px; color: rgb(85, 85, 85);&quot;&gt;RailsAdmin&lt;/span&gt;   &lt;span class=&quot;k&quot; style=&quot;margin: 0px; padding: 0px; font-weight: bold;&quot;&gt;module&lt;/span&gt; &lt;span class=&quot;nn&quot; style=&quot;margin: 0px; padding: 0px; color: rgb(85, 85, 85);&quot;&gt;Config&lt;/span&gt;     &lt;span class=&quot;k&quot; style=&quot;margin: 0px; padding: 0px; font-weight: bold;&quot;&gt;module&lt;/span&gt; &lt;span class=&quot;nn&quot; style=&quot;margin: 0px; padding: 0px; color: rgb(85, 85, 85);&quot;&gt;Fields&lt;/span&gt;       &lt;span class=&quot;k&quot; style=&quot;margin: 0px; padding: 0px; font-weight: bold;&quot;&gt;module&lt;/span&gt; &lt;span class=&quot;nn&quot; style=&quot;margin: 0px; padding: 0px; color: rgb(85, 85, 85);&quot;&gt;Types&lt;/span&gt;         &lt;span class=&quot;k&quot; style=&quot;margin: 0px; padding: 0px; font-weight: bold;&quot;&gt;def&lt;/span&gt; &lt;span class=&quot;nc&quot; style=&quot;margin: 0px; padding: 0px; color: rgb(68, 85, 136); font-weight: bold;&quot;&gt;self&lt;/span&gt;&lt;span class=&quot;o&quot; style=&quot;margin: 0px; padding: 0px; font-weight: bold;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;nf&quot; style=&quot;margin: 0px; padding: 0px; color: rgb(153, 0, 0); font-weight: bold;&quot;&gt;load&lt;/span&gt;&lt;span class=&quot;p&quot; style=&quot;margin: 0px; padding: 0px;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot; style=&quot;margin: 0px; padding: 0px;&quot;&gt;type&lt;/span&gt;&lt;span class=&quot;p&quot; style=&quot;margin: 0px; padding: 0px;&quot;&gt;)&lt;/span&gt;           &lt;span class=&quot;k&quot; style=&quot;margin: 0px; padding: 0px; font-weight: bold;&quot;&gt;return&lt;/span&gt; &lt;span class=&quot;vc&quot; style=&quot;margin: 0px; padding: 0px; color: rgb(0, 128, 128);&quot;&gt;@@registry&lt;/span&gt;&lt;span class=&quot;o&quot; style=&quot;margin: 0px; padding: 0px; font-weight: bold;&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;ss&quot; style=&quot;margin: 0px; padding: 0px; color: rgb(153, 0, 115);&quot;&gt;:text&lt;/span&gt;&lt;span class=&quot;o&quot; style=&quot;margin: 0px; padding: 0px; font-weight: bold;&quot;&gt;]&lt;/span&gt; &lt;span class=&quot;k&quot; style=&quot;margin: 0px; padding: 0px; font-weight: bold;&quot;&gt;if&lt;/span&gt; &lt;span class=&quot;p&quot; style=&quot;margin: 0px; padding: 0px;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot; style=&quot;margin: 0px; padding: 0px;&quot;&gt;type&lt;/span&gt;&lt;span class=&quot;o&quot; style=&quot;margin: 0px; padding: 0px; font-weight: bold;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot; style=&quot;margin: 0px; padding: 0px;&quot;&gt;to_sym&lt;/span&gt; &lt;span class=&quot;o&quot; style=&quot;margin: 0px; padding: 0px; font-weight: bold;&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;ss&quot; style=&quot;margin: 0px; padding: 0px; color: rgb(153, 0, 115);&quot;&gt;:binary&lt;/span&gt;&lt;span class=&quot;p&quot; style=&quot;margin: 0px; paddi ng: 0px;&quot;&gt;)&lt;/span&gt;           &lt;span class=&quot;vc&quot; style=&quot;margin: 0px; padding: 0px; color: rgb(0, 128, 128);&quot;&gt;@@registry&lt;/span&gt;&lt;span class=&quot;o&quot; style=&quot;margin: 0px; padding: 0px; font-weight: bold;&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;n&quot; style=&quot;margin: 0px; padding: 0px;&quot;&gt;type&lt;/span&gt;&lt;span class=&quot;o&quot; style=&quot;margin: 0px; padding: 0px; font-weight: bold;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot; style=&quot;margin: 0px; padding: 0px;&quot;&gt;to_sym&lt;/span&gt;&lt;span class=&quot;o&quot; style=&quot;margin: 0px; padding: 0px; font-weight: bold;&quot;&gt;]&lt;/span&gt; &lt;span class=&quot;ow&quot; style=&quot;margin: 0px; padding: 0px; font-weight: bold;&quot;&gt;or&lt;/span&gt; &lt;span class=&quot;k&quot; style=&quot;margin: 0px; padding: 0px; font-weight: bold;&quot;&gt;raise&lt;/span&gt; &lt;span class=&quot;s2&quot; style=&quot;margin: 0px; padding: 0px; color: rgb(221, 17, 68);&quot;&gt;&quot;Unsupported field datatype: &lt;/span&gt;&lt;span class=&quot;si&quot; style=&quot;margin: 0px; padding: 0px; color: rgb(221, 17, 68);&quot;&gt;#{&lt;/span&gt;&lt;span class=&quot;n&quot; style=&quot;margin: 0px; padding: 0px;&quot;&gt;type&lt;/span&gt;&lt;span class=&quot;si&quot; style=&quot;margin: 0px; padding: 0px; color: rgb(221, 17, 68);&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;s2 &quot; style=&quot;margin: 0px; padding: 0px; color: rgb(221, 17, 68);&quot;&gt;&quot;&lt;/span&gt;         &lt;span class=&quot;k&quot; style=&quot;margin: 0px; padding: 0px; font-weight: bold;&quot;&gt;end&lt;/span&gt;       &lt;span class=&quot;k&quot; style=&quot;margin: 0px; padding: 0px; font-weight: bold;&quot;&gt;end&lt;/span&gt;     &lt;span class=&quot;k&quot; style=&quot;margin: 0px; padding: 0px; font-weight: bold;&quot;&gt;end&lt;/span&gt;   &lt;span class=&quot;k&quot; style=&quot;margin: 0px; padding: 0px; font-weight: bold;&quot;&gt;end&lt;/span&gt; &lt;span class=&quot;k&quot; style=&quot;margin: 0px; padding: 0px; font-weight: bold;&quot;&gt;end&lt;/span&gt;&lt;/pre&gt;         &lt;/div&gt;       &lt;/span&gt;&lt;/span&gt;   </content><link rel='replies' type='application/atom+xml' href='http://railsdocuments.blogspot.com/feeds/2764467358586608238/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://railsdocuments.blogspot.com/2011/11/issue-while-installing-railsadmin-gem.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2672081878218216740/posts/default/2764467358586608238'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2672081878218216740/posts/default/2764467358586608238'/><link rel='alternate' type='text/html' href='http://railsdocuments.blogspot.com/2011/11/issue-while-installing-railsadmin-gem.html' title='issue while installing rails_admin gem in ruby on rails'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/17871013736706019733</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2672081878218216740.post-4505674899967371326</id><published>2011-11-24T01:01:00.001-08:00</published><updated>2012-09-05T04:12:54.252-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Rails Library"/><title type='text'>Admin Interfaces for Rails Apps: RailsAdmin vs ActiveAdmin</title><content type='html'>The complete article is on&lt;p&gt;&lt;a href=&quot;http://batsov.com/articles/2011/11/20/admin-interfaces-for-rails-apps-railsadmin-vs-activeadmin/&quot;&gt;http://batsov.com/articles/2011/11/20/admin-interfaces-for-rails-apps-railsadmin-vs-activeadmin/&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://railsdocuments.blogspot.com/feeds/4505674899967371326/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://railsdocuments.blogspot.com/2011/11/admin-interfaces-for-rails-apps.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2672081878218216740/posts/default/4505674899967371326'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2672081878218216740/posts/default/4505674899967371326'/><link rel='alternate' type='text/html' href='http://railsdocuments.blogspot.com/2011/11/admin-interfaces-for-rails-apps.html' title='Admin Interfaces for Rails Apps: RailsAdmin vs ActiveAdmin'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/17871013736706019733</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2672081878218216740.post-6649987763601971979</id><published>2011-11-15T04:20:00.001-08:00</published><updated>2012-09-05T04:13:09.225-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Ruby"/><title type='text'>What&#39;s the difference between &quot;include&quot; and &quot;require&quot; in Ruby?</title><content type='html'>&lt;div dir=&quot;ltr&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: separate; color: rgb(0, 0, 0); font-family: &amp;#39;Times New Roman&amp;#39;; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: collapse; font-family: Arial,&amp;#39;Liberation Sans&amp;#39;,&amp;#39;DejaVu Sans&amp;#39;,sans-serif; font-size: 14px; line-height: 18px; text-align: left;&quot;&gt;&lt;p style=&quot;margin: 0px 0px 1em; padding: 0px; border-width: 0px; font-size: 14px; vertical-align: baseline; background-color: transparent; clear: both; word-wrap: break-word;&quot;&gt;  The include and require methods do very different things.&lt;/p&gt;&lt;p style=&quot;margin: 0px 0px 1em; padding: 0px; border-width: 0px; font-size: 14px; vertical-align: baseline; background-color: transparent; clear: both; word-wrap: break-word;&quot;&gt;  The require method does what include does in most other programming languages: run another file. It also tracks what you&amp;#39;ve required in the past and won&amp;#39;t require the same file twice. To run another file without this added functionality, you can use the load method.&lt;/p&gt;  &lt;p style=&quot;margin: 0px 0px 1em; padding: 0px; border-width: 0px; font-size: 14px; vertical-align: baseline; background-color: transparent; clear: both; word-wrap: break-word;&quot;&gt;The include method takes all the methods from another module and includes them into the current module. This is a language-level thing as opposed to a file-level thing as with require. The include method is the primary way to &amp;quot;extend&amp;quot; classes with other modules (usually referred to as mix-ins). For example, if your class defines the method &amp;quot;each&amp;quot;, you can include the mixin module Enumerable and it can act as a collection. This can be confusing as the include verb is used very differently in other languages.&lt;/p&gt;  &lt;/span&gt;&lt;/span&gt; &lt;/div&gt; </content><link rel='replies' type='application/atom+xml' href='http://railsdocuments.blogspot.com/feeds/6649987763601971979/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://railsdocuments.blogspot.com/2011/11/whats-difference-between-include-and.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2672081878218216740/posts/default/6649987763601971979'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2672081878218216740/posts/default/6649987763601971979'/><link rel='alternate' type='text/html' href='http://railsdocuments.blogspot.com/2011/11/whats-difference-between-include-and.html' title='What&#39;s the difference between &quot;include&quot; and &quot;require&quot; in Ruby?'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/17871013736706019733</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>