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
Pinned
Todo Lists are boring, so I made it sortable.

Initially I thought about using floats as sort order, but soon discovered floating-point errors.

I came across LexoRank algo, that engineers at Atlassian came up with, and here's the result.

#golang, #lexorank, #sqlite, #htmx, #alpinejs, #tailwindcss
@psionicalch.com ,

Is Golang Templ unstable?

I’m running into lots of weird issues.

LSP is pointing out wrong places for errors.

JavaScript and CSS formatting and highlighting is not working in the style and script tags.

For loop is acting weird.
January 17, 2025 at 7:03 AM
What’s RapidAPI alternative to sell APIs?

This stops me from using them:

“RapidAPI currently only pays out API providers via PayPal”

PayPal, is a no-no for me.

#buildinpublic, #golang, #indiehackers
January 7, 2025 at 8:02 PM
SSH is a thing of the past.
We’re glad you asked!

🚫 No ssh
👍 Everything is an API

youtube.com/shorts/JLb4r...
January 7, 2025 at 5:14 PM
It’s ironic how lighthouse is written in JavaScript, given it’s a “performance” testing tool.

Was it not possible for it to be written in performant language?

Is there a #rust or #golang based alternative to #lighthouse, that’s blazingly fast 🚀?
January 6, 2025 at 3:34 PM
What are some budget thocky keyboard everyone’s using?

Keychron K2 is dying on me. It worked great for my need.

Now the ‘tab’ and ‘q’ keys are notchy and not so responsive.

Just happened after I switched to nvim!
a bald man with glasses is pointing at a tv screen and the words coincidence are above him
ALT: a bald man with glasses is pointing at a tv screen and the words coincidence are above him
media.tenor.com
January 6, 2025 at 2:53 PM
YouTube on web is leaking memory!

One tab reached 1.2 GB, WTF?

Here I am, trying to reduce the memory footprint while developing by, using only CLI tools, and open browser tabs are eating up ram.

Hardware developers must really hate web developers.

What a waste of resources. 🤦
January 6, 2025 at 10:29 AM
Hey Guys,

Check this out, I don’t need this as I have one server, but if you are a power user, checkout Omni.

It will make managing Kubernetes on Baremetal or Cloud easy!

Our own managed Kubernetes!!

#golang, #kubernetes, #taloslinux, #buildinpublic

www.youtube.com/watch?v=fZMk...
January 5, 2025 at 5:05 AM
Anyone using #duckdb or #chdb embedded with #golang?

Can we deploy these two like #sqlite and have lightweight analytics on our sites?

clickhouse.com/chdb

duckdb.org
January 2, 2025 at 12:38 PM
I have made lots of art, both good and bad.

I have never felt attached to any AI art that I generated, unlike the ones I painstakingly created.

I don’t think I will get attached to AI generated code either.

I see why and how it’s increasing velocity for others.

But it’s not for me.
December 30, 2024 at 8:27 AM
I was somewhat lucky to have started my studies with C, C++ so I got to understand what was happening to the computers.

Then I dipped my hands in with LAMP stack, so I got to understand web apps.

I saw bootcamp developers using React, with no grasp on Javascript.

I fear what AI will do to them!
December 30, 2024 at 8:21 AM
Just wow, influencers peddled Honey to everyone, and they are getting scammed in return.

www.youtube.com/watch?v=vc4y...
Exposing the Honey Influencer Scam
YouTube video by MegaLag
www.youtube.com
December 28, 2024 at 9:53 AM
Just lost lots of open tabs on Firefox, again.

Last week Chrome failed to restore my tabs. Tabs were open, but the site link was gone.

What’s up with these unreliable pieces of tech.

Chrome used to be fast, now it boots up slow.

I have to now go through history to recover what’s lost.
December 25, 2024 at 7:48 AM
@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
Anyone using Microsoft Clarity?

Should I steer clear of it?

clarity.microsoft.com
Microsoft Clarity - Free Heatmaps & Session Recordings
Clarity is a free user behavior analytics tool that helps you understand how users are interacting with your website through session replays and heatmaps.
clarity.microsoft.com
December 15, 2024 at 10:16 AM
Hey guys, this is what I post about!

@blueskywordcloud.com
December 12, 2024 at 6:13 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’m never trusting any starter pack ever again!!

I saw an account with 1 post, another a domain squatter, some filled with starter packs to the brim, and marketers with no substance just call to actions!

And somehow they have managed to weasel their way into creator/indiehacker starter packs!
December 11, 2024 at 3:54 AM
Can’t believe this came out 2 years ago!

I was good at C/C++/C# and then someone egged me about not knowing “jAvaScRIPt”.

I had to prove him wrong…

youtu.be/Uo3cL4nrGOk
Interview with Senior JS Developer
YouTube video by Programmers are also human
youtu.be
December 10, 2024 at 4:03 PM
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
Now that I have slimmed up my Docker image, how do I inspect its contents?

Using Dive!!

github.com/wagoodman/dive
December 10, 2024 at 2:37 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
Also adding a syntax highlighter, to my asset pipeline, for occasional snippet sharing.

Basically, it will take `.snip` files from my asset directory and move them to build directory.

github.com/alecthomas/c...
GitHub - alecthomas/chroma: A general purpose syntax highlighter in pure Go
A general purpose syntax highlighter in pure Go . Contribute to alecthomas/chroma development by creating an account on GitHub.
github.com
December 9, 2024 at 1:42 PM
I wish #hetzner had a Docker Image repository, so I can just upload images there.
December 9, 2024 at 5:35 AM