mruby 🤝 Ruby
In my ongoing exploration of non-deterministic agents running along side deterministic code, I figured I'd see if I could use RubyLLM to run arbitrary ruby code inside of an mruby sandbox within the same process.
It works!
beautifulruby.com/code/enclave
Posts by Brad Gessler
Should take a week, give or take 3 months.
Try it. See what happens.
How is that a negative? They’re text files.
Video demo at youtu.be/IxsmI8ajL50?... if you’re not into installing stuff without seeing it working.
The script runs inside a JS sandbox that can only access things you approve.
Running AI agents as Unix executables that self-improve has been one of my wilder ideas lately.
You can pipe agents: `think weather | think song`
The agent eventually writes a determinative script after enough runs for simple programs.
It’s as secure as a browser too.
thinkingscript.com
▄▄ ▄▄
██ ██
▄▄
▀▀
█▄ ▄█
▀▀▀▀▀
Incorrectly sized Open Graph images commonly crop heads & logos in weird places.
In this video I debug YC's redesigned site with og.plus/tools to show how to identify & fix incorrectly sized images.
Of course sites that use og.plus don't have this problem because images are optimized per network.
I saw it, but the README was sprawling and I wasn't confident that it would do as little as possible during runtime.
Now that a few people have asked, I put a section in the README about it under "Prior art".
github.com/rubymonolith...
I got tired of seeing people complain “RSpec and factories takes 14 min to run, minitest and takes 5s” so I’m starting to chip away at it.
First order of business: created FixtureBot after figuring out I use FactoryBot not because of factories, but because I like the syntax.
Might try sus next.
Second edition of creating Plan objects in Superfeature to display plan tables in a SaaS I’m working on, og.plus.
The objects can upgrade to other plans, control downgrade flow, set prices in stripe, require payment, and more.
Next one I’ll cover Feature & Limit classes.
First YouTube video for OpenGraph+ about a macOS app I'm building to design and debug Open Graph images.
Still waiting on Apple to approve the thing in Test Flight.
While working on OpenGraphPlus.com I got tired of how annoying it is working with full prices and discounts, particularly in views, so I created a gem with a Price object that makes it super easy to create discounts and have them display properly on your site.
Next Black Friday will be easy! 😅
My first end-to-end demo of og.plus!
You can finally get a sense for how it will integrate into websites to generate an Open Graph image per page, and you can control it all with CSS, meta tags, and HTML cache headers.
As always, Rails is my first integration: opengraphplus.com/docs/rails
💅
I've been heads down for the past month cranking on og.plus, and for the first time ever I found LLMs were actually useful for creating production-grade apps, but not how you think ... and a far cry from "vibe coding".
I share thoughts in the video & discuss the workflow I used to ship quality.
I've started using ChatGPT's Atlas browser to critique first-draft landing pages to find obvious errors and issues on og.plus.
Overall I've found its useful to map out "completeness", but it will try to make you run in circles, is kinda slow, and requires copy & paste to work with other agents.
Ironically the Girl Scout website has a cookie banner on their cookie website 🤣
Flavors at www.girlscouts.org/en/cookies/c...
You’ll buy the course, I’ll email you, you pick what flavors you want for your 4 boxes, give me your address, and then you’ll have some cookies and Phlex 💪
Girl Scout cookies and Phlex on Rails!?
I'm sending people 4 boxes to any address in the US (can't ship i18n 🫠) for people who buy the course at beautifulruby.com/phlex
After you purchase, I'll reach out to get your address & cookie preferences (real cookies 🍪, not browser cookies)
Phree Phlex videos are back! This one shows how to cram lots of Phlex components into one file with nested classes and endless method.
I also kept the Black Friday deal going for a couple more days.
I ditched the 10 minute time-box for the videos so I wouldn’t have to be as rushed.
Hotwire counts. Adding to list!
Last Ruby deals push, this time for Cyber Monday!
I picked up a few more deals and listed them at the bottom of Friday’s list.
There’s some great deals on software & lots of discounted courses if you have some training budget left in the tank this year.
beautifulruby.com/articles/rub...
100% discount? What’s the normal price?
Gearing up for one last push on Cyber Monday! I picked up a few more deals that I put on the page. If there's any more please LMK today so I can include in my final Ruby deal push.
Time to open a bakery. Is the brown stuff cinnamon sugar? Looks delicious.
I collected all Ruby Black Friday deals I could find & posted them in one spot. Highlights include:
$130 off @beautifulruby.com Phlex on Rails course
$81 off @gorails.com annual subscription
+20% @joemasilotti.com Hotwire native content
Lots of @pragprog.com deals
Enjoy! 🦃🔥💰
I was surprised at how few talks I got to sit down and watch. Also looking forward to watching the videos.
I've got a few more in the queue from the SF Ruby Conf.
I'm definitely going to be shooting more of these in different locations with other Rubyists and people who are building cool stuff.
Did customs accept the Ruby passports?
I’m there Tuesday through Friday.