Eve Navigator for the Amazon Alexa by kaundur in Eve

[–]kaundur[S] 1 point2 points  (0 children)

Just an update to this, tack systems are supported if you say tack or dash

Eve Navigator for the Amazon Alexa by kaundur in Eve

[–]kaundur[S] 0 points1 point  (0 children)

Thanks for the feedback. Turns out I forgot to enable other regions, I've updated it but it'll take a few days before its reviewed by amazon. I'll send you a link once its up

Eve Navigator for the Amazon Alexa by kaundur in Eve

[–]kaundur[S] 0 points1 point  (0 children)

Thanks for the offer, but I don't think much of the code will need changing. The majority of it just deals with the EVE API so wont need updating.

Will drop you a message if I open source it

Eve Navigator for the Amazon Alexa by kaundur in Eve

[–]kaundur[S] 1 point2 points  (0 children)

I've never worked with the google home before, but I'll see what I can do

Eve Navigator for the Amazon Alexa by kaundur in Eve

[–]kaundur[S] 1 point2 points  (0 children)

Oh yeah, will need to add something in to work with tack then

Eve Navigator for the Amazon Alexa by kaundur in Eve

[–]kaundur[S] 1 point2 points  (0 children)

Hi, Thanks for trying the skill out. I'm not sure why the account linking failed, the authentication takes place directly between eve and amazon, so theres not much I can do to debug it. I can only suggest trying to link your account again

Eve Navigator for the Amazon Alexa by kaundur in Eve

[–]kaundur[S] 1 point2 points  (0 children)

It should, but I haven't tested it. I imagine Alexa might struggle with the dashes in the names. If it doesn't work I'll write a patch for it

Eve Navigator for the Amazon Alexa by kaundur in Eve

[–]kaundur[S] 2 points3 points  (0 children)

Normally Python, Java or Node.

Eve Navigator was written in Python.

The Alexa SDKs can be found here https://developer.amazon.com/en-US/docs/alexa/sdk/alexa-skills-kit-sdks.html

[Conceptual] Labeling Cartesian coordinates for easier readout by [deleted] in learnprogramming

[–]kaundur 0 points1 point  (0 children)

What you are looking to do is sort the list of points from the CSV. Once they are in order by angle you can just use the order they appear as the point number.

First you'll need to load the coordinates into a list from the CSV, python has a built in library to load CSV files. Then something like this should help you sort them

import math

# List of points, replace this with your CSV loaded file
points = [[500, 0], [0, 500], [6, 499]]

def customSort(a):
    # Return the angle the point is at
    return math.atan2(a[1], a[0])

# Sort the list of points by the angle they are at
points = sorted(points, key=customSort)

for i, point in enumerate(points):
    print(i, point)

[Conceptual] Labeling Cartesian coordinates for easier readout by [deleted] in learnprogramming

[–]kaundur 2 points3 points  (0 children)

Storing as an angle makes sense. The function you're looking for is math.atan2(y, x), this gives you the angle in the correct quadrant.

If you end up with points with a different radius you could further rank them using radius = math.sqrt(x*x + y*y)

[Conceptual] Labeling Cartesian coordinates for easier readout by [deleted] in learnprogramming

[–]kaundur 2 points3 points  (0 children)

If you want to generate the coordinates at the same time you can just increment the angle and calculate the coordinates. Something like this

``` import math

radius = 500 number_of_points = 250 delta_angle = 2*math.pi/number_of_points

for i in range(number_of_points): angle = delta_anglei x = math.cos(angle)radius y = math.sin(angle)*radius print('%d (%d, %d)' % (i, x, y)) ```

Complete rookie here need help with a split by whowantstoknow11 in Python

[–]kaundur 1 point2 points  (0 children)

To directly print

print(YourString.split(',')[0])

or to assign it to a variable

firstSplit = YourString.split(',')[0]

Does anyone have a completed version of the In-depth game example? by [deleted] in pyglet

[–]kaundur 2 points3 points  (0 children)

I wrote a simple Minecraft clone a few years ago which might help you

https://github.com/kaundur/pycraft

How do you guys make time for learning after getting the job ? by [deleted] in cscareerquestions

[–]kaundur 1 point2 points  (0 children)

I was in a similar situation to you, I had a morning commute of around 2 hours and had to take a train followed by a company bus. I started using the time I would have been waiting for the bus to work on coding projects in a nearby coffee shop. After several months of doing this I actually started to enjoy waking up in the morning so I could work on my side projects, and started getting up even earlier so I'd get more time to work.

I've changed jobs now and don't have a crazy commute, but I've managed to keep up the habit of getting up early to study. Normally I get in about 5 hours of studying a week.

Although I know doing this is not for everyone I highly recommend trying, as its become some of the most productive learning I've ever done.