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 ...
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?
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
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.
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.
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
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
I loved every bit of this video. That entrepreneurial spirit to conduct this, the technical challenges... Wow, got thrill sitting at home.Thanks Mike!
Spectacular to see the mountain biking community come together and have a dandy old time out in the trails, great video Mike.
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.
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.
This was just amazing, wholesome, inspiring, truly a testament to human nature and the strive to have fun in life! 👏
Im loving this kind content i would love see more mtbing stuff
This shows a whole new level to your learning and communications... phenomenal job with everything about this video!
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!
New mountain biking channel soon? This was fun to watch Mike 😁
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.
Soo much more went into this than I expected… like holy hell! Fair play 👏👏
Cool video as always Mike.
I always look forward to your uploads.
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;
};
Funtastic video and cheeky ending too, another Boyd banger of a video!
Wow! This was such a cool idea, great work!
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 👍🏻
Another awesome video Mike! Loved this one!
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!
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 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. :)
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
Good on ya mate, proper legend, hope this becomes more popular
nice race, mike!
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!
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 🤪
Loved the transparency regarding the paid promotion, I usually skip those but I watched this one in full
Seeing people just having fun was great 😄😄😄😄
Really love your videos where you need to code something - it's just too relatable
You seem like an awesome friend to have Mike 👏💪 Amazingly done!
as an avid mtber this is one of the best videos yet !!
I hope things are well with you. I have always loved your videos, and hope we get some more soon
Great job with the code! Can definitely be challenging to get bs4 working first time so good job and love the videos!
Okay, just the fact you got a Kia sponsorship is amazing! Good job man!
"why isnt everyone doing this"
"because the top 5 are always professionals"
I love how so many videos these days are a race to get some code working in time.
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.
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
Dope video as always man
Great Job!
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 ;)
This is the earliest I've been on a video
I love your vids
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!
Amazing video!
In Finland in addition to enduro series we have Funduro series. Its exactly what kind of real race cup you were longing for.
Great work 🥳🥳🥳 Thank you 💜💜💜
Great idea! Looked like it was an awesome day 🤟
Amazing video!!
I would love to see you try aggressive inline skating
I knew I recognised you from somewhere up ballo the other day with cathro, really cool seeing you guys there.
Such a brilliant idea! Would love to start something like this near me
Sick to see you going down the mtb rabbit hole :D
Oh no we lost him to Strava
That’s brilliant!
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 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!
I love that the dog crushed everyone on the courses :) well done!
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
This is awesome. I’m sure we can arrange something like this!
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!
I really like your mtb content
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
Looks amazing 😍
Neat video! I actually started biking to work; 4 km back and forth pretty gruesome but a good workout
Your amazing and that looks like it was a lot of fun
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.
Love your content keep it up
great video, more like this please :)
What a amazing vid!
The quality of this mans videos is different class
That video was everything you would want is one of his videos. You get computer work and physical activity in 13 minutes. Absolutely amazing.
I loved this video. Your doing something nice for the community and I come from mtb sp I could relate to all of this
what a fun video and idea! I would love to participate in these just for the fun
loved the video bro
the ending was perfect XD
This is sick!
good job Mike you should make the code public would love to host a race myself. Again good job.
Cool Video. If you want to scrape tables, a lot of them can be scraped and written out to Excel/csv by using pandas read_html functionality.
Good
Mr Mike Boyd I like ur videos and i learned so many skills from u
Now I want to learn how to whistle with one hand
Will u put one video about that
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?
what a job you have, I would love to have a job like this
6:34 goddamn this is exactly spot on
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
you should make this into an app so everyone can organisize their own races very easy!
Yeeee Python and BS4! I am glad to see that worked! If that was a dynamic webpage you'd be entering into a world of pain with Selenium lol
this is amazing