Skip to content

Instantly share code, notes, and snippets.

���<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
....
заменить ->
<!DOCTYPE html>
<html>
....
а лутше пользуйся http://html5boilerplate.com/
Intergalactic:Valuation-Metrics andy$ git status
# On branch master
# Your branch is ahead of 'origin/master' by 25 commits.
# (use "git push" to publish your local commits)
#
nothing to commit, working directory clean
Intergalactic:Valuation-Metrics andy$ git branch
2243
* master
Intergalactic:Valuation-Metrics andy$ git rebase upstream/master
Intergalactic:airbrake-app andy$ rails c
/Users/andy/.rvm/gems/ruby-2.0.0-p247@airbrake/gems/bundler-1.3.5/lib/bundler/rubygems_integration.rb:214:in `block in replace_gem': Please install the postgresql adapter: `gem install activerecord-postgresql-adapter` (pg is not part of the bundle. Add it to Gemfile.) (LoadError)
from /Users/andy/.rvm/gems/ruby-2.0.0-p247@airbrake/gems/activerecord-3.2.13/lib/active_record/connection_adapters/postgresql_adapter.rb:7:in `<top (required)>'
from /Users/andy/.rvm/gems/ruby-2.0.0-p247@airbrake/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in `require'
from /Users/andy/.rvm/gems/ruby-2.0.0-p247@airbrake/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in `block in require'
from /Users/andy/.rvm/gems/ruby-2.0.0-p247@airbrake/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:236:in `load_dependency'
from /Users/andy/.rvm/gems/ruby-2.0.0-p247@airbrake/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in `require
Intergalactic:airbrake-app andy$ rvm gemset name
airbrake
Intergalactic:airbrake-app andy$ gem install activerecord-postgresql-adapter
Successfully installed activerecord-postgresql-adapter-0.0.1
Parsing documentation for activerecord-postgresql-adapter-0.0.1
1 gem installed
Intergalactic:airbrake-app andy$ rails c
/Users/andy/.rvm/gems/ruby-2.0.0-p247@airbrake/gems/bundler-1.3.5/lib/bundler/rubygems_integration.rb:214:in `block in replace_gem': Please install the postgresql adapter: `gem install activerecord-postgresql-adapter` (pg is not part of the bundle. Add it to Gemfile.) (LoadError)
from /Users/andy/.rvm/gems/ruby-2.0.0-p247@airbrake/gems/activerecord-3.2.13/lib/active_record/connection_adapters/postgresql_adapter.rb:7:in `<top (required)>'
from /Users/andy/.rvm/gems/ruby-2.0.0-p247@airbrake/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in `require'
Error starting application
Your Rack app raised an exception when Pow tried to run it.
URI::InvalidURIError: bad URI(is not URI?):
~/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/uri/common.rb:176:in `split'
~/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/uri/common.rb:211:in `parse'
~/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/uri/common.rb:747:in `parse'
~/Sites/repository/airbrake-app/config/initializers/resque.rb:2:in `<top (required)>'
~/.rvm/gems/ruby-2.0.0-p247@airbrake/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:245:in `load'
/*!40000 ALTER TABLE `receipts` ENABLE KEYS */;
UNLOCK TABLES;
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
rake aborted!
An error has occurred, all later migrations canceled:
Mysql2::Error: Duplicate entry '90234-82524' for key 'index_project_memberships_on_user_id_and_project_id': CREATE UNIQUE INDEX `index_project_memberships_on_user_id_and_project_id` ON `project_memberships` (`user_id`, `project_id`)/Users/andy/.rvm/gems/ruby-2.0.0-p247@airbrake/gems/activerecord-3.2.13/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:245:in `query'
/Users/andy/.rvm/gems/ruby-2.0.0-p247@airbrake/gems/activerecord-3.2.13/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:245:in `block in execute'
/Users/andy/.rvm/gems/ruby-2.0.0-p247@airbrake/gems/activerecord-3.2.13/lib/active_record/connection_adapters/abstract_adapter.rb:280:in `block in log'
/Users/andy/.rvm/gems/ruby-2.0.0-p247@airbrake/gems/activesupport-3.2.13/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
/Users/andy/.rvm/gems/ruby-2.0.0-p247@airbrake/gems/activerecord-3.2.13/lib/active_record/connection_adapters/abstrac
Intergalactic:goab andy$ go run cmd/api/main.go -v=2 -logtostderr
I0927 19:08:30.135345 31520 context.go:409] api] listening on :8080 using dev environment
E0927 19:09:04.053904 31520 context.go:417] 2915396640538496560] QueryOne failed: dial tcp 127.0.0.1:5432: connection refused
I0927 19:09:04.054016 31520 context.go:409] 2915396640538496560] GET /api/v3/projects/1055?key=6aa9fafd92d1f4710e18b5d6267b03ebd3af9ea1 401 0
E0927 19:09:04.131048 31520 context.go:417] 5292162622908391047] QueryOne failed: dial tcp 127.0.0.1:5432: connection refused
I0927 19:09:04.131115 31520 context.go:409] 5292162622908391047] GET /api/v3/projects/1055/groups?key=6aa9fafd92d1f4710e18b5d6267b03ebd3af9ea1 401 0
E0927 19:09:56.979394 31520 context.go:417] 7975128327245457842] QueryOne failed: dial tcp 127.0.0.1:5432: connection refused
I0927 19:09:56.979454 31520 context.go:409] 7975128327245457842] GET /api/v3/projects/1055?key=6aa9fafd92d1f4710e18b5d6267b03ebd3af9ea1 401 0
E0927 19:09:57.035758 31520 context.go:417] 3243056189420
Intergalactic:goab andy$ go run cmd/api/main.go -v=2 -logtostderr
I0927 19:08:30.135345 31520 context.go:409] api] listening on :8080 using dev environment
E0927 19:09:04.053904 31520 context.go:417] 2915396640538496560] QueryOne failed: dial tcp 127.0.0.1:5432: connection refused
I0927 19:09:04.054016 31520 context.go:409] 2915396640538496560] GET /api/v3/projects/1055?key=6aa9fafd92d1f4710e18b5d6267b03ebd3af9ea1 401 0
E0927 19:09:04.131048 31520 context.go:417] 5292162622908391047] QueryOne failed: dial tcp 127.0.0.1:5432: connection refused
I0927 19:09:04.131115 31520 context.go:409] 5292162622908391047] GET /api/v3/projects/1055/groups?key=6aa9fafd92d1f4710e18b5d6267b03ebd3af9ea1 401 0
E0927 19:09:56.979394 31520 context.go:417] 7975128327245457842] QueryOne failed: dial tcp 127.0.0.1:5432: connection refused
I0927 19:09:56.979454 31520 context.go:409] 7975128327245457842] GET /api/v3/projects/1055?key=6aa9fafd92d1f4710e18b5d6267b03ebd3af9ea1 401 0
E0927 19:09:57.035758 31520 context.go:417] 3243056189420
{
"masterKey": "masterKey",
"uiHost": "airbrake.io",
"apiHost": "api.airbrake.io",
"db": {
"host": "127.0.0.1",
"name": "goab_development",
"user": "andy",