DerpyCoder
banner
derpycoder.bsky.social
DerpyCoder
@derpycoder.bsky.social
Engineer by Passion

Backend + Frontend
#golang, #templ, #tailwindcss, #alpinejs, #htmx

Database
#clickhouse, #sqlite

Devops
#kubernetes, #taloslinux, #hetzner

Workhorse
#nvim, #zellij, #wezterm, #starship

#selfhosting, #indiehacking, #microsaas
Here's how I am doing the routing.

I am using Echo framework, not the stdlib router.
January 17, 2025 at 9:00 AM
Also, seeing internal server errors.
January 17, 2025 at 7:05 AM
This is what I tried as well. Which added to my confusion as well.

This vs Form vs JS vs Cookies.
January 7, 2025 at 3:30 PM
@psionicalch.bsky.social, are you using #templ?

I'm running into a wall, when I'm trying to do dynamic values for the Critical CSS at the top of a layout page.

I'm unable to use the templating syntax inside style tags.

Any workaround or suggestions?

Without this, fonts flicker!
December 21, 2024 at 5:55 AM
Hey guys, this is what I post about!

@blueskywordcloud.com
December 12, 2024 at 6:13 AM
It’s sorted now, I was able to see and generate the word cloud!

BTW, this info is really useful to see whom to follow or unfollow!

I accidentally followed a lot of people, who talk about politics or marketing or not at all and this summarises their activity so well.
December 12, 2024 at 6:09 AM
Awesome, although it’s not opening for me!

Also the graphics for tracking visitors look cool, did you build your own analytics?

Or is it another tool?
December 12, 2024 at 5:34 AM
Anyone from #golang or #libvips know how to track actual image processing progress?

I am just shamelessly sending numbers down the #sse throat!
December 11, 2024 at 9:43 AM
Bluesky video upload limit is annoying, so I read around to find out the best format and how to reduce the size of my videos.

Here's the magic incantation:

`ffmpeg -i input.mp4 -vcodec libx264 -crf 20 -preset medium -acodec aac -b:a 128k output.mp4`

This got my video from 181 Mb down to 852 Kb!
December 11, 2024 at 9:26 AM
#sse rocks!,

I am using server sent events, to push image processing events down to the client.

#echo + #golang makes it so easy. Here it is in action:
December 11, 2024 at 9:10 AM
I got everything right, with asset loading and what not,

My custom Asset Pipeline helped me achieve this perfect score. Along with Brotli, Cache-Control Immutable, Client Hints, Highway Hash, Text Minification!

Now, how do I reduce the TTFB? Anyone?

Varnish or CDN? For MVP?

Also, #golang rocks!!
December 10, 2024 at 2:51 PM
Here's the before and after of my Docker image!
December 10, 2024 at 2:37 PM
P.S. It says 404 not found when I tried to visit your site!
December 10, 2024 at 9:39 AM
Here's the #chroma playground:

#golang rocks!

swapoff.org/chroma/playg...
December 9, 2024 at 2:20 PM
Yay, Asset Pipeline is shaping up nicely.

Todo:
- [ ] PNG/WebP/AVIF conversions, with different sizes
- [ ] Snippets with dynamic styling & lexers
- [ ] Import Maps, perhaps in `gob`, so the imports in #templ can be dynamic
- [ ] ffmpeg for gif or videos
- [ ] Changing imports to use hash

#golang
December 9, 2024 at 2:14 PM
Here's a before and after!

Then I can embed the generated URL, like we do with GitHub gists.
December 9, 2024 at 1:42 PM
Look at the minified and brotlified file sizes!

Users will thank me!
User's ISPs will thank me!
#hetzner 's reduced bandwidth will thank me!

#golang rocks!
December 8, 2024 at 7:25 AM
I am big believer of Locality of Behavior, so I like keeping things together, that belong together.

Instead of splitting things apart, like css in separate file, javascript, in separate.

Or in case of MVC, model in separate directory, view in separate.

I keep the things together.
December 7, 2024 at 1:41 PM
At least client hints can mask that initial latency apart from TTFB - Time to First Byte.
December 5, 2024 at 2:13 PM
Hehe
December 5, 2024 at 1:47 PM
I just spent some time implementing ETag based caching, just to see Turtles next to files being downloaded.

It's true that asking server "Has this changed?" and receiving "304 Not Modified" response is a lot smaller compared to a full blown file.

But, it's still a network roundtrip!!
December 5, 2024 at 1:42 PM
It’s incredible how marketing convinced “Programmers” to not touch servers.

I too got caught up in this mindset.

Heck, non techie people can self host, and somehow programmers can’t!
December 5, 2024 at 8:59 AM
I checked out your website. I see some CSS issues!
December 5, 2024 at 7:35 AM
Here's my terminal, I have been working on:

I'm collecting all TUIs, and actively avoiding bloat-wares on my Mac.

#taloslinux, #k9s, #nvim
December 5, 2024 at 5:18 AM
How many of you tried the Hetzner Object Store, that coincidentally became public just after I opened up an account!!

#hetzner
December 5, 2024 at 5:02 AM