Skip to content

Instantly share code, notes, and snippets.

View c3mediagroup's full-sized avatar

Robert Pierce c3mediagroup

View GitHub Profile
class AddStaffToNotes < ActiveRecord::Migration
def self.up
add_column :notes, :staff, :boolean
add_index :notes, :staff
end
def self.down
remove_column :notes, :staff
remove_index :notes, :staff
end
rocessing AdvisorsController#profile (for 127.0.0.1 at 2009-06-06 00:49:03) [GET]
Session ID: 5bd5025fcf441bb8d7846dd055001a05
Parameters: {"action"=>"profile", "id"=>"174", "controller"=>"advisors"}
Account Columns (2.2ms) SHOW FIELDS FROM `accounts`
Account Load (4.9ms) SELECT * FROM `accounts` WHERE (`accounts`.`full_domain` = 'pacificadvisors.statusroom.dev') LIMIT 1
User Columns (3.5ms) SHOW FIELDS FROM `users`
User Load (0.7ms) SELECT * FROM `users` WHERE (`users`.`id` = 4 AND (`users`.account_id = 1))
Footprint Load (0.9ms) SELECT * FROM `footprints` WHERE (`footprints`.user_id = 4) ORDER BY updated_at DESC LIMIT 50
Footprint Columns (1.6ms) SHOW FIELDS FROM `footprints`
Footprint Load (203.6ms) SELECT * FROM `footprints` WHERE (path LIKE "%advisor%") AND (`footprints`.user_id = 4) LIMIT 20
# == Schema Information
# Schema version: 20090427120907
#
# Table name: notes
#
# id :integer(4) not null, primary key
# comment :text
# advisor :boolean(1)
# manager :boolean(1)
# executive :boolean(1)
>> puts Chart.methods.sort
<
<=
<=>
==
===
=~
>
>=
__attribute__
class ChartsController < ApplicationController
LICENSE = 'LTAM663SPJLO.945CWK-2XOI1X0-7L'
PERFORMANCE_METRIC_0 = {:metric => 33500, :label => "APR"}
PERFORMANCE_METRIC_1 = {:metric => 88500, :label => "Leader's Club"}
PERFORMANCE_METRIC_2 = {:metric => 180000, :label => "Executive Club"}
PERFORMANCE_METRIC_3 = {:metric => 291500, :label => "President's Council"}
PERFORMANCE_METRIC_4 = {:metric => 518200, :label => "Chairman's Club"}
~/www/railsmachine/statusroom(02-more-ziya-work) > grep Chart * -R
app/controllers/advisors_controller.rb: @runrate_chart_image = (chart = Chart.new(year)).generate
app/controllers/advisors_controller.rb.BASE.46856.rb: @runrate_chart_image = (chart = Chart.new(year)).generate
app/controllers/advisors_controller.rb.orig: @runrate_chart_image = (chart = Chart.new(year)).generate
app/controllers/application.rb: main.item "Performance", :link => performance_path, :description => "Charting and Reports" do |perf|
app/controllers/charts_controller.rb:class ChartsController < ApplicationController
app/controllers/charts_controller.rb: chart = Ziya::Charts::Line.new(LICENSE, "company_premiums")
app/controllers/charts_controller.rb: chart = Ziya::Charts::Mixed.new(LICENSE, "advisor_premium")
app/controllers/charts_controller.rb: chart = Ziya::Charts::Mixed.new(LICENSE, "company_runrate")
app/controllers/charts_controller.rb: chart_data = Chart.new(chart_years)
Processing AdvisorsController#club_credits (for 127.0.0.1 at 2009-06-05 04:39:05) [GET]
Session ID: 0abb6ea73c759ba9412be57e69d1926b
Parameters: {"action"=>"club_credits", "id"=>"18", "controller"=>"advisors"}
Account Columns (126.8ms) SHOW FIELDS FROM `accounts`
Account Load (116.0ms) SELECT * FROM `accounts` WHERE (`accounts`.`full_domain` = 'pacificadvisors.statusroom.dev') LIMIT 1
User Columns (124.8ms) SHOW FIELDS FROM `users`
User Load (119.4ms) SELECT * FROM `users` WHERE (`users`.`id` = 4 AND (`users`.account_id = 1))
Footprint Load (123.2ms) SELECT * FROM `footprints` WHERE (`footprints`.user_id = 4) ORDER BY updated_at DESC LIMIT 50
Footprint Columns (2.0ms) SHOW FIELDS FROM `footprints`
Footprint Load (0.6ms) SELECT * FROM `footprints` WHERE (path LIKE "%advisor%") AND (`footprints`.user_id = 4) LIMIT 20
rails@vm01:/srv/statusroom/current$ grep "HORNBUCKLE" /srv/statusroom/current/reports/* -R
/srv/statusroom/current/reports/changes-list.txt:"L "," ","Morris Adrienne ","HORNBUCKLE RONALD J ","SUBM","2009-05-15"," 000172500.","GLT20 ","A"," 000000112.00"," 000000112.00 "," 00000000.00","P ","FORM REQUESTED ","2009-05-15",#NULL#,"LH554"," 0.3000 ","LH554"," ","6412463 "," ","1"," "," "
/srv/statusroom/current/reports/changes-list.txt:"L "," ","Morris Daniel ","HORNBUCKLE RONALD J ","SUBM","2009-05-15"," 000330000.","GLT15 ","A"," 000000277.00"," 000000277.00 "," 00000000.00","P ","FORM REQUESTED ","2009-05-15",#NULL#,"LH554"," 0.3000 ","LH554"," ","6412587 "," ","1"," "," "
/srv/statusroom/current/reports/underwriting-20090516.txt:"L "," ","Morris Adrienne ","HORNBUCKLE RONALD J ","SUBM","2009-05-15"," 000172500.","GLT20 ","A"," 000000112.00"," 000000112.00
~/www/railsmachine/statusroom(749222-insert-working-GDC-views) > rake
(in /Users/rpierce2/www/railsmachine/statusroom)
/usr/local/bin/ruby -I"lib:test" "/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake/rake_test_loader.rb" "test/unit/account_test.rb" "test/unit/advisor_gdc_report_test.rb" "test/unit/category_test.rb" "test/unit/chart_test.rb" "test/unit/club_report_test.rb" "test/unit/expense_allowance_test.rb" "test/unit/footprint_detail_test.rb" "test/unit/footprint_test.rb" "test/unit/month_test.rb" "test/unit/note_test.rb" "test/unit/payment_event_test.rb" "test/unit/policy_event_test.rb" "test/unit/policy_share_test.rb" "test/unit/policy_test.rb" "test/unit/product_category_test.rb" "test/unit/product_test.rb" "test/unit/raw/underwriting_test.rb" "test/unit/statusroom_test.rb" "test/unit/team_membership_test.rb" "test/unit/team_test.rb" "test/unit/user_test.rb" "test/unit/year_test.rb"
/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require': no such file to load --
div
&.jGrowl
:padding 10px
:z-index 9999
div
&.jGrowl-notification
:background-color #ff8
:color #000
:opacity .85