Lume
Lume
Explore posts from servers
HHono
Created by Lume on 4/2/2024 in #help
Deploying Hono App to Multiple Runtimes
How can I deploy my Hono app to multiple different runtimes simultaneously within the same project? For example: Vercel Edge Functions, Netlify Edge Functions, and Fastly Compute.
4 replies
CC#
Created by Lume on 1/10/2024 in #help
Read stream twice without missing data
I want to grab the first byte from a file and then read the entire file (max. 128 bytes) starting from the beginning, including that first byte. However, the problem is that the first byte I initially read is missing. Here's the code:
c#
var bytesRead = await file.ReadAsync(new byte[1]);

// Check bytesRead
// ...

file.Seek(0, SeekOrigin.Begin);

byte[] buffer = new byte[128];
await file.ReadAsync(buffer, 0, buffer.Length);
c#
var bytesRead = await file.ReadAsync(new byte[1]);

// Check bytesRead
// ...

file.Seek(0, SeekOrigin.Begin);

byte[] buffer = new byte[128];
await file.ReadAsync(buffer, 0, buffer.Length);
Any ideas on how to fix this?
78 replies
KPCKevin Powell - Community
Created by Lume on 8/10/2023 in #front-end
Shaky animation with transform (not intended)
I've encountered an issue while attempting to animate a cursor using the transform property. Strangely, as the animation nears its completion, a slight shaking behavior emerges. This quirk exclusively manifests in Mozilla Firefox and is absent in Chromium. Below, you'll find the HTML and CSS code I've been working with (without animations): https://codepen.io/uneknown/pen/OJaYKLm Edit: I do the animation using transform: translateX();
5 replies
KPCKevin Powell - Community
Created by Lume on 7/11/2023 in #front-end
Dynamic Grid Columns
I created a grid layout. Can I make the .container dynamically use the remaining space? Here is my jsfiddle: https://jsfiddle.net/withLume/wqb674u9/2/
16 replies