These are chat archives for arenanet/api-cdi

22nd
Dec 2017
David Reeß
@queicherius
Dec 22 2017 03:48
I've been using both LastPass and 1Password for a while, and ended up going with 1Password (they both offer pretty much the same).
Enno G.
@SchoolGuy
Dec 22 2017 05:46
I also ended up using lastpass...
Eearslya Sleiarion
@Eearslya
Dec 22 2017 07:24
image.png
I love how YouTube still recommends these to me
hyena
@hyena
Dec 22 2017 08:32
Is there a better way to find the id for items in the game than something like this python I slapped together:
items = requests.get('https://api.guildwars2.com/v2/items').json()
names = {}
# Request 100 item stats at a time.
batches = [items[i:i+100] for i in range(0, len(items), 100)]
for batch in batches:
    print("Processing a batch.")
    stats = requests.get('https://api.guildwars2.com/v2/items?ids={}'.format(
        ','.join((str(i) for i in batch))
    )).json()
    for stat in stats:
        names[stat['name']] = stat['id']

# Do something useful with 'names' here.
David Reeß
@queicherius
Dec 22 2017 08:45
Nope, you can only get 200 instead of 100 and slap some caching on your side on and that's the best we got from the official API
Or you can use one of the third party APIs (e.g. gw2efficiency's)
hyena
@hyena
Dec 22 2017 08:45
Oh hey, queicherius.
It's cyberskunk/Lagos.6938
How's it going?
David Reeß
@queicherius
Dec 22 2017 08:45
Oh hey :D
Can't complain, and yourself?
hyena
@hyena
Dec 22 2017 08:46
I'm okay. I'm bored during Christmas so I thought it about time to do something with the API so I'm writing something that checks the value of wintersday gifts against the droprate data from opening 50,000 of them.
David Reeß
@queicherius
Dec 22 2017 09:01
Seems like a fun side project :)
boop
darthmaim
@darthmaim
Dec 22 2017 09:15
:O
sorry everyone i've been really terrible
i have excuses and stuff but they're all bad
darthmaim
@darthmaim
Dec 22 2017 09:16
no christmas presents for you
:D
totally fair
darthmaim
@darthmaim
Dec 22 2017 09:16
welcome back <3
i mean, it's like 1am and stuff
David Reeß
@queicherius
Dec 22 2017 09:16
<3 the best present
@queicherius fwiw your comment on reddit a while back started a lot of internal conversation
i can't guarentee any like actual progress or anything but like we're working on figuring out how to continue to keep stuff updated
maybe it was less your comment and more my neglect
anyway i was just popping in to poke @Eearslya to say that factorio is a terrible game and why did i ever start playing
darthmaim
@darthmaim
Dec 22 2017 09:19
0.16 :P
literally every upgrade takes so much iron/steel and iron/steel takes so much power and literally i'm spending all my iron to make bullets and u-235 drop rates are garbage
David Reeß
@queicherius
Dec 22 2017 09:19
Sorry if that caused any issues for you, I tried to word it in a way to make sure that i'm not blaming you
yeah I've been playing 0.16
@queicherius literally not your fault
darthmaim
@darthmaim
Dec 22 2017 09:19
don't blame yourself for not working on the API as much after you got other responsibilities
it's actually no one's fault
turns out MMOs are hard
anyway we're trying to make a transition plan and stuff and I don't know how well it'll turn out because the API stuff is a cluster but yeah
also I'm a terrible developer xD but I think y'all already know that
darthmaim
@darthmaim
Dec 22 2017 09:21
<3
Quaggan BooOOoot
@QuagganBooOOoot
Dec 22 2017 09:21
:heart:
David Reeß
@queicherius
Dec 22 2017 09:22
Aren't we all <3
darthmaim
@darthmaim
Dec 22 2017 09:25
You have done great work on the API over the last few years and I just hope that what ever happens next, that we (as in this gitter community) can still influence and provide feedback on whats being worked on, because thats honestly one of the best things about the GW2 APIs for me
hmm
i don't know why i didn't think of this before, but since my job is mostly managing jira tasks
maybe the goal shouldn't be to have a transition plan but to make me project owner of the API
and have a 2x half-person dedicated team to manage the API as a project that I'm owner of
#friday_morning_thoughts
darthmaim
@darthmaim
Dec 22 2017 09:28
would be awesome to still have you involved and around here <3
David Reeß
@queicherius
Dec 22 2017 09:29
I agree, the communication is something that is extremely rare to have and would be sad to be lost
i'm honestly not sure what kind of load that entails but @SCDubs maybe that's worth investigating
@queicherius at the very least i should be more involved in a handoff than i have been
because tbh the lack of communication on my part has been garbage and i'm sorry
David Reeß
@queicherius
Dec 22 2017 09:33
Don't worry, shit gets in between. I was more concerned with the long term maintenance of the API when I wrote the comment
honestly, migrating the entire infrastructure to aws in a seamless fashion has been a massive engineering undertaking
(that i was largely not involved in because lol managing servers and being on call and stuff)
but i think a lot of the timeouts were due to running in two DCs at once maybe
have they mostly cleared up or is it still an ongoing issue?
darthmaim
@darthmaim
Dec 22 2017 09:36
I didn't have any problems recently
David Reeß
@queicherius
Dec 22 2017 09:36
As far as I can tell all the old stuff is working as excepted
okay sweet
there was definitely a period where the api and some of the backend servers were running in separate DCs
Werdes
@werdes
Dec 22 2017 09:37
Wvw kills are still delayed due to( apparently) long polling times, but that‘s not as important as i‘ve been figuring out a hacked together way to flatten those
there are some ongoing issues right now w.r.t some backend services that wvw depends on
Werdes
@werdes
Dec 22 2017 09:37
So, welcome back :+1:
i mean
defer the welcome backs until tomorrow/next year (friday is the last non-holiday of the year)
honestly thought the wvw kills system is a massive hack that relies on the event logs which are best-effort
so if any service starts being degraded those are the first to get latency ;_;
Werdes
@werdes
Dec 22 2017 09:40
Well there are ingame statistics now, maybe you can sap those (should you ever find time to work on that)
I probably won't, but it's sonething to add to the backlog
Also, lol, my internet connection just died
America yay.
and it's back.
anyway that's probably a good time to go to sleep.
I should be on tomorrow @darthmaim I'll see if I can get the pending things whitelisted
been trying to do that weekly but bunch of stuff slips through all the time
darthmaim
@darthmaim
Dec 22 2017 09:46
its all good
I can send you a list of IDs to whitelist tomorrow :)
i was just gonna go through gw2treasures.com/lye xD
darthmaim
@darthmaim
Dec 22 2017 09:47
perfect
also there's a bunch of recipes with item=0 -- is that a bug on your end or the API's?
darthmaim
@darthmaim
Dec 22 2017 09:47
I'm not really sure where those come from
Probably a bug on my end
that page was just hacked together in 5 minutes
the source recipe ids return 404 from the API
darthmaim
@darthmaim
Dec 22 2017 09:48
yeah, not sure how they got into my db
they just have the id set, everything else is null
anyway i'm gonna pass out
see y'all hopefully tomorrow <3
darthmaim
@darthmaim
Dec 22 2017 09:50
nice to have you back here <3
David Reeß
@queicherius
Dec 22 2017 09:55
See you around <3
Werdes
@werdes
Dec 22 2017 10:10
:heart:
Quaggan BooOOoot
@QuagganBooOOoot
Dec 22 2017 10:10
:heart:
windwarrior
@windwarrior
Dec 22 2017 11:42
@lye do you wish me to keep posting bugs to GH, or is the list getting daunting? Are you more of a record everything type of person, or a oh god I need to do that much person?
The API doesnt expose checkpoints in the new raid (Hall of Chains)
darthmaim
@darthmaim
Dec 22 2017 11:43
create an issue :+1:
windwarrior
@windwarrior
Dec 22 2017 11:46
#594 consider it done
meanwhile rebuilding my dev tracker in react
bit of a mixed feeling about it
cant really seem to seperate layouting from logic structure
darthmaim
@darthmaim
Dec 22 2017 11:48
if you want I can take a look at it
windwarrior
@windwarrior
Dec 22 2017 11:49
when it is completely rewritten :), thanks!
darthmaim
@darthmaim
Dec 22 2017 11:49
:+1:
windwarrior
@windwarrior
Dec 22 2017 11:49
but I end up having bootstrap stuff in my components
and that feels wrong
(I use reactstrap tho)
smiley
@codemasher
Dec 22 2017 13:34
OMG @lye is back! <3
Archomeda
@Archomeda
Dec 22 2017 14:08
oh @lye :wave: it's good to hear from you again, we've missed you
@windwarrior yeah, i've been trying to keep track of things that might need to have updates
windwarrior
@windwarrior
Dec 22 2017 14:10
yeah, but some people dont like it
Archomeda
@Archomeda
Dec 22 2017 14:10
fair, but what else do we have the issue tracker for?
windwarrior
@windwarrior
Dec 22 2017 14:10
shit is on fire issues
Archomeda
@Archomeda
Dec 22 2017 14:11
i see the github issues more as a "things to keep track of" board
smiley
@codemasher
Dec 22 2017 14:11
wasn't there a common issue for "stuff is missing in the API"?
Archomeda
@Archomeda
Dec 22 2017 14:11
possibly
i generally search for whatever is missing, rather than a common issue for it :(
also @windwarrior, closing down many issues also gives a sense of accomplishment :D
smiley
@codemasher
Dec 22 2017 14:12
github should add a feature like "pinned issues"
Archomeda
@Archomeda
Dec 22 2017 14:12
yeah... that would actually be a nice feature
windwarrior
@windwarrior
Dec 22 2017 14:12
can JSX only handle strings q.q?
Archomeda
@Archomeda
Dec 22 2017 14:14
i think that organizing issues into categories is kinda needed at this point, aka "wvw", "pvp", "raids", "tiles", "items", "account", etc
but... i think we need a second person for that, don't want to overload lye with this :(
smiley
@codemasher
Dec 22 2017 14:16
q: has anyone of some knowledge of HOTP authentication?
i'm running into a weird issue where i get different codes than winauth for counter values > 255
and it seems like all php implementations do so since they all copied from each other
windwarrior
@windwarrior
Dec 22 2017 14:17
well tagging of issues is something we can help with @Archomeda
it may be an idea to add tags for endpoints
Archomeda
@Archomeda
Dec 22 2017 14:18
@codemasher i have no clue sorry :(
@windwarrior yeah, that would be a start, but right now we can't help with that
windwarrior
@windwarrior
Dec 22 2017 14:19
not sure whether @lye uses these issues internally as well
or do you use a (private) Jira?
Archomeda
@Archomeda
Dec 22 2017 14:25
i also think that going over old issues and see if they are still relevant might be a good idea
smiley
@codemasher
Dec 22 2017 14:27
    public function getHOTPCode($secret, $counter = null){
        $counter = $counter === null ? 1 : $counter + 1;

        $hash    = hash_hmac('SHA1', pack('N*', 0, $counter), $this->base32->toString($secret));
        $i       = ord(substr($hash, -1))&0x0F;
        $h       = array_map('hexdec', str_split($hash, 2));
        $code    = (int)($h[$i] & 0x7f) << 24 | ($h[$i + 1] & 0xff) << 16 | ($h[$i + 2] & 0xff) << 8 | ($h[$i + 3] & 0xff);

        return str_pad($code % pow(10, $this->digits), $this->digits, '0', STR_PAD_LEFT);
    }
clueless
/shrug
Quaggan BooOOoot
@QuagganBooOOoot
Dec 22 2017 14:27
¯\_(ツ)_/¯
Eearslya Sleiarion
@Eearslya
Dec 22 2017 14:55
@lye :tada:
All I can say about the Factorio part is...make more
Archomeda
@Archomeda
Dec 22 2017 14:56
but... we want lye back, not him being consumed by factorio :(
i take it back what i said that he should try it out :sob:
Archomeda
@Archomeda
Dec 22 2017 15:34
@darthmaim can you check #557 regarding the missing descriptions? the given link does show descriptions right now
darthmaim
@darthmaim
Dec 22 2017 15:35
huh
that might be fixed then
nope, https://api.guildwars2.com/v2/traits/2075 is still missing the description
Quaggan BooOOoot
@QuagganBooOOoot
Dec 22 2017 15:36

Some traits have no "description" field
by Dorazur.9420 in API Development

Some traits have no "description" field:
Guardian: 2075,2101,2086,2062,2063,2076,2116,2148,2105,2179,2159
Revenant: 2166,2079,2120,2154,2092,2108,2142,2094,2100,2182
Ranger: 2134,2071,2072,2156,2119,2085,2161,2127,2155,2143

darthmaim
@darthmaim
Dec 22 2017 15:36
will edit the example in the issue
Archomeda
@Archomeda
Dec 22 2017 15:36
ah, then i guess only the renegade was fixed :P
okay cool... only page 1 to go through right now
Archomeda
@Archomeda
Dec 22 2017 15:45
@darthmaim do you know when .subskills became a thing? ref #203 #204
darthmaim
@darthmaim
Dec 22 2017 15:46
No idea
Just noticed that last week on the glyph of storms
Archomeda
@Archomeda
Dec 22 2017 15:46
alright
i'm gonna post a lot of comments in the following minutes... urgh
darthmaim
@darthmaim
Dec 22 2017 15:48
I'm guessing at the same time elementalist got the dual_attunement
(which also should be directly in /v2/professions/Elementalist.weapons[].skills and not just the real skill imho)
Eearslya Sleiarion
@Eearslya
Dec 22 2017 16:11
image.png
@lye
wait
it's not lye
@Archomeda YOU
darthmaim
@darthmaim
Dec 22 2017 16:12
:D
Archomeda
@Archomeda
Dec 22 2017 16:12
:>
now i know how to spam @Eearslya's email myself without having @lye to do it :>
Eearslya Sleiarion
@Eearslya
Dec 22 2017 16:15
aaaaaaaaaaaaaaaaaa
image.png
Archomeda
@Archomeda
Dec 22 2017 16:16

Anyhow... @lye, an overview of what I just posted on the issues:

Most likely outdated issues: #203 #242 #303 #528 #539 #554 #578
Possibly outdated issues: #83 #112 #217 #398
Duped issues: #555
Added archived forum links to: #130 #144 #176 #228 #235 #249 #276 #299 #314 #345 #358 #420 #423 #484 #487 #489 #510 #531 #536 #537 #539 #544 #546 #547
Added other issue references to: #382 #573 #590
Some additional notes to: #489

Eearslya Sleiarion
@Eearslya
Dec 22 2017 16:17
that was kinda neat, watching gitter cascade through and format each issue
Archomeda
@Archomeda
Dec 22 2017 16:17
rofl
darthmaim
@darthmaim
Dec 22 2017 16:18
:+1:
Archomeda
@Archomeda
Dec 22 2017 16:19
@darthmaim your archive has a purpose now! :D
darthmaim
@darthmaim
Dec 22 2017 16:20
:)
Archomeda
@Archomeda
Dec 22 2017 16:24
there are possibly more issues that i skipped over... but this is most of i think
image.png
also, i don't know what to think of this... XD
oh, i forgot i added some notes to #204 too, but gitter doesn't let me edit my message anymore -_-
@windwarrior I need to find time to triage bugs next year, but it doesn't hurt to have a record of them in GH
windwarrior
@windwarrior
Dec 22 2017 18:40
^^
I just know different people with different preferences
Eearslya Sleiarion
@Eearslya
Dec 22 2017 18:50
@lye I am sorry, I have gone to the dark side
I started using C++14 in advent of code
darthmaim
@darthmaim
Dec 22 2017 18:52
ohhh damn, totally forgot about that
still haven't done day 3
Archomeda
@Archomeda
Dec 22 2017 18:52
i haven't even started
Eearslya Sleiarion
@Eearslya
Dec 22 2017 18:54
I forgot about it too
Werdes
@werdes
Dec 22 2017 18:56
oh @lye , there's one other thing with the wvw api: matchups take hours on reset to appear. at this time the wvw api for EU tier 4 still reports last weeks match
although reset was an hour ago
Archomeda
@Archomeda
Dec 22 2017 18:56
oh god... speaking of wvw...
new links
yeah a producer just came to talk to me about the links not being updated
since they validate the configuration by checking the wiki which auto-updates from the api
Quaggan BooOOoot
@QuagganBooOOoot
Dec 22 2017 18:58

World Linking 12/22/2017
by (ArenaNet) Matt Lambdin.8123 in WvW

Worlds have been re-linked.
Here are the worlds for EU:

  • Baruch Bay
  • Far Shiverpeaks, Ruins of Surmia
  • Gandara, Fissure of Woe
  • Desolation, Whiteside Ridge
  • Vabbi, Blacktide
  • Piken Square, Ring of Fire
  • Seafarer’s Rest, Aurora Glade
Archomeda
@Archomeda
Dec 22 2017 18:58
not the full post :(
jesus I haven't looked at this code in ages
if(config.v2.hardcoded_wvw_disaster) {
darthmaim
@darthmaim
Dec 22 2017 18:58
:D
Archomeda
@Archomeda
Dec 22 2017 18:58
rip
smiley
@codemasher
Dec 22 2017 18:59
lmao
Archomeda
@Archomeda
Dec 22 2017 18:59
wasn't it supposed to auto-update at some point?
yeah
smiley
@codemasher
Dec 22 2017 18:59

since they validate the configuration by checking the wiki which auto-updates from the api

omg xD

I'm not sure why the links were hardcoded in the configs
it was auto-updating until october when I added the hardcoded links for some reason
but didn't mention why in the bloody CL
smiley
@codemasher
Dec 22 2017 19:00
haha
Archomeda
@Archomeda
Dec 22 2017 19:00
:(
the only reason might be because it broke for some reason
okay looks like the world links are cached for too long a period
and it screws up stuff
maybe
Werdes
@werdes
Dec 22 2017 19:03
thanks for fixing it now though :+1:
I'm going to make a note to actually fix it
there's some really scary stuff in the api codebase that i never deployed
or ... i think I never deployed
Archomeda
@Archomeda
Dec 22 2017 19:06
:fearful:
okay reloading the js contexts flushed out the bad cache entries for EU matchups
should be returning correct data now
half expecting it to break during NA reset
:sigh:
Eearslya Sleiarion
@Eearslya
Dec 22 2017 19:13
having fun being back?
okay the EU data is bad
2014 is in two matches currently
good thing there's config.v2.hardcoded_wvw_disaster that's some smart forward thinking
Archomeda
@Archomeda
Dec 22 2017 19:15
:(
there was also #584 where i noticed that some NA matchup had a world in both teams, but the data is different now
literally didn't touch anything
and now the data looks right
5 minutes later
that's not a suspicious time frame
Werdes
@werdes
Dec 22 2017 19:21
i wonder why kodash and fsp are t4 now though? last week t2/t3, should've been t2. weird things happen at relink :sparkles:
Archomeda
@Archomeda
Dec 22 2017 19:29

2206 2205 MS DL ❌ (2206 should be replaced with 2207 Dzag)
2014 2012 GH PS ❌ (2014 should be replaced with 2005 RoF)
2301 BB ✔️

2001 2003 FoW Gand ✔️
2013 2010 AG SFR ✔️
2004 2011 BT Vab ✔️

2206 2204 MS AM ✔️
2202 RS ✔️
2008 2002 WSR Deso ✔️

2105 2101 AS JS ✔️
2009 2007 RoS FSP ✔️
2201 Kod ✔️

2014 2006 GH UW ✔️
2102 2104 2103 FR VS AR ✔️
2203 ER ✔️

this is what i got
matchup 2-1 is showing wrong results
what the hell
Archomeda
@Archomeda
Dec 22 2017 19:47
bleh, i refreshed just before you typed, still wrong; i refreshed right after you typed, updated...
what
I was gonna say it looks like the data matches the configs
what a dumpster fire
Eearslya Sleiarion
@Eearslya
Dec 22 2017 19:48
we can finally bring these back out
:fire: :fire: :fire:
Archomeda
@Archomeda
Dec 22 2017 19:48
and... you didn't do anthing?
i literally haven't touched it since removing the old hardcoded links
it's doing this on it's own
Archomeda
@Archomeda
Dec 22 2017 19:49
someone unleashed the :ghost:
maybe it's become sentient and my frustration guilts it into returning correct data
Archomeda
@Archomeda
Dec 22 2017 19:50
lmao
only 30k loc of javascript to make a general ai
who'da thought
Archomeda
@Archomeda
Dec 22 2017 19:51
i guess you can close #584 later tonight when NA has been relinked and it's correct
well
so I can only make changes from my desktop in the office
and the office closes at 5pm today because holiday
smiley
@codemasher
Dec 22 2017 19:52

maybe it's become sentient and my frustration guilts it into returning correct data

SABRINA! http://store.steampowered.com/app/723270/Rumu/

so ... if NA links screw up I'm not really sure how i'm going to fix it
Archomeda
@Archomeda
Dec 22 2017 19:54
hope for the best
and praise joko ofc
but was the EU data correct on your end before i even posted all the EU worlds?
because then we have EU <-> NA DC differences again i guess
I thought it was but I didn't fully verify it
Archomeda
@Archomeda
Dec 22 2017 19:58
hmm alright, we'll see what happens with NA in... what... 6h?
yeah
Eearslya Sleiarion
@Eearslya
Dec 22 2017 20:04
I thought you could VPN in?
smiley
@codemasher
Dec 22 2017 20:34
that much for using widespread apps to verify your own stuff.... https://github.com/winauth/winauth/issues/449#issuecomment-353670105
smiley
@codemasher
Dec 22 2017 20:49
    public function getHOTPCode($counter = null){
        $counter = (int)$counter;

        $hash    = hash_hmac($this->algorithm, pack('NN', ($counter & 0xFFFFFFFF00000000) >> 32, $counter & 0x00000000FFFFFFFF), $this->secret);

        // hmac test vectors at https://tools.ietf.org/html/rfc4226#page-32
#        var_dump($hash);

        $i     = hexdec(substr($hash, -1))&0x0F;
        $code = unpack('N', substr($hash, $i, 4))[1]&0x7FFFFFFF;

        return str_pad($code % pow(10, $this->digits), $this->digits, '0', STR_PAD_LEFT);
    }
so this seems to be the correct way...