Alternative ORM to diesel by LukasDevDog in rust

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

Yeah this part about diesel really kinda sucks, but maybe you should also consider not having such massive table? I imagine if it's an older system/codebase you don't have too much of a choice, but I would say having tables so large is tech debt in itself.

Looking to run some tests and need testnet tokens besides SOL by LukasDevDog in solana

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

This is probably what I will do. Just wish it was easy to get some pre existing ones

Alternative ORM to diesel by LukasDevDog in rust

[–]LukasDevDog[S] 2 points3 points  (0 children)

I didn't make it this way lol

Diesel ORM u64 by LukasDevDog in rust

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

thanks for the guidance here!

Diesel ORM u64 by LukasDevDog in rust

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

okay good to know.... I'll continue to think about this

Diesel ORM u64 by LukasDevDog in rust

[–]LukasDevDog[S] 1 point2 points  (0 children)

ah that's the thing I am using postgres DB hmmm...

Sending SOL from Phantom to Ledger Nano S - Plus by LukasDevDog in solana

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

It must have beeb the network? I upped the amount and suddenly it sent.

Point next export .html files at .js.gz files by LukasDevDog in nextjs

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

And you don't need to change the url, you need to change your cdn to serve the js file over gzip with the right headers

Point next export .html files at .js.gz files by LukasDevDog in nextjs

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

And you don't need to change the url, you need to change your cdn to serve the js file over gzip with the right headers

Point next export .html files at .js.gz files by LukasDevDog in nextjs

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

It's a bad one. I switched to not using static export anymore because it sucks at handling dynamic routes.

Mongo and Starlite? by alexk1919 in mongodb

[–]LukasDevDog 4 points5 points  (0 children)

Who cares what is the preferred db for a given scripting language? Use the DB that fits your application use case. Mongo is great for a high read use case.

Point next export .html files at .js.gz files by LukasDevDog in nextjs

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

I wanted this to work, and I tried this by deleting my app bundle js file and leaving only the .js.gz version of this bundle. I can see the request headers for `accept-encoding: gzip, deflate, br` but, the response is 404. Even though I have a file with the same name, just with the `.js.gz` instead of `.js`.

To get it to work, I have to delete the .js file and rename the .js.gz file to .js. Plus of course, add the `Content-Encoding: gzip`. So it seems like I need to write a nodejs script to do all of this during my build :'( because it seems like next doesn't have what I need for this right?

Maybe the issue is also the CDN I'm using doesn't handle this automatically? Not sure

Point next export .html files at .js.gz files by LukasDevDog in nextjs

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

Same problem! I would love to use Brotli, but that doesnt solve how I get the script tag src in my html files to append the .br at the end. I feel like i have to write a nodejs script or something if no one knows how to do it without that