Can I win my own bike race?

Sdílet
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

Komentáře • 508

  • @The_Sampler
    @The_Sampler Před 2 lety +1349

    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!

    • @genericinternetperson
      @genericinternetperson Před 2 lety +53

      I can't just let Alex drop in on a Mike Boyd video this stealthy and unnoticed. Love your channel!

    • @thedemonhamster
      @thedemonhamster Před 2 lety +6

      yooooo Singletrack Sampler?!??!?!?!??!?

    • @tqminnz1405
      @tqminnz1405 Před 2 lety +5

      It's never too late to have a go Alex. Last year I entered my first DH and my first Enduro. I'm 59.

    • @The_Sampler
      @The_Sampler Před 2 lety +1

      @@genericinternetperson 🥸

    • @danielli5931
      @danielli5931 Před 2 lety

      hes back

  • @earlycomposer4018
    @earlycomposer4018 Před 2 lety +258

    how DARE you disqualify Travis, he won fair and square!

    • @VosperCDN
      @VosperCDN Před 2 lety +18

      Should have been given an Honorary First Place, not DQ'd ...

  • @ravioliravioliravi
    @ravioliravioliravi Před 2 lety +523

    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.

    • @gerda7056
      @gerda7056 Před 2 lety +15

      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

    • @robynb.802
      @robynb.802 Před 2 lety +13

      maybe Mike can provide some tips and his program to fetch the riding times from the website?

    • @mtbewan5632
      @mtbewan5632 Před 2 lety

      Valid

    • @AxxLAfriku
      @AxxLAfriku Před 2 lety

      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

    • @ravioliravioliravi
      @ravioliravioliravi Před 2 lety +5

      @@AxxLAfriku what?

  • @RichardPerfectKiwi
    @RichardPerfectKiwi Před 2 lety +263

    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 🙂

    • @bowel_movement
      @bowel_movement Před rokem +22

      Then telling yourself you'll probably use the code again in the future, but never actually use it again

    • @myname-mz3lo
      @myname-mz3lo Před rokem +9

      laziness is the mother of invention

  • @KevinOMalleyisonlysmallreally

    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.

    • @dandymcgee
      @dandymcgee Před 2 lety +27

      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.

    • @_JS96
      @_JS96 Před 2 lety +9

      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

    • @modellking
      @modellking Před 2 lety +2

      comp-sci studies and working in the field just shows endurance and experience, the mental stuff is exactly the same.

    • @CircusBamse
      @CircusBamse Před 2 lety +3

      I'm just another comp-sci major here to +1 to it being the same feeling

    • @bryansuh1985
      @bryansuh1985 Před 2 lety +2

      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

  • @slatour0694
    @slatour0694 Před 2 lety +142

    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!

    • @woodyjmmacrae6805
      @woodyjmmacrae6805 Před 2 lety +6

      In the best way…

    • @ciaran4712
      @ciaran4712 Před 2 lety +3

      Bro you ultra runners are insane i can barely run a half marathon.

    • @King_fisho_nz
      @King_fisho_nz Před rokem +1

      A local 100 miler 😂 just sounds nuts to a person who doesn’t run more than 10km or so

    • @slatour0694
      @slatour0694 Před rokem +1

      @@King_fisho_nz Yeah, things did kind of spiral out of control. Funny how that happened.

  • @desmond-hawkins
    @desmond-hawkins Před 2 lety +71

    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!

    • @erfer
      @erfer Před 2 lety +3

      I noticed he's using one of JetBrains' products to make a dart app but using Python's IDLE for Python... very strange

    • @-TheBugLord
      @-TheBugLord Před 2 lety +2

      VSCode is such a good tool for hobbyists and professionals alike

  • @tonyb1517
    @tonyb1517 Před 2 lety +128

    A perfect example how the mtb community fuel’s itself to be as sick as it can possibly be 🤟🏻

  • @hi-its-matt
    @hi-its-matt Před 2 lety +23

    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!

  • @faze_oyocop714
    @faze_oyocop714 Před 2 lety +8

    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.

    • @Toca_waffle843
      @Toca_waffle843 Před rokem

      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.

  • @DannySullivanMusic
    @DannySullivanMusic Před 2 lety +3

    I don't mind ads like this because I know they're supporting a great creator

    • @tobyk8125
      @tobyk8125 Před 2 lety

      Yeah, I was thinking what a long ad it was but I didn't mind because scenery + Mike.

  • @LauraJaneWeeTamMTB
    @LauraJaneWeeTamMTB Před 2 lety +7

    What a day it was! Most fun we’ve had in a race for sure 🙌🤟

  • @davidziemelis1593
    @davidziemelis1593 Před 2 lety +8

    As a mountainbiker, i love seeing this kind of content from you

  • @logandihel
    @logandihel Před 2 lety +28

    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

  • @chinmayk8004
    @chinmayk8004 Před 2 lety +15

    I loved every bit of this video. That entrepreneurial spirit to conduct this, the technical challenges... Wow, got thrill sitting at home.Thanks Mike!

  • @nordburger3
    @nordburger3 Před 2 lety +4

    Spectacular to see the mountain biking community come together and have a dandy old time out in the trails, great video Mike.

  • @stanefstefan2875
    @stanefstefan2875 Před 2 lety +26

    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.

  • @kallethegreen8037
    @kallethegreen8037 Před rokem

    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.

  • @Grygong555
    @Grygong555 Před 2 lety +5

    This was just amazing, wholesome, inspiring, truly a testament to human nature and the strive to have fun in life! 👏

  • @rosslyall7369
    @rosslyall7369 Před 2 lety +42

    Im loving this kind content i would love see more mtbing stuff

  • @coachj.landham1254
    @coachj.landham1254 Před 2 lety

    This shows a whole new level to your learning and communications... phenomenal job with everything about this video!

  • @Tassilago
    @Tassilago Před 2 lety +11

    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!

  • @easygoingdude9990
    @easygoingdude9990 Před 2 lety +5

    New mountain biking channel soon? This was fun to watch Mike 😁

  • @Enn-
    @Enn- Před 2 lety +1

    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.

  • @jackridestrails
    @jackridestrails Před 2 lety +1

    Soo much more went into this than I expected… like holy hell! Fair play 👏👏

  • @Saimeren
    @Saimeren Před 2 lety +1

    Cool video as always Mike.
    I always look forward to your uploads.

  • @Gal_Hayner
    @Gal_Hayner Před 2 lety +14

    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)

    • @augustinmoinat761
      @augustinmoinat761 Před 2 lety +4

      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.

    • @Gal_Hayner
      @Gal_Hayner Před 2 lety +1

      @@augustinmoinat761 I assumed he wouldn't need a time over one hour but you can just check the array length.

    • @isaachlloyd
      @isaachlloyd Před 2 lety +1

      @@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.

    • @jacobgrier7247
      @jacobgrier7247 Před 2 lety

      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

    • @Gal_Hayner
      @Gal_Hayner Před 2 lety

      @@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;
      };

  • @RyzawaVT
    @RyzawaVT Před 2 lety

    Funtastic video and cheeky ending too, another Boyd banger of a video!

  • @leopardbrorsan6783
    @leopardbrorsan6783 Před 2 lety

    Wow! This was such a cool idea, great work!

  • @sirplank6564
    @sirplank6564 Před 2 lety +7

    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 👍🏻

  • @eamonsfixes1499
    @eamonsfixes1499 Před 2 lety

    Another awesome video Mike! Loved this one!

  • @gorerath
    @gorerath Před 2 lety

    As always love your new video man, absolutely love the content and look forward to your next video!

  • @karloskarhall
    @karloskarhall Před 2 lety

    This is hugely inspirational, Mike! Thank you. I think I'll have to set something up!

  • @chielhoppen3047
    @chielhoppen3047 Před 2 lety +1

    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👏

  • @TavishT
    @TavishT Před 2 lety +2

    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. :)

  • @rayrod9081
    @rayrod9081 Před 2 lety

    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

  • @ivyisle
    @ivyisle Před 2 lety

    Good on ya mate, proper legend, hope this becomes more popular

  • @lastnamefirstname8655
    @lastnamefirstname8655 Před 2 lety

    nice race, mike!

  • @dot1742
    @dot1742 Před rokem

    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!

  • @briandavidson9960
    @briandavidson9960 Před 2 lety

    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 🤪

  • @danieleolmeda4684
    @danieleolmeda4684 Před 2 lety +1

    Loved the transparency regarding the paid promotion, I usually skip those but I watched this one in full

  • @ablearner7515
    @ablearner7515 Před rokem

    Seeing people just having fun was great 😄😄😄😄

  • @meh3lp
    @meh3lp Před 2 lety

    Really love your videos where you need to code something - it's just too relatable

  • @pietpaulusma5969
    @pietpaulusma5969 Před 2 lety +7

    You seem like an awesome friend to have Mike 👏💪 Amazingly done!

  • @ewan_young
    @ewan_young Před rokem +1

    as an avid mtber this is one of the best videos yet !!

  • @patrickhill4931
    @patrickhill4931 Před rokem

    I hope things are well with you. I have always loved your videos, and hope we get some more soon

  • @MaNameIsYot
    @MaNameIsYot Před 2 lety

    Great job with the code! Can definitely be challenging to get bs4 working first time so good job and love the videos!

  • @aura9173
    @aura9173 Před rokem

    Okay, just the fact you got a Kia sponsorship is amazing! Good job man!

  • @Laerthor
    @Laerthor Před 2 lety +2

    "why isnt everyone doing this"
    "because the top 5 are always professionals"

  • @aspuzling
    @aspuzling Před 2 lety +2

    I love how so many videos these days are a race to get some code working in time.

  • @ryansroad22
    @ryansroad22 Před 2 lety

    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 ☺️☺️🙌🙌

  • @tenfeetwanderers774
    @tenfeetwanderers774 Před 2 lety

    Code refactors and mountain biking. 2 things I can 100% relate to! Nice vid mate.

  • @landinhart2848
    @landinhart2848 Před 2 lety +3

    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

  • @cheezyboy5752
    @cheezyboy5752 Před 2 lety

    Dope video as always man

  • @keeneowen587
    @keeneowen587 Před 2 lety

    Great Job!

  • @freshavocado5012
    @freshavocado5012 Před 2 lety

    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 ;)

  • @bullymaguire-fl2ne
    @bullymaguire-fl2ne Před 2 lety

    This is the earliest I've been on a video
    I love your vids

  • @AlphaStormMusic
    @AlphaStormMusic Před rokem

    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!

  • @christofsalden6511
    @christofsalden6511 Před 2 lety

    Amazing video!

  • @akilrl85
    @akilrl85 Před rokem

    In Finland in addition to enduro series we have Funduro series. Its exactly what kind of real race cup you were longing for.

  • @13thravenpurple94
    @13thravenpurple94 Před rokem

    Great work 🥳🥳🥳 Thank you 💜💜💜

  • @maxlampe4853
    @maxlampe4853 Před 2 lety

    Great idea! Looked like it was an awesome day 🤟

  • @georgestavrakakis5912
    @georgestavrakakis5912 Před 2 lety

    Amazing video!!

  • @hallovelo9573
    @hallovelo9573 Před 2 lety

    I would love to see you try aggressive inline skating

  • @rtgMTB
    @rtgMTB Před 2 lety

    I knew I recognised you from somewhere up ballo the other day with cathro, really cool seeing you guys there.

  • @billy2258
    @billy2258 Před 2 lety

    Such a brilliant idea! Would love to start something like this near me

  • @yl2631
    @yl2631 Před 2 lety

    Sick to see you going down the mtb rabbit hole :D

    • @yl2631
      @yl2631 Před 2 lety

      Oh no we lost him to Strava

  • @Sharon-we5cd
    @Sharon-we5cd Před rokem

    That’s brilliant!

  • @mouse_cop
    @mouse_cop Před 2 lety

    I’m not sure I’ve ever watched through an entire sponsored segment like I have with Mikes video here. That was so entertaining!

  • @ashleyreynolds5780
    @ashleyreynolds5780 Před 2 lety

    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!

  • @savage_x89
    @savage_x89 Před 2 lety

    I love that the dog crushed everyone on the courses :) well done!

  • @darraghobrien1028
    @darraghobrien1028 Před 2 lety

    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

  • @sebahattinsaral
    @sebahattinsaral Před 2 lety

    This is awesome. I’m sure we can arrange something like this!

  • @roydenjons3513
    @roydenjons3513 Před rokem +3

    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!

  • @alex.ronald.s
    @alex.ronald.s Před 2 lety +1

    I really like your mtb content

  • @Sammy93942
    @Sammy93942 Před 2 lety +36

    I'd love to do this with some mates, would it be possible to have a link to the code by chance?

  • @hammad8542
    @hammad8542 Před 2 lety

    Looks amazing 😍

  • @2DevilliveD
    @2DevilliveD Před 2 lety

    Neat video! I actually started biking to work; 4 km back and forth pretty gruesome but a good workout

  • @seanferguson9267
    @seanferguson9267 Před 2 lety

    Your amazing and that looks like it was a lot of fun

  • @DFSqu
    @DFSqu Před 2 lety

    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.

  • @UncleDeath.
    @UncleDeath. Před 2 lety +2

    Love your content keep it up

  • @noellundstrom7447
    @noellundstrom7447 Před 2 lety

    great video, more like this please :)

  • @samuel11188
    @samuel11188 Před 2 lety

    What a amazing vid!

  • @strueygd
    @strueygd Před 2 lety

    The quality of this mans videos is different class

  • @jackiepooman7629
    @jackiepooman7629 Před 2 lety

    That video was everything you would want is one of his videos. You get computer work and physical activity in 13 minutes. Absolutely amazing.

  • @lucascaldas6717
    @lucascaldas6717 Před 2 lety

    I loved this video. Your doing something nice for the community and I come from mtb sp I could relate to all of this

  • @JSouza2606
    @JSouza2606 Před 2 lety

    what a fun video and idea! I would love to participate in these just for the fun

  • @fixandlearn9558
    @fixandlearn9558 Před 2 lety

    loved the video bro

  • @dieocoist1794
    @dieocoist1794 Před 2 lety

    the ending was perfect XD

  • @StarBattle08
    @StarBattle08 Před 2 lety

    This is sick!

  • @quinnmacdonald1546
    @quinnmacdonald1546 Před 2 lety

    good job Mike you should make the code public would love to host a race myself. Again good job.

  • @benjaminhofmann7665
    @benjaminhofmann7665 Před 2 lety +3

    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.

  • @Cudochess3890
    @Cudochess3890 Před 2 lety +1

    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

  • @thomasl6912
    @thomasl6912 Před 2 lety +1

    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?

  • @MR-he2pg
    @MR-he2pg Před 2 lety

    what a job you have, I would love to have a job like this

  • @nxone9903
    @nxone9903 Před rokem

    6:34 goddamn this is exactly spot on

  • @jrisner6535
    @jrisner6535 Před 2 lety +2

    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

  • @tanopol5886
    @tanopol5886 Před rokem

    you should make this into an app so everyone can organisize their own races very easy!

  • @TobiasSample
    @TobiasSample Před 2 lety

    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

  • @hardtailhenry1405
    @hardtailhenry1405 Před 2 lety

    this is amazing