These are chat archives for arenanet/api-cdi

2nd
Jun 2016
windwarrior
@windwarrior
Jun 02 2016 00:00
I wonder how useful it is tho
ohhh only what events can spawn, not uptimes
right
smiley
@codemasher
Jun 02 2016 00:00
it's useful when you're cherry picking stuff
with ids you got from a different source (aka database)
but anyway, we gotta dig deeper
's okay :D
(wait, i was completely off topic. i should go to bed. :trollface: )
oh, 2am. yes, i should
n8
windwarrior
@windwarrior
Jun 02 2016 00:04
yep
smiley
@codemasher
Jun 02 2016 00:05
(however, it somehow applys to #61 aswell :D)
ugh, /v2/continents isn't already in the repo
@codemasher the good news is that this seems to work (icons on unlock-type POIs) -- so now we'll have proper dungeon markers (kind of).
I'll draft a PR tomorrow for review
Archomeda
@Archomeda
Jun 02 2016 12:29
ehm... @queicherius... something is not right with the crafting order :P
Naamloze afbeelding.png
currently i have 9 lumps of mithrillium, i'm sure you'll see the problem here :)
David Reeß
@queicherius
Jun 02 2016 16:20
What recipe is that?
windwarrior
@windwarrior
Jun 02 2016 16:32
I think it is Prototype
or HOPE
Archomeda
@Archomeda
Jun 02 2016 16:46
prototype yes
David Reeß
@queicherius
Jun 02 2016 16:55
Hm, I can't reproduce that at all... I wonder how that happens. According to my unit tests it should never happen. :sob:
Archomeda
@Archomeda
Jun 02 2016 16:55
:fire: :fire: :fire:
David Reeß
@queicherius
Jun 02 2016 16:56
Also... I just got an email:
Dear Owner of -somewebsiteihave-,

I would like to update about your website [...]

Reasons:
- HTML is used on your website.
Turns out I am doing something very wrong since a very long time
Better just show the users... json? xml? D:
Archomeda
@Archomeda
Jun 02 2016 16:57
wait what
David Reeß
@queicherius
Jun 02 2016 16:58
Was just a random spam email offering web services, but funny that they show what quality to expect directy in the first paragraph
@queicherius gopher!
Archomeda
@Archomeda
Jun 02 2016 16:59
Oh also, apparently I own 2 Developments according to gw2e :D
1 from a character, and 1 from my achievement :D
David Reeß
@queicherius
Jun 02 2016 16:59
Yeah, that's a fun side effect. Ill fix that eventually. ^^
Archomeda
@Archomeda
Jun 02 2016 17:00
do you need my api key for that order bug?
David Reeß
@queicherius
Jun 02 2016 17:00
I already tried everything with the key you gave me last time, but I cant get it to break. :(
Or was that your key?
I am not sure now, yes an API key would be useful. >_>
Archomeda
@Archomeda
Jun 02 2016 17:00
that key doesn't have the required permissions i think
David Reeß
@queicherius
Jun 02 2016 17:01
@lye TIL gopher
Archomeda
@Archomeda
Jun 02 2016 17:02
gave you the key in a pm :)
David Reeß
@queicherius
Jun 02 2016 17:03
What the hell. It actually breaks.
Your key is cursed
Archomeda
@Archomeda
Jun 02 2016 17:03
rofl
maybe related to the 2 components that both use deldrimor?
Archomeda
@Archomeda
Jun 02 2016 17:07
are you able to make a snapshot of it locally? because i'm sure it will be gone as soon i craft my last lump today ^^
David Reeß
@queicherius
Jun 02 2016 17:09
Gimme like an hour or so, if i dont get it during that i'll make a snapshot
Archomeda
@Archomeda
Jun 02 2016 17:09
sure, i'll be doing raids in an hour from now; so i will probably make one somewhere just before reset
ohhh... almost factorio 0.13
Archomeda
@Archomeda
Jun 02 2016 17:15
anyone who knows what factorio is? https://youtu.be/DR01YdFtWFI
windwarrior
@windwarrior
Jun 02 2016 17:23
( slightly related: I got an email from some company in Spain once, they scanned my GitHub and found Python. They wanted to offer me a job as python programmer in Hungary (or alike))
(my email adress is now private on GH)
@windwarrior next-gen recruiters will cross-reference repos you've committed to with those that have gitter communities and start private messaging people job offers.
you're never safe
windwarrior
@windwarrior
Jun 02 2016 17:35
I know, they haunt me
Archomeda
@Archomeda
Jun 02 2016 17:35
they want you
windwarrior
@windwarrior
Jun 02 2016 17:35
but the funny thing is, I have to like do a final project for my university. But six years of studying computer science made me ignore all the companies
and now I need them :')
note to self: network even if you think that is something you "only need in the future"
Archomeda
@Archomeda
Jun 02 2016 17:54
wut
Naamloze afbeelding.png
(new string) :D
wonder if that's localized, lol
Christian
@zeeZ
Jun 02 2016 18:15
Not the new string!
Terminate it before the *camp is overrun -.-
David Reeß
@queicherius
Jun 02 2016 18:20
@Archomedia gw2efficiency/recipe-calculation@e0e1f7e Fixed! It was like you thought, with the components that both use deldrimor. For the first one it has enough the craft it, and then for the second one it merges the deldrimor with the step that already exists but it needs to craft mithril beforehand... Thanks for the report!
@queicherius first time I've seen these repos, but the modularity and documentation for those npm modules looks amazing
maybe s/npm/gw2e/
David Reeß
@queicherius
Jun 02 2016 18:32
@lye Thank you! :blush:
gw2e install gw2e-chat-codes? o.o
I mean they're gw2e modules maybe? In addition to npm modules.
Specificity rules or something, I dunno.
I probably just need more coffee.
David Reeß
@queicherius
Jun 02 2016 18:34
I just chose gw2e as sort of a namespace for the npm modules, but they dont have any external dependencies or anything, and they are designed to be used as modules by whoever wants to use them. :)
David Reeß
@queicherius
Jun 02 2016 18:40
With the exception of https://github.com/gw2efficiency/gw2-api.com, that's just the code for a proxy server.
it's tempting to just add new features to gw2-api.com rather than api.guildwars2.com -- a lot of things are easier since you can persist data :/
David Reeß
@queicherius
Jun 02 2016 18:44
Yeah. It's pretty neat having a DB that you can just query
Archomeda
@Archomeda
Jun 02 2016 18:44
@queicherius nice!
David Reeß
@queicherius
Jun 02 2016 18:45
I am also playing with the thought of something else... which is when crawling the account statistics just dumping the whole "account data" blob into elasticsearch. Then you could jump back in time and look at your account, search through it to generate statistics at different points in time, ...
But 1) i'd need more server capacity for that and 2) i dont know how much more :(
hah yeah that's the nice bit about not having any data retention -- the limits are much easier to reason about
David Reeß
@queicherius
Jun 02 2016 18:47
Currently I'm sidetracked making a neat dev environment with hot reloading and what not, and then i got sidetracked from my sidetrack and built a custom reporter for karma/mocha tests
@lye Well, I am already keeping data for the account statistics in MySQL. That's just a table with id, account, gold, bank_value, material_value, character_value, tradingpost_value, dye_value, wardrobe_value, account_value, miniature_value, liquid_gold and created_at, which is basically just ints. And it's only running since 4 months and nearly 2gb of data...
So I am pretty scared of saving all the data, but it would be soooo cool.
Eearslya Sleiarion
@Eearslya
Jun 02 2016 19:27
Bah, I need to come up with a new project instead of a GW2 website..You guys already have it all covered XD
Christian
@zeeZ
Jun 02 2016 19:31
A GW2 app!
You start it before you go forge a bunch of stuff and when you get a precursor it yells at you to be careful not to stuff that one down the toilet
David Reeß
@queicherius
Jun 02 2016 19:34
So I start it 3 years ago and I never stop it? Q.Q
Eearslya Sleiarion
@Eearslya
Jun 02 2016 19:39
@zeeZ With the API's five-minute-delay? "Hey, you got The Chosen!" "WHAT? WHERE? FFFFFFFFFFFFFFFUUUUUU"
@queicherius Curious, what kind of servers do you have for gw2e anyway?
David Reeß
@queicherius
Jun 02 2016 19:49
@Eearslya 1x ssd1 as a background worker just for account stats, 2x ssd2, one for gw2efficiency.com, one for gw2-api.com (https://www.ovh.co.uk/vps/vps-ssd.xml)
Eearslya Sleiarion
@Eearslya
Jun 02 2016 19:50
Wow, that's a lot less than I expected
David Reeß
@queicherius
Jun 02 2016 19:50
But I eventually want this structure: gw2efficiency/issues#26
Eearslya Sleiarion
@Eearslya
Jun 02 2016 19:52
translate/ts3 could probably be the same
David Reeß
@queicherius
Jun 02 2016 19:52
Yeah, that's the good thing about calculating most things on the client side, and only doing some preprocessing on the server side
These two exist already, but are not managed by me
And the translation thing is pretty resource hungry :/
Eearslya Sleiarion
@Eearslya
Jun 02 2016 19:53
Really? Doesn't seem like something that would be o:
David Reeß
@queicherius
Jun 02 2016 19:53
Also for the longest time efficiency was running on 1€ / month servers at uberspace
Eearslya Sleiarion
@Eearslya
Jun 02 2016 19:53
Honestly I'm surprised you're managing to stay under $10/mo
David Reeß
@queicherius
Jun 02 2016 19:53
Until wooden potatoes made me switch because the traffic was too much (got a mail from the hoster I should switch or take the site down)
Eearslya Sleiarion
@Eearslya
Jun 02 2016 19:53
Especially with bandwidth
David Reeß
@queicherius
Jun 02 2016 19:54
Thats the good thing about ovh, they might not be the most reliable, but they sure are cheap. :D
Eearslya Sleiarion
@Eearslya
Jun 02 2016 19:54
Don't usually see unmetered at that low of a pricetag
David Reeß
@queicherius
Jun 02 2016 19:55

Really? Doesn't seem like something that would be o:

Yeah... I just saw some graphs of that server, i dont actually have access, and it was looking pretty bad.

Eearslya Sleiarion
@Eearslya
Jun 02 2016 19:56
I've got an esxi box with some space available if need be; is it CPU or RAM intensive?
David Reeß
@queicherius
Jun 02 2016 19:58
No worries, for now its working. I think it was pretty CPU intensive when people changed things.
I gotta set it up again anyway I think, since the host its running on right now is :fire: nearly all the time and it's annoying me. :<
Eearslya Sleiarion
@Eearslya
Jun 02 2016 19:59
Yeah, CPU is something I have plenty of.. XD
I have 2 6-core Xeons in that server (so 24 logical) and it's running..a few webservers, a couple game servers, and 2 mostly idle windows vms
David Reeß
@queicherius
Jun 02 2016 20:01
I'd rather stay with separated vservers where it's the hosters problem what I do with it.
Eearslya Sleiarion
@Eearslya
Jun 02 2016 20:01
I just wish I had my own coding project ideas..Preferably something with both front and backend
David Reeß
@queicherius
Jun 02 2016 20:03
I nearly took down the second server structure I was on when I first added account value backend crawling, because it was pretty cpu heavy (and everything was running more parallel that right now) and the vms were sharing all the resources without limits
Eearslya Sleiarion
@Eearslya
Jun 02 2016 20:04
Ah. Yeah, I think that's pretty much the way I have my VM server at the moment. Each VM has a number of virtual cores and RAM, but I'm not sure how it's handled behind the scenes
David Reeß
@queicherius
Jun 02 2016 20:10
I usually just make things that I want to use. Like something I made was putting in what I ate and it learned my tastes and recommended what to cook for the day / gave shopping lists.
That stopped working when I got lazy and never added anything. :<
And I sometimes read through https://www.reddit.com/r/somebodymakethis
Pat Cavit
@tivac
Jun 02 2016 20:13
yeah I'm most successful when I'm solving a problem for myself
Eearslya Sleiarion
@Eearslya
Jun 02 2016 20:14
Yeah, the problem with that is I can only think of GW2-related stuff. And then I go look at the other 5622 gw2 sites and they've got it covered.
Pat Cavit
@tivac
Jun 02 2016 20:16
I end up solving weird problems for myself.
David Reeß
@queicherius
Jun 02 2016 20:20
Weird problems are the best problems.
windwarrior
@windwarrior
Jun 02 2016 20:36
making stuff for GW2 is like accepting that you hear "GW2Efficiency did it"
so I tend to make more specialized tools and let @queicherius make the overview-y tools
@queicherius have you looked at hetzner's offerings? They've got a more restrictive ToS than OVH, but their prices/SLA have always seemed better.
David Reeß
@queicherius
Jun 02 2016 21:29
@lye I did, yeah. The prices would be more expensive for me. Most of the things are pretty ram hungry too, and I get ~double the ram at OVH
Maybe one day when stuff is a little more polished. :(
fair; it's been like a decade since I had to investigate prices
for my side projects we moved pretty much everything over to 100TB (whose prices were competitive about 5-6 years ago)
(and for personal stuff I'm more likely to just host off my home network >_>)
Eearslya Sleiarion
@Eearslya
Jun 02 2016 21:34
@tivac +1 for creative repo names
as a related aside: modular-css is amazing for writing vanilla CSS that targets individual views within a single-page application (less foot-shooty than using less/sass with per-page id selectors)
windwarrior
@windwarrior
Jun 02 2016 23:07
ohh its like browserify for css
thats clever
Eearslya Sleiarion
@Eearslya
Jun 02 2016 23:24
Modular CSS, browserify, gulp...Jeez, I've only just gotten used to jquery
windwarrior
@windwarrior
Jun 02 2016 23:25
import all the things, dont write a 11 line function like leftPad, just get it from npm
wont break at all
javascript needs like a standard library that is at least half sane
David Reeß
@queicherius
Jun 02 2016 23:34
While thats possibly true (pls give .contains for arrays ;_;), it's something awesome about npm when you want to write something and you only have to import 5 modules and tie them together with like 20 lines of code
windwarrior
@windwarrior
Jun 02 2016 23:35
npm has its own share of problems
the leftPad debacle showed that
and importing all the things makes your dependency chains super deep
(like I'm okay with importing stuff for "hard" problems like timezones, but not for every single stupid thing you want like leftPad)
but well these problems show when a language has no solid standard library
David Reeß
@queicherius
Jun 02 2016 23:42
I think this discussion was already somewhere in the past. :D
I mean in this chat
@queicherius ary.some((x) => expr(x))
David Reeß
@queicherius
Jun 02 2016 23:43
x.contains(y) vs x.indexOf(y) !== -1 vs x.some(a => a === y) :P
I usually write indexOf right now... but i'll remember some when I wanna do expressions
I am generally a fan of map, filter, reduce and the like
Makes for pretty code
you can do what I did yesterday and use y in ary
windwarrior
@windwarrior
Jun 02 2016 23:44
or if (arr.filter(x => x === y))
and then be really confused why 1 in [1,2,3] === true but 3 in [1,2,3] === false
@windwarrior [] == true though
windwarrior
@windwarrior
Jun 02 2016 23:45
empty arrays are falsey, non-empty are truish
is it?
am I this stupid this late?
no, you're right
[] == false && Boolean([]) == true
because javascript hates you
windwarrior
@windwarrior
Jun 02 2016 23:47
yep, and [] + {} = 0 while {} + [] = "[object Object]"
David Reeß
@queicherius
Jun 02 2016 23:47
For me var a = []; if (a) { console.log('as') } logs out
So @lye is right D:
windwarrior
@windwarrior
Jun 02 2016 23:47
o.O
but [] == true gives me false
guessing == coerces differently than expr
windwarrior
@windwarrior
Jun 02 2016 23:48
javascript :/
(i.e, an arbitrary expression doesn't coerce at all)
windwarrior
@windwarrior
Jun 02 2016 23:48
and this is why I like type checking
this is why I like whiskey
David Reeß
@queicherius
Jun 02 2016 23:48
You would probably not want to use filter in that case anyway, find would be much better
windwarrior
@windwarrior
Jun 02 2016 23:48
that is true
who knew a type coercion table could be turing complete :|
windwarrior
@windwarrior
Jun 02 2016 23:52
yeah...
Javascript is a funny language
this post is also gold, someone trying to print "Hello World" in python without using string or int literals