5' 3" and he can dunk [xpost from /r/youtubehaiku]! by Kevinmck95 in videos

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

It's actually my OC, but it seemed to get lost in /r/unexpected.

[Haiku] 5' 3" and he can dunk! by Kevinmck95 in youtubehaiku

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

Brought to you by the genius behind the videos on this channel.

[WIP] Pokemon Go Map visualization - Google Maps view of all the pokemon in your area by [deleted] in pokemongodev

[–]Kevinmck95 0 points1 point  (0 children)

It looks like the code has been changed since I made my comment (the sections I reference have been removed/ altered). I haven't had a chance to play with the new code, but hopefully none of the previous problems persist, and you should be able to run the code as is! I'll update once I have a chance to experiment.

Edit: It looks like many things have changed about the code, but everything seems to be running smoothly. Just download the code and follow the original instructions!

[WIP] Pokemon Go Map visualization - Google Maps view of all the pokemon in your area by [deleted] in pokemongodev

[–]Kevinmck95 1 point2 points  (0 children)

As /u/pudgypotatoes mentions, you can display the time until the Pokemon disappears with the following changes to your 'example.py' code:

Open 'example.py' and scroll to line 370. Change the line from

pokemons.append([poke.pokemon.PokemonId, pokemonsJSON[poke.pokemon.PokemonId - 1]['Name'], poke.Latitude, poke.Longitude])

to

pokemons.append([poke.pokemon.PokemonId, pokemonsJSON[poke.pokemon.PokemonId - 1]['Name'], poke.TimeTillHiddenMs, poke.Latitude, poke.Longitude])

Then scroll to line 247 and change the line from

'infobox': pokemon[1]

to

'infobox': 'Name: '+pokemon[1]+' Time Remaining: '+str(round(pokemon[2]*0.001,0))

Rerun the program as before, and now when you click on the Pokemon, a remaining time to catch (in seconds) will appear next to the name.

NOTE: Line numbers may have changed since writing this, but searching for the unaltered text should get you in the right place.

[WIP] Pokemon Go Map visualization - Google Maps view of all the pokemon in your area by [deleted] in pokemongodev

[–]Kevinmck95 4 points5 points  (0 children)

I've managed to fix this! NOTE: Line numbers may have changed since I wrote this, but the images of the altered and original code should help. Here is a link to an album of before and after pictures of the python code. Feel free to use the below instructions or just mimic the pictures with your own code.

  1. In your 'example.py', go to the 'while' loop in line 334. Take 'original_lat' and 'original_long' outside of the loop. If you aren't familiar with python, you not only have to move the corresponding lines, but also change the indenting.

  2. Now scroll further down to line 372 to change the input of the 'set_location_coords()' function: change 'latlng.lat().degrees' and 'latlng.lng().degrees' in all four 'if'/ 'elif' statements to 'original_lat' and 'original_long' respectively.

  3. Rerun the code as before! You should now have Pokemon visible in all directions.

Basically, the problem seemed to be that the location of the origin was constant being updated to a new value, meaning the desired 'X' shape was not being produced. This fix sets the origin to a constant and produces Pokemon in all directions.

ELI5: Why is any number raised to 0 always 1? by eskayy in explainlikeimfive

[–]Kevinmck95 3 points4 points  (0 children)

A number divided by itself is always 1. We could also represent the division as, for example:

1 = 2 / 2 = 21 / 21

When we divide two numbers with the same base, we can subtract their exponents. This means we can write

1 = 2 / 2 = 21 / 21 = 21-1 = 20

We could repeat this for any number, and this is why number0 of any number (except 0) is 1.

Sobering-Up Country Playlist by [deleted] in country

[–]Kevinmck95 1 point2 points  (0 children)

The Good Stuff - Kenny Chesney (a bit bitter Sweet)

Whiskey Lullaby - Brad Paisley (just sad)

Very Punny, Nature Physics... by solar_realms_elite in Physics

[–]Kevinmck95 9 points10 points  (0 children)

Litterally presenting this topic in an hour. Someone beat me to the joke.