How To Receive Twilio Messages In MongoDB Atlas Functions

Overview There's plenty of documentation about how to send an SMS via Twilio, but very little about how to receive one. Receiving one in a MongoDB Atlas Function involves an extra complication. By the end of this post you'll know how to receive a text in Twilio, and have it successfully interact with your MongoDB Atlas Function. I'll also cover a couple nice-to-have's in Twilio that you'll probably want to set up anyway.

I used AI to generate products & write copy for my store

Table of Contents Quick Summary It started as a joke… The work Begins… Generating images Prepping images RedBubble The site Know Thyself That Sweet Marketing Copy Final Thoughts Will I share my code? What’s my favorite? So Many Images Quick Summary I used Midjourney to generate art that I threw on t-shirts, coasters, and almost everything else RedBubble offers. Then I used OpenAI to generate copy for it, and combined that with a handful of custom scripts to generate a product site called Bed Bath & The Beyond.

Twitter Employees Should Take the Severance

Musk has given the remaining employees an ultimatum: come back to the office, sign up for 'hardcore' work, or take 3 months severance and get out. Acknowledging that there are some people who can't really say "no" because of visa issues, or other complicated home situations…. Aside from them, who would say "Yes! Sign me up for 'hardcore' working hours… for a boss who regularly fires people who politely correct his lies about your work, in a place where morale is going to be "in the shitter" for a very long time in a place where incredibly important sections of the staff have been fired in a place where you can't trust the boss's claims from day to day where 40hrs probably won't be enough.

A Rebuttal to Scaling Mastodon is Impossible

Armin Ronacher wrote that Scaling Mastodon is Impossible I'd like to offer a rebuttal. As someone who's been doing professional web development since 1995, with most of that time being spent in Rails jobs, or doing Rails work on the sidelines, I think i have a pretty good perspective on the situation. For those who don't know, Mastodon is written in Ruby on Rails. Decentralization promotes an utopian view of the world that I belief fails to address actual real problems in practice.

A Journey With Midjourney

Exploring an Idea With Midjourney I haven’t seen anyone talk about what it’s like to try and work with Midjourney, or any of the other Image AIs. No-one has shown just how much work it takes to get from an idea, to the beautiful output we keep seeing. This post will take you through the journey, from a spark of colorful and strong Native American imagery, depressed cyborgs, to visions of Muslim women, in a dry and trying future.

Private Comments & Your Security

Summary While leaving "private comments" on a repo can be incredibly useful, it can get you into trouble if the wrong person sees them and disagrees with what they see. This post goes into the problems, consequences, and things that tools that provide this functionality need to do to protect their users from accidental harm. Some Context A while ago I wrote a tool called "Private Comments", which allows you to leave "private comments" on a codebase that aren't actually in the codebase.

Recording & Sharing Terminal Sessions

This post describes how to make high quality recordings of terminal sessions that can be replayed in the terminal, or shared on the web. I'm defining high quality as recordings with zero typos, and relatively controlled timing between commands. Jump to the end to see an example of the type of output I'm talking about. Why? Videos and gifs take up a lot of disk space, don't age well as display technology improves, and are problematic for folks low vision requirements.

Raku Signature Errors with Arrays & Hashes

A quick post to help future Raku geeks understand a couple of confusing error messages: expected Positional[Array] but got Array and expected Associative[Hash] but got Hash These are conceptually the same problem. If you've received one of these errors it means you've double-specified your parameter by using the @ or % and Array or Hash. A parameter of Hash %foo says "I would like to be passed something that implements Associative and has a Hash in it.

Mirroring With Gitea

Table of Contents Overview The Goal The Process The Learnings Overview Following on the heels of my last post on why you should (not) self host your git repos, I went ahead and used Gitea to set up a local mirror of all my repositories, and all the repositories I don’t want to loose access to. The results were surprising, and after reading this, you might want to do the same.

Do (not) Self-Host your repos

Table of Contents Why You Should Self-Host ➠What about GitLab and other Competitors? Why You Shouldn’t Self-Host So what’s a geek to do? What am I going to do? Once upon a time, GitHub was a successful geek enterprise. Then Microsoft bought it, and folks started arguing that you should abandon ship. You should self-host your repos they say. I 100% agree, and 100% disagree. Let me explain. GitHub’s been a benevolent host.