Skip to content

Instantly share code, notes, and snippets.

View jacqui's full-sized avatar

Jacqui Lough jacqui

View GitHub Profile
SQL (0.001587) INSERT INTO patient_historical_outcomes (patient_id, outcome_date, outcome_concept_id)
SELECT encounter.patient_id, encounter.encounter_datetime, 324
FROM encounter
INNER JOIN orders ON orders.encounter_id = encounter.encounter_id AND orders.voided = 0
INNER JOIN drug_order ON drug_order.order_id = orders.order_id
INNER JOIN drug ON drug_order.drug_inventory_id = drug.drug_id
INNER JOIN concept_set as arv_drug_concepts ON
arv_drug_concepts.concept_set = 460 AND
arv_drug_concepts.concept_id = drug.concept_id
WHERE encounter.patient_id = 4
drugs_dispensed_last_time = Hash.new
previous_art_drug_orders.collect{|drug_order|
drugs_dispensed_last_time[drug_order.drug] = true
}
drugs_dispensed_last_time = drugs_dispensed_last_time.keys
/opt/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
/opt/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
/Users/jacqui/git_hashrocket/bart/vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:510:in `require'
/Users/jacqui/git_hashrocket/bart/vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:355:in `new_constants_in'
/Users/jacqui/git_hashrocket/bart/vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:510:in `require'
/Users/jacqui/git_hashrocket/bart/vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:102:in `require_or_load'
/Users/jacqui/git_hashrocket/bart/vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:61:in `depend_on'
/Users/jacqui/git_hashrocket/bart/vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:457:in `require_dependency'
/Users/jac
class Sponsor < ActiveRecord::Base
has_slug :source_column => :name, :prepend_id => false
validates_presence_of :name, :url, :level
has_attached_file :logo,
:styles => { :medium => "190x190" }
# named scopes could work here too.
# named_scope :featured, :conditions => {:level => 'Featured'}, :order => 'name'
remote_task :new_stuff, :roles => :app do
# fetch the last line of revisions.log
output = run "tail -n1 #{deploy_to}/revisions.log"
time = output.strip.split.last
# format time for git, which is picky about these things
time = "#{time[0,4]}-#{time[4,2]}-#{time[6,2]}.#{time[8,6]}"
revisions = `git rev-list --all --after='#{time}'`
puts "undeployed revisions:\n#{revisions}"
end
ActionView::TemplateError (getaddrinfo: Temporary failure in name resolution) on line #122 of app/views/layouts/portal.rhtml:
119:
120:
121: <div id="footer">
122: <%= language_switcher %>
123:
124: <% if RAILS_ENV == 'development' -%>
125: <hr />
1 Factory.define :user do |u|
2 u.username { Faker::Internet.user_name }
3 u.email { Faker::Internet.email }
4 u.time_zone "Eastern Time (US & Canada)"
5 u.password "yourface"
6 u.password_confirmation "yourface"
7 u.password_salt { Authlogic::Random.hex_token }
8 u.crypted_password { |a| Authlogic::CryptoProviders::Sha512.encrypt("yourface" + a.password_salt) }
9 u.persistence_token { Authlogic::Random.hex_token }
10 u.single_access_token { Authlogic::Random.friendly_token }
[40, 49] in /Users/jacqui/Code/Eastmedia/mdb/vendor/gems/authlogic-2.1.1/lib/authlogic/crypto_providers/sha512.rb
40 digest
41 end
42
43 # Does the crypted password match the tokens? Uses the same tokens that were used to encrypt.
44 def matches?(crypted, *tokens)
=> 45 encrypt(*tokens) == crypted
46 end
(rdb:1) crypted
[deploy@rm-207-210-123-165 ~]$ sudo yum install vim
Repository centosplus is listed more than once in the configuration
Repository base is listed more than once in the configuration
Repository update is listed more than once in the configuration
Repository extras is listed more than once in the configuration
Repository addons is listed more than once in the configuration
Setting up Install Process
Setting up repositories
railsmachine 100% |=========================| 951 B 00:00
kbs-CentOS-Misc 100% |=========================| 951 B 00:00
⚜:~/source/ruby-1.8.6-p287$ ./config.status
config.status: creating Makefile
⚜:~/source/ruby-1.8.6-p287$ make
compiling Win32API
make[1]: Nothing to be done for `all'.
compiling bigdecimal
make[1]: Nothing to be done for `all'.
compiling curses
make[1]: Nothing to be done for `all'.
compiling dbm