Engineering director @ redlake.tech. High-performance computing, quantitative / numerical coding, reflections on how the field has changed over 25 years.

Joined July 2021
9 Photos and videos
Multi-line f-strings in #python always struck me as nice-to-have syntactic sugar, but I'm automating an ETL workflow and find they're a great code readability tool - multiple flavours of SQL row terminators, field separators etc handled without a mess of if/else spaghetti. Nice.
If you're working with spot-price-discounted VMs in Azure, don't forget to check all your machines are actually running before spending hours debugging odd error conditions in your code. Imagine how embarrassed you'd be if you forgot to do that *ahem*
1
TIL that BULK INSERT from a UNC share on SQL Server requires read/write access to the CSV file being inserted. My intuitions around how file permissions work on Windows always seem slightly out of sync with how it actually works...
1
What do you call an dev env for experiment / prototyping? I recently discovered that some find it misleading if this is called DEV, as that can be mistaken with an environment that is deployed to exclusively via a CI/CD pipeline. What do we call our prototyping environments?
2
No points for saying "production" :)
1
1
My process usually involves prototyping, which sometimes can just be done on my desktop, but sometimes I need other resources to work on. Is that called DEV or something else? (PROTO? SCRATCH? EXP?)
1
I needed to draw a circle in an image. I did it with GIMP but there must be an easier way (GIMP has no shape drawing tools, instead you make a circular selection in a layer and cut it out, it's a hassle) - can anyone recommend an idiot proof drawing tool for the mac?
4
1
Bear in mind that my experience with digital art peaked with DPaint II on the Amiga sometime around 1991.
1
I appear to have set up a kubernetes cluster by accident. I may live to regret it.

ALT accident GIF

1
1
I learned to program in long Irish winters. Now that we have climate changed ourselves into 28-degree weather in August and I don't know if my internal logic unit operates in these conditions.
1
5
Useful instructions for include Google Maps into a React Native app here: medium.com/@kinley.tshering/… When pasting #include <GoogleMaps/GoogleMaps.h> into your AppDelegate.mm, watch out for conditional compiler pragmas so the include gets picked up by XCode!
Updated firmware of the shelly.cloud/ light switch in my kid's room so it works with HomeKit apple.com/ios/home/. I can now tell Siri to turn the light on and off. Firmware update courtesy of github.com/mongoose-os-apps/… - super easy to do and a huge upgrade!

1
1
The shelly relays are absolutely brilliant - cheap and powerful - but it's hard to beat Apple for a good user experience. I could not convince my family to use the Shelly app, but they use Siri all the time.
I was having a lovely time building a react native app for iOS and then I did something unspecified and my build doesn't work anymore. Wah. Time for lunch - the broken build will still be waiting for me when I get back.
1
1
Build pipeline from react source -> destination iOS app is gnarly and I couldn't understand the errors. Experience kicked in - I deleted the project and copied over the bits I needed to a new one. Everything now works. Sometimes, it's best to listen to the smart lady:

ALT Alien Sygourney Weaver GIF

I made a little finger drawing in sketchbook on my phone and saved it to the desktop of my computer via iCloud. It appeared immediately. An "any sufficiently advanced technology is indistinguishable from magic" moment. Wow.
Karl on code retweeted
"Yo, why are #JavaScript and its ecosystem so messy?!" 😑 Well, I am glad you asked... Let me tell you a story! πŸ€“ πŸ§΅πŸ‘‡
18
71
212
I messed up my blog with a badly configured Content-Security-Policy header, so I wrote a post about it. karlstanley.com/posts/conten… I will get to the good stuff eventually I promise!
Agile ways of working are about _reducing_ risk. If fear drives you back towards more control and less agility, you'll also be increasing risk, the very thing you're trying to avoid. Real vs. Faux safety πŸ‘‡
Web-based solution, large team, fragile code base, poor performance. A tool vendor on the project suggested a strategy that's all about retreating into faux safety. Client of @IndustrialLogic asked how we'd help, so I described how to advance with real safety.
2
16
57