Skip to content

Instantly share code, notes, and snippets.

{"file"=>"\xFF\xD8\xFF\xE0\u0000\u0010JFIF\u0000\u0001\u0001\u0001\u0000H\u0000H\u0000\u0000\xFF\xE1\u0002vExif\u0000\u0000MM\u0000*\u0000\u0000\u0000\b\u0000\f\u0001\u0000\u0000\u0004\u0000\u0000\u0000\u0001\u0000\u0000\a\x80\u0001\u0001\u0000\u0004\u0000\u0000\u0000\u0001\u0000\u0000\u00048\u0001\u000F\u0000\u0002\u0000\u0000\u0000\b\u0000\u0000\u0000\x9E\u0001\u0010\u0000\u0002\u0000\u0000\u0000\t\u0000\u0000\u0000\xA6\u0001\u0012\u0000\u0003\u0000\u0000\u0000\u0001\u0000\u0001\u0000\u0000\u0001\u001A\u0000\u0005\u0000\u0000\u0000\u0001\u0000\u0000\u0000\xB0\u0001\e\u0000\u0005\u0000\u0000\u0000\u0001\u0000\u0000\u0000\xB8\u0001(\u0000\u0003\u0000\u0000\u0000\u0001\u0000\u0002\u0000\u0000\u00011\u0000\u0002\u0000\u0000\u0000\r\u0000\u0000\u0000\xC0\u00012\u0000\u0002\u0000\u0000\u0000\u0014\u0000\u0000\u0000\xCE\u0002\u0013\u0000\u0003\u0000\u0000\u0000\u0001\u0000\u0001\u0000\u0000\x87i\u0000\u0004\u0000\u0000\u0000\u0001\u0000\u0000\u0000\xE2\u0000\u0000\u0000\u0000SAMSUNG\u0000SM-N9005\u0000\u0000\u0000
def url_with_protocol(url)
/^http/.match(url) ? url : "https://#{url}"
end
<style type="text/css">
.rating {
overflow: hidden;
display: inline-block;
font-size: 0;
position: relative;
}
.rating-input {
float: right;
width: 16px;
Stefanoss-Mac-mini:AwesomeWeb stefanosioannou$ bundle exec rake db:drop RAILS_ENV=test
WARNING: Nokogiri was built against LibXML version 2.8.0, but has dynamically loaded 2.7.8
Stefanoss-Mac-mini:AwesomeWeb stefanosioannou$ bundle exec rake db:create RAILS_ENV=test
WARNING: Nokogiri was built against LibXML version 2.8.0, but has dynamically loaded 2.7.8
Stefanoss-Mac-mini:AwesomeWeb stefanosioannou$ bundle exec rake db:schema:load RAILS_ENV=test
WARNING: Nokogiri was built against LibXML version 2.8.0, but has dynamically loaded 2.7.8
I, [2014-03-14T11:56:04.881334 #72606] INFO -- : ** [Raven] Raven 0.7.1 ready to catch errors
-- enable_extension("plpgsql")
-> 0.0263s
-- initialize_schema_migrations_table()
@raulgobr
raulgobr / database.yml
Created March 14, 2014 11:46
database.yml
development:
adapter: postgresql
encoding: unicode
host: localhost
database: mydb_development
username: mydbuser
password:
allow_concurrency: true
pool: 5
min_messages: warning
@raulgobr
raulgobr / tracedb
Created March 14, 2014 11:43
trace for odd error on db
Stefanoss-Mac-mini:AwesomeWeb stefanosioannou$ RAILS_ENV="test" rake db:create --trace
WARNING: Nokogiri was built against LibXML version 2.8.0, but has dynamically loaded 2.7.8
** Invoke db:create (first_time)
** Invoke db:load_config (first_time)
** Execute db:load_config
** Execute db:create
rake aborted!
database configuration does not specify adapter
/Users/stefanosioannou/.rvm/gems/ruby-1.9.3-p484/gems/activerecord-4.0.3/lib/active_record/connection_adapters/connection_specification.rb:52:in `resolve_hash_connection'
/Users/stefanosioannou/.rvm/gems/ruby-1.9.3-p484/gems/activerecord-4.0.3/lib/active_record/connection_adapters/connection_specification.rb:46:in `resolve_string_connection'