These are chat archives for arenanet/api-cdi

5th
Dec 2017
ChieftainAlex
@ChieftainAlex
Dec 05 2017 00:04
yeah it uses v1, i'll figure out the changes required to swap it to v2
yuck v1 :P
ChieftainAlex
@ChieftainAlex
Dec 05 2017 00:09
thing is v1 is pretty convenient for returning an object with keys as map ids for this usage
Archomeda
@Archomeda
Dec 05 2017 00:13
i'm sure it also doesn't use any library for the api, just custom stuff with newtonsoft json
oh well, there isn't any good api wrapper for c# anyway
/shrug
Quaggan BooOOoot
@QuagganBooOOoot
Dec 05 2017 00:13
¯\_(ツ)_/¯
ChieftainAlex
@ChieftainAlex
Dec 05 2017 00:15
it works and you've done all the legwork, so it's great.
Archomeda
@Archomeda
Dec 05 2017 00:17
\o/
at least someone is using it :P
i guess i'm just using it on a rare occasion when i need to know something
ChieftainAlex
@ChieftainAlex
Dec 05 2017 00:17
the things i needed it for were more basic I felt :)
Archomeda
@Archomeda
Dec 05 2017 00:17
but otherwise, i probably used it less than what you've already invested in it
ChieftainAlex
@ChieftainAlex
Dec 05 2017 00:19
as far as I can tell the newtonsoft bit is only to convert the JSON structure into some equivalent in C#
WebClient client = new WebClient(); string jsonString = client.DownloadString("https://api.guildwars2.com/v1/maps.json"); mapJson = JObject.Parse(jsonString);
Archomeda
@Archomeda
Dec 05 2017 00:20
yeah
ChieftainAlex
@ChieftainAlex
Dec 05 2017 00:21
the equivalent is just xml?
Archomeda
@Archomeda
Dec 05 2017 00:21
still crucial :P
no, native C# object
i think it's a dynamic object
so you can just access the properties like they are in the json structure
e.g. [{ id: 1, something: 'here' }] is equivalent to a c# array with 1 element that has the same properties
a dynamic object as no autocompletion btw, so keep that in mind :D
ChieftainAlex
@ChieftainAlex
Dec 05 2017 00:28
this is all way over my head, I only installed vs last night ^^
Archomeda
@Archomeda
Dec 05 2017 00:28
no worries
ChieftainAlex
@ChieftainAlex
Dec 05 2017 00:28
it's been a good intro as to how projects are laid out
Archomeda
@Archomeda
Dec 05 2017 00:28
i suppose
it really was just something quick i wrote
ChieftainAlex
@ChieftainAlex
Dec 05 2017 00:28
24kb is really tiny
Archomeda
@Archomeda
Dec 05 2017 00:29
so there's probably some stuff you don't want to take as a c# lesson :P
ChieftainAlex
@ChieftainAlex
Dec 05 2017 00:29
main thing is it works
;)
Archomeda
@Archomeda
Dec 05 2017 00:29
hmm, tbh 24 kb is still a lot for something like this
the exe only contains the code that's written in the project
not the .net framework or any dependencies
ChieftainAlex
@ChieftainAlex
Dec 05 2017 00:29
it includes my custom icon file
Archomeda
@Archomeda
Dec 05 2017 00:29
oh
ChieftainAlex
@ChieftainAlex
Dec 05 2017 00:29
which tbf is probably 23.99kb
Archomeda
@Archomeda
Dec 05 2017 00:30
well then i guess the icon is taking up a lot of it then :')
ChieftainAlex
@ChieftainAlex
Dec 05 2017 00:30
3kb sorry :package:
Archomeda
@Archomeda
Dec 05 2017 00:31
haha :D
ChieftainAlex
@ChieftainAlex
Dec 05 2017 00:31
just compare it with any other application I've found to extract ingame coordinates and it's lightweight
Archomeda
@Archomeda
Dec 05 2017 00:31
well tbf the json library is separate and a large dll :P
then again, you don't want to do that yourself
but hey, it works :D
ChieftainAlex
@ChieftainAlex
Dec 05 2017 00:32
since its only looking at one api structure it might not be too bad to hardcode the layout.. still cbf
Archomeda
@Archomeda
Dec 05 2017 00:33
the code is also not handling errors that well i think, so i'm still amazed that it works after those years
ChieftainAlex
@ChieftainAlex
Dec 05 2017 00:33
i removed the bit where it flags up the lack of api connectivity lol
Archomeda
@Archomeda
Dec 05 2017 00:33
hm? :D
Archomeda
@Archomeda
Dec 05 2017 00:45
lol, selling the quartz from the new map has been disabled
Eearslya Sleiarion
@Eearslya
Dec 05 2017 10:35
image.png
today's challenge was a little heavy on my loop...
smiley
@codemasher
Dec 05 2017 11:56

<installs VS 2017 on win7>

<install crashes with BSOD 2 times and is impossible to recover>

<starts win 10>

<installs VS>

<runs VS>

<installs plugin>

<VS crashes while installing>

<repairs VS>

codemasher @codemasher throws pc out of the window
smiley
@codemasher
Dec 05 2017 11:57
there are a gazillion reasons why i'll never use anything other than a Jetbrains IDE
VS is just one of them
darthmaim
@darthmaim
Dec 05 2017 12:57
the gemstore categories contain timestamps with both 2017-11-03T16:00:00Z and 02-22-2017T16:00:00Z formats in childLifespans... :confused:
Werdes
@werdes
Dec 05 2017 15:08
oh yes, the vs installation. took 4 hours on my notebook, god knows why
:point_up: 4. Dezember 2017 22:07 @ChieftainAlex google ilmerge
smiley
@codemasher
Dec 05 2017 15:29
i wish i had never touched VS
my win7 installation is quite done now and i'm fucking FURIOUS
BoyC
@BoyC
Dec 05 2017 15:34
this kinda reminds me when installing a uml editor for uni broke my windows install
i'm pretty sure it wasn't the uml editor's fault :P
smiley
@codemasher
Dec 05 2017 15:35
but i'm pretty sure it's microsoft's fault
let alone 20GB install for an advanced text editor...
BoyC
@BoyC
Dec 05 2017 15:36
unless it's something else
smiley
@codemasher
Dec 05 2017 15:36
which is... v unlikely
BoyC
@BoyC
Dec 05 2017 15:36
yeah well i had a randomly unstable system for a while
couldn't pinpoint the issue
until i replaced the power supply 3 times in a week :P
smiley
@codemasher
Dec 05 2017 15:38
lmao
ok, i had fun with cheap memory modules once... but that's a completely different thing
microsoft fucks up constantly since introduction of win 8.1
anything since is alpha channel quality at best
BoyC
@BoyC
Dec 05 2017 15:41
come on, people have been saying that since before win xp
smiley
@codemasher
Dec 05 2017 15:41
i'd switch back to win2k in a heartbeat if it had support for today's hardware
also, we both would agree that the XP UI/UX was worlds ahead of win 8-10, right?
Edgar Doiron
@Coffee4cr
Dec 05 2017 16:10
yes
good thing you can just click on start and type for what you're looking for, cause I don't know where anything is in 8-10
BoyC
@BoyC
Dec 05 2017 16:20
windows button - search is what i always use. i'd miss the hell out of that. the rest is just the same in a different skin
Archomeda
@Archomeda
Dec 05 2017 16:22
eh, you know you can change various options during the vs install right?
you don't have to install everything
Eearslya Sleiarion
@Eearslya
Dec 05 2017 16:22
except every other day I'll hit start and can't type a damn thing
otherwise it's good
smiley
@codemasher
Dec 05 2017 16:24
did y'all forget the search bar in 7?
smiley
@codemasher
Dec 05 2017 16:25
i used to have that installed under win8 but it caused trouble every now and then
the good old game of "3rd parties have to finish the job"
Archomeda
@Archomeda
Dec 05 2017 16:25
i have no issues
okay, now where the hell does cifs-utils actually generates its build output >_>
crosscompiling is a hell
oh wait, it's apparently just in the root folder... a file called mount.cifs.o -_-
smiley
@codemasher
Dec 05 2017 16:31
damn. now i'm sitting here with an unclean upgraded win10, contemplating whether i should keep it or try to get 7 running again...
Archomeda
@Archomeda
Dec 05 2017 16:32
wait... isn't .o an object file...
i'm so bad at compiling linux stuff
smiley
@codemasher
Dec 05 2017 16:51
oh of course microsoft was the reason for the BSODs during the VS install
because apparently the VS installer updated windows in order to continue
and pulled the notorious KB2952664 which fucks up the network lookup and other things aside of causing BSOD
and the best thing is that i cannot uninstall it now
well, technically i can, but it pops up again after a reboot
even though windows update is disabled
FU MICROSOFT
Archomeda
@Archomeda
Dec 05 2017 17:21
aw yeah, i managed to mount a samba network drive on my steam link
although... i don't think i actually had to compile cifs-utils for that........
nope, just rebooted that thing without my compiled modules... and it just works
fml :D
Archomeda
@Archomeda
Dec 05 2017 17:27
eh...
ChieftainAlex
@ChieftainAlex
Dec 05 2017 19:44
heh sounds like @codemasher had a bad time with installing VS 2017... I had gw2 crash + lock my screen up whilst installing it - i could still hear it playing music/installing in the background ... switched it off after 2 hours and hoped it was done
I can't see anything broken on dance-all-over-your-enemies - I guess they fixed it?
smiley
@codemasher
Dec 05 2017 19:45
well that stupid update caused more crashes before and ms keep pushing that shit on me -.-
if you're on win 7 and get random BSOD and network lookups take ages, causing apps to freeze for a while, go and check/uninstall KB2952664
it's the worst
ChieftainAlex
@ChieftainAlex
Dec 05 2017 19:47
:( also kinda surprised there's a 2/pvp/amulets but not a 2/pvp/sigils or 2/pvp/runes..
smiley
@codemasher
Dec 05 2017 21:10
the funny thing about VS is that it still has the good old menu-/button bar layout, like... as if the ribbon menus were a stupid invention :D
(i've never seen a more confusing, unintuitive UI than the office ribbons...)
(this does not include windows 10)
Archomeda
@Archomeda
Dec 05 2017 21:21
@ChieftainAlex yeah, it seems like it's fixed
eh, i like the ribbons tbh
but you do need a high resolution display
having those ribbons on low resolution sucks
smiley
@codemasher
Dec 05 2017 21:25
i mean... what is this even?
image.png
for comparison: an IDE that has probably 10x the amount of functions
image.png
Archomeda
@Archomeda
Dec 05 2017 21:28
you're comparing two different types of applications
smiley
@codemasher
Dec 05 2017 21:28
all office applications used to look like the second one until it went downhill
Archomeda
@Archomeda
Dec 05 2017 21:28
also two different types of target audiences
smiley
@codemasher
Dec 05 2017 21:29
literally all applications used to look like that for a looooong time
Archomeda
@Archomeda
Dec 05 2017 21:29
most people that use office applications don't use keyboard shortcuts, so having the ribbon that exposes more features without hiding them behind tons of menus is a good thing for them
yes, but back then, applications also contained less features
smiley
@codemasher
Dec 05 2017 21:30
um, no?
outlook 2016 for example is an exact copy of outlook 2007 except for updated imap/ssl features
Archomeda
@Archomeda
Dec 05 2017 21:31
are you also complaining that literally every browser doesn't contain the menu bar anymore?
smiley
@codemasher
Dec 05 2017 21:31
same for most of the other office apps
i don't talk about browsers
Archomeda
@Archomeda
Dec 05 2017 21:31
i'm also not looking at only 2007
2007 contained a lot of unused features
you were talking about all applications
smiley
@codemasher
Dec 05 2017 21:32
i'm saying that nothing in ms applications has changed while the UI got worse
Archomeda
@Archomeda
Dec 05 2017 21:32
/shrug
Quaggan BooOOoot
@QuagganBooOOoot
Dec 05 2017 21:32
¯\_(ツ)_/¯
Archomeda
@Archomeda
Dec 05 2017 21:32
people don't like change
smiley
@codemasher
Dec 05 2017 21:33
no, microsoft is just wrong with their current UI philosophy, which is... none
we'll talk again when windows 12 is out
Archomeda
@Archomeda
Dec 05 2017 21:34
smiley
@codemasher
Dec 05 2017 21:34
no
Archomeda
@Archomeda
Dec 05 2017 21:35
well then
smiley
@codemasher
Dec 05 2017 21:35
there is literally no alternative to outlook
Archomeda
@Archomeda
Dec 05 2017 21:35
/shrug
smiley
@codemasher
Dec 05 2017 21:35
i'll challenge you to find one
Quaggan BooOOoot
@QuagganBooOOoot
Dec 05 2017 21:35
¯\_(ツ)_/¯
Archomeda
@Archomeda
Dec 05 2017 21:35
why? i'm not the person who doesn't like the UI
smiley
@codemasher
Dec 05 2017 21:36
you != other people
me != alone
Archomeda
@Archomeda
Dec 05 2017 21:36
you said you challenged me to find an outlook alternative...
smiley
@codemasher
Dec 05 2017 21:37
since you linked libreoffice while claiming it is an alternative to office, yes.
Archomeda
@Archomeda
Dec 05 2017 21:37
and i said, why? as a response to that
smiley
@codemasher
Dec 05 2017 21:38
go play gw2