This file contains 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
mygem/ | |
lib/ | |
mygem/ | |
system_gateway.rb | |
version.rb | |
providers/ | |
build_provider.rb | |
engine_provider.rb |
This file contains 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
11/07/15 19:53:07 ERROR namenode.NameNode: java.io.IOException: failure to login | |
at org.apache.hadoop.security.UserGroupInformation.getLoginUser(UserGroupInformation.java:408) | |
at org.apache.hadoop.security.UserGroupInformation.getCurrentUser(UserGroupInformation.java:384) | |
at org.apache.hadoop.hdfs.server.namenode.FSNamesystem.setConfigurationParameters(FSNamesystem.java:420) | |
at org.apache.hadoop.hdfs.server.namenode.FSNamesystem.<init>(FSNamesystem.java:391) | |
at org.apache.hadoop.hdfs.server.namenode.NameNode.format(NameNode.java:1240) | |
at org.apache.hadoop.hdfs.server.namenode.NameNode.createNameNode(NameNode.java:1348) | |
at org.apache.hadoop.hdfs.server.namenode.NameNode.main(NameNode.java:1368) | |
Caused by: javax.security.auth.login.LoginException: java.lang.NullPointerException | |
at com.ibm.security.auth.module.LinuxLoginModule.login(LinuxLoginModule.java:165) |
This file contains 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
<%= f.label :grade %> | |
<%= f.select(:grade, (["K"] | (1..12).to_a))%> |
This file contains 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
SQL (2.8ms) describe `roles_users` | |
SQL (2.1ms) describe `camps_users` | |
SQL (3.4ms) describe `camps_users` | |
SQL (2.0ms) describe `campers_camps` | |
SQL (2.8ms) describe `campers_camps` | |
SQL (2.1ms) describe `roles_users` | |
Loaded suite test/functional/camp/contacts_controller_test | |
Started | |
SQL (0.1ms) BEGIN | |
SQL (0.7ms) SHOW TABLES |
This file contains 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
test "get collection of open programs" do | |
get :index, :camp_id => camps(:bolo).uri, :open => true | |
assert_response :success | |
programs = assigns(:programs) | |
programs.each do |program| | |
program.program_populations.each do |pop| | |
assert_not_equal pop.current_population, pop.max_population | |
end |
This file contains 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
def get_camp | |
@camp = Camp.find_by_uri(params[:camp_id]) | |
if !@camp | |
#call parent 404 method because no record was found | |
#ActiveRecord::RecordNotFound is not being called | |
self.render_400 | |
end | |
end |
This file contains 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
SQL (1.2ms) describe `campers_camps` | |
SQL (1.2ms) describe `campers_camps` | |
Creating scope :open. Overwriting existing method Program.open. | |
Creating scope :open. Overwriting existing method Session.open. | |
Loaded suite functional/camp/programs_controller_test | |
Started | |
SQL (0.1ms) BEGIN | |
SQL (0.7ms) SHOW TABLES | |
Camp Load (0.5ms) SELECT `camps`.* FROM `camps` WHERE (`camps`.`id` = 665138414) LIMIT 1 | |
Processing by Camp::ProgramsController#index as HTML |
This file contains 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
scope :open, lambda { | |
joins(:program_populations). | |
where('program_populations.current_population < program_populations.max_population'). | |
group("programs.id") | |
} | |
scope :closed, lambda { | |
joins(:program_populations). | |
where('program_populations.current_population >= program_populations.max_population'). | |
group("programs.id") | |
} |
This file contains 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
def index | |
query = '' | |
queryHash = Hash.new | |
if params[:min_age] | |
append_to_query(query, 'min_age >= :min_age') | |
queryHash[:min_age] = params[:min_age] | |
end | |
if params[:max_age] |
This file contains 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
/** | |
* This code comes from JeremyMiller on the following thread: | |
* http://bytes.com/topic/javascript/answers/510057-iframe-ie-onload-problem#post3402334 | |
*/ | |
eventPush(document.getElementById('frame_id'),'load',function () {myFrameOnloadFunction();}); | |
function eventPush(obj, event, handler) { | |
if (obj.addEventListener) { | |
obj.addEventListener(event, handler, false); | |
} else if (obj.attachEvent) { |