Stuart Greig

@stuartgreigdev
5 Followers
2 Following
68 Posts
Software Developer | Exploring AI & modern CMS | Building things at http://stuartgreig.dev 🦡

I'm going to keep going on about this until everyone I know joins =)
https://app.daily.dev/squads/optimizelytech

Please join my #Optimizely community on daily.dev great place to share articles and insights into the platform

I'm very excited to announce that I have moved from Silver to Optimizely Most Valued Professional (OMVP) Gold status this year!
It had been my goal to achieve this next year so getting it a year early is amazing.
Onwards to Platinum now!
#Optimizely #OMVP #CareerMilestone #ProfessionalGrowth

Need a clean string representation of a color for logging or CSS? 🎨

This extension method standardizes your RGB output. Using string interpolation here isn't just about brevity it ensures your color data is consistently formatted across your entire application

#DotNet #CSharp

Need to convert a System.Drawing.Color to Hex? This extension method is the key
The :X2 format specifier ensures your output is always two-digit hexadecimal, padding with a zero where needed.

Building a dedicated space on daily.dev for all things Optimizely! 🚀

Experimentation, CMS, or Commerce—join our squad to stay ahead of the curve. Let’s learn and grow together!

Join here: https://app.daily.dev/squads/optimizelytech

#Optimizely #WebDev #Experimentation #DailyDev

You don't need an audio file to create a metronome click!

Built this entirely with Web Audio API oscillators.

5 lines of code, exponential envelope, zero file overhead.

Here's how:

#WebAudio #JavaScript

Cool trick: How to make ONE drum sample sound like TWO different drums

I played with playbackRate in Web Audio API and it's surprisingly effective at making different tones

No expensive sample libraries needed! 👇

#WebDev #Audio #JavaScript

Building a drumming app taught me: JavaScript timers SUCK for audio.

After 30 seconds at 180 BPM, setInterval drifts noticeably off-tempo.

The fix? Web Audio API's "schedule ahead" pattern. Here's how it works: 🧵

#WebAudio #JavaScript #WebDev

You can now add operators to classes you didn't write.

Want to "add" two Workshop objects or combine Paths with a +? Use static extension operators in .NET 10.

#SoftwareEngineering #DotNet10 #DotNet

Stop scrolling through thousand-line event logs.

Sort your Kubernetes events by timestamp to see exactly what just broke. It’s the fastest way to spot a CrashLoopBackOff or a failed mount.

#k8s #cloudnative #Kubernetes