Skip to content

Instantly share code, notes, and snippets.

raulgobr

Block or report user

Report or block raulgobr

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:29a87622435c0527e4f2
{"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
View url_with_protocol.rb
def url_with_protocol(url)
/^http/.match(url) ? url : "https://#{url}"
end
View gist:3b5740bd2dfd092c7337
<style type="text/css">
.rating {
overflow: hidden;
display: inline-block;
font-size: 0;
position: relative;
}
.rating-input {
float: right;
width: 16px;
View log for other error
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()
View 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 Mar 14, 2014
trace for odd error on db
View tracedb
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'
You can’t perform that action at this time.