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
file = File.open('ark_temps.csv','r') | |
lines = file.readlines() | |
#a = [1,2,3,4,5] | |
lines.each do |ln| | |
values = ln.split(',') | |
puts values.length | |
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
Error in OverlaysController#create: druby://localhost:54321 - #<Errno::ECONNREFUSED: Connection refused - connect(2)> | |
Exception druby://localhost:54321 - #<Errno::ECONNREFUSED: Connection refused - connect(2)> creating overlay: druby://localhost:54321 - #<Errno::ECONNREFUSED: Connection refused - connect(2)> | |
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/drb/drb.rb:736:in `open' | |
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/drb/drb.rb:729:in `each' | |
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/drb/drb.rb:729:in `open' | |
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/drb/drb.rb:1196:in `initialize' | |
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/drb/drb.rb:1176:in `new' | |
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/drb/drb.rb:1176:in `open' | |
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/drb/drb.rb:1092:in `method_missing' | |
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
rake db:migrate | |
[FAILED] druby://localhost:54321 - #<Errno::ECONNREFUSED: Connection refused - connect(2)> | |
Trying to start object store. . . ERROR: there is already one or more instance(s) of the program running | |
[OK] | |
[FAILED] druby://localhost:54321 - #<Errno::ECONNREFUSED: Connection refused - connect(2)> | |
Trying to start object store. . . ERROR: there is already one or more instance(s) of the program running | |
[OK] | |
[FAILED] druby://localhost:54321 - #<Errno::ECONNREFUSED: Connection refused - connect(2)> |
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
{ 'type': 'Developer', | |
'id': '1', | |
'properties': { | |
'name': 'Christopher W. Helm', | |
'title': 'Analytics Engineer', | |
'company': 'GeoIQ', | |
'web': 'http://geocommons.com', | |
'twitter': '@cwhelm' | |
}, | |
'geometry': { |
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
analyzable: true | |
author: Object | |
bbox: "-85.19206,-180.00014,90.00123,179.9999" | |
contributor: Object | |
created: "2011-03-08T20:26:41Z" | |
description: "Testing upload stuff " | |
detail_link: "http://geoiq.local/overlays/509" | |
feature_count: 234 | |
icon_path: null | |
id: "Overlay:509" |
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
// starts up the poller on map ready | |
initPoller: function(){ | |
var id_list = [] | |
jq.each(this.getLayers(), function(index, layer) { | |
id_list.push(layer.pk) | |
}) | |
// start it, only starts if there are layers in the map | |
this.layer_poller = new F1.Poller({overlays:id_list}) | |
this.layer_poller.start() | |
}, |
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
icon: | |
dropShadow: "false" | |
size: "1" | |
symbol: "http://www.geocomrade.com/fastmap/assets/andrew.png" |
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
calculateBreaks: function( features, mean, stdev ){ | |
var self = this | |
var type = self.options[self.class_type].classificationType; | |
var range = self.options[self.class_type].range; | |
var n = self.options[self.class_type].categories; | |
var data_range = range[1] - range[0]; | |
switch (type){ | |
case 'Quantile': |
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
SystemExit (Could not connect to server localhost:5672): | |
eventmachine (0.12.10) lib/eventmachine.rb:280:in `write' | |
haml (2.2.10) rails/./lib/sass/plugin/rails.rb:19:in `process' | |
lib/server_proxy.rb:34:in `call' | |
passenger (3.0.0) lib/phusion_passenger/rack/request_handler.rb:96:in `process_request' | |
passenger (3.0.0) lib/phusion_passenger/abstract_request_handler.rb:513:in `accept_and_process_next_request' | |
passenger (3.0.0) lib/phusion_passenger/abstract_request_handler.rb:274:in `main_loop' | |
passenger (3.0.0) lib/phusion_passenger/classic_rails/application_spawner.rb:321:in `start_request_handler' | |
passenger (3.0.0) lib/phusion_passenger/classic_rails/application_spawner.rb:275:in `send' | |
passenger (3.0.0) lib/phusion_passenger/classic_rails/application_spawner.rb:275:in `handle_spawn_application' |
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
Works: | |
F1.Maker.current_map.setLayerStyle("GUID", {fill: {categories:5, classificationType:'quantile', selectedAttribute: 'user_follo'}, type: 'CHOROPLETH'}) | |
F1.Maker.current_map.setLayerStyle("GUID", {fill: {categories:5, classificationType:'max_breaks', selectedAttribute: 'user_follo'}, type: 'CHOROPLETH'}) | |
Fails: | |
F1.Maker.current_map.setLayerStyle("GUID",{fill: {categories:5, classificationType:'equal_interval', selectedAttribute: 'user_follo'}, type: 'CHOROPLETH'}) |