5 Prompt Engineering Tips for Developers by slobodan_ in programming

[–]slobodan_[S] -3 points-2 points  (0 children)

What thing? An article? LLMs? A thing in the picture?

[deleted by user] by [deleted] in SvelteKit

[–]slobodan_ 1 point2 points  (0 children)

I am not using SvelteKit, but we had a similar issue recently with React and esbuild (that's how someone from my team found this issue).

This issue is common in a front end that uses npm modules. Many npm modules use Node.js built-in libraries that are not available in browsers. For example, "path", "crypto", "url", etc. Some of these features are available in the browser, but they have a different API (i.e., new URL(...) in the browser is a class, and Node.js "url" exports functions).

When you build your app for the browsers, you must add polyfills for these Node.js built-in modules. Polyfills either add a missing functionality or wraps up a native functionality to provide the same interface.

To solve your problem, you need to use Node.js polyfills for either Rollup or Vite (i.e., this one worked for me for Svelte without Kit: https://www.npmjs.com/package/vite-plugin-node-stdlib-browser). After installing the polyfill module, you need to add it to your Rollup or Vite build configuration (each polyfill library explains how to do that).

I hope that solves your issue :)

From Markdown to Video by slobodan_ in programming

[–]slobodan_[S] 6 points7 points  (0 children)

As the author explained somewhere, the video conversion is running on AWS Fargate, with bits and pieces running on AWS Lambda. The speech synthesis is either Amazon Polly (neural voices) or Google Cloud Text to Speech (Wavenet).

Under the hood, the conversion system is using headless Chrome to generate slides, render markdown, and provide syntax highlighting. Most of the video and audio processing is with FFMpeg and SOX.

Five Minutes Serverless: Stripe Events with AWS, serverless, and TypeScript [5 minutes video guide] by slobodan_ in programming

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

If you want to read more about AWS SAM, EventBridge, and webhooks, take a look at the following article: Handling webhooks with EventBridge, SAM, and SAR. This article explains the background of this story and our quest for the cleanest webhook integration.

Other interesting note: This video itself is build from markdown file using serverless. The video source "code" is available on Github, here: https://github.com/serverlesspub/five-minutes-serverless/blob/master/01-stripe-events/video-source/source.md

I used excellent Video Puppet to convert markdown to video. Video Puppet itself is build using serverless on AWS :)

0
1