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
module DateHelper | |
DATE_MATCHER = /\A([01]?\d):(\d{2})\s(AM|PM)\z/ | |
def date_add_minutes(formatted_date, minutes_to_add) | |
unless (formatted_date =~ DATE_MATCHER) == 0 | |
raise ArgumentError, "Date must be formatted as [H]H:MM {AM|PM}" | |
end | |
unless minutes_to_add.is_a?(Integer) |
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
<?xml version='1.0' encoding='ASCII'?> | |
<flow_graph> | |
<timestamp>Sun Mar 24 21:47:12 2013</timestamp> | |
<block> | |
<key>options</key> | |
<param> | |
<key>id</key> | |
<value>fm_rx</value> | |
</param> | |
<param> |
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
18:55:17,913 INFO [org.torquebox.core.runtime] (Thread-111) Setting up Bundler | |
18:55:25,907 ERROR [stderr] (Thread-111) undefined method `gsub' for nil:NilClass | |
18:55:25,909 ERROR [stderr] (Thread-111) /opt/torquebox/current/jruby/lib/ruby/gems/1.8/gems/bundler-1.1.3/lib/bundler/runtime.rb:77:in `require' | |
18:55:25,910 ERROR [stderr] (Thread-111) org/jruby/RubyArray.java:1615:in `each' | |
18:55:25,911 ERROR [stderr] (Thread-111) /opt/torquebox/current/jruby/lib/ruby/gems/1.8/gems/bundler-1.1.3/lib/bundler/runtime.rb:55:in `require' | |
18:55:25,912 ERROR [stderr] (Thread-111) /opt/torquebox/current/jruby/lib/ruby/gems/1.8/gems/bundler-1.1.3/lib/bundler.rb:119:in `require' | |
18:55:25,913 ERROR [stderr] (Thread-111) /var/www/apps/transmission.ceosystem.net/releases/20120702163838/config/application.rb:7:in `(root)' | |
18:55:25,914 ERROR [stderr] (Thread-111) org/jruby/RubyKernel.java:1042:in `require' | |
18:55:25,915 ERROR [stderr] (Thread-111) /var/www/apps/transmission.ceosystem.net/releases/20120702163838/config/applicatio |
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
/*globals Raphael,jQuery, window*/ | |
/* | |
* | |
* Wijmo Library 2.0.0 | |
* http://wijmo.com/ | |
* | |
* Copyright(c) ComponentOne, LLC. All rights reserved. | |
* | |
* Dual licensed under the Wijmo Commercial or GNU GPL Version 3 licenses. | |
* [email protected] |
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
require 'rspec/core' | |
require 'rspec/core/rake_task' | |
require 'jasmine-headless-webkit' | |
# Run Jasmine headless via webkit | |
Jasmine::Headless::Task.new('jasmine:headless') | |
# Add to default rake task | |
if default = Rake.application.instance_variable_get('@tasks')['default'] | |
default.prerequisites.unshift('jasmine:headless') |
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
[root@cloud ~]# cobbler repo report | |
Name : FC15-x86_64 | |
Arch : x86_64 | |
Breed : yum | |
Comment : | |
Createrepo Flags : <<inherit>> | |
Environment Variables : {} | |
Keep Updated : True | |
Mirror : http://mirror.anl.gov/pub/fedora/linux/releases/15/Everything/x86_64/os/ | |
Mirror locally : True |
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
[root@cloud CloudStack-2.2.3-1-fedora14-oss]# cloud-setup-management | |
Welcome to the CloudStack Management setup | |
cloud.texashan.org | |
The hostname of this machine is properly set up | |
Executing the following reconfiguration script: | |
rm /files/etc/sudoers/Defaults[1] | |
save | |
sudoers reconfiguration failed. |
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
>> HashRowColumn.all | |
=> [#<HashRowColumn column: {}, row: "3", _id: 4b95d9ca24b0441937000001, column_ids: []>, #<HashRowColumn column: {}, row: nil, _id: 4b95de0324b0441be6000001, column_ids: []>, #<HashRowColumn column: {"2"=>"This", "3"=>"Test", "4"=>"Test", "5"=>"Me"}, row: "2", _id: 4b95d55a24b04415aa000001, column_ids: ["2", "3", "4", "5"]>, #<HashRowColumn column: {"2"=>"Blue"}, row: "1", _id: 4b95c91d24b0440ceb000001, column_ids: ["2"]>, #<HashRowColumn column: {"22"=>"You", "2"=>"Me Too!"}, row: "16", _id: 4b95c96224b0440ceb000002, column_ids: ["2"]>] | |
>> HashRowColumn["1"]["17"] = "My Test" | |
=> "My Test" | |
>> HashRowColumn.all | |
=> [#<HashRowColumn column: {}, row: "3", _id: 4b95d9ca24b0441937000001, column_ids: []>, #<HashRowColumn column: {}, row: nil, _id: 4b95de0324b0441be6000001, column_ids: []>, #<HashRowColumn column: {"2"=>"This", "3"=>"Test", "4"=>"Test", "5"=>"Me"}, row: "2", _id: 4b95d55a24b04415aa000001, column_ids: ["2", "3", "4", "5"]>, #<HashRowColumn column: {"17"=>"My Test", "2"=>"Blue"}, |
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 HashRowColumn | |
include MongoMapper::Document | |
key :row, String | |
key :column, Hash | |
key :column_ids, Array | |
def self.[](r = nil) | |
return HashRowColumns if(r.nil?) | |
hr = HashRowColumn.find_by_row(r) | |
if(hr) |
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
Feature: Acknowledging an alert | |
In order to report that I read an alerts | |
As a user | |
I can acknowledge an alert | |
Background: | |
Given the following users exist: | |
| Martin Fowler | [email protected] | Health Official | Dallas County | | |
And the role "Health Official" is an alerter |