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
0.322 INFO SailResourceLoader.getInputStream: loading: http://localhost:3000/investigations/697.dynamic_otml | |
5.492 INFO SailResourceLoader.getInputStream: RequiredResourceLoader - Done. | |
5.605 INFO XMLDatabase.loadObjects: Loaded 6 objects from: http://localhost:3000/investigations/697.dynamic_otml (1672 bytes) opened url in 5170ms downloaded and parsed xml in 51ms loaded ot db in 59ms | |
5.641 INFO SailResourceLoader.getInputStream: loading: http://localhost:3000/investigations/697.otml | |
16.053 INFO SailResourceLoader.getInputStream: RequiredResourceLoader - Done. | |
16.222 WARN ObjectTypeHandler.handleChildResource: Warning: Only the first element is returned from otrunk/objects/OTSystem@system/root/OTRITESContainer/title | |
16.291 WARN XMLDatabase.getGlobalId: Can't find local id: section_card_container_activity_2208 | |
16.293 WARN XMLDatabase.getGlobalId: Can't find local id: section_12788 | |
16.297 WARN XMLDatabase.getGlobalId: Can't find local id: content_page_18 |
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
$ gem install lebowski | |
************************************************** | |
Thank you for installing lebowski-0.1.1 | |
( ... ) | |
Successfully installed lebowski-0.1.1 | |
1 gem installed | |
( ... ) |
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
Errno::EACCES (Permission denied - /web/production/has/releases/20100823193611/config/jnlp_objects/concord/has-otrunk/jnlp_object_11.yaml): | |
app/models/maven_jnlp/versioned_jnlp.rb:157:in `initialize' | |
app/models/maven_jnlp/versioned_jnlp.rb:157:in `open' | |
app/models/maven_jnlp/versioned_jnlp.rb:157:in `save_jnlp_object' | |
app/models/maven_jnlp/versioned_jnlp.rb:152:in `update_jnlp_object' | |
app/models/maven_jnlp/versioned_jnlp.rb:137:in `load_jnlp_object' | |
app/models/maven_jnlp/versioned_jnlp.rb:126:in `jnlp_object' | |
app/models/maven_jnlp/versioned_jnlp.rb:169:in `parse_jnlp_object' | |
app/models/maven_jnlp/versioned_jnlp_url.rb:30:in `create_versioned_jnlp' |
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
*[has-dev][~/lab/ruby/has/vendor/plugins]$ diff -r ./acts_as_list/lib ./acts_as_list.git/lib rvm:ruby-1.8.7-p249@has | |
diff -r ./acts_as_list/lib/active_record/acts/list.rb ./acts_as_list.git/lib/active_record/acts/list.rb | |
42,45c42,49 | |
< if #{configuration[:scope].to_s}.nil? | |
< "#{configuration[:scope].to_s} IS NULL" | |
< else | |
< "#{configuration[:scope].to_s} = \#{#{configuration[:scope].to_s}}" | |
--- | |
> self.class.send(:sanitize_sql_hash_for_conditions, { :#{configuration[:scope].to_s} => send(:#{configuration[:scope].to_s}) }) | |
> end |
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
/** | |
* Arrow 'plugin' for Raphael | |
**/ | |
MySystem.arrow_path = function(startx,starty,endx,endy,len,angle) { | |
var theta = Math.atan2((endy-starty),(endx-startx)); | |
var baseAngleA = theta + angle * Math.PI/180; | |
var baseAngleB = theta - angle * Math.PI/180; | |
var tipX = endx + len * Math.cos(theta); | |
var tipY = endy + len * Math.sin(theta); | |
var baseAX = endx - len * Math.cos(baseAngleA); |
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
#! /usr/bin/ruby | |
files = ["udl_otml_2010","udl_reports_2010"] | |
require "cgi" | |
cgi = CGI.new("html4") | |
params = cgi.params | |
# umn... lets do something better... | |
files.each do |file| | |
puts %x|cd ../#{file}| | |
puts %x|git pull| |
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
def csv(obj, fields) | |
fields = fields.kind_of?(String) ? fields.split : fields | |
obj.each do |o| | |
results = fields.map { |f| o.send(f.to_sym) } | |
puts results.join(", ") | |
end | |
nil | |
end |
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
test("dragon updates work in rails", function() { | |
var dragons = Geniverse.store.find(Geniverse.DRAGONS_QUERY); | |
statusEquals(dragons, SC.Record.BUSY_LOADING, 'Activities should be loading'); | |
var newName = rndChars(20); | |
var dragon = null; | |
statusQueue([ | |
{ | |
target: dragons, | |
callback: function(){ | |
statusEquals(dragons, SC.Record.READY_CLEAN, "Next state was clean"); |
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
users = User.find(:all) | |
interfaces = users.map {|u| [u.name, u.login, u.vendor_interface.short_name, u.updated_at] } | |
File.open('/tmp/udl_users.csv', 'w') do |file| | |
interfaces.each { |i| file.write("#{i.join(", ")}\n") } | |
end |
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
<otrunk id="97387f62-d61e-11df-9a9b-0023df83af94" xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:lxslt="http://xml.apache.org/xslt"> | |
<imports> | |
<import class="org.concord.otrunk.OTIncludeRootObject"/> | |
<import class="org.concord.otrunk.OTSystem"/> | |
<import class="org.concord.otrunk.OTInclude"/> | |
<import class="org.concord.otrunk.view.OTGroupListManager"/> | |
<import class="org.concord.otrunk.view.OTGroupMember"/> | |
<import class="org.concord.otrunk.user.OTUserObject"/> | |
</imports> | |
<objects> |