Pages: 1 [2] :: one page |
|
Author |
Thread Statistics | Show CCP posts - 5 post(s) |
Leokokim
Mining Industry Exile Foundation Warlords of the Deep
18
|
Posted - 2015.02.10 02:12:48 -
[31] - Quote
CCP FoxFour wrote:Leokokim wrote:Something i just noticed using those apps:
The market groups all show up with their German localized names (I'm from Germany). I am pretty confused though, as I use the English client (and have been doing so since 4y I think) and also switched the eveo website language to english.
Is there some way to change that?
What is your OS language set to?
My OS language on the desktop is German, my browser (Google Chrome) is English. After retrying after 5 min i got English market groups on my desktop PC (I think).
I'm now on my laptop (Xubuntu, English, running Google Chrome, also English), I switched the secure.eveonline language to English again (it somehow changed itself back), but with both http://chingy.tools/market/explorer.html# and Steve's tool (using Default) I get German market groups.
Strange things happening here...
|
Steve Ronuken
Fuzzwork Enterprises Vote Steve Ronuken for CSM
4891
|
Posted - 2015.02.10 02:15:23 -
[32] - Quote
it comes from the accept-language header being passed around.
In firefox, you can set the languages using options-> content->languages
In chrome: settings -> advanced -> languages and input
The default, on my tool, is to default to the browser settings. the others set the header directly.
Woo! CSM 9!
Fuzzwork Enterprises
Twitter: @fuzzysteve on Twitter
|
Chingy Chonga
Ministry of War Amarr Empire
9
|
Posted - 2015.02.10 02:24:16 -
[33] - Quote
If I get some time tonight I will throw in an option and manually set the language if you would like. Just got to finish up a few things. |
Chingy Chonga
Ministry of War Amarr Empire
9
|
Posted - 2015.02.10 04:56:52 -
[34] - Quote
I have language selection in for you. The page will reload if you select a new one while using it. |
Ortho Loess
Pentag Blade Curatores Veritatis Alliance
51
|
Posted - 2015.02.10 11:36:58 -
[35] - Quote
Leokokim wrote:My OS language on the desktop is German, my browser (Google Chrome) is English. After retrying after 5 min i got English market groups on my desktop PC (I think). I'm now on my laptop (Xubuntu, English, running Google Chrome, also English), I switched the secure.eveonline language to English again (it somehow changed itself back), but with both http://chingy.tools/market/explorer.html# and Steve's tool (using Default) I get German market groups. Strange things happening here...
I'm fairly sure that setting language for secure.eveonline.com won't help. The CREST endpoints are at crest-tq.eveonline.com and public-crest.eveonline.com.
Maybe see what happens if you set langage to english for *.eveonline.com? |
Ortho Loess
Pentag Blade Curatores Veritatis Alliance
53
|
Posted - 2015.02.11 20:37:34 -
[36] - Quote
Turns out it take more than a weekend to learn a new language and framework to do this kind of thing!
But I finally have a working submission
http://marketbrowser.ratship.net/
Code is on github if anyone is particularly interested.
There's still things to do: - It doesn't handle it well if you don't select a region (tries to reference a null variable and errors to console) - Changing the region selection doesn't trigger a refresh of the market data, you have to select a new item. - Doesn't handle pagination of results at all. I don't even know if they're paginated... - Very few errors are handled properly. - No sorting of orders.
On the flip side though: It appears to ******* work!!
Was a great little project to use to learn about javascript, angularJS, authed CREST and some other stuff, all at once. A sensible person wouldn't have used a framework like angular while trying to learn javascript, but I'll just have to work out how to do it without the framework later.
I do intend to fix at least some of those issues over the next few days. Want to see FoxFour's entry now |
Steve Ronuken
Fuzzwork Enterprises Vote Steve Ronuken for CSM
4904
|
Posted - 2015.02.11 23:48:58 -
[37] - Quote
Did you run into any problems with using angular.js and oauth? I've not used it myself, but I've heard a few people saying they've not been able to get it working.
Woo! CSM 9!
Fuzzwork Enterprises
Twitter: @fuzzysteve on Twitter
|
Ortho Loess
Pentag Blade Curatores Veritatis Alliance
53
|
Posted - 2015.02.12 00:35:50 -
[38] - Quote
Steve Ronuken wrote:Did you run into any problems with using angular.js and oauth? I've not used it myself, but I've heard a few people saying they've not been able to get it working.
Worked absolutely fine with the implicit auth flow. Getting the data from CREST was straight forward too. Setting headers was just a matter of passing in an object of the strings and it returned the json data as an object (as you'd expect). Especially useful was passing stuff back and forth from the html as objects, so the click handler (done as markup) returned an object that I could pull an href from for the next CREST request.
Framework takes an interesting approach to interacting with the DOM, which I liked. Several easy ways to make the various bits of data available to different parts of the app and a great dynamic injection system.
The promises system was fun to get my head around. Ended up finding a good tutorial on it for jquery, then was able to understand the angular docs. Fun times |
Chingy Chonga
Ministry of War Amarr Empire
10
|
Posted - 2015.02.12 07:29:40 -
[39] - Quote
I went ahead and updated mine again. I added in filtering and sorting of the buy and sell orders. I also put the item that you are looking at on the top of the view so you know what orders you are looking at.
|
TheSmokingHertog
TALIBAN EXPRESS
287
|
Posted - 2015.02.12 16:08:38 -
[40] - Quote
Very nice |
|
Ortho Loess
Pentag Blade Curatores Veritatis Alliance
55
|
Posted - 2015.02.18 00:02:24 -
[41] - Quote
FoxFour, where's your entry?! :P
One thing that came up during this:
As far as I can tell, we all used the regions endpoint to get the list of regions to display in a drop down menu. This is the obvious thing to do, as you need the links from that endpoint to get to the market orders.
However, the list included all the W-space and jove regions. There's only one wormhole system that has a market, so these really don't belong in the list. I couldn't think of any good way to filter them out though, other than to do a further call for each region, and see if it has a description. From looking it seemed that W-Space regions are missing the description, but I didn't check all regions to make sure.
There was little point implementing that, since it would be no less hacky to just include a list of regions to filter on (they really don't change very often!)
Is there a better way? |
Chingy Chonga
Ministry of War Amarr Empire
11
|
Posted - 2015.02.18 00:19:27 -
[42] - Quote
Ortho Loess wrote:FoxFour, where's your entry?! :P
One thing that came up during this:
As far as I can tell, we all used the regions endpoint to get the list of regions to display in a drop down menu. This is the obvious thing to do, as you need the links from that endpoint to get to the market orders.
However, the list included all the W-space and jove regions. There's only one wormhole system that has a market, so these really don't belong in the list. I couldn't think of any good way to filter them out though, other than to do a further call for each region, and see if it has a description. From looking it seemed that W-Space regions are missing the description, but I didn't check all regions to make sure.
There was little point implementing that, since it would be no less hacky to just include a list of regions to filter on (they really don't change very often!)
Is there a better way?
I want to say Steve just did a filter by regions that don't start with W0. |
Steve Ronuken
Fuzzwork Enterprises Vote Steve Ronuken for CSM
4938
|
Posted - 2015.02.18 12:41:58 -
[43] - Quote
Ortho Loess wrote:FoxFour, where's your entry?! :P
One thing that came up during this:
As far as I can tell, we all used the regions endpoint to get the list of regions to display in a drop down menu. This is the obvious thing to do, as you need the links from that endpoint to get to the market orders.
However, the list included all the W-space and jove regions. There's only one wormhole system that has a market, so these really don't belong in the list. I couldn't think of any good way to filter them out though, other than to do a further call for each region, and see if it has a description. From looking it seemed that W-Space regions are missing the description, but I didn't check all regions to make sure.
There was little point implementing that, since it would be no less hacky to just include a list of regions to filter on (they really don't change very often!)
Is there a better way?
if (!value.name.match('.-R00')) {
Is what I did to filter out all the wormhole regions. They all start A to E, dash, R then a bunch of zeros. No other region is named like that, so it's a pretty reliable way to do it :)
Woo! CSM 9!
Fuzzwork Enterprises
Twitter: @fuzzysteve on Twitter
|
|
|
|
Pages: 1 [2] :: one page |
First page | Previous page | Next page | Last page |