These are chat archives for arenanet/api-cdi

27th
Jun 2016
smiley
@codemasher
Jun 27 2016 00:28
{{Area infobox
| hearts = 303
| waypoints = 507
| points-of-interest = 722
| skill-challenges = 202
...
}}
Math hard?
i seriously can't believe these values are hardcoded in the infobox, but i have to dig through x subobjects to get the region id...
{{#ask:[[Has location type::Region]][[Has canonical name::{{#ask:[[Has location type::Zone]][[Has game id::15]]|?Located in=|mainlabel=-|link=none}}]]|?Has game id=|mainlabel=-}}
just sayin'
Archomeda
@Archomeda
Jun 27 2016 00:46
that syntax isn't making it easier...
then again, i don't speak semantic mediawiki language :D
smiley
@codemasher
Jun 27 2016 00:47
wikicode is a pain in the ass
can't they just switch to markdown?
Archomeda
@Archomeda
Jun 27 2016 00:48
i agree
even forums should switch from using bb-code to markdown
smiley
@codemasher
Jun 27 2016 00:48
including a sane scripting language
Archomeda
@Archomeda
Jun 27 2016 00:48
normal forums i mean, not the gw2 forums specifically
gw2 forums use something else entirely :\
smiley
@codemasher
Jun 27 2016 00:49
oh well, bbcode is fine for people as it is easy to understand and type
;)
gw2 forums use textile, wich is kinda like markdown
but you can also use bbcode, which is more reliable
(i do all the time)
Archomeda
@Archomeda
Jun 27 2016 00:51
also, gw2 forums can be improved, but i don't think it is maintained anymore
software wise
what was it again?
but i didn't know that bbcode also worked
at least it works more reliably for urls and stuff
since last time i broke a link
smiley
@codemasher
Jun 27 2016 00:56
just... don't get me started on how bad this software is... :D
Archomeda
@Archomeda
Jun 27 2016 00:56
and funny how you made a markdown addon for a bbcode parser :P
smiley
@codemasher
Jun 27 2016 00:57
i could output the bbcode to anything
...
Archomeda
@Archomeda
Jun 27 2016 00:58
lol, first hit when i google for "next generation forum software": http://flarum.org/
i was actually looking for something else
that's actually quite nice
smiley
@codemasher
Jun 27 2016 00:59
"read the ... story"
tab closed
Archomeda
@Archomeda
Jun 27 2016 00:59
xD
and i meant your output the bbcode to anything that was actually quite nice
but eh... mediawiki isn't finished? :P
smiley
@codemasher
Jun 27 2016 01:00
because reasons.
Archomeda
@Archomeda
Jun 27 2016 01:01
one thing i don't like is that people like to put their faces on their software or services or w/e they provide
i don't care what the people look like if i visit your site :P
and lol
smiley
@codemasher
Jun 27 2016 01:02
hm?
Archomeda
@Archomeda
Jun 27 2016 01:02
because reasons.
smiley
@codemasher
Jun 27 2016 01:03
oh well... :D
Archomeda
@Archomeda
Jun 27 2016 01:03
but i meant to look for http://www.discourse.org/
smiley
@codemasher
Jun 27 2016 01:04
o forum isn't that hard to write
the problem is a powerful search
Archomeda
@Archomeda
Jun 27 2016 01:04
and i have yet to come across one that does it right
at least from the live forums
smiley
@codemasher
Jun 27 2016 01:04
and the struggle to not bloat the database with the same text over and over
also: XSS
Archomeda
@Archomeda
Jun 27 2016 01:07
luckily i don't have to manage forums :D
smiley
@codemasher
Jun 27 2016 01:11
i had to... for a long time until the server crashed... http://web.archive.org/web/20120307080024/http://worldofpadman.com/forum/
smiley
@codemasher
Jun 27 2016 01:40
<div class="gw2map" data-continent-id="1" data-floor-id="1" data-region-id="-1" data-map-id="-1" data-center-coords="" data-zoom="5" data-language="1" data-controls="0" data-polyline="" data-markers=""></div>
http://wiki.guildwars2.com/index.php?title=Widget:Map_floors/SMWtest&action=edit
hmm, i go to bed...
and by "fixme" i mean "fix the area infobox"
relic
@nukiebaba
Jun 27 2016 03:03
the discussion on adding floor id to the area infobox went poorly.
any time you see a query with Has canonical name, I did not write it.
smiley
@codemasher
Jun 27 2016 12:37
well, they didn't have much use back then. but on the other hand, it's not much of a problem to add this - you wouldn't even have to add anything to the infoboxes, you could just add my test stuff as workaround (the floor_id may be optional as it defaults to 1 in most cases unless you want to display dungeon maps, too):
{{#vardefine:region_name|{{#ask:[[Has location type::Zone]][[Has game id::{{#var:map_id}}]]|?Located in=|mainlabel=-|link=none}}}}
{{#vardefine:region_id|{{#ask:[[Has location type::Region]][[Has canonical name::{{#var:region_name}}]]|?Has game id=|mainlabel=-}}}}
{{#vardefine:continent_name|{{#ask:[[Has location type::Region]][[Has canonical name::{{#var:region_name}}]]|?Located in=|mainlabel=-|link=none}}}}
{{#vardefine:continent_id|{{#ask:[[Has location type::Continent]][[Has canonical name::{{#var:continent_name}}]]|?Has game id=|mainlabel=-|link=none}}}}
Christian
@zeeZ
Jun 27 2016 15:53
this needs more (()) to be even less readable
Christian
@zeeZ
Jun 27 2016 16:07
I thought I hated those thin scroll bars that are easy to miss and you end up dragging random folders into other random folders inside the explorer window on the next screen
but plex's site now has no scroll bars at all
Archomeda
@Archomeda
Jun 27 2016 16:31
awesome right, "less is more!"
smiley
@codemasher
Jun 27 2016 17:02
btw. don't use RLQ.push() unless you need mediawiki js internals
it slows down exceution because it has to wait for RLQ to be available in first place
fun fact: my map is usually the first thing ready because the assets come from faster CDNs than the wiki
ChieftainAlex
@ChieftainAlex
Jun 27 2016 17:49
@codemasher if you need jquery on mediawiki, then you need to wait RLQ.
(widgets only)
smiley
@codemasher
Jun 27 2016 17:50
need jquery
vanilla.js
i have yet to come across a widget that essentially needs jquery
ChieftainAlex
@ChieftainAlex
Jun 27 2016 17:52
jquery is prettier than basic javascript without modules, and jquery is the only one that comes with mw, so I have no choice
you have seen my code, Alex, right? there is not a single jquery call in it
and i'm pretty sure it's cleaner than anything i've seen on the wiki
Pat Cavit
@tivac
Jun 27 2016 17:54
(you can troll on SO, you know)
Edgar Doiron
@Coffee4cr
Jun 27 2016 17:55
talking about Troll, anyone watching Helseth's winning stream? :P
ChieftainAlex
@ChieftainAlex
Jun 27 2016 17:55
your code is disgusting to read smiley lol
Edgar Doiron
@Coffee4cr
Jun 27 2016 17:55
grab popcorn and watch
smiley
@codemasher
Jun 27 2016 17:55
@tivac "sad truth™"
well, alex...
ChieftainAlex
@ChieftainAlex
Jun 27 2016 17:56
and i suspect anything with >= in it isn't IE8 compatible
needs more boxed Numbers
ChieftainAlex
@ChieftainAlex
Jun 27 2016 17:56
:<
smiley
@codemasher
Jun 27 2016 17:58
IE8? are you kidding me?
and right now i'm curious about browser stats from the wiki
@lye perhaps?
nah I'm not allowed to touch PHP
smiley
@codemasher
Jun 27 2016 18:00
haha
also that's outside the purview of the web team I think
smiley
@codemasher
Jun 27 2016 18:01
but you might get a sneak peek into the google analytics, eg?
actually though the wiki has google analytics doesn't it
you'd have to ask @tivac
smiley
@codemasher
Jun 27 2016 18:01
that's what i menat in first place^^
it's a monday and i am a monkey
smiley
@codemasher
Jun 27 2016 18:01
heh
:monkey:
windwarrior
@windwarrior
Jun 27 2016 18:02
Have you perhaps typed shakespear at least one
Pat Cavit
@tivac
Jun 27 2016 18:04
Web team supports IE10+, in general
w/ site preferably not looking totally fuckered in IE9
smiley
@codemasher
Jun 27 2016 18:05
:+1:
windwarrior
@windwarrior
Jun 27 2016 18:05
MS doesnt support IE < 11 anymore either
so it would be ethical to screw up websites in IE < 11, right?
smiley
@codemasher
Jun 27 2016 18:06
noone does support anything that's not current release anymore
polyfills for worst case
Pat Cavit
@tivac
Jun 27 2016 18:07
wiki does have GA, yes. If there's a real reason for needing numbers I can go get them.
so far it sounds like idle curiosity only, and I've got stuff to do
smiley
@codemasher
Jun 27 2016 18:08
not a real reason. Stéphane did that at some point last year. Would be interesting to know, though, so that whe know what we need to support.
Pat Cavit
@tivac
Jun 27 2016 18:08
Oh good, then you should ask him XD
smiley
@codemasher
Jun 27 2016 18:09
hehe, yea maybe he could do that again for all the wikis :D
Stephane 2016edition
@StephaneWithAnE_twitter
Jun 27 2016 18:14
Hi there, yes I can look into that :package:
Edgar Doiron
@Coffee4cr
Jun 27 2016 18:15
lol
Stephane 2016edition
@StephaneWithAnE_twitter
Jun 27 2016 18:15
I used to provide that information, publicly even
Edgar Doiron
@Coffee4cr
Jun 27 2016 18:15
he's been summoned
smiley
@codemasher
Jun 27 2016 18:15
thanks! :D
windwarrior
@windwarrior
Jun 27 2016 18:15
from the depths of Arenanet
Stephane 2016edition
@StephaneWithAnE_twitter
Jun 27 2016 18:15
Are you looking at like the last 3 months?
smiley
@codemasher
Jun 27 2016 18:15
yea, not too long in the past, current data
Stephane 2016edition
@StephaneWithAnE_twitter
Jun 27 2016 18:16
Oh wait I'm catching up and realizing that this request is purely for general info
I'll handle it whenever I can, I'm busy with other things right now
smiley
@codemasher
Jun 27 2016 18:16
for wiki dev info, yes, i was looking it up on your userpage
but couldn't find it anymore
smiley
@codemasher
Jun 27 2016 18:17
yea, this :D
windwarrior
@windwarrior
Jun 27 2016 18:17
thats data from 2013 right?
Stephane 2016edition
@StephaneWithAnE_twitter
Jun 27 2016 18:18
Yep
smiley
@codemasher
Jun 27 2016 18:19
would be great, if you could add some current data - browsers are interesting for (bleeding edge) javascript support.
Stephane 2016edition
@StephaneWithAnE_twitter
Jun 27 2016 18:19
I'll take a look when I can
smiley
@codemasher
Jun 27 2016 18:19
thanks :)
windwarrior
@windwarrior
Jun 27 2016 18:19
awesome!
now with map controls
windwarrior
@windwarrior
Jun 27 2016 18:21
that looks very good @codemasher
Stephane 2016edition
@StephaneWithAnE_twitter
Jun 27 2016 18:21
Wow, this looks cool
smiley
@codemasher
Jun 27 2016 18:21
(hint: treat your API devs with coffee/sweets to get more cool stuff on the map!)
Stephane 2016edition
@StephaneWithAnE_twitter
Jun 27 2016 18:22
You mean better coffee/sweets than the ones in our kitchen? :p
smiley
@codemasher
Jun 27 2016 18:22
hehe, good point. i'm still a bit jealous remembering those pics :D
Stephane 2016edition
@StephaneWithAnE_twitter
Jun 27 2016 18:24
If you know where to go, you can find them
smiley
@codemasher
Jun 27 2016 18:25
yea, guess it isn't that hard nowadays. my aunt used to "import" truckloads of Nutella and stuff back in the '80s
windwarrior
@windwarrior
Jun 27 2016 18:26
(those are not prohibited, the ones with toys inside are)
Christian
@zeeZ
Jun 27 2016 18:26
Ohai Stephan-e
a kinder surprise black market..
smiley
@codemasher
Jun 27 2016 18:29
but guns are ok.
Christian
@zeeZ
Jun 27 2016 18:29
is mochi allowed?
(€: less messy, you know where to find my TL anyway :D)
Stephane 2016edition
@StephaneWithAnE_twitter
Jun 27 2016 22:34
Here are the wiki statistics regarding browser access over the last 3 months: Chrome 65%, Firefox 19%, Safari 6%, Internet Explorer 3%
The non-English wikis follow the exact same order
smiley
@codemasher
Jun 27 2016 22:35
wow, IE just 3%
Thanks @StephaneWithAnE_twitter
Stephane 2016edition
@StephaneWithAnE_twitter
Jun 27 2016 22:35
No worries
smiley
@codemasher
Jun 27 2016 22:36
so webkit/blink based browsers have an overall share of over 70%
EC2016 here we go! (well, and fIErefoex)
which features are you planning to use?
out of curiosity
smiley
@codemasher
Jun 27 2016 22:40
oh well, mostly about dropping polyfills
like fetch
as a note, iOS safari is pretty far behind on features
smiley
@codemasher
Jun 27 2016 22:41
6% coughs
fair
but keep in mind that iOS chrome also uses the same engine iirc
smiley
@codemasher
Jun 27 2016 22:43
it's still the same 6% of users in this case :D
probably
smiley
@codemasher
Jun 27 2016 22:44
might sneak in a "android had that before!"
android's webview only recently got it
and I would argue iOS users are typically running more up-to-date software than android users
smiley
@codemasher
Jun 27 2016 22:45
yea, true. but cyanogenmod is on the rise
windwarrior
@windwarrior
Jun 27 2016 22:46
you are not allowed to use another webview on iOS right
also, on the bottom of CanIUse here are rough stats on JS support of different browsers
smiley
@codemasher
Jun 27 2016 22:49
windwarrior
@windwarrior
Jun 27 2016 22:49
so iOS safari supports 49% of all new candy, where chrome does 88%
smiley
@codemasher
Jun 27 2016 23:17
i'm going to add a "your browser is not fancy enough!" message in case.
2nd map
API on :fire: ?
darthmaim
@darthmaim
Jun 27 2016 23:34
looks good to me?
smiley
@codemasher
Jun 27 2016 23:34
hmm, i have something weird going on there - the zone polys are crazy
darthmaim
@darthmaim
Jun 27 2016 23:38
hmm, not happening for me
there?
darthmaim
@darthmaim
Jun 27 2016 23:39
uhh, now it is
reloaded a few times
smiley
@codemasher
Jun 27 2016 23:39
ok, only on the wiki or also on rawgit?
darthmaim
@darthmaim
Jun 27 2016 23:39
both
smiley
@codemasher
Jun 27 2016 23:40
phew
i'm not crazy
darthmaim
@darthmaim
Jun 27 2016 23:40
but your code is crazy
or api on :fire:
smiley
@codemasher
Jun 27 2016 23:40
why?
darthmaim
@darthmaim
Jun 27 2016 23:41
sometimes it works, sometimes it doesn't
smiley
@codemasher
Jun 27 2016 23:41
i didn't do any changes to the code except copying to the de-wiki and add interwikis :D
@lye halp
uhh
I have no idea lemmie poke some things
smiley
@codemasher
Jun 27 2016 23:47
thanks!
@codemasher is it just the mists
uhh hmm so the new servers for tomorrow's release got deployed it seems
I don't remember breaking how sectors work
smiley
@codemasher
Jun 27 2016 23:49
ahh, so it should be ok in a few, right?
uhhhhhhhhhhhhhhhhhhh
possibly not
smiley
@codemasher
Jun 27 2016 23:49
rains on parade
need to investigate
smiley
@codemasher
Jun 27 2016 23:49
(sorry :D)