Firebugs
In the afternoon my aunt messaged me that firebugs, Pyrrhocoris apterus, could be found close to her house. Later, Esme and I walked to her house and I took a photo of the colorfull insects.
In the afternoon my aunt messaged me that firebugs, Pyrrhocoris apterus, could be found close to her house. Later, Esme and I walked to her house and I took a photo of the colorfull insects.
This is my first week at Authzed as a software engineer and I’ve been provided with a new M1-based MacBook Pro as my primary development machine. Apple’s new M1 chip has been receiving high praise for being quiet, battery efficient, and performant, so naturally I was excited to use my new laptop. Turns out, I wasn’t the only one excited to start using M1 MacBook Pros…
Source: Onboarding with an M1, an article by Sam Kim.
There are many great articles written about the Seam Carving algorithm already, but I couldn't resist the temptation to explore this elegant, powerful, and yet simple algorithm on my own, and to write about my personal experience with it. Another point that drew my attention (as a creator of javascript-algorithms repo) was the fact that Dynamic Programming (DP) approach might be smoothly applied to solve it. And, if you're like me and still on your "learning algorithms" journey, this algorithmic solution may enrich your personal DP arsenal.
So, with this article I want to do three things:
- Provide you with an interactive content-aware resizer so that you could play around with resizing your own images
- Explain the idea behind the Seam Carving algorithm
- Explain the dynamic programming approach to implement the algorithm (we'll be using TypeScript for it)
Source: Content-aware image resizing in JavaScript, an article by Oleksii Trekhleb.