Hey friends!
I hope your week was good! Mine was a bit intense, but I'm excited for Leap Day later this week. Onwards!
Was this forwarded to you? You can subscribe here!
Bloom Filters
Making SVG Loading Spinners: An Interactive Guide
Okay, Color Spaces
Express.js Spam PRs Incident Highlights the Commoditization of Open Source Contributions
This was kind of a tough week because I got yet another cold (the joys of having a baby!), BUT outside of that, I got to do some fun things!
Adding an image or video to a project is easy. What's not easy is making sure they look perfect in your app and managing them at scale.
Imagine an e-commerce store with 99,999 products, all with a unique image that need to be displayed in a grid. Sure, you might have an existing image for each of them, but what if you now want to show them in a square? Are you realistically going to go through each and every one of them in Photoshop? Or sure, you can script it, but are you going to manually do that each time? Nah…
✂️ You can simply set your new dimensions on your Cloudinary URL: w_600,h_600,c_fill
💅 Change all backgrounds for consistency: e_background_removal,b_blueviolet
✨ Add some AI Generative Fill to avoid cropping important stuff: b_gen_fill,ar_3:4,c_pad
🧏 And most importantly, make sure those images all have proper alt text by automatically generating them with AI.
This is just scratching the surface… Cloudinary is the Image and Video API that saves you valuable time in delivering the best experience you can for your web and mobile apps.
Check out some examples and learn more: cld.media/cassidydevs
Then get a bonus 3 credits on your free Cloudinary account: cld.media/cassidy
Last week, I had you find the maximum product of word lengths! Awesome work Varenya, Altamish, Maciej, Neil, Amos, Miguel, Ryan, Leandr, Junvic, Ten, Arban, Saad, Mitchell, Alison, Nathael, and Muhammad!
This week's question:
Given a number and a digit to remove from that number, maximize the resulting number after the digit has been removed and print it. You can choose how you want to handle a digit not existing in the number.
Example:
> removeDigit(31415926, 1)
> 3415926 // we picked the second 1 in the number.
> removeDigit(1231, 1)
> 231 // 231 > 123
(you can submit your answers by replying to this email with a link to your solution, or share on LinkedIn, Twitter, Mastodon, or Bluesky)
Thoughts on Shareability
The Dunning-Kruger Effect
On Handwriting And Switching To Cursive
Polycarbonate Kohaku keyboard with Mode Tomorrow keycaps
Why did the opera singer go sailing?
They wanted to hit the high Cs!
That's all for now, folks! Have a great week. Be safe, make good choices, and get yourself a little treat!
Special thanks to IceSloth, Ezell, Sebastián, Ben, and Kinetic Labs for supporting my Patreon and this newsletter!
cassidoo
website | twitter | patreon | github | twitch | codepen | mastodon