Can I win my own bike race?
Vložit
- čas přidán 22. 04. 2022
- If you feel I've earned it you can support the channel here: / mikeboyd
If you prefer, CZcams's "Join" feature, you can support here: / @mikeboyd
Want to give a one-off donation instead? www.buymeacoffee.com/mikeboyd
I am so grateful for any support you choose to give, financial or emotional! 🙏 A portion of this video contains an #ad with Kia.
Click here to check out the KiaEV6 - www.kia.com/uk/new-cars/ev6/
This week I held my own mountain bike enduro race. I used Strava to do the timing and wrote a Python code to calculate the results of the race for me.
Footage credits:
Tweedlove: / @tweedlove8345
McTrail Rider: / macatron86
Laura Jane and Wee Tam: / laurajaneweetammtb
Best Pizza I've ever tasted, Luigi's Pizzeria: luigispizzeria.co.uk/ - Zábava
Hahaha the excuses incoming at the end. Classic! I've never entered a race in my life, but this looks like one I would consider. Just fun with friends in the mtb community and a little friendly competition sprinkled in. Dig it!
I can't just let Alex drop in on a Mike Boyd video this stealthy and unnoticed. Love your channel!
yooooo Singletrack Sampler?!??!?!?!??!?
It's never too late to have a go Alex. Last year I entered my first DH and my first Enduro. I'm 59.
@@genericinternetperson 🥸
hes back
how DARE you disqualify Travis, he won fair and square!
Should have been given an Honorary First Place, not DQ'd ...
Welcome to the club of true programmers Mike! Sees a task that would actually only take 15mins of manual effort - spends three days programming to be automatic 🙂
Then telling yourself you'll probably use the code again in the future, but never actually use it again
laziness is the mother of invention
I'm going to make my own race because of this video. Our local MTB association has done nothing recently so I'll start one myself.
Was thinking the same thing, takes about 2 hours to go to the closest race. Just not sure how and where to start though. Might need to find people to manage budget and stuff
maybe Mike can provide some tips and his program to fetch the riding times from the website?
Valid
WHAT THE WHAT??? i am over 100 years old and still making youtub videos? oh yeah baby. why? because i am the ultimate youtuber. woo woo woo you know it dear kqrl
@@AxxLAfriku what?
The feeling when your code runs, when you're not a comp-sci major or programmer, but just trying to solve a problem, is a fantastic feeling.
Trust me.. majoring in comp-sci and having 15 years of experience doesn't make it any less amazing or enjoyable when you click run and it actually runs.
If professionals regularly face the "why the fu*k isn't this working?.." and "why the fu*k IS this working?.." then this magic is for everyone, haha. I'm a self taught professional, it's been magic from day 1 and every year since
comp-sci studies and working in the field just shows endurance and experience, the mental stuff is exactly the same.
I'm just another comp-sci major here to +1 to it being the same feeling
That feeling when your code runs, except it shouldn't be able to run and you have absolutely no idea how it's working or why
I made an ultrarunning race because we needed a local 100 miler in the fall. It was just supposed to be for me and a few friends. I retired after 8 years but the race is still going strong with over 400 entrants. Watch out when you create a race because it can really get out of hand quickly!
In the best way…
Bro you ultra runners are insane i can barely run a half marathon.
A local 100 miler 😂 just sounds nuts to a person who doesn’t run more than 10km or so
@@King_fisho_nz Yeah, things did kind of spiral out of control. Funny how that happened.
Mike if you read this, here's from a software engineer with 15+ years of professional experience: *great job!* When I saw the web page I thought "I hope he's going to use BeautifulSoup to parse this", and you definitely picked the right tool. A note about this relatable error: "htmll_files is not defined". I'd suggest you look into using a code editor that would flag this for you (a misspelled identifier). Visual Studio Code is a good start, it has many extensions for Python that help a *lot* when writing code in this language. Good luck!
I noticed he's using one of JetBrains' products to make a dart app but using Python's IDLE for Python... very strange
VSCode is such a good tool for hobbyists and professionals alike
A perfect example how the mtb community fuel’s itself to be as sick as it can possibly be 🤟🏻
that ending is satisfying as hell
it actually feels like the end of a story or something rather than just the end of a silly video about coding and mountainbiking.
you crushed it man, amazing video as always and nice bike race!
As a huge car guy, this is the only paid promotion thing on all of youtube that I didn't skip. Thank you KIA, you're welcome Mike.
I'm not really a car fan, just a user and fixer of cheap runabouts, but likewise, I watched it all the way through and would buy one in a snap if (when?) I have the cash.
What a day it was! Most fun we’ve had in a race for sure 🙌🤟
As a mountainbiker, i love seeing this kind of content from you
Oh that is so cool. I love what you did here.Would it be possible that you made the code public so we could also host such races? Thanks for the amazing video and have a good day.
Cool project! Making a web scraper is no easy task even for a seasoned programmer! Glad everything worked out and everyone had a good time. That's what it's all about
Spectacular to see the mountain biking community come together and have a dandy old time out in the trails, great video Mike.
I don't mind ads like this because I know they're supporting a great creator
Yeah, I was thinking what a long ad it was but I didn't mind because scenery + Mike.
I loved every bit of this video. That entrepreneurial spirit to conduct this, the technical challenges... Wow, got thrill sitting at home.Thanks Mike!
Im loving this kind content i would love see more mtbing stuff
Thanks, Mike. Always a great pleasure to watch you challenge yourself.
Hah, I thought "Ikea" had started making cars. Imagine that. ' Use bolt 7.340 to attach item 4001 to item 4002...'.
Cheers from Sweden!
7:30 I would just string.split on the colon into a string array and get the sum of the right and left side in seconds.
code in java:
String time = "1:42";
String[] s = time.split(":");
int timeInSeconds = Integer.parseInt(s[0])*60 + Integer.parseInt(s[1]);
System.out.println(timeInSeconds);
code in python:
time = "1:42"
s = time.split(":")
timeInSeconds = int(s[0]) * 60 + int(s[1])
print(timeInSeconds)
Easy when you know already how to do it, but figuring out the easiest way to achieve that is not easy. Also not bug proof. If I get a time over 1h, then it will count minutes instead of seconds.
@@augustinmoinat761 I assumed he wouldn't need a time over one hour but you can just check the array length.
@@Gal_Hayner never make assumptions when writing functional code for other people:) but yes you should be able to add more code for an array with three feilds.
strng = "1:31:42"
s = strng.split(":")
match len(s):
case 2:
time = int(s[0])*60 + int(s[1])
case 3:
time = int(s[0])*(60**2) + int(s[1])*60 + int(s[2])
print(time)
Even though you could do it with if statements I do like the new match functionality in python 3.10
@@jacobgrier7247
just remembered you can also use a "lambda like" switch to achieve this in java:
String time = "1:31:42";
String[] s = time.split(":");
int timeInSeconds = switch (s.length) {
case 2 -> Integer.parseInt(s[0])*60 + Integer.parseInt(s[1]);
case 3 -> Integer.parseInt(s[0])*3600 + Integer.parseInt(s[1])*60+Integer.parseInt(s[2]);
default -> -1;
};
Loved the transparency regarding the paid promotion, I usually skip those but I watched this one in full
It really is satisfying when it all comes together. I ran into the problem of converting times a few months back, and was delighted when I found the solution and was able to implement it.
This was just amazing, wholesome, inspiring, truly a testament to human nature and the strive to have fun in life! 👏
I love this, personally I think mountain biking is quite an overlooked sport and hopefully people watch this and realise how much fun you can really have! Competitive, downhill, free ride or even just a Sunday ride! It’s so rad. Maybe you should challenge yourself to do the road gap at forest of Dean on the GBU line that would be amazing! Love your work Mike 👍🏻
This shows a whole new level to your learning and communications... phenomenal job with everything about this video!
This was the first video I ever watched of you and I liked the way you transported the feeling of struggling through the programming process.
Thank you for your video.
New mountain biking channel soon? This was fun to watch Mike 😁
as an avid mtber this is one of the best videos yet !!
Cool video as always Mike.
I always look forward to your uploads.
Soo much more went into this than I expected… like holy hell! Fair play 👏👏
Wow! This was such a cool idea, great work!
Funtastic video and cheeky ending too, another Boyd banger of a video!
Seeing people just having fun was great 😄😄😄😄
I love this, ive been trying to make sports more accessible by creating a ranking system outside of club Leagues. That you're literally doing this is just awsome. Great work👏
I love how so many videos these days are a race to get some code working in time.
As always love your new video man, absolutely love the content and look forward to your next video!
This is hugely inspirational, Mike! Thank you. I think I'll have to set something up!
you should release this to public, i use strava for longboarding and i can see where this could be alot of fun for some downhill runs between friends
"why isnt everyone doing this"
"because the top 5 are always professionals"
This is my favourite video to come back to because when I first watched it it blew my mind that Mike integrated multiple skills in one video!
Another awesome video Mike! Loved this one!
nice race, mike!
Good on ya mate, proper legend, hope this becomes more popular
Congrats once again, Mike! Exactly why I keep coming back to your channel. Keep riding hard and having fun - maybe you just need different socks to win the race 🤪
I'd love to do this with some mates, would it be possible to have a link to the code by chance?
yeah but It'll cost you
@@bimbs6443 Why?
@@bimbs6443 Fair
This was such a sweet video, you just enjoying your hobby and making it just a little better by using some things you've learned
I go mountain biking there (sometimes)!! I love ur vids btw it’s always cool to see your videos and see them be filmed in places I know in Scotland and live close too. :)
Great job with the code! Can definitely be challenging to get bs4 working first time so good job and love the videos!
You seem like an awesome friend to have Mike 👏💪 Amazingly done!
Really love your videos where you need to code something - it's just too relatable
I hope things are well with you. I have always loved your videos, and hope we get some more soon
Okay, just the fact you got a Kia sponsorship is amazing! Good job man!
Dope video as always man
A few comments from an experienced professional SW developer:
- Spreadsheet? Why do that? You already have the data and a powerful language to work with it in! That said, for your purposes, it wasn't a _bad_ solution and let you just spit out the data in a simple comma-separated file instead of learning another library.
- "I need to pull this from a webpage" and you found Beautiful Soup. Nailed it! Inexperienced programmers without formal training often reach for something like string parsing or regular expressions, which is a big mistake. Those things are actually incapable of doing the job because of actual theoretical limitations, so only work in very simple cases.
- Pulling that off in 3 days with those limitations, and realizing quickly that the web API wouldn't work for you early on is awesome. I've worked with trained programmers who were well-paid who might not have managed that. Great job!
Thanks for the kind words and feedback! The only reason for the spreadsheet is so people can view their results online. The code actually generated a csv that I then made pretty in excel after the event
The way we did races via Strava during lockdown was for people to send in the Strava files & then combine them into a virtual race, but then you don't get the results until the next day
In Finland in addition to enduro series we have Funduro series. Its exactly what kind of real race cup you were longing for.
Amazing what you are doing in your videos, i love them. Maybe you could make another video where you explain to use your code and post it beneath. Then almost everybody could hold their own amateur races almost everywhere .. this could be a great thing for the Mtb community ;)
Great work 🥳🥳🥳 Thank you 💜💜💜
6:34 goddamn this is exactly spot on
Mate I LOVE that you’re still around, I removed watching some videos you did years ago and totally forgot (I know I’m sorry) but you came to mind and was SO Happy when I found not only is your channel still here but you’re STILL making content. Huge commitment mate glad to see it ☺️☺️🙌🙌
Code refactors and mountain biking. 2 things I can 100% relate to! Nice vid mate.
Great idea! Looked like it was an awesome day 🤟
I would love to see you try aggressive inline skating
There was a kayaking series running a while back in cork called cork race league, it was run on a few weekends over the course of a couple months and the winner was the person who took the biggest % improvement off their first time.
Obviously someone could just sandbag their first run and run away with it, but as far as I know Noone did, everyone was in the spirit of the event and chasing improvment!
Love these friendly comps, planning to try to run my own in septembet
Such a brilliant idea! Would love to start something like this near me
Great Job!
I love that the dog crushed everyone on the courses :) well done!
Sick to see you going down the mtb rabbit hole :D
Oh no we lost him to Strava
This is the earliest I've been on a video
I love your vids
Hi Mike! I love all of the bike videos that you make, and I was wondering, can you ride your bike without using your hands? If you accept this challenge, then, good luck!
Love your content keep it up
A dog winning a mountain bike race is just the best
That’s brilliant!
Neat video! I actually started biking to work; 4 km back and forth pretty gruesome but a good workout
I’m not sure I’ve ever watched through an entire sponsored segment like I have with Mikes video here. That was so entertaining!
I would absolutely be okay if you did this yearly! Not so much the learning to code thing, but just filming the competition. Hell, I would pay a subscription to see it yearly, I think it would be awesome!
I love that you made your own program to get the info you wanted. I'm not expert, but I think Excel Power Query could do this too and might have been easier.
I knew I recognised you from somewhere up ballo the other day with cathro, really cool seeing you guys there.
Until 5:14 I had no idea where this video was going
Looks amazing 😍
This is awesome. I’m sure we can arrange something like this!
That video was everything you would want is one of his videos. You get computer work and physical activity in 13 minutes. Absolutely amazing.
The quality of this mans videos is different class
I really like your mtb content
Amazing video!!
Amazing video!
loved the video bro
Don't get me wrong, I don't mind ads, but it's just ironic when a biking video is sponsored by a car manufacturer. Keep up the work though. This is awesome, something I could never do.
Biggest teams in road racing are sponsored not only by car manufacturers but straight up oil and gas companies. I find more irony when they are sponsored by home supplies, meaning they are more interested in you sitting in comfort next to TV instead of riding
@@feedbackzaloop Interesting, I didn't know that.
I would like to apologize for the snarky comment there then. The end result what Mike pulled off here is much more worth it than whatever I just said.
Your amazing and that looks like it was a lot of fun
I think this is my favorite video of yours. And I think this is what I want to do with my life. Create awesome opportunities for people to come together, and maybe even learn code to help facilitate that! Bringing it into the real world!
What a amazing vid!
I loved this video. Your doing something nice for the community and I come from mtb sp I could relate to all of this
this is amazing
Congratulations for your code and for getting people together. It must be a great feeling making other people laugh.
How did you manage to get away from the typical health and safety regulations and how did you manage to use the land?
This is sick!
you should make this into an app so everyone can organisize their own races very easy!
It would be cool if you make an app for creating your own races, sending em out publicly, inv friends and stuff to download the app and see the race, and start competing.
There's a point where you would need to send out those emails to register everyone with the Strava API. Web scraping isn't a nice thing to do in big numbers:)
@@isaachlloyd does it have to be emails tho? Wouldn’t it be easier if you can do it by messages or link and they have to sign themselves up?
what a job you have, I would love to have a job like this
the ending was perfect XD
what a fun video and idea! I would love to participate in these just for the fun