This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Group Load (0.8ms) SELECT `groups`.* FROM `groups` INNER JOIN `group_involvements` ON `groups`.id = `group_involvements`.group_id WHERE ((`group_involvements`.person_id = 50000)) | |
Group Columns (3.2ms) SHOW FIELDS FROM `groups` | |
GroupType Columns (3.3ms) SHOW FIELDS FROM `group_types` | |
SQL (0.5ms) SELECT count(*) AS count_all FROM `ministries` INNER JOIN `ministry_involvements` ON `ministries`.id = `ministry_involvements`.ministry_id WHERE ((`ministry_involvements`.person_id = 50000) AND ((`ministry_involvements`.`end_date` IS NULL))) | |
Ministry Load (32.9ms) SELECT `ministries`.* FROM `ministries` INNER JOIN `ministry_involvements` ON `ministries`.id = `ministry_involvements`.ministry_id WHERE ((`ministry_involvements`.person_id = 50000) AND ((`ministry_involvements`.`end_date` IS NULL))) ORDER BY ministries.name | |
MinistryInvolvement Load (0.4ms) SELECT * FROM `ministry_involvements` WHERE (`ministry_involvements`.person_id = 50000 AND (`ministry_involvements`.`end_date` IS NULL)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class DATABASE_CONFIG { | |
var $default = array( | |
'driver' => 'mysql', | |
'persistent' => false, | |
'host' => 'localhost', | |
'login' => 'root', | |
'password' => 'root', | |
'database' => 'tcore', | |
'prefix' => '', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Dir.glob(File.join(File.dirname(__FILE__) , 'app', 'helpers', '**')).each do |file| | |
require_dependency file | |
end | |
unless File.exists?(RAILS_ROOT + '/public/javascripts/questionnaire_engine/admin.js') | |
['/public', '/public/javascripts/questionnaire_engine', '/public/stylesheets/questionnaire_engine', '/public/images/questionnaire_engine', '/public/images/questionnaire_engine'].each do |dir| | |
source = File.dirname(__FILE__) + "#{dir}" | |
dest = RAILS_ROOT + dir | |
FileUtils.mkdir_p(dest) | |
FileUtils.cp(Dir.glob(source+'/*.*'), dest) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PerlSetVar databaseHost "localhost" | |
PerlSetVar systemUser "root" | |
PerlSetVar systemPassword "root" | |
PerlSetVar serverName "dev.mygcx.org" | |
PerlSetVar cacheFile 1 | |
#debugging/programming options | |
PerlSetVar internalAuthAdmin "Y" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Package generated configuration file | |
# See the sshd(8) manpage for details | |
# What ports, IPs and protocols we listen for | |
Port 22 | |
# Use these options to restrict which interfaces/protocols sshd will bind to | |
#ListenAddress :: | |
#ListenAddress 0.0.0.0 | |
Protocol 2 | |
# HostKeys for protocol version 2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- if displaying_dashboard? || (logged_in? && current_user.friends.include?(@user)) | |
- if @user.online? | |
%span.onlinecolor ONLINE | |
- else | |
OFFLINE |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
= render :partial => 'users/activity_tabs', :locals => {:selected => 'Wall'} | |
.listing | |
- unless displaying_dashboard? | |
%div.wallsectionhead | |
%h3 | |
Leave a Comment for | |
= @user.login | |
= spinner('wall') | |
.comment_box | |
- remote_form_for([@user, @user.comments.new], :before => "Element.show('spinner_wall')") do |f| |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
~/htdocs/panda[ers*]$ irb | |
>> require 'rubygems'; require 'do_mysql' | |
=> true | |
>> exit | |
~/htdocs/panda[ers*]$ merb | |
Loading init file from /Users/josh/htdocs/panda/config/init.rb | |
Loading /Users/josh/htdocs/panda/config/environments/development.rb | |
~ | |
~ FATAL: The file do_mysql was not found | |
~ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
user panda; | |
worker_processes 1; | |
events { | |
worker_connections 1024; | |
} | |
http { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
>> u = User.first | |
~ (0.047365) SELECT `id`, `login`, `password`, `email`, `salt`, `crypted_password`, `access_key_id`, `secret_access_key`, `updated_at`, `created_at`, `videos_domain`, `s3_videos_bucket`, `state_update_url`, `upload_redirect_url`, `current_instance`, `instance_state`, `instance_deployed`, `admin` FROM `users` ORDER BY `id` LIMIT 1 | |
=> #<User id=1 login="gsfn" password="" email=nil salt="d8f0664a761d2af7975d01ed9890043cde0b06b8" crypted_password="199a3d419aac77fc44dab7717d73e14779322f99" access_key_id="14HQMMGK282G8WB4SD02" secret_access_key="WN7pl2Qvp2wXt9MKRQpsA689UqK6h8A2gWUIXvml" updated_at=Thu, 21 May 2009 14:07:02 -0500 created_at=Thu, 14 May 2009 15:20:34 -0500 videos_domain="s3.amazonaws.com/gsfnvideo" s3_videos_bucket="gsfnvideo" state_update_url="http://localhost:4001/videos/$id/status_update" upload_redirect_url="http://localhost:4000/videos/$id/done" current_instance="i-c12b6ea8" instance_state="running" instance_deployed=false admin=true> | |
>> u.instance_state = nil | |
=> nil | |
>> u.save |