The personal journal

A life in progress.

I'm Bojan, a front-end engineer in Italy. A running feed of things I build, learn, read, and get up to.

Behind the notebookAbout me & current projects

The latest 1236 entries

RSS feed
  1. Changelog Improved

    Changed: Font size on mobile

    This website is built on top of the Tailwind CSS framework which most of the time works great, but having the base font size by default set to 16 pixels it seemed in this project too chunky on mobile. After doing some tests and comparisons with other websites …

  2. Calisthenics

    Core day

    Cavallino-Treporti, Italy

    Calisthenics workout on 15 May 2023: 8 exercises, 31 sets. Movements: Inverted Row, Stall Bar Knee Raise, Inverted Hang To Tuck Front Lever, Half-Lay Front Lever, Inverted Hang To Front Lever, Dragon Flag Raise, Lying Straight Leg Raise with Hip Lift, Landmine 180.

    Exercises
    8
    Sets
    31
    Reps
    259
  3. Status

    Check out this insightful article from my colleague engineer Alberto De …

    San Donà di Piave, Italy

    Check out this insightful article from my colleague engineer Alberto De Agostini, where he shares his team’s experience of building a secure, scalable, and maintainable back-office system. Discover the key challenges and solutions they encountered, along with useful tips and best practices for creating Subito’s scalable back-office web application. Don’t miss out on this informative read!

  4. Status

    Since I started playing with the GPX files and understood how data extraction …

    Cavallino-Treporti, Italy

    Since I started playing with the GPX files and understood how data extraction works, I just couldn’t resist the idea of doing some data visualization, so I did some experiments and then went down the rabbit hole. I ended up creating a beautifully animated sparkline graph in SVG and CSS that shows the trends of various measurements.
    It was pretty challenging but I enjoyed it very much, still one bug to solve before releasing it.

  5. Status

    I found a way to upload GPX files directly from Tina with a custom component …

    Cavallino-Treporti, Italy

    I found a way to upload GPX files directly from Tina with a custom component thus bypassing their media gallery, which is great because it was a pain to every time transfer the file to the computer and manually push it. Since I can do that, I decided to go a step further and parse the GPX file immediately in CMS during activity creation instead of saving a path to the file and letting users parse it every time. This also enables me to do some cool analysis in the future.

    The problem with parsing is most of the libraries are built for Node so I needed to do the parsing myself using DOMParser and create functions that can calculate a bunch of pieces of information all of which is new for me.

    After understanding how GPX files are structured and how they work, I did a calculation for all kinds of nerdy stats, like:

    • Speed (min, max, average)
    • Pace (min, max, average)
    • Elevation (min, max, average)
    • Time (idle, moving, total)
    • Distance

    The elevation is a few meters off in my tests because of GPS inaccuracy, and Strava is the only app that manages this very well, not sure how. I also tried also GPX Tracks app but the elevation is always off.

    I’ll do some further tests and publish this new route version in the coming days.