These forums have been archived and are now read-only.

The new forums are live and can be found at https://forums.eveonline.com/

EVE Technology Lab

 
  • Topic is locked indefinitely.
Previous page123Next page
 

A challenge with no prize!

First post First post
Author
CCP FoxFour
C C P
C C P Alliance
#21 - 2015-02-05 08:45:19 UTC
Kali Izia wrote:
Steve Ronuken wrote:
Already started working something up Smile


(Implicit flow for oauth as a tip. No need for the secret)

Implicit is great if you're going fully client-side like your app is. But if you have the option of using a server, in my opinion the regular flow is definitely preferable.

For something like a market browser where you're clicking around a lot and might have it open in the background while you're doing other stuff in-game or whatever, you'd probably hit the 20 minute expiry fairly easily.


You can still get the refresh token with implicit though I thought...

@CCP_FoxFour // Technical Designer // Team Tech Co

Third-party developer? Check out the official developers site for dev blogs, resources, and more.

Kali Izia
GoomWaffe
#22 - 2015-02-05 10:53:56 UTC
CCP FoxFour wrote:
Kali Izia wrote:
Steve Ronuken wrote:
Already started working something up Smile


(Implicit flow for oauth as a tip. No need for the secret)

Implicit is great if you're going fully client-side like your app is. But if you have the option of using a server, in my opinion the regular flow is definitely preferable.

For something like a market browser where you're clicking around a lot and might have it open in the background while you're doing other stuff in-game or whatever, you'd probably hit the 20 minute expiry fairly easily.


You can still get the refresh token with implicit though I thought...

As of the last time I checked, nope.
The launcher even gets a 12 hour token to work around that.
CCP FoxFour
C C P
C C P Alliance
#23 - 2015-02-05 11:13:14 UTC
Kali Izia wrote:
CCP FoxFour wrote:
Kali Izia wrote:
Steve Ronuken wrote:
Already started working something up Smile


(Implicit flow for oauth as a tip. No need for the secret)

Implicit is great if you're going fully client-side like your app is. But if you have the option of using a server, in my opinion the regular flow is definitely preferable.

For something like a market browser where you're clicking around a lot and might have it open in the background while you're doing other stuff in-game or whatever, you'd probably hit the 20 minute expiry fairly easily.


You can still get the refresh token with implicit though I thought...

As of the last time I checked, nope.
The launcher even gets a 12 hour token to work around that.


You are correct. Derp.

@CCP_FoxFour // Technical Designer // Team Tech Co

Third-party developer? Check out the official developers site for dev blogs, resources, and more.

Chingy Chonga
Royal Amarr Institute
Amarr Empire
#24 - 2015-02-05 15:25:56 UTC
Oh, I'm definitely in. Forget my other 4 projects I have been working on. This takes precedence this weekend Blink
Pud Li
Doomheim
#25 - 2015-02-07 09:50:42 UTC
Looks interesting. Although the UI colors on the example given by player user in weekly update newsletter were terrible in Chrome (just unreadable vague shadows until certain things were selected).

How about Android apps for EVE ? For people on road or tablet owners to avoid screen cluster on PC/Mac. :)

Got possibilities! Big smile
Chingy Chonga
Royal Amarr Institute
Amarr Empire
#26 - 2015-02-08 06:55:46 UTC  |  Edited by: Chingy Chonga
Greasy Choirboy
White Noise Combine
#27 - 2015-02-09 08:48:43 UTC
Chingy Chonga wrote:


Wow, nice. I doubt mine can stand up to yours but I'll be taking a crack at this at somepoint!
Leokokim
Dark Enlightenment
New Eden Alliance 99013733
#28 - 2015-02-09 14:38:06 UTC
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?
CCP FoxFour
C C P
C C P Alliance
#29 - 2015-02-09 15:15:59 UTC
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?

@CCP_FoxFour // Technical Designer // Team Tech Co

Third-party developer? Check out the official developers site for dev blogs, resources, and more.

Steve Ronuken
Fuzzwork Enterprises
Vote Steve Ronuken for CSM
#30 - 2015-02-09 17:07:40 UTC
Mine now has the ability to set the language Smile (It needs some tweaking, but that's just UI. the functionality is there)

https://www.fuzzwork.co.uk/market/viewer2/



Short version:
CREST sends localised data, depending on the Accept-Language header in the request. So it will default to the language your browser is set for. If you override the header, it'll send in whatever language you want (that it knows)

Woo! CSM XI!

Fuzzwork Enterprises

Twitter: @fuzzysteve on Twitter

Leokokim
Dark Enlightenment
New Eden Alliance 99013733
#31 - 2015-02-10 02:12:48 UTC
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
#32 - 2015-02-10 02:15:23 UTC
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 XI!

Fuzzwork Enterprises

Twitter: @fuzzysteve on Twitter

Chingy Chonga
Royal Amarr Institute
Amarr Empire
#33 - 2015-02-10 02:24:16 UTC
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. Big smile
Chingy Chonga
Royal Amarr Institute
Amarr Empire
#34 - 2015-02-10 04:56:52 UTC
I have language selection in for you. The page will reload if you select a new one while using it.
Ortho Loess
Escalated.
OnlyFleets.
#35 - 2015-02-10 11:36:58 UTC
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
Escalated.
OnlyFleets.
#36 - 2015-02-11 20:37:34 UTC
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 Big smile

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 Smile
Steve Ronuken
Fuzzwork Enterprises
Vote Steve Ronuken for CSM
#37 - 2015-02-11 23:48:58 UTC
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 XI!

Fuzzwork Enterprises

Twitter: @fuzzysteve on Twitter

Ortho Loess
Escalated.
OnlyFleets.
#38 - 2015-02-12 00:35:50 UTC
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 Smile
Chingy Chonga
Royal Amarr Institute
Amarr Empire
#39 - 2015-02-12 07:29:40 UTC
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.

Big smile
TheSmokingHertog
Julia's Interstellar Trade Emperium
#40 - 2015-02-12 16:08:38 UTC
Chingy Chonga wrote:


Very nice

"Dogma is kind of like quantum physics, observing the dogma state will change it." ~ CCP Prism X

"Schrödinger's Missile. I dig it." ~ Makari Aeron

-= "Brain in a Box on Singularity" - April 2015 =-

Previous page123Next page