profile
viewpoint
Nathan Bowser nathanbowser Spider Strategies Philadelphia, PA nathanbowser.com

nathanbowser/dat-ebola 6

Ebola data in dat.

nathanbowser/fbapi4j 4

FogBugz API for Java

nathanbowser/node-itunes-rss-data 2

Tracks itunes rss feed data.

nathanbowser/browserify-visualization-talk 1

code snippets for the browserify and node for data visualization talk

nathanbowser/compass 1

Compass is a Stylesheet Authoring Environment that makes your website design simpler to implement and easier to maintain.

nathanbowser/dot-files 1

Simple dot files

nathanbowser/draak 1

Draak is a high-toned DSL for quickly creating web applications in groovy.

nathanbowser/ehow-wtf-multiplication 1

A module to handle multiplication using the ehow-wtf approach: http://www.ehow.com/video_12245475_multiply-c-programming.html

nathanbowser/emacs-starter-kit 1

Because the Emacs defaults are not so great sometimes.

nathanbowser/homebrew 1

Packaging system for Mac OS X 10.5 and above; heavy optimisations, no redundant packages and a bonus beer theme

created tagSpiderStrategies/node-gmail-api

tagv0.7.0

Node module to interact with the gmail api

created time in 21 days

created tagSpiderStrategies/node-gmail-api

tagv1.0.0

Node module to interact with the gmail api

created time in 21 days

push eventSpiderStrategies/node-gmail-api

Nathan Bowser

commit sha b36b56fd6351404283557fba21154ace8db6f234

0.7.0

view details

Nathan Bowser

commit sha 9ab7b7e9e02d0b6b71375c376cdccd10fb489199

1.0.0

view details

push time in 21 days

issue closedSpiderStrategies/node-gmail-api

Error: unrecognized content-type: text/html; charset=UTF-8

My script used to be working just fine, but now started throwing an error:

events.js:183
      throw er; // Unhandled 'error' event
      ^

Error: unrecognized content-type: text/html; charset=UTF-8
    at Form.parse (C:\Users\raimu\Documents\apps2\scripts\gmail\node_modules\multiparty\index.js:159:21)
    at Request.<anonymous> (C:\Users\raimu\Documents\apps2\scripts\gmail\node_modules\node-gmail-api\index.js:123:12)
    at emitOne (events.js:116:13)
    at Request.emit (events.js:211:7)
    at Request.onRequestResponse (C:\Users\raimu\Documents\apps2\scripts\gmail\node_modules\request\request.js:1059:10)
    at emitOne (events.js:116:13)
    at ClientRequest.emit (events.js:211:7)
    at HTTPParser.parserOnIncomingClient [as onIncoming] (_http_client.js:558:21)
    at HTTPParser.parserOnHeadersComplete (_http_common.js:119:17)
    at TLSSocket.socketOnData (_http_client.js:454:20)

Using same access token regular gmail API is working just fine. What could be the problem here?

closed time in 21 days

RaimisJ

PR merged SpiderStrategies/node-gmail-api

replace deprecated batch endpoint

node-gmail-API currently fails as google returns a 404 response on requests to the batch endpoint:

{
  "statusCode": 404,
  "headers": {
    "content-length": "1449",
    "content-type": "text/html; charset=utf-8",
    "x-content-type-options": "nosniff",
    "x-frame-options": "SAMEORIGIN",
    "x-xss-protection": "0",
    "date": "Mon, 05 Oct 2020 08:41:22 GMT",
    "alt-svc": "h3-Q050=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000,h3-27=\":443\"; ma=2592000,h3-T051=\":443\"; ma=2592000,h3-T050=\":443\"; ma=2592000,h3-Q046=\":443\"; ma=2592000,h3-Q043=\":443\"; ma=2592000,quic=\":443\"; ma=2592000; v=\"46,43\"",
    "connection": "close"
  },
  "request": {
    "uri": {
      "protocol": "https:",
      "slashes": true,
      "auth": null,
      "host": "www.googleapis.com",
      "port": 443,
      "hostname": "www.googleapis.com",
      "hash": null,
      "search": null,
      "query": null,
      "pathname": "/batch",
      "path": "/batch",
      "href": "https://www.googleapis.com/batch"
    },
    "method": "POST",
    "headers": {
      "Authorization": "Bearer [redacted]",
      "content-length": 11953
    }
  }
}

This causes the following crash, reported in #40:

events.js:187
      throw er; // Unhandled 'error' event
      ^

Error: unrecognized content-type: text/html; charset=utf-8
    at Form.parse (/home/user/development/app/node_modules/multiparty/index.js:159:21)
    at Request.<anonymous> (/home/user/development/app/node_modules/node-gmail-api/index.js:123:12)
    at Request.emit (events.js:210:5)
    at Request.onRequestResponse (/home/user/development/app/node_modules/request/request.js:1066:10)

This comment points to the cause of the problem: batch endpoint is deprecated and replaced by batch/gmail/v1 in our case.

This pull request adapts the code accordingly. Tests are failing for a separate reason and are not fixed in this pull request.

+4 -4

0 comment

2 changed files

mef

pr closed time in 21 days

created tagSpiderStrategies/kalpa-tree

tagv3.1.3

A tree implementation backed by D3

created time in 2 months

push eventSpiderStrategies/kalpa-tree

Nathan Bowser

commit sha fc3015533ff0dea76b337260205efc1f1d89385e

3.1.3

view details

push time in 2 months

push eventSpiderStrategies/kalpa-tree

Nathan Bowser

commit sha 406eae2b6117d7d12b41a0adbd2adfd7f7dc880d

Immediately sets `node` classname on all `li` elements. This should happen in the `enter` code, but I think a race condition with autoscrolling from DND code causes issues. This is a total hack but I couldn't figure out a better solution. For https://github.com/SpiderStrategies/Scoreboard/issues/32542

view details

Nathan Bowser

commit sha 13f2466b82da2d290f9d10e3dd75f1769a6b8603

Merge pull request #461 from SpiderStrategies/impact-32542 Immediately sets `node` classname on all `li` elements.

view details

push time in 2 months

delete branch SpiderStrategies/kalpa-tree

delete branch : impact-32542

delete time in 2 months

PR merged SpiderStrategies/kalpa-tree

Reviewers
Immediately sets `node` classname on all `li` elements.

This should happen in the enter code, but I think a race condition with autoscrolling from DND code causes issues. This is a total hack but I couldn't figure out a better solution.

For https://github.com/SpiderStrategies/Scoreboard/issues/32542

+3 -0

1 comment

1 changed file

nathanbowser

pr closed time in 2 months

issue openedSpiderStrategies/kalpa-tree

Investigate throttling dnd autoscrolling

See https://github.com/SpiderStrategies/Scoreboard/issues/32542 and https://github.com/SpiderStrategies/kalpa-tree/pull/461/commits/406eae2b6117d7d12b41a0adbd2adfd7f7dc880d

I put in a hack as a quick fix but I think we should throttle the dnd autoscroller as a proper fix. I just don't have the time for it right now.

created time in 2 months

PR opened SpiderStrategies/kalpa-tree

Immediately sets `node` classname on all `li` elements.

This should happen in the enter code, but I think a race condition with autoscrolling from DND code causes issues. This is a total hack but I couldn't figure out a better solution.

For https://github.com/SpiderStrategies/Scoreboard/issues/32542

+3 -0

0 comment

1 changed file

pr created time in 2 months

push eventSpiderStrategies/kalpa-tree

Nathan Bowser

commit sha 406eae2b6117d7d12b41a0adbd2adfd7f7dc880d

Immediately sets `node` classname on all `li` elements. This should happen in the `enter` code, but I think a race condition with autoscrolling from DND code causes issues. This is a total hack but I couldn't figure out a better solution. For https://github.com/SpiderStrategies/Scoreboard/issues/32542

view details

push time in 2 months

create barnchSpiderStrategies/kalpa-tree

branch : impact-32542

created branch time in 2 months

created tagSpiderStrategies/kalpa-tree

tagv3.1.2

A tree implementation backed by D3

created time in 3 months

push eventSpiderStrategies/kalpa-tree

Nathan Bowser

commit sha 7a6981b41126ba1137d6cbe3a32b5d5ad2dfb562

3.1.2

view details

push time in 3 months

pull request commentSpiderStrategies/kalpa-tree

this.nodes as an object instead of sparse array

@mattsgarlata I'll bump the tree in impact. What branch?

mattsgarlata

comment created time in 3 months

pull request commentSpiderStrategies/kalpa-tree

this.nodes as an object instead of sparse array

I tested this in the tree, and tests pass. This is fine. _layout needs to be an array though.

mattsgarlata

comment created time in 3 months

delete branch SpiderStrategies/kalpa-tree

delete branch : object-vs-sparse-array

delete time in 3 months

push eventSpiderStrategies/kalpa-tree

Matt Sgarlata

commit sha 63ee24616583979b355e20b036b59c3042f2b156

this.nodes as an object instead of sparse array allows for more efficient iteration over the elements

view details

Nathan Bowser

commit sha 553e0567c562347c0d0bfc329fe84cad46ec5a6d

Merge pull request #460 from SpiderStrategies/object-vs-sparse-array this.nodes as an object instead of sparse array

view details

push time in 3 months

PR merged SpiderStrategies/kalpa-tree

Reviewers
this.nodes as an object instead of sparse array

allows for more efficient iteration over the elements

+1 -1

2 comments

1 changed file

mattsgarlata

pr closed time in 3 months

created tagSpiderStrategies/kalpa-tree

tagv3.1.1

A tree implementation backed by D3

created time in 3 months

push eventSpiderStrategies/kalpa-tree

Nathan Bowser

commit sha fc785793692aecc962df1279cb023588284350bd

3.1.1

view details

push time in 3 months

delete branch SpiderStrategies/kalpa-tree

delete branch : impact-30945-dnd-flicker

delete time in 3 months

push eventSpiderStrategies/kalpa-tree

Nathan Bowser

commit sha 7b1a33e48f2642345435fe4a1823f5cc40de839b

Prevents auto scrolling if the current node auto scroll position is above the top node of the tree. For https://github.com/SpiderStrategies/Scoreboard/issues/30945

view details

Nathan Bowser

commit sha d402371c4fcaf7d3aae7b451a59e0e2f95a64231

Merge pull request #459 from SpiderStrategies/impact-30945-dnd-flicker Prevents auto scrolling if the current node auto scroll position is

view details

push time in 3 months

PR merged SpiderStrategies/kalpa-tree

Prevents auto scrolling if the current node auto scroll position is

above the top node of the tree.

For https://github.com/SpiderStrategies/Scoreboard/issues/30945

+6 -0

1 comment

1 changed file

nathanbowser

pr closed time in 3 months

PR opened SpiderStrategies/kalpa-tree

Prevents auto scrolling if the current node auto scroll position is

above the top node of the tree.

For https://github.com/SpiderStrategies/Scoreboard/issues/30945

+6 -0

0 comment

1 changed file

pr created time in 3 months

push eventSpiderStrategies/kalpa-tree

Nathan Bowser

commit sha 7b1a33e48f2642345435fe4a1823f5cc40de839b

Prevents auto scrolling if the current node auto scroll position is above the top node of the tree. For https://github.com/SpiderStrategies/Scoreboard/issues/30945

view details

push time in 3 months

create barnchSpiderStrategies/kalpa-tree

branch : impact-30945-dnd-flicker

created branch time in 3 months

more