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 • 509

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

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

    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

  • @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?

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

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

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

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

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

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

  • @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!

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

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

  • @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!

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

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

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

  • @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! 👏

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

  • @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!

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

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

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

  • @ewan_young
    @ewan_young Před rokem +1

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

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

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

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

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

  • @leopardbrorsan6783
    @leopardbrorsan6783 Před 2 lety

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

  • @RyzawaVT
    @RyzawaVT Před 2 lety

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

  • @ablearner7515
    @ablearner7515 Před rokem

    Seeing people just having fun was great 😄😄😄😄

  • @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👏

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

  • @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!

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

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

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

  • @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!

  • @eamonsfixes1499
    @eamonsfixes1499 Před 2 lety

    Another awesome video Mike! Loved this one!

  • @lastnamefirstname8655
    @lastnamefirstname8655 Před 2 lety

    nice race, mike!

  • @ivyisle
    @ivyisle Před 2 lety

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

  • @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 🤪

  • @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?

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

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

  • @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!

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

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

  • @meh3lp
    @meh3lp Před 2 lety

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

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

  • @aura9173
    @aura9173 Před rokem

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

  • @cheezyboy5752
    @cheezyboy5752 Před 2 lety

    Dope video as always man

  • @bloodgain
    @bloodgain Před 2 lety

    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!

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

      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

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

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

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

  • @13thravenpurple94
    @13thravenpurple94 Před rokem

    Great work 🥳🥳🥳 Thank you 💜💜💜

  • @nxone9903
    @nxone9903 Před rokem

    6:34 goddamn this is exactly spot on

  • @ryansroad22
    @ryansroad22 Před rokem

    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 rokem

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

  • @maxlampe4853
    @maxlampe4853 Před 2 lety

    Great idea! Looked like it was an awesome day 🤟

  • @hallovelo9573
    @hallovelo9573 Před 2 lety

    I would love to see you try aggressive inline skating

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

  • @billy2258
    @billy2258 Před 2 lety

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

  • @keeneowen587
    @keeneowen587 Před 2 lety

    Great Job!

  • @savage_x89
    @savage_x89 Před 2 lety

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

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

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

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

  • @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!

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

    Love your content keep it up

  • @MrKo1233
    @MrKo1233 Před 2 lety

    A dog winning a mountain bike race is just the best

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

    That’s brilliant!

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

  • @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!

  • @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!

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

  • @rtgMTB
    @rtgMTB Před rokem

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

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

    Until 5:14 I had no idea where this video was going

  • @hammad8542
    @hammad8542 Před 2 lety

    Looks amazing 😍

  • @sebahattinsaral
    @sebahattinsaral Před 2 lety

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

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

  • @strueygd
    @strueygd Před 2 lety

    The quality of this mans videos is different class

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

    I really like your mtb content

  • @georgestavrakakis5912
    @georgestavrakakis5912 Před 2 lety

    Amazing video!!

  • @christofsalden6511
    @christofsalden6511 Před 2 lety

    Amazing video!

  • @fixandlearn9558
    @fixandlearn9558 Před 2 lety

    loved the video bro

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

    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.

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

      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

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

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

  • @seanferguson9267
    @seanferguson9267 Před 2 lety

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

  • @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!

  • @samuel11188
    @samuel11188 Před 2 lety

    What a amazing vid!

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

  • @hardtailhenry1405
    @hardtailhenry1405 Před 2 lety

    this is amazing

  • @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?

  • @StarBattle08
    @StarBattle08 Před 2 lety

    This is sick!

  • @tanopol5886
    @tanopol5886 Před rokem

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

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

    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.

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

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

    • @bananaSauce6474
      @bananaSauce6474 Před 2 lety

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

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

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

  • @dieocoist1794
    @dieocoist1794 Před 2 lety

    the ending was perfect XD

  • @JSouza2606
    @JSouza2606 Před 2 lety

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