These are chat archives for arenanet/api-cdi

11th
Apr 2017
Darqam
@Darqam
Apr 11 2017 00:11
is there a way to check the permissions an api key has through the api? I feel like I remember maybe headers returning that? But I can't find it
/v2/tokeninfo
Darqam
@Darqam
Apr 11 2017 00:12
ooooh
oh there it is, right in the body; thanks!
Archomeda
@Archomeda
Apr 11 2017 00:14
that feel when you play a RL match and it wasn't going well to begin with, the game crashes, you reboot the game and you notice in the match that your controller isn't detected...
rip rank points
Archomeda
@Archomeda
Apr 11 2017 00:15
lost 5 matches already, only won 1
well tbf there was an !@#$hole on my team anyway, so i couldn't care less about my last match
but yeah, you say in chat that your controller isn't working after the game crashed and have to play with kb+mouse; and they don't believe you and call you a troll
/shrug
Quaggan BooOOoot
@QuagganBooOOoot
Apr 11 2017 00:16
¯\_(ツ)_/¯
Archomeda
@Archomeda
Apr 11 2017 00:17
clearly the game doesn't want me to play right now :P
Darqam
@Darqam
Apr 11 2017 00:17
@lye was there ever a pr done for the new SAB stuff?
oh there wasn't; I'll do that real quick
Darqam
@Darqam
Apr 11 2017 00:18
<3
Archomeda
@Archomeda
Apr 11 2017 00:18
ref #480
I kind of rushed that endpoint and didn't go through the proper process >_>
Archomeda
@Archomeda
Apr 11 2017 00:18
also #479 was fixed
Darqam
@Darqam
Apr 11 2017 00:19
I didn't have time to do anything (nor still don't) with it anyway, so I'm not too bothered by it :p
taking a look back at that api management page on https://account.arena.net/applications, I've got to say I really like the layout of it. Clean and simple to find which key you want right away.
Archomeda
@Archomeda
Apr 11 2017 00:57
#486 woo :tada:
windwarrior
@windwarrior
Apr 11 2017 15:00
Great, javascript supports tuple unpack nowadays
but, what happens when you try to unpack a tuple of less elements then your pattern
i.e. var [a, b] = ['a']
right, b becomes undefined
can this please raise an error, because this was probably not what I intended
I dont get why JS doesnt like throwing errors for obviously unintended behaviour
windwarrior
@windwarrior
Apr 11 2017 15:07
otherwise cool feature! more functional patterns in languages please!
Archomeda
@Archomeda
Apr 11 2017 15:26
that's debatable, var arr = [1, 2, 3, 4]; console.log(arr[4]); // returns undefined
this doesn't throw an error either
unlike other programming languages, with e.g. IndexOutOfBounds
Eearslya Sleiarion
@Eearslya
Apr 11 2017 15:27
SIGSEGV
windwarrior
@windwarrior
Apr 11 2017 16:38
well JavaScript has somehow decided that its arrays are sparse
so its perfectly valid to have var some_array = []; some_array[0] = 'bla'; some_array[100] = 'bla too';
making 1 up until 99 undefined
is writing to 1 then okay or IndexOutOfBounds
I get where JS is coming from with their arrays
I just think its stupid :')
windwarrior
@windwarrior
Apr 11 2017 16:44
and @Eearslya you are lucky to get a SIGSEGV
sometimes just something happens
wait what happens if you unpack a sparse array
Archomeda
@Archomeda
Apr 11 2017 18:08
Undefined behavior
Like most things in javascript
ChieftainAlex
@ChieftainAlex
Apr 11 2017 20:29
@lye - I'm really being annoying with map issues I know, but Zraith's Beacon should appear in obsidian sanctum instead of EB shouldn't it?
as in the sector
Archomeda
@Archomeda
Apr 11 2017 20:48
wasn't obsidian sanctum part of EB a long time ago?
Edgar Doiron
@Coffee4cr
Apr 11 2017 20:49
yes
it probably needs sector reassignment
I need to figure out how to make content changes again
ChieftainAlex
@ChieftainAlex
Apr 11 2017 21:22
so many useful code snippets out there. used this little one to figure out which waypoints are within which areas: https://github.com/substack/point-in-polygon/blob/master/index.js
no embed? gitter I am disappoint