Obviously you should use an exponential search, assuming you don’t know the age of the oldest human.
- 0 Posts
- 57 Comments
qjkxbmwvz@startrek.websiteto
Programmer Humor@programming.dev•Guys, what's the best Linux distro to install on my PC?
8·29 days agoTorvalds uses it too I believe, so you’re in good company (Debian for me, though my heart belongs to Slackware).
qjkxbmwvz@startrek.websiteto
Ask Lemmy@lemmy.world•What's a standalone movie that deserves a good sequel?
8·1 month agoExcept it would probably end up being a sequel and prequel at the same time…
deleted by creator
13, without the pillow, is kinda how babies/toddlers sometimes sleep (once they can roll over).
qjkxbmwvz@startrek.websiteto
Programmer Humor@programming.dev•You can pry pattern matching from my cold dead hands
81·2 months agoPer the Linux kernel coding style:
Tabs are 8 characters, and thus indentations are also 8 characters. There are heretic movements that try to make indentations 4 (or even 2!) characters deep, and that is akin to trying to define the value of PI to be 3.
qjkxbmwvz@startrek.websiteto
Selfhosted@lemmy.world•Fun/interesting things to self host?English
2·2 months agoMaybe not a service in the typical sense, but setting up your router+server to route your home network traffic through a VPN is a fun project.
My router (MikroTik) supports WireGuard, so I can use it with Mullvad for the whole house—but wg is demanding and it’s a slow router, so while it can NAT at ~1Gbps, it can’t do WireGuard at more than ~90Mbps. So, I set up WireGuard/Mullvad on a little SBC with a fast processor, and have my router use that instead. Using policy based routing and/or mangling, I can have different VLANs/subnets/individual hosts selectively routed through the VPN.
It’s a fun exercise, not sure I implemented it in a smart way, but it works :)
I know right? What a poser!
/s
qjkxbmwvz@startrek.websiteto
Ask Lemmy@lemmy.world•Do you think school uniforms are a form of authoritarianism?
8·3 months agoAmericans had “unity” after 9/11
Uh, no we didn’t. Source: am American, lived through that period.
Yes we had a brief period of unity (and solidarity with NYC) following 9/11, but as soon as the American War Machine woke up, my country was intensely divided.
qjkxbmwvz@startrek.websiteto
Selfhosted@lemmy.world•Promised myself I will support them after they go stable. They kept their promise and so did IEnglish
5·3 months agoI used Photoprism years ago, so my knowledge is probably pretty outdated.
My experience of Photoprism was that mobile was not tightly integrated. At the time I used Syncthing to sync photos — it worked ok for me, but I wasn’t going to set it up on my partner’s phone, for example.
Immich Just Works on both mobile and desktop. Multi user is great, sharing is great, and the local ML and face detection work remarkably well.
Whatever works for you is the best of course! Immich fits the bill for me, and it was very much worth it for me to “buy” it.
qjkxbmwvz@startrek.websiteto
Selfhosted@lemmy.world•Internal domain and reverse proxyEnglish
2·4 months agoRegarding DNS servers, what router do you have? Some routers have simple enough DNS capabilities — I have a MikroTik, and have it set up with DNS entries for internal services (including wildcard). Publicly accessible services just use my registrar’s DNS (namecheap — no complaints).
Oracle Free tier, amd64. Only use it because it’s free—limited bandwidth, but given I have slow upload at home it’s never really been a bottleneck. Hate to admit it given it’s Oracle, but I’ve been completely happy with it.
If I switch to a paid VPS I will probably go with racknerd (suggestions welcome though if you have thoughts).
Especially after adding in all the power draw of the automation requires…
What exactly is the incremental power draw for automation? My network gear and server (a little nuc) are sunk power costs as I self host other services.
Idling, my home uses around 100W with the fridge off. One 10W light is an additional 10% of my power budget, and I have a lot more than one light in my house. I also pay about $0.40/kWh.
I can be a bit neurotic about turning off lights when I leave a room, so Home Assistant was a nice way to free up brain space for me. A few motion sensors here and there + some simple automations, and the lights mostly handle themselves. Zigbee sensors and Zigbee or Matter-over-WiFi bulbs, so everything is local. A free VPS+WireGuard setup means I can access them remotely should I need to, with TailScale as a backup.
Cloud failures mean I can’t access remotely, but local control is unaffected—if my smart devices stop working it’s almost certainly my fault :)
qjkxbmwvz@startrek.websiteto
Selfhosted@lemmy.world•Using rsync for backups, because it's not shiny and newEnglish
3·4 months agoOn low end CPUs you can max out the CPU before maxing out network—if you want to get fancy, you can use rsync over an unencrypted remote shell like
rsh, but I would only do this if the computers were directly connected to each other by one Ethernet cable.
qjkxbmwvz@startrek.websiteto
Selfhosted@lemmy.world•v2.0.0: Stable Release of Immich (complete with Merch and DVD)English
191·4 months agoIf you’re running it via docker compose it’s trivial to upgrade, and there are no breaking changes. Pull, down, up, you’re done.
qjkxbmwvz@startrek.websiteto
Selfhosted@lemmy.world•FFS Plex, the server is on my local networkEnglish
2·5 months agoFrigate is pretty good, too. I’ve only been running it for a few months but I’m very happy with it.
Though, technically that leaves you more at risk of ransomeware or something that overwrites your data.
I rsync as well, but use snapshotting on the remote drives. So, a bad rsync would suck but shouldn’t really result in data loss. Ransomware on my local+remote server would of course be very bad…
I do something similar — I have a raspberry pi and a HD, with daily rsync and snapshots (monthly retained indefinitely, weekly retained for a month, daily retained for a week). It’s at family’s house, connected to my home via WireGuard via a VPS. Tailscale (or anything really) would also work here.
It’s a great setup! Just have some watchdog reboot if it can’t talk to home (a simple cronjob with
ping -c1 home.lan || rebootor similar).Even our “slow” 35Mbps upload speed is way more than enough for incremental rsyncs of my Immich library. The initial sync was done in person, though.
But I thought they smelled bad on the outside?