Posts in 2021
-
Most votes on security questions 2
May 01, 2021 in FAQ
Most votes on security questions 2. #11 Why Does OAuth v2 Have Both Access and Refresh Tokens? #12 SQL injection that gets around mysql_real_escape_string() #13 Are PDO prepared statements sufficient to prevent SQL injection? #14 How can bcrypt have built-in salts? #15 Are HTTPS headers encrypted? #16 Authentication versus Authorization #17 SecurityError: Blocked a frame with origin from accessing a cross-origin frame #18 What is the difference between Integrated Security = True and Integrated Security = SSPI? #19 Why is using the JavaScript eval function a bad idea? #20 JWT (JSON Web Token) automatic prolongation of expiration
Read all the top votes questions and answers in a single page. #11: Why Does OAuth v2 Have Both Access and Refresh Tokens? (Score: 724) Created: 2010-08-15 Last updated: 2016-12-21 Tags: security, oauth, access-token, refresh-token Section 4.2 of the …
-
Most votes on security questions 10
May 01, 2021 in FAQ
Most votes on security questions 10. #91 Fastest hash for non-cryptographic uses? #92 Has reCaptcha been cracked / hacked / OCR'd / defeated / broken? #93 In what cases will HTTP_REFERER be empty #94 How to deal with a slow SecureRandom generator? #95 Convert .pfx to .cer #96 How can I store my users' passwords safely? #97 Obscure a UITextField password #98 How to convert SecureString to System.String? #99 What is the App_Data folder used for in Visual Studio? #100 Best Practices: Salting & peppering passwords?
Read all the top votes questions and answers in a single page. #91: Fastest hash for non-cryptographic uses? (Score: 173) Created: 2010-09-08 Last updated: 2012-01-25 Tags: php, database, security, hash I’m essentially preparing phrases to be …
-
Most votes on security questions 1
May 01, 2021 in FAQ
Most votes on security questions 1. #1 The definitive guide to form-based website authentication #2 Why does Google prepend while(1); to their JSON responses? #3 Why is char[] preferred over String for passwords? #4 How can I prevent SQL injection in PHP? #5 How should I ethically approach user password storage for later plaintext retrieval? #6 Secure hash and salt for PHP passwords #7 How can I sanitize user input with PHP? #8 How does the SQL injection from the "Bobby Tables" XKCD comic work? #9 Best Practices for securing a REST API / web service #10 How to avoid reverse engineering of an APK file?
Read all the top votes questions and answers in a single page. #1: The definitive guide to form-based website authentication (Score: 5474) Created: 2008-08-02 Last updated: 2018-04-09 Tags: security, http, authentication, language-agnostic, article …
-
Most votes on ruby-on-rails questions 9
May 01, 2021 in FAQ
Most votes on ruby-on-rails questions 9. #81 Fully custom validation error message with Rails #82 Rails: Default sort order for a rails model? #83 Rails raw SQL example #84 bundle install fails with SSL certificate verification error #85 Rails: #update_attribute vs #update_attributes #86 Best way to add comments in erb #87 How to return an empty ActiveRecord relation? #88 How is attr_accessible used in Rails 4? #89 Is Ruby pass by reference or by value? #90 Rails - Could not find a JavaScript runtime?
Read all the top votes questions and answers in a single page. #81: Fully custom validation error message with Rails (Score: 268) Created: 2009-04-30 Last updated: 2010-06-14 Tags: ruby-on-rails Using Rails I’m trying to get an error message …
-
Most votes on ruby-on-rails questions 8
May 01, 2021 in FAQ
Most votes on ruby-on-rails questions 8. #71 SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed #72 difference between collection route and member route in ruby on rails? #73 rails 3.1.0 ActionView::Template::Error (application.css isn't precompiled) #74 Run a single migration file #75 Best way to load module/class from lib folder in Rails 3? #76 SSL Error When installing rubygems, Unable to pull data from 'https://rubygems.org/ #77 What is Rack middleware? #78 Disable Rails SQL logging in console #79 Ruby: What is the easiest way to remove the first element from an array? #80 What's the best manner of implementing a social activity stream?
Read all the top votes questions and answers in a single page. #71: SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed (Score: 283) Created: 2010-12-24 Tags: ruby-on-rails, ruby, ssl, authlogic, …
-
Most votes on ruby-on-rails questions 7
May 01, 2021 in FAQ
Most votes on ruby-on-rails questions 7. #61 How do I parse JSON with Ruby on Rails? #62 Rails Root directory path? #63 Ruby on Rails generates model field:type - what are the options for field:type? #64 Rails: Check output of path helper from console #65 A cron job for rails: best practices? #66 PG::ConnectionBad - could not connect to server: Connection refused #67 Float vs Decimal in ActiveRecord #68 Rails server says port already used, how to kill that process? #69 Add a default value to a column through a migration #70 how to permit an array with strong parameters
Read all the top votes questions and answers in a single page. #61: How do I parse JSON with Ruby on Rails? (Score: 315) Created: 2009-12-01 Last updated: 2015-10-28 Tags: ruby-on-rails, ruby, json I’m looking for a simple way to parse JSON, …
-
Most votes on ruby-on-rails questions 6
May 01, 2021 in FAQ
Most votes on ruby-on-rails questions 6. #51 Remove duplicate elements from array in Ruby #52 Case statement with multiple values in each 'when' block #53 How to define custom configuration variables in rails #54 How to find where a method is defined at runtime? #55 raw vs. html_safe vs. h to unescape html #56 What is the best method of handling currency/money? #57 Add a reference column migration in Rails 4 #58 How to run a single RSpec test? #59 What does "WARN Could not determine content-length of response body." mean and how to I get rid of it? #60 @ variables in Ruby on Rails
Read all the top votes questions and answers in a single page. #51: Remove duplicate elements from array in Ruby (Score: 343) Created: 2011-12-03 Last updated: 2017-09-26 Tags: ruby-on-rails, arrays, ruby, duplicates I have a Ruby array which …
-
Most votes on ruby-on-rails questions 5
May 01, 2021 in FAQ
Most votes on ruby-on-rails questions 5. #41 How can I disable logging of asset pipeline (sprockets) messages in Ruby on Rails 3.1? #42 Rails where condition using NOT NIL #43 What does bundle exec rake mean? #44 How to convert a ruby hash object to JSON? #45 Rails :include vs. :joins #46 Rails migration for change column #47 Using fonts with Rails asset pipeline #48 Rails 4: before_filter vs. before_action #49 How do you delete an ActiveRecord object? #50 Rails: How to run
rails generate scaffold
when the model already exists?Read all the top votes questions and answers in a single page. #41: How can I disable logging of asset pipeline (sprockets) messages in Ruby on Rails 3.1? (Score: 378) Created: 2011-06-10 Last updated: 2020-06-01 Tags: ruby-on-rails, ruby-on-rails-3, …
-
Most votes on ruby-on-rails questions 4
May 01, 2021 in FAQ
Most votes on ruby-on-rails questions 4. #31 How do I handle too long index names in a Ruby on Rails ActiveRecord migration? #32 How do you write a migration to rename an ActiveRecord model and its table in Rails? #33 How do I get the name of a Ruby class? #34 Rails update_attributes without save? #35 No route matches "/users/sign_out" devise rails 3 #36 Using Rails 3.1, where do you put your "page specific" JavaScript code? #37 Rails I18n validation deprecation warning #38 How can I specify a local gem in my Gemfile? #39 Can Rails Routing Helpers (i.e. mymodel_path(model)) be Used in Models? #40 What is the difference between <%, <%=, <%# and -%> in ERB in Rails?
Read all the top votes questions and answers in a single page. #31: How do I handle too long index names in a Ruby on Rails ActiveRecord migration? (Score: 419) Created: 2011-03-26 Last updated: 2018-08-23 Tags: ruby-on-rails, migration I am trying …
-
Most votes on ruby-on-rails questions 3
May 01, 2021 in FAQ
Most votes on ruby-on-rails questions 3. #21 Undo scaffolding in Rails #22 Postgres could not connect to server #23 How to redirect to a 404 in Rails? #24 How can I call controller/view helper methods from the console in Ruby on Rails? #25 Difference between string and text in rails? #26 How do I make a column unique and index it in a Ruby on Rails migration? #27 Rails: How can I set default values in ActiveRecord? #28 What is the easiest way to duplicate an activerecord record? #29 In Ruby on Rails, what's the difference between DateTime, Timestamp, Time and Date? #30 Rails 4: List of available datatypes
Read all the top votes questions and answers in a single page. #21: Undo scaffolding in Rails (Score: 500) Created: 2009-06-08 Last updated: 2017-04-05 Tags: ruby-on-rails, ruby, scaffolding Is there any way to ‘undo’ the effects of a …