gsutil connection timed out - google-cloud-storage

When using gsutil tool on one of our machines we experience connection timeout with www.googleapis.com on port 443.
Here is the output when running :
gsutil -D cp gs://somefile somefile
Retrying download from byte 0 after exception: timed out. Trace: Traceback (most recent call last):
File "/home/runner/google-cloud-sdk/platform/gsutil/gslib/gcs_json_api.py", line 701, in _PerformResumableDownload
end_byte=end_byte, serialization_data=serialization_data)
File "/home/runner/google-cloud-sdk/platform/gsutil/gslib/gcs_json_api.py", line 757, in _PerformDownload
use_chunks=False)
File "/home/runner/google-cloud-sdk/platform/gsutil/third_party/apitools/apitools/base/py/transfer.py", line 459, in GetRange
additional_headers=additional_headers)
File "/home/runner/google-cloud-sdk/platform/gsutil/third_party/apitools/apitools/base/py/transfer.py", line 396, in __GetChunk
retries=self.num_retries)
File "/home/runner/google-cloud-sdk/platform/gsutil/third_party/apitools/apitools/base/py/http_wrapper.py", line 325, in MakeRequest
http, http_request, e, retry, max_retry_wait))
File "/home/runner/google-cloud-sdk/platform/gsutil/third_party/apitools/apitools/base/py/http_wrapper.py", line 316, in MakeRequest
check_response_func=check_response_func)
File "/home/runner/google-cloud-sdk/platform/gsutil/third_party/apitools/apitools/base/py/http_wrapper.py", line 365, in _MakeRequestNoRetry
redirections=redirections, connection_type=connection_type)
File "/home/runner/google-cloud-sdk/platform/gsutil/gslib/gcs_json_media.py", line 377, in NewRequest
connection_type=connection_type)
File "/home/runner/google-cloud-sdk/platform/gsutil/third_party/oauth2client/oauth2client/util.py", line 137, in positional_wrapper
return wrapped(*args, **kwargs)
File "/home/runner/google-cloud-sdk/platform/gsutil/third_party/oauth2client/oauth2client/client.py", line 563, in new_request
redirections, connection_type)
File "/home/runner/google-cloud-sdk/platform/gsutil/third_party/httplib2/python2/httplib2/__init__.py", line 1570, in request
(response, content) = self._request(conn, authority, uri, request_uri, method, body, headers, redirections, cachekey)
File "/home/runner/google-cloud-sdk/platform/gsutil/gslib/gcs_json_media.py", line 285, in OverrideRequest
headers)
File "/home/runner/google-cloud-sdk/platform/gsutil/gslib/gcs_json_media.py", line 472, in _conn_request
conn.connect()
File "/home/runner/google-cloud-sdk/platform/gsutil/third_party/httplib2/python2/httplib2/__init__.py", line 1018, in connect
sock.connect((self.host, self.port))
File "/usr/lib/python2.7/socket.py", line 224, in meth
return getattr(self._sock,name)(*args)
timeout: timed out
gsutil version used :
gsutil version: 4.14
checksum: be1511asdg6322ce640001299adf562f1dea (OK)
boto version: 2.38.0
python version: 2.7.3 (default, Feb 27 2014, 19:58:35) [GCC 4.6.3]
OS: Linux 3.10.23-xxxx-std-ipv6-64
multiprocessing available: True
using cloud sdk: True
config path: /home/runner/.boto
gsutil path: /home/runner/google-cloud-sdk/platform/gsutil/gsutil
compiled crcmod: False
installed via package manager: False
editable install: False
Do you have any idea what could be wrong ?
Thank you very much in advance.
UPDATE. When running
gsutil perfdiag -n 1 -t lat -o
{
"latency": {
"UPLOAD_0": [
0.1607818603515625
],
"DOWNLOAD_1024": [
0.07119011878967285
],
"DELETE_0": [
0.09166908264160156
],
"METADATA_1024": [
0.04940199851989746
],
"METADATA_102400": [
0.05705404281616211
],
"UPLOAD_102400": [
0.20428109169006348
],
"DOWNLOAD_1048576": [
0.1362459659576416
],
"DELETE_1048576": [
0.09648799896240234
],
"DOWNLOAD_102400": [
0.11574792861938477
],
"METADATA_0": [
0.049291133880615234
],
"DOWNLOAD_0": [
0.07036209106445312
],
"METADATA_1048576": [
0.04330611228942871
],
"DELETE_102400": [
0.08873796463012695
],
"DELETE_1024": [
0.0901339054107666
],
"UPLOAD_1048576": [
0.2904069423675537
],
"UPLOAD_1024": [
0.13672614097595215
]
},
"error_responses_by_code": {},
"connection_breaks": 0,
"json_format": "perfdiag",
"request_errors": 0,
"bucket_uri": "gs://55_rawdata/",
"gsutil_version": "4.14",
"boto_version": "2.38.0",
"sysinfo": {
"googserv_ips": [
"216.58.211.80"
],
"meminfo": {
"mem_free": 1000596000,
"mem_buffers": 810640000,
"mem_total": 66004776000,
"mem_cached": 33031452000
},
"disk_counters_end": {
"sdc1": [
164530475,
128605520,
51612678716928,
40196403069440,
2132224384,
2247149368
],
"sdb1": [
166121731,
173044263,
51952023924224,
40875654693376,
2885575196,
405173516
],
"sdd1": [
160345400,
129359941,
50683862937088,
40195936092672,
1386613852,
705553928
],
"sda4": [
162028349,
168070767,
51260806299648,
40562433085440,
3391686628,
148489864
],
"sda2": [
169374632,
400069887,
4907104705536,
16390141161472,
1009906996,
561829072
],
"sda3": [
470,
206,
3309568,
1486848,
1348,
388
],
"sda1": [
302,
0,
10948608,
0,
1820,
0
]
},
"using_proxy": false,
"dns_o-o_ip": "176.31.228.32",
"boto_https_enabled": true,
"google_host_dns_latency": 0.016680002212524414,
"cpu_count": 12,
"gsutil_config": {
"SCOPE_READ_WRITE": "https://www.googleapis.com/auth/devstorage.read_write",
"SCOPE_READ_ONLY": "https://www.googleapis.com/auth/devstorage.read_only",
"DEFAULT_SLICED_OBJECT_DOWNLOAD_THRESHOLD": "150M",
"MAX_COMPONENT_COUNT": 1024,
"SCOPE_FULL_CONTROL": "https://www.googleapis.com/auth/devstorage.full_control",
"DEFAULT_SLICED_OBJECT_DOWNLOAD_MAX_COMPONENTS": 4,
"DEFAULT_PARALLEL_COMPOSITE_UPLOAD_THRESHOLD": "0",
"DEFAULT_PARALLEL_COMPOSITE_UPLOAD_COMPONENT_SIZE": "50M",
"CHECK_HASH_ALWAYS": "always",
"HAS_CRYPTO": true,
"DEFAULT_SLICED_OBJECT_DOWNLOAD_COMPONENT_SIZE": "200M",
"DEFAULT_PARALLEL_PROCESS_COUNT": 12,
"CHECK_HASH_NEVER": "never",
"CHECK_HASH_IF_FAST_ELSE_FAIL": "if_fast_else_fail",
"IS_WINDOWS": false,
"DEFAULT_PARALLEL_THREAD_COUNT": 10,
"EIGHT_MIB": 8388608,
"CHECK_HASH_IF_FAST_ELSE_SKIP": "if_fast_else_skip",
"GOOG_CLOUD_CONSOLE_URI": "https://cloud.google.com/console#/project"
},
"gmt_timestamp": "Thu, 17 Sep 2015 09:04:12 +0000",
"googserv_route": "storage",
"load_avg": [
11.93,
15.86,
12.24
],
"netstat_end": {
"tcp_retransmit": 353550182,
"tcp_sent": 2944378757,
"tcp_received": 975413756
},
"google_host_connect_latencies": {
"216.58.211.80": 0.00419306755065918
},
"tempdir": "/tmp",
"netstat_start": {
"tcp_retransmit": 353550182,
"tcp_sent": 2944373713,
"tcp_received": 975409418
},
"ip_address": "176.31.228.32",
"googserv_hostnames": [
"par03s14-in-f16.1e100.net"
],
"tcp_proc_values": {
"wmem_default": "212992",
"wmem_max": "212992",
"rmem_default": "212992",
"tcp_timestamps": "1",
"tcp_window_scaling": "1",
"tcp_sack": "1",
"rmem_max": "212992"
},
"disk_counters_start": {
"sdc1": [
164530328,
128605520,
51612666826240,
40196403069440,
2132223424,
2247149368
],
"sdb1": [
166121645,
173044263,
51952011656704,
40875654693376,
2885575068,
405173516
],
"sdd1": [
160344840,
129359927,
50683802156544,
40195931333120,
1386608244,
705553780
],
"sda4": [
162028349,
168070763,
51260806299648,
40562432983040,
3391686628,
148489812
],
"sda2": [
169374632,
400069887,
4907104705536,
16390141161472,
1009906996,
561829072
],
"sda3": [
470,
206,
3309568,
1486848,
1348,
388
],
"sda1": [
302,
0,
10948608,
0,
1820,
0
]
}
},
"total_requests": 16,
"metadata": {}
}

Related

Buildbot REST API how to find builds for given revision?

I am using Buildbot 3.5.0 and I am looking for a way to use its REST-API to find all the builds that were started for a given revision.
I know there is the endpoint
http://.../api/v2/builds
and each build has its revision available within the properties element, which is some nested structure. How can I filter that list to get only those builds that mention a given revision inside their properties element?
Or is there some other way to find the relevant builds?
Some example data:
http://.../api/v2/builds
{
"builds": [
{
"builderid": 6,
"buildid": 358,
"buildrequestid": 537,
"complete": true,
"complete_at": 1652550289,
"masterid": 16,
"number": 77,
"properties": {},
"results": 0,
"started_at": 1652550269,
"state_string": "build successful",
"workerid": 2
},
... many more builds here ...
],
"meta": {
"total": 358
}
}
The properties for the above mentioned build can be found here:
http://.../api/v2/builds/358/properties
{
"meta": {},
"properties": [
{
"revision": [
"01234567899a48ecef090efa39647747c0a03ed5",
"Build"
],
"scheduler": [
"any_branch_foobar",
"Scheduler"
],
"workername": [
"someworker",
"Worker"
],
... many more properties here ...
}
]
}

Watson Speech To Text, Word timestamps are not in sync with Audio

I am using speech to text with following params -
timestamps=true&max_alternatives=1&model=en-US_NarrowbandModel&smart_formatting=true',
Headers - 'Content-Type' => 'audio/flac', 'Transfer-Encoding' => 'chunked'
And providing an audio/flac file to process, but returned words time boundary is not in sync with audio.
For eg. Response is -:
take a morning I have 2 questions please %HESITATION first how how much of the ability
Timestamps are like these -
[
[
"take",
1409.48,
1409.62
],
[
"a",
1409.62,
1409.67
],
[
"morning",
1409.67,
1410.03
],
[
"I",
1410.06,
1410.17
],
[
"have",
1410.17,
1410.38
],
[
"two",
1410.41,
1410.58
],
[
"questions",
1410.58,
1411.05
],
[
"please",
1411.05,
1411.42
],
[
"%HESITATION",
1411.42,
1411.65
],
[
"first",
1411.65,
1412.17
],
[
"how",
1412.33,
1412.62
],
[
"how",
1412.65,
1412.77
],
[
"much",
1412.77,
1413
],
[
"of",
1413,
1413.1
],
[
"the",
1413.1,
1413.37
],
[
"ability",
1413.37,
1413.82
]
]
But in actual audio these words are at different times. (few seconds difference)
Any Suggestion ??

Highcharts two datetime xAxis chart with same ticks interval

I two days think about problem, but i don't know make chart with two normalized datetime xAxis.
I Tried use linkedTo and normalize data arrays (but this hard overkill).
linkedTo showing only overlapped data.
Without linkedTo and normalization arrays, ticks showed as async like this
Help me, please
What make chart like this?
$('#container').highcharts({
yAxis: {
gridLineWidth:0
},
xAxis: [
{
gridLineWidth: 1,
type: 'datetime',
lineColor: '#ff9c00'
},
{
type: 'datetime',
opposite: true,
lineColor: '#FF6B6B'
}
],
series: [
{
"name": "first",
"data": [
[
1479164400000,
7323
],
[
1479160800000,
6204
],
[
1479157200000,
3561
],
[
1479153600000,
9706
],
[
1479150000000,
2539
],
[
1479146400000,
4570
],
[
1479142800000,
4187
],
[
1479139200000,
3631
],
[
1479135600000,
7512
],
[
1479132000000,
2456
],
[
1479128400000,
6983
],
[
1479124800000,
3511
],
[
1479121200000,
2765
],
[
1479117600000,
3401
],
[
1479114000000,
2565
],
[
1479110400000,
4425
],
[
1479106800000,
4592
],
[
1479103200000,
4328
],
[
1479099600000,
2694
],
[
1479096000000,
2787
],
[
1479092400000,
11633
],
[
1479088800000,
3311
],
[
1479085200000,
2839
],
[
1479081600000,
12620
]
]
},
{
"name": "second",
"data": [
[
1479250800000,
22730
],
[
1479247200000,
10695
],
[
1479243600000,
12017
],
[
1479240000000,
12110
],
[
1479236400000,
9689
],
[
1479232800000,
4288
],
[
1479229200000,
3702
],
[
1479225600000,
5575
],
[
1479222000000,
5694
],
[
1479218400000,
3098
],
[
1479214800000,
9885
],
[
1479211200000,
6587
],
[
1479207600000,
3028
],
[
1479204000000,
3281
],
[
1479200400000,
12577
],
[
1479196800000,
3886
],
[
1479193200000,
4014
],
[
1479189600000,
6553
],
[
1479186000000,
2041
],
[
1479182400000,
4056
],
[
1479178800000,
4223
],
[
1479175200000,
4920
],
[
1479171600000,
5432
],
[
1479168000000,
7857
],
[
1479164400000,
7323
],
[
1479160800000,
6204
],
[
1479157200000,
3561
],
[
1479153600000,
9706
],
[
1479150000000,
2539
],
[
1479146400000,
4570
],
[
1479142800000,
4187
],
[
1479139200000,
3631
],
[
1479135600000,
7512
],
[
1479132000000,
2456
],
[
1479128400000,
6983
],
[
1479124800000,
3511
],
[
1479121200000,
2765
],
[
1479117600000,
3401
],
[
1479114000000,
2565
],
[
1479110400000,
4425
],
[
1479106800000,
4592
],
[
1479103200000,
4328
],
[
1479099600000,
2694
],
[
1479096000000,
2787
],
[
1479092400000,
11633
],
[
1479088800000,
3311
],
[
1479085200000,
2839
],
[
1479081600000,
12620
]
],
"xAxis": 1,
"dashStyle": "shortdot"
}
]
});
#container {
min-width: 1024px;
max-width: 1024px;
height: 300px;
margin: 1em auto;
}
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<script src="http://code.highcharts.com/highcharts.js"></script>
<script src="http://code.highcharts.com/modules/exporting.js"></script>
<div id="container"></div>
My solution is as follows:
Grab the bottom axis ticks values
Map the values to pixels
Map the pixels to top axis values
Set the values to top axis ticks
All the calculation can be done in tickPositioner.
tickPositioner: function() {
var axisTop = this,
axisBottom = this.chart.xAxis[0],
ticksBottom = axisBottom.tickPositions;
var ticksTop = ticksBottom.map(function(tickValue) {
return axisTop.toValue(axisBottom.toPixels(tickValue));
});
return ticksTop;
},
example: https://jsfiddle.net/439adgpa/
After setting tick positions in tick positioner, you have to manually set the correct format or use it from the bottom axis ticks.
labels: {
format: '{value:%H:%M}'
}
or
ticksTop.info = ticksBottom.info;
example: https://jsfiddle.net/439adgpa/1/
Use stacked series over each other. yAxis stacked and numbered as 0,1,2.
Here is an example fiddle
{
name : 'First',
data :data for first,
zIndex : 1,
lineWidth:3,
color:'red',
yAxis: 0 ,
marker : {
enabled : false
}
}, {
name : 'second',
data : data for second,
lineWidth:3,
zIndex : 1,
yAxis: 1 ,
color:'#BE6230',
marker : {
enabled : false
}
}

MongoDB version 2.6 still fails on 2dsphere geoindexing citing inability to extract geokeys and possible malformed geometry

I had been getting the referenced error under version 2.4 with a different lon/lat data set. I upgraded to 2.6 and was able to use 2dsphere index on that data set. However, with a different data set (excerpt below) I received the old error message on trying to index using 2dshpere. the error message excerpt is as follows:
I am having the same problem receiving the error: can't extract geokeys from object; malformed geometry?. The object is the following, which validated on on GeoJSONLint.com. Also, I am using mongodb version 2.6.1. This happened to me recently when I was using version 2.4, and I upgraded to 2.6, and that solved the problem then, but I am getting the error again with a new geojson data set. Please, if anyone can let me know how to solve that would be very helpful.
{"type":"Feature",
"geometry": {
"type":"Polygon",
"coordinates": [[[-80.341942, 25.935059],[-80.341995, 25.936712],[-80.342026, 25.937851],[-80.342026, 25.938393],[-80.34211, 25.939489],[-80.342178, 25.942131],[-80.342308, 25.942329],[-80.342339, 25.94285],[-80.342438, 25.944914],[-80.342445, 25.945118],[-80.342514, 25.947062],[-80.342537, 25.947479],[-80.342613, 25.949152],[-80.342667, 25.950306],[-80.342712, 25.951366],[-80.342773, 25.952713],[-80.342857, 25.954611],[-80.341438, 25.955782],[-80.340202, 25.956839],[-80.339104, 25.957079],[-80.33831, 25.957081],[-80.336006, 25.957088],[-80.333244, 25.957096],[-80.331787, 25.957102],[-80.326721, 25.957117],[-80.326714, 25.957117],[-80.32444, 25.957127],[-80.323616, 25.957129],[-80.322365, 25.957132],[-80.318619, 25.957146],[-80.317375, 25.95715],[-80.316597, 25.957151],[-80.314278, 25.957161],[-80.313507, 25.957163],[-80.3134, 25.957163],[-80.31308, 25.957165],[-80.312973, 25.957167],[-80.312798, 25.957167],[-80.312263, 25.957167],[-80.312088, 25.957167],[-80.311996, 25.957167],[-80.311737, 25.957167],[-80.311646, 25.957169],[-80.311531, 25.957169],[-80.311272, 25.95717],[-80.311188, 25.95717],[-80.311073, 25.95717],[-80.311028, 25.95717],[-80.310913, 25.95717],[-80.310883, 25.95717],[-80.310837, 25.95717],[-80.310829, 25.95717],[-80.310783, 25.95717],[-80.310776, 25.95717],[-80.310738, 25.957169],[-80.310684, 25.957167],[-80.310646, 25.957165],[-80.310616, 25.957165],[-80.310547, 25.957163],[-80.310356, 25.957161],[-80.310287, 25.957159],[-80.310249, 25.957157],[-80.310143, 25.957155],[-80.310104, 25.957155],[-80.302231, 25.95697],[-80.301704, 25.956972],[-80.298981, 25.956896],[-80.301468, 25.956968],[-80.298668, 25.956886],[-80.29528, 25.956772],[-80.295052, 25.95677],[-80.294975, 25.95677],[-80.294975, 25.956905],[-80.294975, 25.956928],[-80.294762, 25.956938],[-80.29454, 25.956947],[-80.294548, 25.956835],[-80.294579, 25.954868],[-80.294579, 25.954702],[-80.294601, 25.953625],[-80.294601, 25.953461],[-80.294571, 25.953079],[-80.294502, 25.95186],[-80.294487, 25.95163],[-80.294472, 25.951212],[-80.294418, 25.949945],[-80.294296, 25.946936],[-80.294281, 25.946581],[-80.294197, 25.944429],[-80.294128, 25.943003],[-80.294098, 25.942413],[-80.29409, 25.94228],[-80.293854, 25.939285],[-80.293846, 25.939144],[-80.293694, 25.936041],[-80.293625, 25.934875],[-80.293549, 25.933006],[-80.293541, 25.932341],[-80.293533, 25.931826],[-80.293472, 25.931252],[-80.293495, 25.93054],[-80.293373, 25.928652],[-80.293343, 25.928129],[-80.293335, 25.927803],[-80.29332, 25.92738],[-80.293228, 25.925432],[-80.295456, 25.925182],[-80.296936, 25.925102],[-80.297676, 25.925114],[-80.297974, 25.925117],[-80.298866, 25.925131],[-80.30027, 25.925121],[-80.300957, 25.925116],[-80.305336, 25.925138],[-80.306831, 25.925156],[-80.307472, 25.925163],[-80.307686, 25.925158],[-80.308235, 25.92514],[-80.30941, 25.925127],[-80.309402, 25.924763],[-80.313126, 25.924776],[-80.318581, 25.924747],[-80.319275, 25.924746],[-80.319557, 25.924723],[-80.320023, 25.924686],[-80.320137, 25.924664],[-80.320526, 25.924587],[-80.320992, 25.924469],[-80.321259, 25.9244],[-80.321419, 25.924341],[-80.321869, 25.92417],[-80.322388, 25.923891],[-80.32254, 25.923805],[-80.322746, 25.923674],[-80.323059, 25.923479],[-80.323067, 25.923475],[-80.323181, 25.923376],[-80.323235, 25.92333],[-80.32373, 25.922907],[-80.324226, 25.922354],[-80.324783, 25.921375],[-80.324966, 25.920954],[-80.32531, 25.921684],[-80.325325, 25.922615],[-80.32534, 25.923359],[-80.32534, 25.923492],[-80.325348, 25.923607],[-80.325356, 25.923817],[-80.325371, 25.924597],[-80.325401, 25.925245],[-80.325432, 25.925819],[-80.325439, 25.92606],[-80.325462, 25.926447],[-80.325447, 25.926756],[-80.325409, 25.927439],[-80.325562, 25.92762],[-80.325706, 25.927801],[-80.325928, 25.92808],[-80.326218, 25.927971],[-80.326492, 25.927883],[-80.327003, 25.927832],[-80.33033, 25.927818],[-80.333618, 25.927853],[-80.334419, 25.927872],[-80.336128, 25.927896],[-80.336777, 25.927883],[-80.338219, 25.927912],[-80.339294, 25.927912],[-80.33963, 25.927931],[-80.340416, 25.927938],[-80.340919, 25.927923],[-80.341103, 25.927925],[-80.341606, 25.927925],[-80.34166, 25.929146],[-80.341721, 25.930458],[-80.341728, 25.930592],[-80.341766, 25.931606],[-80.341858, 25.933409],[-80.341942, 25.935059]
]]},
"properties":{
"id": "ZIP33015","census_year": 2010,"exposure_year": 2014, "commercial_exposure": 652653581, "residential_exposure": 2299303204, "mobile_home": 0, "tenants": 8631577, "condo_owners": 49223035, "total_exposure": 3009811397}}
When I run db.exposureByZip.ensureIndex({"geometry" : "2dsphere"}) on the above, I get the following error:
{
"createdCollectionAutomatically" : false,
"numIndexesBefore" : 1,
"ok" : 0,
"errmsg" : "Can't extract geo keys from object, malformed geometry?: { _id: ObjectId('53a6be43beeb0a0246ae75bb'), geometry: { type: \"Polygon\", coordinates: [ [ [ -80.341942, 25.935059 ], [ -80.341995, 25.936712 ], [ -80.342026, 25.937851 ], [ -80.342026, 25.938393 ], [ -80.34211000000001, 25.939489 ], [ -80.342178, 25.942131 ], [ -80.342308, 25.942329 ], [ -80.342339, 25.94285 ], [ -80.342438, 25.944914 ], [ -80.342445, 25.945118 ], [ -80.34251399999999, 25.947062 ], [ -80.34253699999999, 25.947479 ], [ -80.342613, 25.949152 ], [ -80.34266700000001, 25.950306 ], [ -80.34271200000001, 25.951366 ], [ -80.34277299999999, 25.952713 ], [ -80.342857, 25.954611 ], [ -80.341438, 25.955782 ], [ -80.34020200000001, 25.956839 ], [ -80.33910400000001, 25.957079 ], [ -80.33831000000001, 25.957081 ], [ -80.336006, 25.957088 ], [ -80.33324399999999, 25.957096 ], [ -80.33178700000001, 25.957102 ], [ -80.32672100000001, 25.957117 ], [ -80.326714, 25.957117 ], [ -80.32444, 25.957127 ], [ -80.323616, 25.957129 ], [ -80.322365, 25.957132 ], [ -80.318619, 25.957146 ], [ -80.317375, 25.95715 ], [ -80.316597, 25.957151 ], [ -80.314278, 25.957161 ], [ -80.313507, 25.957163 ], [ -80.3134, 25.957163 ], [ -80.31308, 25.957165 ], [ -80.312973, 25.957167 ], [ -80.312798, 25.957167 ], [ -80.312263, 25.957167 ], [ -80.312088, 25.957167 ], [ -80.31199599999999, 25.957167 ], [ -80.31173699999999, 25.957167 ], [ -80.311646, 25.957169 ], [ -80.311531, 25.957169 ], [ -80.311272, 25.95717 ], [ -80.311188, 25.95717 ], [ -80.31107299999999, 25.95717 ], [ -80.31102799999999, 25.95717 ], [ -80.310913, 25.95717 ], [ -80.310883, 25.95717 ], [ -80.31083700000001, 25.95717 ], [ -80.310829, 25.95717 ], [ -80.310783, 25.95717 ], [ -80.310776, 25.95717 ], [ -80.310738, 25.957169 ], [ -80.31068399999999, 25.957167 ], [ -80.31064600000001, 25.957165 ], [ -80.310616, 25.957165 ], [ -80.310547, 25.957163 ], [ -80.310356, 25.957161 ], [ -80.310287, 25.957159 ], [ -80.310249, 25.957157 ], [ -80.310143, 25.957155 ], [ -80.310104, 25.957155 ], [ -80.30223100000001, 25.95697 ], [ -80.301704, 25.956972 ], [ -80.298981, 25.956896 ], [ -80.301468, 25.956968 ], [ -80.29866800000001, 25.956886 ], [ -80.29528000000001, 25.956772 ], [ -80.295052, 25.95677 ], [ -80.29497499999999, 25.95677 ], [ -80.29497499999999, 25.956905 ], [ -80.29497499999999, 25.956928 ], [ -80.29476200000001, 25.956938 ], [ -80.29454, 25.956947 ], [ -80.29454800000001, 25.956835 ], [ -80.294579, 25.954868 ], [ -80.294579, 25.954702 ], [ -80.294601, 25.953625 ], [ -80.294601, 25.953461 ], [ -80.294571, 25.953079 ], [ -80.29450199999999, 25.95186 ], [ -80.294487, 25.95163 ], [ -80.294472, 25.951212 ], [ -80.29441799999999, 25.949945 ], [ -80.294296, 25.946936 ], [ -80.294281, 25.946581 ], [ -80.294197, 25.944429 ], [ -80.294128, 25.943003 ], [ -80.29409800000001, 25.942413 ], [ -80.29409, 25.94228 ], [ -80.293854, 25.939285 ], [ -80.293846, 25.939144 ], [ -80.293694, 25.936041 ], [ -80.29362500000001, 25.934875 ], [ -80.293549, 25.933006 ], [ -80.293541, 25.932341 ], [ -80.293533, 25.931826 ], [ -80.29347199999999, 25.931252 ], [ -80.29349499999999, 25.93054 ], [ -80.293373, 25.928652 ], [ -80.29334299999999, 25.928129 ], [ -80.293335, 25.927803 ], [ -80.29331999999999, 25.92738 ], [ -80.293228, 25.925432 ], [ -80.295456, 25.925182 ], [ -80.296936, 25.925102 ], [ -80.297676, 25.925114 ], [ -80.297974, 25.925117 ], [ -80.298866, 25.925131 ], [ -80.30027, 25.925121 ], [ -80.300957, 25.925116 ], [ -80.305336, 25.925138 ], [ -80.306831, 25.925156 ], [ -80.307472, 25.925163 ], [ -80.307686, 25.925158 ], [ -80.308235, 25.92514 ], [ -80.30941, 25.925127 ], [ -80.30940200000001, 25.924763 ], [ -80.313126, 25.924776 ], [ -80.31858099999999, 25.924747 ], [ -80.319275, 25.924746 ], [ -80.319557, 25.924723 ], [ -80.32002300000001, 25.924686 ], [ -80.320137, 25.924664 ], [ -80.320526, 25.924587 ], [ -80.320992, 25.924469 ], [ -80.321259, 25.9244 ], [ -80.32141900000001, 25.924341 ], [ -80.32186900000001, 25.92417 ], [ -80.322388, 25.923891 ], [ -80.32254, 25.923805 ], [ -80.322746, 25.923674 ], [ -80.323059, 25.923479 ], [ -80.32306699999999, 25.923475 ], [ -80.32318100000001, 25.923376 ], [ -80.323235, 25.92333 ], [ -80.32373, 25.922907 ], [ -80.324226, 25.922354 ], [ -80.324783, 25.921375 ], [ -80.324966, 25.920954 ], [ -80.32531, 25.921684 ], [ -80.32532500000001, 25.922615 ], [ -80.32534, 25.923359 ], [ -80.32534, 25.923492 ], [ -80.32534800000001, 25.923607 ], [ -80.325356, 25.923817 ], [ -80.325371, 25.924597 ], [ -80.325401, 25.925245 ], [ -80.32543200000001, 25.925819 ], [ -80.325439, 25.92606 ], [ -80.325462, 25.926447 ], [ -80.325447, 25.926756 ], [ -80.32540899999999, 25.927439 ], [ -80.32556200000001, 25.92762 ], [ -80.325706, 25.927801 ], [ -80.325928, 25.92808 ], [ -80.326218, 25.927971 ], [ -80.326492, 25.927883 ], [ -80.327003, 25.927832 ], [ -80.33033, 25.927818 ], [ -80.333618, 25.927853 ], [ -80.334419, 25.927872 ], [ -80.336128, 25.927896 ], [ -80.336777, 25.927883 ], [ -80.338219, 25.927912 ], [ -80.339294, 25.927912 ], [ -80.33963, 25.927931 ], [ -80.340416, 25.927938 ], [ -80.340919, 25.927923 ], [ -80.341103, 25.927925 ], [ -80.341606, 25.927925 ], [ -80.34166, 25.929146 ], [ -80.34172100000001, 25.930458 ], [ -80.341728, 25.930592 ], [ -80.34176600000001, 25.931606 ], [ -80.341858, 25.933409 ], [ -80.341942, 25.935059 ] ] ] }, type: \"Feature\", properties: { commercial_exposure: 652653581, total_exposure: 3009811397, condo_owners: 49223035, mobile_home: 0, census_year: 2010, tenants: 8631577, residential_exposure: 2299303204, exposure_year: 2014, id: \"ZIP33015\" } }",
"code" : 16755
}
There is a bug posted for this problem: https://jira.mongodb.org/browse/SERVER-13735
“Malformed geometry” error when creating a geosphere index for a valid
MultiPolygon
Similar issue, a valid GeoJSON is being submitted for a 2dsphere index and is causing the "Can't extract geo keys from object, malformed geometry?" error.
There have been a series of previous bugs where valid GeoJSON was causing this error message. They've fixed those in 2.6.x but this appears to be a new one. I'd chime in on JIRA as it will help get it prioritized for a fix.
Maybe the problem is because your polygon coordinates has the first coordinate and last coordinate as the same value. Try to remove the last coordinate pooint from your polygons.

Using pkg-config gyp

I'm trying to include gtk in my gyp project. I can compile by hand, but with gyp I always get the error that #include <gtk/gtk.h> cannot be found. I've seen other gyp projects like chromium include it like this but have been unsuccessful in duplicating.
Thanks for taking a look!
{
'variables': {
'pkg-config': 'pkg-config'
},
'targets': [
{
'target_name': 'application',
'type': 'executable',
'sources': [
'src/main_linux.cc',
],
},
],
'conditions': [
['OS=="linux"', {
'direct_dependent_settings': {
'cflags': [
'<!#(<(pkg-config) --cflags gtk+-2.0)',
],
},
'link_settings': {
'ldflags': [
'<!#(<(pkg-config) --libs-only-other gtk+-2.0)',
],
'libraries': [
'<!#(<(pkg-config) --libs-only-l gtk+-2.0)',
],
},
}],
],
}
Here is the working file I'm now using:
{
'variables': {
'pkg-config': 'pkg-config'
},
'conditions': [
['OS=="linux"', {
'targets': [
{
'target_name': 'trackbox',
'type': 'executable',
'sources': [
'src/main_linux.cc',
],
'cflags': [
'<!#(<(pkg-config) --cflags gtk+-2.0)',
],
'ldflags': [
'<!#(<(pkg-config) --libs-only-L --libs-only-other gtk+-2.0)',
],
'libraries': [
'<!#(<(pkg-config) --libs-only-l gtk+-2.0)',
],
},
],
}]
],
}