These are chat archives for arenanet/api-cdi

3rd
Feb 2016
windwarrior
@windwarrior
Feb 03 2016 00:19
I managed to crash atom :'(
Archomeda
@Archomeda
Feb 03 2016 00:20
i manage to crash atom fairly regularly actually
windwarrior
@windwarrior
Feb 03 2016 00:24
and again :/
windwarrior
@windwarrior
Feb 03 2016 00:41
I used some funky regex to match what scale range daily fractal achievements were for, all my small tests worked with this funky regex, turns out the api uses proper range signs (), where I was testing with minus signs (-)
right...
I wouldn't expect that to be consistent :/
windwarrior
@windwarrior
Feb 03 2016 00:42
its a match everything now :)
let range_matcher = /scale (\d+).(\d+)/i
windwarrior
@windwarrior
Feb 03 2016 01:53
fractal_buddy.PNG
Initial prototype of the laziest tool ever
read, hack
Archomeda
@Archomeda
Feb 03 2016 01:54
can you also make it so i can be lazy while doing those dailies?
windwarrior
@windwarrior
Feb 03 2016 01:55
its swampland...
Archomeda
@Archomeda
Feb 03 2016 01:55
you missed the point :P
"so i can be lazy" aka let the tool do the work for me :P
i'm just joking ofc, as it's against the tos :D
windwarrior
@windwarrior
Feb 03 2016 01:56
don't think there are API's for that ;)
and also against the TOS, and defeating the purpose of a game
Archomeda
@Archomeda
Feb 03 2016 01:57
not if @Iye implements a websocket that lets us interact with the game :D then it's an official API
although at that point i think it's more a programming challenge than an actual game...
meh, i love gw2 too much for it to be that way
windwarrior
@windwarrior
Feb 03 2016 02:02
Turns out, humans are way better at interpreting fractal scales and achievements than computers are
Archomeda
@Archomeda
Feb 03 2016 02:04
wasn't there a TAS challenge or something like that on AGDQ last month?
i think people had a couple of hours to create a TAS script or w/e that would finish a game
but it was made to be hackable
quite interesting, but it went way over my head :D
windwarrior
@windwarrior
Feb 03 2016 02:06
not seen anything about it
Archomeda
@Archomeda
Feb 03 2016 02:09
iirc it was about 2 players, TASbot and a community submitted entry that were racing each other
with a game that i know nothing about
but it was interesting to see that someone (or some people) actually managed to create a new script within 4 hours
that completes the game
windwarrior
@windwarrior
Feb 03 2016 02:11
The further I come in my education, the more I believe computers are stupid
(And hate them)
Archomeda
@Archomeda
Feb 03 2016 02:12
hahaha, well... they are just about as dumb as the people who programmed them :D
windwarrior
@windwarrior
Feb 03 2016 02:12
and they take every.single.thing as.literal.as.possible
right, sleeping, I should do that
Archomeda
@Archomeda
Feb 03 2016 02:13
same here
cya ;)
windwarrior
@windwarrior
Feb 03 2016 02:14
nn!
Ryan Mast
@nightlark
Feb 03 2016 06:36
thinking about what a websocket api could look like: https://gist.github.com/nightlark/d824c172b31d18870d1e
smiley
@codemasher
Feb 03 2016 10:29
@nightlark use ISO8601 timestamps, those js dudes don't like unix ones :D
guild emblems?
smiley
@codemasher
Feb 03 2016 12:17
so i just ran my dbupdater and noticed that chinese is already available across most endpoints :D
smiley
@codemasher
Feb 03 2016 12:27
wow, full item update with 5 languages in ~11 min
265.000 requests
codemasher/gw2-database@6519892
smiley
@codemasher
Feb 03 2016 13:52
just stumbled across these skins without name https://api.guildwars2.com/v2/skins?ids=1150,2445,6055,6063,6075
Eearslya Sleiarion
@Eearslya
Feb 03 2016 14:30
I wish I had more free time for coding
I'm curious how fast my C API fetcher would do it
smiley
@codemasher
Feb 03 2016 14:32
...and that was not even on a fast line, im curious how it would run on a root server with a 1GBit+ connection :D
Eearslya Sleiarion
@Eearslya
Feb 03 2016 14:34
That's what I have XD
Screw it, I'll see what I can do while at work
Let's see, for only one language, mine takes 29s to fetch, parse, and commit to MySQL
smiley
@codemasher
Feb 03 2016 14:55
heh, so you're bored like me? :D
Edgar Doiron
@Coffee4cr
Feb 03 2016 15:34
@lye not API related per-se, but any plans on being able to save/output chat to a txt file?
smiley
@codemasher
Feb 03 2016 15:37
i wonder why this is still not possible. Wildstar for example has a "save chatlog" option since early beta
Edgar Doiron
@Coffee4cr
Feb 03 2016 15:37
yep always wondered the same
would make dps calculation way easier
than using jaxnx
:P
Edgar Doiron
@Coffee4cr
Feb 03 2016 15:38
also it would make getting dialog on the wiki way quicker
smiley
@codemasher
Feb 03 2016 15:38
thats another thing what makes me wonder - why are you kids all about DPS? :D
Edgar Doiron
@Coffee4cr
Feb 03 2016 15:39
lol, we've been using jaxnx for the raid
just to see where we're lacking
smiley
@codemasher
Feb 03 2016 15:40
so, mostly not in DPS, eh? :D
thats the observation i made at least. people are all about numbers but when it comes to use the brain, they slack :D
Edgar Doiron
@Coffee4cr
Feb 03 2016 15:42
lol
well that's the thing, we're pretty much all zerk or condi depending on our role
so maybe it's just bad rotations
smiley
@codemasher
Feb 03 2016 15:42
i've done enough DoA to know :D
so, the typical DoA trenchway for example uses 2 echoed Energy surge plus a few utils to spike a pull - which works. theoretically.
after many many runs, i've changed the builds of the team to have at least 4 echoed Esurge in so that we get a spike >.<
so that much about DPS and brains
Nabrok
@Nabrok
Feb 03 2016 15:59
Subject should be imperative though I think
Not just because "fixed" is longer than "fix", but because it matches gits own commit messages for merges.
So even if you are consistent, there will still be inconsistencies
Archomeda
@Archomeda
Feb 03 2016 16:42
hahaha, just got an image from someone, please tell me you don't do this: http://i.imgur.com/pLvT6By.png
(ps. he didn't wrote this himself either)
smiley
@codemasher
Feb 03 2016 16:48
ugh
at the very least: he uses phpstorm (which can't help in this situation either...)
Eearslya Sleiarion
@Eearslya
Feb 03 2016 17:11
@codemasher Not much going on here right now (knock on wood) so yes, yes I am.
smiley
@codemasher
Feb 03 2016 17:16
well, i was low on work today and therefore had an early end-of-work :D
(btw. is there no single word for "feierabend" in english?)
windwarrior
@windwarrior
Feb 03 2016 17:36
I'd wish we could make users strict
smiley
@codemasher
Feb 03 2016 17:38
heh
windwarrior
@windwarrior
Feb 03 2016 17:39
I sometimes wished Javascript had typechecking
what you are doing now makes no sense, fix your code
smiley
@codemasher
Feb 03 2016 17:40
thats what i love about php7, finally type hinting for everything
Nabrok
@Nabrok
Feb 03 2016 17:42
@codemasher no single english word. In that context I would have said "finished work early".
smiley
@codemasher
Feb 03 2016 17:43
i'm pretty sure there's no single word for it - that why "is there a german word for that?" is a pretty common thing :D
(and yes, it's true, we have a word for practically anything!)
Nabrok
@Nabrok
Feb 03 2016 17:48
gesundheit and schadenfreude are two words I can think of that English has borrowed relatively recently.
smiley
@codemasher
Feb 03 2016 17:49
what about kindergarten and rucksack? :D
(plus, the latter has a single word in english)
Nabrok
@Nabrok
Feb 03 2016 17:49
True ... I didn't even realize rucksack was German.
Eearslya Sleiarion
@Eearslya
Feb 03 2016 17:54
Bah, I didn't write the main loop of this program with multiple languages in mind..Still, I can only assume it would take 29s * however many languages we have
smiley
@codemasher
Feb 03 2016 17:55
l10n ftw!
Eearslya Sleiarion
@Eearslya
Feb 03 2016 17:55
Let's see how long it takes with an empty SQL table..
Huh, 29s
smiley
@codemasher
Feb 03 2016 17:57
the sql writes are pretty quick in php thanks to prepared statements, the requests and collecting responses is what takes the moost time
Eearslya Sleiarion
@Eearslya
Feb 03 2016 17:57
Guess the MySQL part isn't that intensive
smiley
@codemasher
Feb 03 2016 17:57
i made my script so that it witholds the db-write until it has the data for each language for the given item
which may cause some delay
Eearslya Sleiarion
@Eearslya
Feb 03 2016 17:58
Yeah, I use a curl multi handle to grab them asynchronously
smiley
@codemasher
Feb 03 2016 17:58
so do i
Eearslya Sleiarion
@Eearslya
Feb 03 2016 17:59
Mine does the same, actually. All pages fetched, then all parsed/SQL'd
smiley
@codemasher
Feb 03 2016 17:59
oh, also, i do a diff of each JSON object
which probably costs some time
Eearslya Sleiarion
@Eearslya
Feb 03 2016 17:59
That I do not do!
Edgar Doiron
@Coffee4cr
Feb 03 2016 18:00
I don't think your datapool is big enoguh to waste time doing a diff. just merge insert or something
smiley
@codemasher
Feb 03 2016 18:00
a diff is important to skim out the changes
Edgar Doiron
@Coffee4cr
Feb 03 2016 18:00
but in the end you want them all
smiley
@codemasher
Feb 03 2016 18:00
we track all the item changes to help the wikis
Edgar Doiron
@Coffee4cr
Feb 03 2016 18:00
ah
makes sense
smiley
@codemasher
Feb 03 2016 18:03
(since the german localization team decides to change item names on a daily basis...)
darthmaim
@darthmaim
Feb 03 2016 18:04
"change" sounds like they are improving things
which they are not
smiley
@codemasher
Feb 03 2016 18:04
no, change sounds like, well... change. :D
darthmaim
@darthmaim
Feb 03 2016 18:05
still too neutral for what they are doing to the translations...
smiley
@codemasher
Feb 03 2016 18:05
and hi @darthmaim btw :D
heh
"humiliating"
i'm quite sure, they work in the same office as the twitter UI team...

I'm curious how fast my C API fetcher would do it

@Eearslya mine fetches + parses all items for one language in under a minute (though it doesn't persist them to a database). I'm just using cURL and json-c.

darthmaim
@darthmaim
Feb 03 2016 18:09
me and @Eearslya got our ones both down to < 30s
probably not getting any faster with the amount of requests we have to do

just stumbled across these skins without name

@codemasher, yeah. There's a bunch of them, but IIRC they're referenced by items and such, so removing them would be bad. I actually need to write a script which pulls all the item default_skins and whitelists 'em -- which means there's going to be even more skins without names in the future.

not API related per-se, but any plans on being able to save/output chat to a txt file?

@Coffee4cr not a clue; I don't personally have plans but that'd be under the umbrella of a different department, so.

windwarrior
@windwarrior
Feb 03 2016 18:21
Can imagine it not being very high on the list table
it's a very big table
also did we announce if/when the next pvp season is starting
windwarrior
@windwarrior
Feb 03 2016 18:23
I thought end of feb
Edgar Doiron
@Coffee4cr
Feb 03 2016 18:24
yep, end of february
Archomeda
@Archomeda
Feb 03 2016 18:24
make a special endpoint /v2/table that gives a value that is increased every time when someone requests what that value is
Edgar Doiron
@Coffee4cr
Feb 03 2016 18:24
finals for season one are on..
February 20th
so i expect it to start the next monday
huh yeah, I guess we haven't announced a date yet
windwarrior
@windwarrior
Feb 03 2016 18:25
On February 23, we’ll launch a brand-new in-game PvP League season.
@Archomeda the API frontend can't persist data, so that entails getting a backend server involved.
I'm not sure it's worth the joke
Archomeda
@Archomeda
Feb 03 2016 18:25
aw :(
blammo! thanks @windwarrior
Pat Cavit
@tivac
Feb 03 2016 18:26
@lye technically the frontend can persist data
it's just... not a very good idea
@tivac ssssh
Pat Cavit
@tivac
Feb 03 2016 18:26
and not synced up between the instances
windwarrior
@windwarrior
Feb 03 2016 18:26
for 5 minutes? it is called caching?
we can pull in paxos bindings
Pat Cavit
@tivac
Feb 03 2016 18:26
of which there are 64 now XD
loller
@windwarrior they can write to local disk, I think was the reference
windwarrior
@windwarrior
Feb 03 2016 18:28
the joy of scalable systems
oh you know what? I never turned on /v2/guild/:id/log
I'll do that this afternoon
Edgar Doiron
@Coffee4cr
Feb 03 2016 18:30
haha, I pinged it like 30 minutes ago
windwarrior
@windwarrior
Feb 03 2016 18:32
For those as lazy as I am: http://windwarrior.github.io/GW2FractalDaily/ check how to get rid of those daily fractal achievements as fast as possible ;)
Edgar Doiron
@Coffee4cr
Feb 03 2016 18:35
nice
Nabrok
@Nabrok
Feb 03 2016 19:01
@lye season 2 starts on Feb. 23rd according to the state of the game blog post.
Eearslya Sleiarion
@Eearslya
Feb 03 2016 21:25
@lye Well of course yours is fast, you can fetch 300 pages in 5 seconds where you are XD
I'm using libmysqlconnector and libjansson
ehh the datacenter is in dallas, texas :P
then again I am in the US, so there's that
windwarrior
@windwarrior
Feb 03 2016 21:27
the other datacenter is in germany right?
yeah, in frankfurt
windwarrior
@windwarrior
Feb 03 2016 21:28
350km/220miles away from me
there's some backend services only running in dallas though (the whitelisting bits, specifically) so requests from frankfurt have to fetch stuff across the ocean (though those are all very heavily cached)
50km from here :D
smiley
@codemasher
Feb 03 2016 21:33
(and i still have one of the slowest available lines in the country >.<)
but there's hope, getting VDSL in the next months
Archomeda
@Archomeda
Feb 03 2016 21:35
VDSL? how fast is that again?
smiley
@codemasher
Feb 03 2016 21:36
currently up to 200mbit
darthmaim
@darthmaim
Feb 03 2016 21:36
very fast (thats what the V stands for, maybe?)
Nabrok
@Nabrok
Feb 03 2016 21:36
They're opening up a $5 billion data center about 20 miles from me. Anet should move some servers there!
smiley
@codemasher
Feb 03 2016 21:36
umm, vectoring
darthmaim
@darthmaim
Feb 03 2016 21:36
:P
Archomeda
@Archomeda
Feb 03 2016 21:37
i currently have cable, or w/e the official term is, it's also up to 200 mbit
smiley
@codemasher
Feb 03 2016 21:37
DE-CIX operates internet exchange points in [...], Dallas (DE-CIX Dallas), [...]
Archomeda
@Archomeda
Feb 03 2016 21:37
but my subscription goes up to 120mbit
my upload is 12mbit though :cry:
windwarrior
@windwarrior
Feb 03 2016 21:38
1G/1G <3
smiley
@codemasher
Feb 03 2016 21:38
living in my area is kinda being a masochist
it's great when you want to have some time off from all this modern stuff, tho :D
Archomeda
@Archomeda
Feb 03 2016 21:39
omg @windwarrior, campus network?
windwarrior
@windwarrior
Feb 03 2016 21:39
yep
smiley
@codemasher
Feb 03 2016 21:41
i remember being at a friends at the RWTH Aachen, where he had 300Mbit internet
back in 1997 :D
and there was barely a server which would come close to that
Archomeda
@Archomeda
Feb 03 2016 21:42
lol
i just want fiber... because those connections are symmetrical :(
smiley
@codemasher
Feb 03 2016 21:43
pff, i don't need that much upload anyway
Archomeda
@Archomeda
Feb 03 2016 21:44
sometimes i need it
when i'm uploading a 1GB video to YT
smiley
@codemasher
Feb 03 2016 21:44
does it matter if it takes 1 or 20 minutes?
Archomeda
@Archomeda
Feb 03 2016 21:44
yes of course :D
smiley
@codemasher
Feb 03 2016 21:45
omg, get real, kids! :D
Archomeda
@Archomeda
Feb 03 2016 21:45
but tbh, i've only had my 12mbit upload for 2 years now i think
before that, it was 120/6 mbit
smiley
@codemasher
Feb 03 2016 21:45
i wish i had at least 1mbit >.>
Archomeda
@Archomeda
Feb 03 2016 21:45
20:1 ratio -.-
smiley
@codemasher
Feb 03 2016 21:45
down
Archomeda
@Archomeda
Feb 03 2016 21:46
:(
smiley
@codemasher
Feb 03 2016 21:47
thats what happens when you give the most important infrastructure from government to private hand
Archomeda
@Archomeda
Feb 03 2016 21:47
well... i think it's the same here?
there's basically only 1 provider now that offers high speed internet
if there's no fiber at your place
that 1 provider was previously 2, but each had their own region
smiley
@codemasher
Feb 03 2016 21:48
so it's unprofitable for providers to upgrade thinly populated areas
Archomeda
@Archomeda
Feb 03 2016 21:49
they've merged not too long ago, and now i have issues with it
i suppose
smiley
@codemasher
Feb 03 2016 21:49
thats what it is like over here
Archomeda
@Archomeda
Feb 03 2016 21:49
i can't speak of that, i live in a high-populated area
smiley
@codemasher
Feb 03 2016 21:51
plus: the former government provider is now basically a monopolist which makes it very hard for competitors
Archomeda
@Archomeda
Feb 03 2016 21:51
i can't stand ADSL, it's up to 20 mbit (or w/e variant you have), but it depends heavily on the distance
urgh
smiley
@codemasher
Feb 03 2016 21:51
(unless you're in a big city)
Archomeda
@Archomeda
Feb 03 2016 21:52
sucks :(
smiley
@codemasher
Feb 03 2016 21:53
yea
i mean, i receive 4G with ~85Mbit over here
which is fine
but there are no LTE flatrates at all
and the price/GB is just ridiculous
Edgar Doiron
@Coffee4cr
Feb 03 2016 23:18
@lye is log still going up today?
smiley
@codemasher
Feb 03 2016 23:41
i need this everywhere https://github.com/nvbn/thefuck
Archomeda
@Archomeda
Feb 03 2016 23:43
hahaha :D