Page on my personal site, with good print styles so I can print to pdf if needed.
- 2 Posts
- 52 Comments
I mean…. Let’s say you set up a Postgres user for all of your application users, with appropriate roles and row level security policies, you could actually do it without Bobby tables issues. I think.
Takes forever to encode though
traches@sh.itjust.worksto Selfhosted@lemmy.world•[SOLVED] How to fork a docker image?English401·1 month agoMake your own dockerfile, and the first line will be FROM <upstream>. Then make your changes.
traches@sh.itjust.worksto Programming@programming.dev•Ignoring lemmyhate, are programmers really using AI to be more efficient?English3·2 months agoI used supermaven (copilot competitor) for awhile and it was sorta ok sometimes, but I turned it off when I realized I’d forgotten how to write a switch case. Autocomplete doesn’t know your intent, so it introduces a lot of noise that I prefer to do without.
I’ve been trying out Claude code for a couple months and I think I like it ok for some tasks. If you use it to do your typing rather than your thinking, then it’s pretty decent. Give it small tasks with detailed instructions and you generally get good results. The problem is that it’s most tempting to use when you don’t have the problem figured out and you’re hoping it will, but thats when it gives you overconvoluted garbage. About half the time this garbage is more useful than starting from scratch.
It’s good at sorting out boilerplate and following explicit patterns that you’ve already created. It’s not good at inventing and implementing those patterns in the first place.
traches@sh.itjust.worksto Selfhosted@lemmy.world•Looking for recommendations for a multi home NAS solutionEnglish3·3 months agoYeah, syncthing can do all of that except public share links. Run an instance on your NAS so there is always a sync target online.
traches@sh.itjust.worksto Selfhosted@lemmy.world•Looking for recommendations for a multi home NAS solutionEnglish4·3 months agoI strongly recommend ZFS as a filesystem for this as it can handle your sync, backup, and quota needs very well. It also has data integrity guarantees that should frankly be table stakes in this application. Truenas is an easy way to accomplish this, and it can run docker containers and VMs if you like.
Tailscale is a great way to connect them all, and connect to your nas when you aren’t home. You can share devices between tailnets, so you don’t all have to be on the same Tailscale account.
I’ll caution against nextcloud, it has a zillion features but in my experience it isn’t actually that good at syncing files. It’s complicated to set up, complicated to maintain, and there are frequent bugs. Consider just using SMB file sharing (built into truenas), or an application that only syncs files without trying to be an entire office suite as well.
For your drive layouts, I’d go with big drives in a mirror. This keeps your power and physical space requirements low. If you want, ZFS can also transparently put metadata and small files on SSDs for better latency and less drive thrashing. (These should also be mirrored.) Do not add an L2ARC drive, it is rarely helpful.
The boxes are kinda up to you. Avoid USB enclosures if at all possible. Truenas can be installed on most prebuilt NAS boxes other than synology, presuming it meets the requirements. You can also build your own. Hot swap is nice, and a must-have if you need normies to work on it. Label the drive serial number on the outside so you can tell them apart. Don’t go for less than 4 bays, and more is better even if you don’t need them yet. You want as much RAM as feasibly possible; ZFS uses it for caching, and it gives you room to run containers and VMs.
traches@sh.itjust.worksto Programmer Humor@programming.dev•When you're working on a file that was last updated six years agoEnglish20·3 months agoI mean if it’s worked without modification for 6 years….
traches@sh.itjust.worksto Linux@programming.dev•Okay why is your distro the best?English20·3 months agoDoes what I want and gets out of my way.
traches@sh.itjust.worksto Programmer Humor@programming.dev•There be Gremlins in the CodeEnglish27·5 months agoYeah, that’s my experience. The backend is an environment you control completely and has well-defined inputs and outputs specifically designed to be handled by machines. Front end code changes on a whim, runs who the hell knows where, and has to look good doing it.
traches@sh.itjust.worksto Programmer Humor@programming.dev•Which of these javascript expressions is false?English2·5 months agoIt’s pretty easy to avoid all of these, mostly by using ===. Null being an object is annoying and is one of the reasons ‘typeof’ is useless, but there are other ways to accomplish the same thing.
JavaScript has a lot of foot guns, but it’s also used by literally everyone so there is a lot of tooling and practice to help you avoid them.
traches@sh.itjust.worksto Programming@programming.dev•GitHub is introducing rate limits for unauthenticated pulls, API calls, and web accessEnglish146·5 months agoProbably getting hammered by ai scrapers
traches@sh.itjust.worksto Selfhosted@lemmy.world•3-2-1 Backups: How do you do the 1 offsite backup?English16·5 months agoNAS at the parents’ house. Restic nightly job, with some plumbing scripts to automate it sensibly.
Have you considered karakeep (formerly hoarder)? It does all of this really well - drop it a URL and it saves a copy. Has lists & tagging (can be done by AI if you want), IOS & android apps as well as browser extensions that make saving stuff super easy.
traches@sh.itjust.worksOPto Selfhosted@lemmy.world•Incremental backups to optical media: tar, dar, or something else?English1·6 months agoBroadly similar from a quick glance: https://www.amazon.pl/s?k=m-disc+blu+ray
traches@sh.itjust.worksOPto Selfhosted@lemmy.world•Incremental backups to optical media: tar, dar, or something else?English1·6 months agoMy options look like this:
https://allegro.pl/kategoria/nosniki-blu-ray-257291?m-disc=tak
Exchange rate is 3.76 PLN to 1 USD, which is actually the best I’ve seen in years
traches@sh.itjust.worksOPto Selfhosted@lemmy.world•Incremental backups to optical media: tar, dar, or something else?English1·6 months agoI only looked how zfs tracks checksums because of your suggestion! Hashing 2TB will take a minute, would be nice to avoid.
Nushell is neat, I’m using it as my login shell. Good for this kind of data-wrangling but also a pre-1.0 moving target.
traches@sh.itjust.worksto Selfhosted@lemmy.world•Self-Hosted podcast has announced that episode 150 is their last.English17·6 months agoTailscale deserves it, bitcoin absolutely does not
Eh, I try to keep this username separate from my real name. It’s not too hard though, you just need ‘@media print {‘. Set display none on stuff like the navbar and footer, and you also need to think about page breaks and such, there are guides.
Browser dev tools can simulate print styles, and you can preview with the regular print preview. To get consistency across browsers you probably want to set a definite width, so the sizing stays the same.