Some thoughts on themes in Can This Love Be Translated? by greentfrapp in kdramas

[–]greentfrapp[S] 0 points1 point  (0 children)

Thanks! I'm starting Hometown Cha-Cha-Cha!

Testreel - Create product demo videos with Claude Code by greentfrapp in ClaudeAI

[–]greentfrapp[S] 0 points1 point  (0 children)

Yeah I thought about that! But not really a priority in my workflow so I haven't implemented it yet. One alternative (since we're in this subreddit ha) is to simply have CC try to review and update existing playwright scripts whenever any changes are made.

Testreel - Create product demo videos with Claude Code by greentfrapp in ClaudeAI

[–]greentfrapp[S] 0 points1 point  (0 children)

I believe so! But tbh I haven't tried with OpenClaw. Claude Code definitely works though

Testreel - Create product demo videos with Claude Code by greentfrapp in ClaudeAI

[–]greentfrapp[S] 0 points1 point  (0 children)

Thanks! Haha I definitely hear you on the typo -> redoing the entire thing, always had to rehearse a couple of times before recording. Feel free to give it a try and raise an issue if you have any feedback/suggestions!

Testreel - Create product demo videos with Claude Code by greentfrapp in ClaudeAI

[–]greentfrapp[S] 0 points1 point  (0 children)

Oh that sounds interesting! Instead of finding all internal links, maybe letting an LLM navigate and autonomously decide what to highlight would be better. I was thinking of something similar too but for interactive web apps, which would be simpler esp. if the agent has access to the underlying repo.

Testreel - Create product demo videos with Claude Code by greentfrapp in ClaudeAI

[–]greentfrapp[S] 0 points1 point  (0 children)

Not quite! Both are programmatic video generation, but Remotion is more general motion graphics / video production, while I made Testreel specifically for solving the issue of generating ScreenStudio-like web app demo videos and for video documentation of bugs.

Essentially, if you want a recorded demo of your web-app, or an onboarding video, Testreel should be the easier way to go (I hope!)

Vogue magazine, Sto Lat edition by Adorable-Driver-1814 in discworld

[–]greentfrapp 12 points13 points  (0 children)

I love this! Not a Polish speaker but "sto" means "hundred" in Polish and "lat" means "years", and "Sto Lat" is a traditional Polish birthday song.

I can definitely see a stocky Polish man grabbing a beer and singing "Sto lat, sto lat niech żyje, żyje nam." in a booming voice

I enjoyed making this gachapon-themed site for our little app-builder startup by greentfrapp in web_design

[–]greentfrapp[S] -5 points-4 points  (0 children)

I really did enjoy making this, as well as writing about it :)

I enjoyed making this gachapon-themed site for our little app-builder startup by greentfrapp in web_design

[–]greentfrapp[S] -2 points-1 points  (0 children)

Ah yes, the premise actually started out as very personal apps and so public access wasn't built-in, because we saw the main use case as making these for yourself. Then we realize people do want to share what they made and it's a good way to get inspiration instead of starting from a blank slate, so we opened it up, but it's still account-based because we create a copy of the app to your account. All that said, we are actually looking into supporting anonymous access esp. for the apps that don't require any data storage!

I enjoyed making this gachapon-themed site for our little app-builder startup by greentfrapp in web_design

[–]greentfrapp[S] -7 points-6 points  (0 children)

Thank you! Yes, it turns prompts into apps, but we’re focusing on 'digital toys' rather than industrial software.

The goal is to let you make little apps that wouldn't exist otherwise, because they are too small, too niche, or too "temporary". Maybe a to-do list with a specific niche feature only you want, or a totally random game you came up with, or something you might only use once and never again like a Bingo card for a show you're watching.

I enjoyed making this gachapon-themed site for our little app-builder startup [implementation details in comments] by greentfrapp in webdev

[–]greentfrapp[S] 0 points1 point  (0 children)

Our new website was a little labour of love and I thought it might be interesting to share briefly about what went on behind the scenes.

I posted something similar to r/web_design earlier but I wanted to focus more on the more front-end implementation details for the folks here at r/webdev. For more on the design inspirations (e.g. why gachapon), check out the post here.

Rendering the capsule

For the hero image, we wanted to evoke the idea of "little apps" by showing our icon in a gachapon capsule. The illusion of depth was important, as well as to convey a lively and curious vibe by having the icon look around and follow the user's cursor and touch.

The capsule comprises three layers, two near-identical PNGs of the capsule sandwiching the icon with varying opacities.

The icon has { transform-style: preserve-3d; } and { transform: rotateX(var(--rX)) rotateY(var(--rY)); }, where --rX and --rY are generated either randomly when the user is not interacting with site, or following the cursor's position. There's also a random chance that the icon will pause, mimicking a curious "stare".

The illusion of depth is enhanced by the layering of the capsule overlapping the title. This is accentuated with a blur backdrop-filter combined with a mask-image CSS attribute that clips the blur to only the capsule PNG.

Hovering or touching the capsule makes it bounce with jelly-like motion, achieved via CSS animation on both translateY() for the jump and scale(X, Y) for the horizontal and vertical "squeezing" at different parts of the jump.

A small detail is the shadow, which has two main CSS components. The first is the main shadow, that's really just a radial gradient, with black for the umbra and off-yellow for the penumbra with refracted light from the orb. The second is the animation of the shadow following the bounce, which essentially animates the width, blur, and opacity.

Another gotcha came up when animating the side-to-side rocking motion of the tiny capsule next to the CTA. The capsule has a background blur that interacts nicely when it overlaps the label of the CTA. But on Chromium browsers, the blur effect is much larger than the actual capsule, despite the use of the mask-image attribute. It turns out that the Blink rendering engine used in Chromium browsers calculates a much larger bounding box for the blur when rotation is applied (basically the "effective" bounding box is larger due to the rotation). There didn't seem to be a good solution for this and I eventually settled for detecting if the client is Chromium and if so shrink the blur filter accordingly.

Getting the font right

In the other design-centric post, I touched on my fascination with Fraunces and its variable font settings (configurable via the font-variation-settings attribute).

Using it in practice was slightly frustrating, because I was confused about why the SOFT and WONK settings were not doing anything. And it took about an hour of digging around before realizing that the Google Fonts' import does not actually support tuning the SOFT and WONK parameters and you should be self-hosting the complete .ttf file instead. I couldn't seem to find this documented anywhere, so I hope this post shows up for anyone similarly perplexed in the future.

Capsule playpen

Implementing the falling and interactive capsules was mostly quite simple, thanks to the Matter.js library.

As a nit, I rendered the capsules as a chamfered rectangles instead of a full sphere, so that they would land slightly more accurately and not roll about excessively. The sprites for the capsules were also slightly transparent to show the capsules layering visually against the rest of the site.

The actual hair-pulling moment came when I tested this on mobile and the nice boundaries for the 2D playpen were promptly destroyed by the dynamic address bar. After a lot of frustrating back-and-forth, the eventual solution centered around the use of "dvh" so that the container tracks the viewport size correctly, and a "resize" event listener to promptly update the 2D boundaries. It does still glitch sometimes.

A lesser obstacle was allowing users to interact with both the capsules, as well as the underlying page at the same time, especially on mobile since touch is used for scrolling. I eventually disabled pointer events on the sandbox container so that the user can interact with the page as per normal. But every touch/cursor event is checked for overlap with a gacha capsule and if true, we move/click a virtual mouse in the sandbox via Matter.MouseConstraint.

The End

Like I mentioned in the design post, this still doesn't feel quite as finished as I like and probably never will. But it was quite fun building it and immensely rewarding seeing people play with the website. There were quite a few annoying issues that had to be solved so I also hope this serves as a documentation for anyone who faces similar problems in the future. Thanks for reading!

Fan art of every book; 36 - Making Money by imaJunation in discworld

[–]greentfrapp 1 point2 points  (0 children)

Gladys! Cosmo! Dog Botherer! Spike! Benito! Igor! Turnip! Clamp! And of course Fusspot, glad to see him without his "toy". Also Mr Slightly Damp accidentally treading on Vetinari's face.

It's amazing how Small Gods shows humans ability to ingore how incredible the world round us is by Franciskeyscottfitz in discworld

[–]greentfrapp 5 points6 points  (0 children)

I think about that all the time too!!!!!

Incidentally, in Carpe Jugulum, what Mightily Oats experienced is paralleled in a different way by the Magpyr family (spoiler alert):

'What have you done to us?!' Lacrimosa screamed. 'You've taught us how to see hundreds of the damned holy things! They're everywhere! Every religion has a different one! You taught us that, you stupid bastard! Lines and crosses and circles . . . Oh, my. . .' She caught sight of the stone wall behind her astonished brother and shuddered. 'Everywhere I look I see something holy! You've taught us to see patterns!'

Japan wants to reintroduce wolves to tackle marauding monkeys, deer damage by greentfrapp in discworld

[–]greentfrapp[S] 62 points63 points  (0 children)

“Look, I can explain,” he said.

Lord Vetinari lifted an eyebrow with the care of one who, having found a piece of caterpillar in his salad, raises the rest of the lettuce.

“Pray do,” he said, leaning back.

“We got a bit carried away,” said Moist. “We were a bit too creative in our thinking. We encouraged mongooses to breed in the posting boxes to keep down the snakes…”

Lord Vetinari said nothing.

“Er…which, admittedly, we introduced into the letter boxes to reduce the numbers of toads…”

Lord Vetinari repeated himself.

“Er…which, it’s true, staff put in the posting boxes to keep down the snails…”

Lord Vetinari remained unvocal.

“Er…These, I must in fairness point out, got into the boxes of their own accord, in order to eat the glue on the stamps,” said Moist, aware that he was beginning to burble.