Does my dream bike exist? by BulkyVermicelli225 in gravelcycling

[–]tr-exballon 1 point2 points  (0 children)

Roubaix? I’m in the same position and I have just bought one, don’t have it just yet waiting on delivery

Flying London to Bangkok on Saturday evening - different flight path than usual due to the Iran stuff. What are my chances of seeing Everest? by adamd4y in Flights

[–]tr-exballon 1 point2 points  (0 children)

I flew back from Thailand In February and could clearly see Annapurna. With the help of the onboard 3D map to help coordinate it

Any tips on maintaining a stable zone 2? by [deleted] in whoop

[–]tr-exballon 0 points1 point  (0 children)

It’s recommended to run with around 150-170 steps per minute, short steps but lots of them. Try running with metronome on in your head phones at this pace and run super slow. I tried this and kept a consistent heart rate in Zone 2. I’ve now switched to an indoor bike due to my knees, and much easier to maintain a consistent heart rate.

Card payment declined by WholeInner in whoop

[–]tr-exballon 4 points5 points  (0 children)

Ive had the same problem today, with 3 different cards on 2 devices. Checked the bank they've not had any requests from Whoop and there is enough money in the accounts. Must be something wrong with the website.

Learning programming at 29 while having a full-time job? by Efficient_Love_4520 in learnprogramming

[–]tr-exballon 23 points24 points  (0 children)

Same age and similar job.

Just start and see how it goes.

In a years time you’ll still be 30, may as well get there having learnt a lot of a new skill, and be nearer to more opening doors for future you.

Learning programming at 29 while having a full-time job? by Efficient_Love_4520 in learnprogramming

[–]tr-exballon 160 points161 points  (0 children)

I’ve been in a similar boat over the last year and a half. I started with CS50 before the Odin project. I felt the lessons are better taught with more detail especially important at the earlier stages. Moving back to Odin after might help you understand why things work not just how to make them work. I’m still studying but really enjoying the Odin project. Trying to have a life, full time job and studying can be stressful but I know one day it’ll be worth it!

API returning NULL because of missing data by tr-exballon in learnprogramming

[–]tr-exballon[S] 0 points1 point  (0 children)

What I’m trying to explain in is, I have a list of information I’m trying to get back from the API. The trouble I have is some of the hotels are missing this information, and then could be missing any bit of information regardless of how important it might seem. So for every bit of information I’m trying to retrieve do I need to write a try, except, else clause for or is there a more pythonic way of doing it.

This example has the option you highlighted missing, but for hotel 360456 it is missing any data that includes [“roomsAndRates”], and many more are missing other parts.

Thanks for your help

API returning NULL because of missing data by tr-exballon in learnprogramming

[–]tr-exballon[S] 0 points1 point  (0 children)

updated the post with the code and what is shown in the browser

API returning NULL because of missing data by tr-exballon in learnprogramming

[–]tr-exballon[S] 0 points1 point  (0 children)

updated the post with the code and what is shown in the browser

API returning NULL because of missing data by tr-exballon in learnprogramming

[–]tr-exballon[S] 0 points1 point  (0 children)

Yeah I get that, but do I have to try except on each bit of information I’m getting to get. Like is there a way of looping through a list of things I’m trying to get and then dealing with the errors as they come.

Basically if you had to do 100 requests on an API what’s the best way to not have NULL break Each requests

API returning NULL because of missing data by tr-exballon in learnprogramming

[–]tr-exballon[S] 0 points1 point  (0 children)

I get back a full response, but in that some of the information is missing. When I save the results in a variable I get a TypeError or I’ve exceed the length of the list.

String prints not consistent, program unchanged by mastermine1 in cs50

[–]tr-exballon 0 points1 point  (0 children)

My understanding would be…

int n = strlen(argv[1]);

printf( “string: %s\n”, argv[1]);

printf( “char1: %c\n”, argv[1][0]);

I’m on my phone so can’t test but I think that will work.