Sunday 27 July 2014

Blogs for rails with ajax


 http://www.reinteractive.net/posts/34-ruby-on-rails-3-2-blog-in-15-minutes-step-by-step-part-2  
 http://carmennorahgraydean.blogspot.in/2012/10/rails-328-ajax-super-basic-example.html  
 http://twocentstudios.com/blog/2012/11/15/simple-ajax-comments-with-rails/  
 http://www.alfajango.com/blog/rails-3-remote-links-and-forms-data-type-with-jquery/  
 http://sonijigaurav.blogspot.in/2012/05/jquery-autocomplete-in-rails-32-and.html  
 http://richonrails.com/articles/basic-ajax-in-ruby-on-rails#.U9DrPNtOARg  
 http://code.tutsplus.com/tutorials/using-unobtrusive-javascript-and-ajax-with-rails-3--net-15243  

Wednesday 23 July 2014

The Web Platform Podcast

Reference:
https://www.linkedin.com/groups/Web-Platform-Podcast-Episode-1-120725.S.5895523959436247044?view=&item=5895523959436247044&type=member&gid=120725&trk=eml-b2_anet_digest-group_discussions-2-grouppost-disc-0&midToken=AQG9Gz0Dg5g6Qw&fromEmail=fromEmail&ut=0HL6r7UhdyBSk1
 
 Episode 1: RubyNation & Ruby's Cultural Impact  
 http://thewebplatform.today/rubynation-rubys-cultural-impact
 
 Episode 2: Prototyping with Purpose
 http://thewebplatform.today/prototyping-with-purpose

Tuesday 22 July 2014

gems for ruby on rails web applications

 credits goes to link (http://www.linkedin.com/groups/15-best-gems-ruby-on-120725.S.5891190483421519872?trk=eml-b2_anet_digest-group_discussions-2-grouppost-disc-0&gid=120725&view=&midToken=AQG9Gz0Dg5g6Qw&ut=3AVUJM0hpuBCk1&item=5891190483421519872&type=member&fromEmail=fromEmail) 
Devise (https://rubygems.org/gems/devise): Since some years ago, it represents the authentication mechanism preferred by all Rails developers. Powerful, flexible, allows to integrate with OAuth authentication systems with a minimal effort. 
Haml (https://rubygems.org/gems/haml): Allows you to write valid XHTML concisely. The learning curve is relatively short. 
Gritter (https://rubygems.org/gems/gritter): After years of flash messages in the classic div in the page, we moved to Growl like notifications. Thanks to these pop-ups, we can show our flash messages in any page in a completely non-invasive and elegant way. 
Cells (https://rubygems.org/gems/cells): Cells can really keep our controllers very skinny. We use it to represent and caching some boxes, like “recommended items”, “top users” and so on. I really like Cells over the use of helpers. 
FriendlyId (https://rubygems.org/gems/friendly_id): A perfect gem to make our url seo friendly. 
 SimpleForm (https://rubygems.org/gems/simple_form): We use it primarily for its excellent integration with Bootstrap and for its ease of use. 
 Paperclip (https://rubygems.org/gems/paperclip): Despite the years, it still remains the reference point for attachments management . 
 Kaminari (https://rubygems.org/gems/kaminari): Useful gem to manage paginated collections . 
 Cancan (https://rubygems.org/gems/cancan): Our choice to manage permissions. We never have had the need to use some other solution . 
 Resque (https://rubygems.org/gems/resque) or Delayed Job (https://rubygems.org/gems/delayed_job): Both are valuable supports to manage background processes. If you do not have enough resources to set up a Redis server, we recommend Delayed Job. 
 Sunspot (https://rubygems.org/gems/sunspot): After a brief period with thinking_sphinx, we have moved to this very powerful indexing engine. Thanks to Solr, we can easily implement geolocated full text searches. The only problem is that you need to configure a dedicated Tomcat server. If you do not have these resources, we recommend using pg_search (https://rubygems.org/gems/pg_search) with a Postgres database or the old but still valid meta_search (http://rubygems.org/gems/meta_search) . 
 ActiveAdmin (https://rubygems.org/gems/activeadmin): When it is necessary to set up a back office administration in a short time, here is the right gem. Powerful, fairly customizable, ideal for simple administration interfaces. 
 Letter opener (https://rubygems.org/gems/letter_opener): Useful to test sending emails simply by opening them in a browser window . 
 RSpec (https://rubygems.org/gems/rspec): A perfect gem to test our models in a BDD way. 
 
 Capybara (https://rubygems.org/gems/capybara) : In addition to unit test the models, we like to create a suite of acceptance tests. Capybara allows you to test all the application’s user stories relatively quickly.  
 Haml (https://rubygems.org/gems/haml): Allows you to write valid XHTML concisely. The learning curve is relatively short.   
 Gritter (https://rubygems.org/gems/gritter): After years of flash messages in the classic div in the page, we moved to Growl like notifications. Thanks to these pop-ups, we can show our flash messages in any page in a completely non-invasive and elegant way.  
 Cells (https://rubygems.org/gems/cells): Cells can really keep our controllers very skinny. We use it to represent and caching some boxes, like “recommended items”, “top users” and so on. I really like Cells over the use of helpers.  
 FriendlyId (https://rubygems.org/gems/friendly_id): A perfect gem to make our url seo friendly.  
 SimpleForm (https://rubygems.org/gems/simple_form): We use it primarily for its excellent integration with Bootstrap and for its ease of use.  
 Paperclip (https://rubygems.org/gems/paperclip): Despite the years, it still remains the reference point for attachments management .  
 Kaminari (https://rubygems.org/gems/kaminari): Useful gem to manage paginated collections .  
 Cancan (https://rubygems.org/gems/cancan): Our choice to manage permissions. We never have had the need to use some other solution .  
 Resque (https://rubygems.org/gems/resque) or Delayed Job (https://rubygems.org/gems/delayed_job): Both are valuable supports to manage background processes. If you do not have enough resources to set up a Redis server, we recommend Delayed Job.  
 Sunspot (https://rubygems.org/gems/sunspot): After a brief period with thinking_sphinx, we have moved to this very powerful indexing engine. Thanks to Solr, we can easily implement geolocated full text searches. The only problem is that you need to configure a dedicated Tomcat server. If you do not have these resources, we recommend using pg_search (https://rubygems.org/gems/pg_search) with a Postgres database or the old but still valid meta_search (http://rubygems.org/gems/meta_search) .  
 ActiveAdmin (https://rubygems.org/gems/activeadmin): When it is necessary to set up a back office administration in a short time, here is the right gem. Powerful, fairly customizable, ideal for simple administration interfaces.  
 Letter opener (https://rubygems.org/gems/letter_opener): Useful to test sending emails simply by opening them in a browser window .  
 RSpec (https://rubygems.org/gems/rspec): A perfect gem to test our models in a BDD way.  
 Capybara (https://rubygems.org/gems/capybara) : In addition to unit test the models, we like to create a suite of acceptance tests. Capybara allows you to test all the application’s user stories relatively quickly.  
 Links:
 http://tenmiles.com/blog/2012/06/25-ruby-on-rails-gems-for-rapid-prototyping/

 http://blog.teamtreehouse.com/10-must-have-ruby-gems

 http://www.intridea.com/blog/2011/5/13/rails3-gems

 http://girders.org/blog/2011/06/02/rails31-application-architecture/

Tuesday 15 July 2014

learn html,css,rails,javascript,jquery online

 1.codepen.io  
 2.http://www.codeschool.com/  
 3.http://www.lynda.com  
 4.http://www.codecademy.com/tracks/php  
 5.http://www.sitepoint.com/  
 6.http://teamtreehouse.com  
 7.https://tutsplus.com/  
 8.https://www.learnstreet.com/lessons/study/ruby#get-hint (rails)  
 9.http://tutorials.jumpstartlab.com/(rails)  
 10 http://tutorials.jumpstartlab.com/paths/advanced_rails_five_day.html  

ruby gems for cron job

 1.gem Whenever  
 2.gem Craken  
 3.gem delayed_job (longer job)  
 4.gem Rufus scheduler  
 5.gem backgroundrb (run scheduled tasks as well as tasks that take too long for the normal client/server relationship)  
 6. gem resque-scheduler  
 7. rake approach  
 8. gem daemons  
 whenever  
 http://subhashmohan.wordpress.com/2010/03/27/rails-crontab-with-whenever-gem/  
 http://dzoba.com/162/  
 https://shellycloud.com/documentation/running_periodic_tasks  
 http://learnaholic.me/2012/10/10/backing-up-postgresql-with-backup-and-whatever-gems/  
 http://ruthienachmany.github.io/blog/2013/08/10/sidekiq-redis-cron-jobs/  
 http://blog.wyeworks.com/2009/8/10/scheduling/  
 http://rubydoc.info/github/javan/whenever/frames (HHH)  
 http://eewang.github.io/blog/2013/03/12/how-to-schedule-tasks-using-whenever/(HHH)  
 http://stackoverflow.com/questions/285717/a-cron-job-for-rails-best-practices(HHH)  

Monday 14 July 2014

Get start with MEAN stack(expressjs, mongodb, nodejs)

 Installation 
 http://thecodebarbarian.wordpress.com/2013/07/22/introduction-to-the-mean-stack-part-one-setting-up-your-tools/ 
 Express with mongodb 
 http://pixelhandler.com/posts/develop-a-restful-api-using-nodejs-with-express-and-mongoose  
 http://scotch.io/tutorials/javascript/build-a-restful-api-using-node-and-express-4  
 http://backbonetutorials.com/nodejs-restify-mongodb-mongoose/  
 http://webapplog.com/express-js-and-mongoose-example-building-hackhall/  
 http://blog.ijasoneverett.com/2013/11/getting-started-with-mongoose-and-node-js-a-sample-comments-system/  
 http://theholmesoffice.com/node-js-express-and-mongoose/  

simple html form which captures Name, Email, Address and call javascript . The javascript program should validate, and php to store the information in the database(mysql).

 <html>  
 <head>  
   <script>  
     function validation()  
     {  
 // name  
       var a = document.form.name.value;  
       if (a == "")  
       {  
         alert("Please Enter Your name");  
         document.form.name.focus();  
         return false;  
       }  
       if ((a.length < 5) || (a.length > 15))  
       {  
         alert("Your Character must be 5 to 15 Character");  
         document.form.name.focus();  
         return false;  
       }  
       if (!isNaN(a))  
       {  
         alert("Please Enter Only Characters");  
         document.form.name.select();  
         return false;  
       }  
 //email  
       var b = document.form.email.value;  
       if(b == "")  
       {  
         alert("Please Enter Your email");  
         document.form.email.focus();  
         return false;  
       }  
       if(b)  
       {  
         filter = /^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;  
         if (!filter.test(b))  
         {  
           alert("Please enter valid email");  
           return false;  
         }  
       }  
 // address  
       var c = document.form.address.value;  
       if(c == "")  
       {  
         alert("Please Enter Your address");  
         document.form.address.focus();  
         return false;  
       }  
       if ((c.length < 5) || (c.length > 15))  
       {  
         alert("Your Character must be 5 to 15 Character");  
         document.form.address.focus();  
         return false;  
       }  
     }  
   </script>  
   <title>Simple Form</title>  
 </head>  
 <body>  
 <form action="<?php $_PHP_SELF ?>" method="post" name="form" onsubmit="return validation()">  
   Name:<input type="text" name="name"/><br>  
   Email:<input type="text" name="email"/><br>  
   Address:<input type="text" name="address"/><br>  
   <input type="submit" value="Submit"/>  
 </form>  
 <?php  
 $name = $_POST['name'];  
 $email = $_POST['email'];  
 $address = $_POST['address'];  
 if ($name == '' || $email == ''|| $address == '')  
 {  
   echo 'plz fill the required field';  
 }else {  
   $dbhost = 'localhost:3036';  
   $dbuser = 'root';  
   $dbpass = 'root';  
   $conn = mysql_connect($dbhost, $dbuser, $dbpass);  
   if(! $conn )  
   {  
     die('Could not connect: ' . mysql_error());  
   }  
   $sql = 'INSERT INTO persons '.  
     '(name, email, address) '.  
     "VALUES ('$name', '$email', '$address')";  
   mysql_select_db('phpform');  
   if(!empty($name))  
   {  
     $retval = mysql_query($sql, $conn);  
     if(! $retval )  
     {  
       die('Could not enter data: ' . mysql_error());  
     }  
     echo "Entered data successfully\n";  
   }  
   mysql_close($conn);  
 }  
 ?>  
 </body>  
 </html>  

Simple html form which captures Name, Email, Address, posts to a php program. The PHP program will validate, and store the information in the database.

 <!DOCTYPE HTML>  
 <html>  
 <head>  
   <style>  
     .error {  
       color: #FF0000;  
     }  
   </style>  
 </head>  
 <body>  
 <?php  
 $nameErr = $emailErr = $addrErr = "";  
 $name = $email = $address = "";  
 if ($_SERVER["REQUEST_METHOD"] == "POST") {  
   if (empty($_POST["name"])) {  
     $nameErr = "Name is required";  
   } else {  
     $name = test_input($_POST["name"]);  
     if (!preg_match("/^[a-zA-Z ]*$/", $name)) {  
       $nameErr = "Only letters and white space allowed";  
     }  
   }  
   if (empty($_POST["email"])) {  
     $emailErr = "Email is required";  
   } else {  
     $email = test_input($_POST["email"]);  
     if (!preg_match("/([\w\-]+\@[\w\-]+\.[\w\-]+)/", $email)) {  
       $emailErr = "Invalid email format";  
     }  
   }  
   if (empty($_POST["address"])) {  
     $addrErr = "Address is required";  
   } else {  
     $address = test_input($_POST["address"]);  
   }  
 }  
 function test_input($data)  
 {  
   $data = trim($data);  
   $data = stripslashes($data);  
   $data = htmlspecialchars($data);  
   return $data;  
 }  
 //db side  
 if ($name == '' || $email == '' || $address == '') {  
   echo 'plz fill the required field';  
 } else {  
   $dbhost = 'localhost:3036';  
   $dbuser = '*****';  
   $dbpass = '*****';  
   $conn = mysql_connect($dbhost, $dbuser, $dbpass);  
   if (!$conn) {  
     die('Could not connect: ' . mysql_error());  
   }  
   $sql = 'INSERT INTO persons ' .  
     '(name, email, address) ' .  
     "VALUES ('$name', '$email', '$address')";  
   mysql_select_db('phpform');  
   if (!empty($name)) {  
     $retval = mysql_query($sql, $conn);  
     if (!$retval) {  
       die('Could not enter data: ' . mysql_error());  
     }  
     echo "Entered data successfully\n";  
   }  
   mysql_close($conn);  
 }  
 ?>  
 <h2>PHP Form Validation Example</h2>  
 <p><span class="error">* required field.</span></p>  
 <form method="post" action="<?php echo htmlspecialchars($_SERVER["PHP_SELF"]); ?>">  
   Name: <input type="text" name="name" value="<?php echo $name; ?>">  
   <span class="error">* <?php echo $nameErr; ?></span>  
   <br><br>  
   E-mail: <input type="text" name="email" value="<?php echo $email; ?>">  
   <span class="error">* <?php echo $emailErr; ?></span>  
   <br><br>  
   Address: <input type="text" name="address" value="<?php echo $address; ?>">  
   <span class="error">* <?php echo $addrErr; ?></span>  
   <br><br>  
   <input type="submit" name="submit" value="Submit">  
 </form>  
 <?php  
 echo "<h2>Your Input:</h2>";  
 echo $name;  
 echo "<br>";  
 echo $email;  
 echo "<br>";  
 echo $address;  
 ?>  
 </body>  
 </html>  

php program which reads the contents of the file and then print the Number of words, Number of chars, Number of spaces, Number of special chars, Number of digits.

 <?php  
 $datas = (file("test.txt"));  
 $word_count = 0;  
 $character_count = 0;  
 $spaces_count = 0;  
 $splchars_count = 0;  
 $digits_count = 0;  
 foreach ($datas as $array => $data) {  
   //word count  
   $word_count += str_word_count($data);  
   //character count  
   $character_count += strlen($data);  
   //spl character count  
   $spl = str_split($data);  
   foreach ($spl as $bit) {  
     if (preg_match('/[\'^£$%&*()}{@#~?><>,|=_+¬-]/', $bit)) {  
       $splchars_count += 1;  
     }  
   }  
   //numbers count  
   $num = str_split($data);  
   foreach ($num as $bit) {  
     if (preg_match('!\d+!', $bit)) {  
       $digits_count += 1;  
     }  
   }  
 }  
 $spaces_count = $word_count - 1;  
 $character_count -= $spaces_count;  
 echo 'word_count = ' . $word_count;  
 echo '--';  
 echo 'character_count = ' . $character_count;  
 echo '--';  
 echo 'spaces_count = ' . $spaces_count;  
 echo '--';  
 echo 'special_chara_count = ' . $splchars_count;  
 echo '--';  
 echo 'digits_count = ' . $digits_count;  
 ?>  

Thursday 10 July 2014

links to start with drupal

 first read  
 https://www.drupal.org/node/877140  
 https://www.drupal.org/videocasts  
 http://codekarate.com/blog/best-way-learn-drupal 
 drupal instellation  
 https://help.ubuntu.com/community/Drupal 
 tutorial  
 http://ilovedrupal.com/videos/1/learn-drupal-7-one-hour-installing-acquia-drupal-part-28  
 http://drupalize.me/series/site-building-drupal-7-series  
 http://codekarate.com/blog/best-way-learn-drupal  
 http://friendlymachine.net/ 
videos  
 http://drupalcamp24x7.org/  
 http://nodeone.se/en/four-weeks-of-drupal (complete reference)  
 http://drupalonlinetraining.com/  
 http://www.youtube.com/user/learnbythedrop  
 http://blip.tv/learnbythedrop  
 E-Books 
 http://www.amazon.com/Pro-Drupal-Development-John-VanDyk/dp/1590597559 
 http://www.scribd.com/doc/79121057/Building-Your-Blog-With-Drupal-7  
 http://www.scribd.com/doc/2473970/Beginners-Guide-to-Drupal  

Rails useful blogs

 1.(url : http://sreeharikmarar.blogspot.in/  
 url : http://techazzist.wordpress.com/)  
 2.http://anilpunjabi.tumblr.com/  
 3. http://makandracards.com  
 4. http://marklunds.com   
 5. http://blog.joshsoftware.com/  
 6. Railscasts  
 7. http://rubylearning.com/blog/  
 8. http://weblog.jamisbuck.org/   
 9. http://m.onkey.org/  
 10.http://pivotallabs.com/community/blogs/  (H)  
 11. http://asciicasts.com/  
 12.http://www.edgerails.info/  
 13. http://www.allerin.com/blog/  
 14. http://www.railstips.org/  
 15. http://www.rubyinside.com/archives  
 16.http://jeffkreeftmeijer.com/  
 17 http://stackoverflow.com/questions/505678/what-are-the-best-ruby-or-rails-blogs  
  18. http://rorguide.blogspot.in/  
 19.http://ryanbigg.com/  
 20.http://www.planetrubyonrails.com/pages/channels  
 21.http://www.railstips.org/  
 22.http://technews-homepage.com/  
 23.http://rubyshow.com/  
 24.http://www.rubyflow.com/  
 25.https://shellycloud.com/    
 26.http://railsrumble.com/  
 27.http://www.rubyinside.com  
 28.http://www.toranbillups.com   
 29.http://larsgebhardt.de/  
 30.http://www.opinionatedprogrammer.com  
 31.http://www.42.mach7x.com/  
 32.http://deepakrip007.wordpress.com/
 33.http://12factor.net/

Links to get start with android

 http://developer.android.com/tools/workflow/index.html  
 http://androidprogrammingstuff.blogspot.in/2012/08/execution-flow-of-android-application.html  
 http://pivotal.github.io/robolectric/  
 http://www.vogella.com/articles/Android/article.html   
 http://cleancodedevelopment-qualityseal.blogspot.com/2012/12/first-android-app-step-by-step.html  
 http://www.bogotobogo.com/Android/android11JUnitTest.php   
 for webservice  
 http://www.techrepublic.com/blog/app-builder/calling-restful-services-from-your-android-app/1076  

Rails tutorials links

 http://xyzpub.com/  
 http://guides.rubyonrails.org  
 http://ruby.railstutorial.org/ruby-on-rails-tutorial-book  
 http://tutorials.jumpstartlab.com/projects/blogger.html#blogger  
 http://sixrevisions.com/web-development/how-to-create-a-blog-from-scratch-using-ruby-on-rails/  
 http://adrianmejia.com/blog/2011/08/11/ruby-on-rails-architectural-design/   
 https://facebook.com/Railstutorials  

Rails Gems reference link

 client side valiation  
 http://slainer68.wordpress.com/2010/09/02/rails-3-html-5-and-client-side-forms-validations-using-validator/  
 http://runnable.com/UpfEp0q7JxN6AARR/form-validation-using-ruby-on-rails  
 http://sleekd.com/tutorials/jquery-validation-in-ruby-on-rails/  
 http://railscasts.com/episodes/263-client-side-validations  
 http://asciicasts.com/episodes/263-client-side-validations 
rails sessions  
 Rails 3 additional session configuration options (key, expires_after, secure)  
 http://www.quarkruby.com/2007/10/21/sessions-and-cookies-in-ruby-on-rails  
 http://stackoverflow.com/questions/6397573/rails-3-additional-session-configuration-options-key-expires-after-secure 
omniauth(gmail)  
 http://blog.myitcv.org.uk/2013/02/19/omniauth-google-oauth2-example.html  
 http://blogs.burnsidedigital.com/2013/03/rails-3-devise-omniauth-and-google/  
 http://deepakrip007.wordpress.com/2013/11/05/google-integration-using-devise-and-omniauth-in-rails-app/   
 http://blog.baugues.com/google-calendar-api-oauth2-and-ruby-on-rails 
gmaps4rails  
 http://gkunwar1.wordpress.com/2012/08/28/use-google-map-in-rails-without-using-gem   
 http://upcomer.wordpress.com/2011/04/15/google-maps-in-rails-3/(HHHH)  
 http://danak.priv.pl/ruby-on-rails/gmaps4rails/  
 http://thasulinux.wordpress.com/2011/05/10/google-maps-in-rails3-application-sample-application/   
 http://andyglassblog.wordpress.com/2012/07/06/google-maps-for-rails-with-gmaps4-rails-tutorial-on-how-to-post-and-filter-locations/  
 http://runwaytorails.wordpress.com/2013/04/15/gmaps4rails/  
 writing script in ruby to play with mysql  
 http://zetcode.com/db/mysqlrubytutorial/ 
gem httparty  
 http://blog.teamtreehouse.com/its-time-to-httparty 
gem device  
 http://techazzist.wordpress.com/2012/01/01/creating-a-simple-ruby-on-rails-application-using-devise/  
 http://blog.blazingcloud.net/2011/01/08/devise-authentication-in-rails-3/  
 http://guides.railsgirls.com/devise/  
 gem action mailer  
 http://asciicasts.com/episodes/206-action-mailer-in-rails-3 
gem oauth twitter   
 http://stakeventures.com/articles/2009/07/21/consuming-oauth-intelligently-in-rails  
 error:  
 SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed  
 solution:  
 In one project, we had to add this code to config/environments/development.rb to get Facebook connect working for local development:  
 OpenSSL::SSL::VERIFY_PEER =OpenSSL::SSL::VERIFY_NONE  
 Flat UI  
 http://designmodo.com/create-drop-down-menu-search-box/ 
twitter bootstarp gem  
 http://ruby.railstutorial.org/chapters/filling-in-the-layout#top  
 http://bootstraphero.com/the-big-badass-list-of-twitter-bootstrap-resources (different designs)  
 http://railscasts.com/episodes/328-twitter-bootstrap-basics?view=asciicast  
 http://www.sitepoint.com/series/twitter-bootstrap-and-rails/  
 http://ruby.railstutorial.org/chapters/filling-in-the-layout#sec-custom_css  
 http://railskey.wordpress.com/2012/05/21/twitter-bootstrap-rails-3-tutorial/  
 https://github.com/jehughes/rails3-devise-bootstrap-example  
 http://www.tomordonez.com/blog/2012/06/04/tutorial-of-twitter-bootstrap-with-activeadmin-and-spanishslang-gem/  
 https://communityguides.heroku.com/articles/18  
 https://github.com/seyhunak/twitter-bootstrap-rails  
 http://www.opinionatedprogrammer.com/2011/11/twitter-bootstrap-on-rails/   
 http://www.onextrapixel.com/2012/11/12/how-to-use-twitter-bootstrap-to-create-a-responsive-website-design/  
 http://stackoverflow.com/questions/15259762/twitter-bootstrap-responsive-design  
 http://stackoverflow.com/questions/15022706/twitter-bootstrap-responsive-css-selectors  
 http://www.sitepoint.com/building-responsive-websites-using-twitter-bootstrap/  
 https://www.google.co.in/search?q=responsive+twitter+bootstrap&client=ubuntu&channel=fs&noj=1&ei=P-maUtjHLMmHrQeQ14C4Dg&start=10&sa=N&biw=1301&bih=678 
adding twitter bootstrap sass  
 http://www.sitepoint.com/series/twitter-bootstrap-and-rails/  
 http://bootstraphero.com/the-big-badass-list-of-twitter-bootstrap-resources 
db relationship  
 1.http://net.tutsplus.com/tutorials/ruby/advanced-data-models-with-rails/  
 2.http://upcomer.wordpress.com/2011/03/10/relationship-concepts-in-rails-3/#comment-80  
 3.http://fskrealityguide.blogspot.in/2008/08/ruby-on-rails-sucks.html(no technical)  
 4.http://biodegradablegeek.com/2007/12/understanding-basic-database-relationships-in-rails/  
 5.http://blog.plataformatec.com.br/tag/rails-3/  
 6.http://www.andrewdenhertog.com/ruby-on-rails/creating-model-associations-in-rails/  

Get Start with git

 http://git-scm.com/book  
 http://sixrevisions.com/resources/git-tutorials-beginners/  
 http://www.vogella.com/articles/Git/article.html  
 http://readwrite.com/2013/09/30/understanding-github-a-journey-for-beginners-part-1#awesm=~onwDPCqskB7Mx8  
 http://git-scm.com/docs/gittutorial  
 http://try.github.io/levels/1/challenges/1  
 http://stackoverflow.com/questions/315911/git-for-beginners-the-definitive-practical-guide#316055  

Links to get start with angularjs

 get start :  
 for Practice 
 https://github.com/zafarali/learning-angular 
 http://www.toptal.com/angular-js/a-step-by-step-guide-to-your-first-angularjs-app  
 http://www.revillweb.com/tutorials/angularjs-in-30-minutes-angularjs-tutorial/   
 http://html5hub.com/angular-js-tutorial/#i.1b5zmsi2hkd4zy  
 http://tutorialzine.com/2013/08/learn-angularjs-5-examples/  
 http://code.tutsplus.com/tutorials/building-a-web-app-from-scratch-in-angularjs--net-32944  
 http://viralpatel.net/blogs/angularjs-controller-tutorial/  
 https://egghead.io/lessons  
 http://ng-tutorial.mgechev.com/#?tutorial=partials&step=expressions  
 https://medium.com/on-coding/angularjs-tutorial-for-designers-8c7dc63ca65f  
 http://www.thinkster.io/  
 http://www.thinkster.io/angularjs/GtaQ0oMGIl/a-better-way-to-learn-angularjs  
 http://tutorials.jenkov.com/angularjs/index.html  
 http://joelhooks.com/blog/2013/08/03/learn-angularjs-in-a-weekend/  
 http://blog.revolunet.com/blog/2013/06/01/starting-with-angularjs 
 for read  
 http://www.sitepoint.com/10-reasons-use-angularjs/  
 http://stephanebegaudeau.tumblr.com/post/48776908163/everything-you-need-to-understand-to-start-with  
 http://www.angularjstutorial.com/  
 http://jonathanmh.com/best-javascript-mvc-frameworks-2013-2014/  
 http://stackoverflow.com/questions/14333857/how-to-master-angularjs 
 for install  
 http://code.xplorate.com/2013/04/angularjs-tutorial-2-structuring-and.html#.U4nmudtOARg   
 should know about angular  
 1.directives  
 2.scope  
 3.services  
 4.PubSub system(communicating between controllers)  
 5.factory(singleton object )  
 6.controllers  
 7.filters  

Monday 7 July 2014

Formatting code snippets for blogging on Blogger

These links helps you to format text which can be used to put in blogs etc. 

 http://formatmysourcecode.blogspot.in/  
 http://www.textfixer.com/tools/remove-line-breaks.php  
 http://stackoverflow.com/questions/679189/formatting-code-snippets-for-blogging-on-blogger  
 http://hilite.me/  
 http://codeformatter.blogspot.in/2009/06/about-code-formatter.html  

Useful links for paperclip gem in rails

 Ruby on Rails 4.0, Amazon S3, Paperclip and Heroku  
 http://www.blitztheory.com/direct-upload-with-s3_direct_upload/  
 http://dev.mensfeld.pl/2013/12/rails-paperclip-open-uri-downloading-files-from-the-internet-and-saving-them-with-paperclip/  
 http://asciicasts.com/episodes/134-paperclip  
 http://patshaughnessy.net/2010/5/23/how-to-install-paperclip-in-a-rails-3-app  
 rails 4  
 http://robmclarty.com/blog/how-to-install-image-magick-and-setup-paperclip  
 rails 3  
 http://codeabout.wordpress.com/2011/03/08/gem-paperclip-uploading-files-and-pictures-into-your-rails-application/  
 https://devcenter.heroku.com/articles/paperclip-s3  
 http://railscasts.com/episodes/134-paperclip  

links for dragonfly gem in rails

 http://blog.tallgreentree.com/posts/getting-started-with-dragonfly  
 http://markevans.github.io/dragonfly/rails/  
 http://new-bamboo.co.uk/blog/2010/01/13/dragonfly  
 http://stackoverflow.com/questions/7634869/multiple-image-upload-with-dragonfly  
 error reference:  
 http://stackoverflow.com/questions/11355846/refinerycms-image-not-loading-dragonfly-error  

Image Processing in rails

 http://railscasts.com/episodes/374-image-manipulation  
 https://www.ruby-toolbox.com/categories/image_processing  
 http://stackoverflow.com/questions/1704670/ruby-rails-image-processing-libraries  
 http://railscasts.com/episodes/374-image-manipulation?view=asciicast  

Rails with javascript/coffeescript/ajax/jquery

 javascript :
 
 http://railsapps.github.io/rails-javascript-include-external.html(theory)  
 http://stackoverflow.com/questions/3437585/best-way-to-add-page-specific-javascript-in-a-rails-3-app  
 http://brandonhilkert.com/blog/page-specific-javascript-in-rails/  
 http://pothibo.com/2013/07/responsive-javascript-in-rails/  
 http://www.sitepoint.com/forums/showthread.php?1040070-Javascript-with-ruby-on-rails  
 http://asciicasts.com/episodes/205-unobtrusive-javascript

 coffeescript :  

 http://www.sitepoint.com/using-coffeescript-in-rails/  
 
 ajax :
  
 http://stjhimy.com/posts/07-creating-a-100-ajax-crud-using-rails-3-and-unobtrusive-javascript  
 http://www.tutorialspoint.com/ruby-on-rails/rails-and-ajax.htm  
 http://richonrails.com/articles/basic-ajax-in-ruby-on-rails  
 http://rails-ajax.x-aeon.com/  
 http://code.tutsplus.com/tutorials/using-unobtrusive-javascript-and-ajax-with-rails-3--net-15243 
 https://github.com/nacengineer/rails-3.1-AJAX-Example
jquery :

 http://joshhuckabee.com/  
 http://railscasts.com/episodes/136-jquery  
 gem "jquery-rails"  
 gem jquery-ujs  
 http://robots.thoughtbot.com/a-tour-of-rails-jquery-ujs  
 http://www.railsdeveloper.net/2010/06/rails-and-jquery-how-to-integrate-jquery-ui-into-your-rails-app/  
 http://stackoverflow.com/questions/13481996/how-can-i-use-jquery-in-rails-3-2-8  

Links for Carrierwave gem in rails

 carrierwave  

 http://carrierwave.rubyforge.org/rdoc/  
 https://coderwall.com/p/lqtsya  
 http://playingwithtux.wordpress.com/2011/07/24/carrierwave-gem-in-rails/  
 https://blog.engineyard.com/2011/a-gentle-introduction-to-carrierwave/  
 http://rebelcolony.com/posts/rails-3-image-uploading-with-carrierwave  
 http://guides.railsgirls.com/thumbnails/  
 http://www.freezzo.com/2010/12/23/create-ffmpeg-processor-for-carrierwave-in-rails-3/  
 http://richonrails.com/articles/allowing-file-uploads-with-carrierwave  
 
Carrierwave for thumbnails  

 http://asciicasts.com/episodes/253-carrierwave-file-uploads  
 http://railscasts.com/episodes/253-carrierwave-file-uploads  
 http://www.sitepoint.com/processing-images-with-carrierwave/  
 http://www.javahabit.com/2012/06/03/saving-files-in-amazon-s3-using-carrierwave-and-fog-gem/  
 http://rubydoc.info/gems/carrierwave/frames  

 Cloudinary and Carrierwave  

 http://www.millwoodonline.co.uk/blog/uploading-many-images-to-cloudinary-with-carrierwave  
 http://cloudinary.com/blog/ruby_on_rails_image_uploads_with_carrierwave_and_cloudinary  

 Integrating Zencoder API with Carrierwave in Rails  
 http://waseem-ahmad.com/2013/04/29/integrating-zencoder-api-with-carrierwave-in-rails/ 

 
 http://neovintage.blogspot.in/2010/06/file-uploads-with-rails-3-plupload-and.html  
 http://markcharlesdesign.blogspot.in/2013/12/google-cloud-storage-with.html  
 http://lucapette.com/rails/multiple-files-upload-with-carrierwave-and-nested_form/  

Sunday 6 July 2014

ruby code for lift(elevator)

 class Lift  
  GROUND_FLOOR = 1  
  TOTAL_FLOOR = 10  
  @@previous_floor =0  
  TRAVEL_TIME = 3  
  DO_DC = 10  
  attr_reader :elevator_on_floor  
  attr_accessor :elevator_target_floor, :new_floor  
  def initialize  
    @elevator_target_floor = GROUND_FLOOR  
  end  
  def call_elevator_to_floor( new_floor,entry_count)  
    if new_floor <= TOTAL_FLOOR  
      puts "strated to floor #{new_floor}"  
      time_to_display = ((new_floor-@@previous_floor)*TRAVEL_TIME).abs  
      puts "time left to reach #{time_to_display} seconds"  
      @@previous_floor = new_floor  
      time_passes(new_floor,time_to_display,$entry_count)  
    else  
     puts 'Invalid floor enter between (1 -10)'  
    end  
  end  
  def time_passes(new_floor,time_to_display,entry_count)  
    if @new_floor != @elevator_target_floor  
     sleep time_to_display.abs  
     $entry_count-=1  
     puts "elevator has arrived at #{new_floor}"  
    else  
      puts "elevator has arrived at your floor"  
    end  
  end  
 end  
 lift = Lift.new  
 puts 'Enter the floor number to reach(1-10)'  
 $entry_count =0  
 while line = gets  
  $entry_count+=1  
  line.chomp!  
    if line      
      puts lift.call_elevator_to_floor( line.to_i,$entry_count )   
     end  
 end  

Wednesday 2 July 2014

Useful Discussions on Ruby on Rails

 source linkedin (2nd July 2014)  
 Is Ruby On Rails ready for any Enterprise?  
 http://www.linkedin.com/groups/Is-Ruby-On-Rails-ready-120725.S.5888238688403480580?type=member&fromEmail=fromEmail&trk=eml-b2_anet_digest-group_discussions-2-grouppost-disc-0&ut=3T5H8htQzB8mk1&item=5888238688403480580&gid=120725&view2n= 
 

Why You Should Never Charge Hourly

http://freelancefolder.com/why-you-should-never-charge-hourly/?utm_content=buffer98769&utm_medium=social&utm_source=linkedin.com&utm_campaign=buffer 
 
 

Collaborative code editor

http://blog.hashdog.com/rails/scrapfy-chrome-extension/ 
 

No more support for 1.8.7 and 1.9.2 ruby

 
https://www.ruby-lang.org/en/news/2014/07/01/eol-for-1-8-7-and-1-9-2/?utm_source=rubyweekly&utm_medium=email