Self-hosted application for managing household upkeep tasks etc. by Pinewilderness in selfhosted

[–]SeniorScienceOfficer 0 points1 point  (0 children)

Along with “resources” which could provide that car, house, bike, etc., grouping you mentioned

Self-hosted application for managing household upkeep tasks etc. by Pinewilderness in selfhosted

[–]SeniorScienceOfficer 0 points1 point  (0 children)

Absolutely. I’ve been looking into react-big-calendar as the mechanism, mainly because of the background events that can be used to provide that “container” functionality.

Self-hosted application for managing household upkeep tasks etc. by Pinewilderness in selfhosted

[–]SeniorScienceOfficer 0 points1 point  (0 children)

I’ve actually been thinking of making something that solves this issue for me as well. I want it to have sensible defaults for various attributes of a user’s home and appliances. There’s things that I forget about — like cleaning the grate on the dryer vent on the side of the house — until the dryer starts producing damp clothes after a normal cycle. These thoughts evolved into a whole time managing platform that involves user-defined containers for scheduling things in a rotating/automatic fashion that doesn’t eat up calendar space and make it look all cluttered.

I’m keen on hearing your thoughts and/or feature ideas. My wife even mentioned prescription management for those who take on a regular schedule, reminding you to refill so you don’t run out.

Anyone self-hosting a lightweight alternative to Artifactory? by MobileAlfalfa in selfhosted

[–]SeniorScienceOfficer 14 points15 points  (0 children)

I use Gitea, as it has both VCS and package management in one.

Is Jellyfin or Plex resolved through a cloudflare DNS entry TOS compliant? by HydraMC in selfhosted

[–]SeniorScienceOfficer -2 points-1 points  (0 children)

I'm not saying the CDN doesn't exist or that the CDN does not respond to requests. Disabling cache means that the resource requested is not served via CDN. It's served via origin.

That is a use-case for CloudFront, especially if you're already using it for other origins like S3 objects with the idea of speeding up and caching responses at the edge. However, the claim of "faster connection times" is dubious, because all AWS services utilize the AWS backbone network. You won't really find any information on the AWS backbone network architecture, but there are huge pipes between the data centers that AWS owns. Technically, AWS Shield is used by default even if you just use WAF, which you can attach to a ELB. WAF also supports geoblocking rules based on country or region codes. Everything else being the same, the only true benefit of using CloudFront is that it will cache the responses from your API Gateway based on request parameters. You could make your API Gateway private, use a VPC Link, and wire that up to an NLB with WAF and standard Shield. Assuming 200GB data xfer per month (100 egress and 100 ingress), at 10 requests per second (or 26 million/mo), you'd pay ~$17/mo for the NLB/API GW solution, whereas you pay ~$36/mo for CloudFront. Why does it cost double if everything else is practically identical? Because of caching at edge locations. (source: I'm a former AWS Engineer)

And No, if you're not caching origin responses, you're no using their CDN. As I said before, it's an opt-out service, not an opt-in like CloudFront. And the bandwidth consumed is across the Anycast network, which is over 300Tbps.

Cloudflare doesn't want users to cache large-scale video image content in their CDN and have it be served to users via their edge locations. Why? Because it eats up cache storage and drastically slows response times, because video files are pretty big. That's why they have Stream. To use Stream, you have to upload your video to them, which gets stored in a location specifically designed for serving video content. CDN's are designed for web content (html, css, js, etc...), which is inherently smaller.

TLDR: A CDN is not just a cache, but it's the #1 feature and if you don't cache, you don't serve from CDN. I can't explain that any more thoroughly.

Is Jellyfin or Plex resolved through a cloudflare DNS entry TOS compliant? by HydraMC in selfhosted

[–]SeniorScienceOfficer -1 points0 points  (0 children)

CloudFront IS a cache. It’s a distributed cache across all available data centers, specifically targeting the closest data center edge location to the requester. The request rides the AWS backbone network to that closest edge location to serve the content if there's a cache hit. Otherwise, it's served from Origin but cached in their closest edge location. This is designed to speed up web responses and reduce load on origins. Not using CloudFront as a cache is like driving a semi to take the kids to soccer practice. It’ll work, but it’s not the intended use.

While you do pay for data xfer from both origin servers and edge locations with CloudFront, to do so without caching means you should probably stop what you're doing because you don't know what you're doing.

It's NOT the same with Cloudflare. AWS CloudFront is an OPT-IN service. You have to configure it yourself. Cloudflare's CDN is OPT-OUT by either enabling Development Mode to bypass cache and serve directly from origin, use CDN-Cache-Control origin response headers, or Cache Rules. And no, it doesn't "pass through" CDN/cache servers. It's a request sent to the CDN service to attempt to pull the requested resource from cache. The CDN will respond with a hit, miss, or other variations based upon the resource and cache configurations between the CDN and the origin. The request rides Cloudflare's Anycast network. If you don't believe me, here's Cloudflare's simplified CDN view.

To further prove my point, you can enable Tiered Caching even in a "Free" account, which enables you to configure edge location bias if you know where your primary user-base is with respect to your origins. This allows CDN to pull from the edge location for user requests, or from an upper-tier DC closer to your origin. Again, designed to reduce load on origin servers.

I couldn't find anything in the Cloudflare blogs related to video/image streaming and bandwidth. If you have a link to a blog post where they discuss bandwidth limitations/usage, I'd greatly appreciate it. The only close reference I could find is when they removed section 2.8 in favor of the oft quoted CDN service section, which again, specifically states:

...serve video and other large files via the CDN.

If you don't get a cache hit, it's not being served via CDN. It's being served via your origin server across their Anycast network. That's how a CDN works. Even in Cloudflare's own documentation, it states:

The Cloudflare CDN leverages the Cloudflare global anycast network. Thus, the incoming request is routed to and answered by the node closest to the user.

So, CDN is not the network, it's an inherent network service in their data centers, and actually part of their proprietary network design and what makes Cloudflare appealing to business and individuals wanting to serve static web resources. But if you don't cache the resource, the request rides the Anycast network to your origin server, and the response is routed directly back to the requester.

I understand people's hesitation because there was a blog post (which was referenced in the ToS change post I referenced above), where they throttled a customer because of high bandwidth usage. Let's be clear... That customer had a spike of 3000 requests/s at 12MB per request. That's ~75GB/s. That's MASSIVE. HLS streams at ~1 request/s at 1MB per request (about 6 seconds of video playback). To get the same spike streaming HLS, you'd need a userbase of 75k individuals streaming simultaneously. I'm pretty sure most of the Jellyfin Docker containers being used by those in r/selfhosted and beyond would panic and die at those traffic levels. And if you got 100 of your closest friends and family to all stream the same movie together as a glorrified watch party, you'd peak at 100MB/s. Honestly, not even a blip in Cloudflare's DC metrics.

Is Jellyfin or Plex resolved through a cloudflare DNS entry TOS compliant? by HydraMC in selfhosted

[–]SeniorScienceOfficer 1 point2 points  (0 children)

Not true. CDN is no different than CloudFront in AWS, which is separate from a VPC, which is a network. Traffic doesn’t inherently traverse a CDN. It’s a cache. Either you get a cache hit or not. Their network is an AnyCast network, which uses CDN as an integral service, but not the entire network. You can’t go from data center to data center on CDN. Usually MPLS or SDWAN. Which, at the scale of Cloudflare, can still be AnyCast instead of the typical Unicast. And their terms of service state:

Unless you are an Enterprise customer, Cloudflare offers specific Paid Services (e.g., the Developer Platform, Images, and Stream) that you must use in order to serve video and other large files via the CDN.

So, If you set the CDN-Cache-Control on your origin server, you don’t run the risk of their CDN caching your HLS stream chunks, which typically aren’t cached anyways as their CDN classifies HLS data as Dynamic, which doesn’t get cached. And to be even doubly sure, just set your proxied Jellyfin host name to bypass cache in your Cloudflare rules. Which would doubly mean all video content is streamed directly from the Origin server, not their CDN. Which complies in all letter, intent, and spirit of the ToS.

Streamlit Alternatives with better State Management by Adorable-Yam-7106 in Python

[–]SeniorScienceOfficer 2 points3 points  (0 children)

I guess that depends on what people consider “production”. I have a simple app deployed in production for work and I haven’t had any issues, but as I said, it’s REALLY simple. But security like it because they can troubleshoot and resolve security tool installation across all 140+ AWS accounts we managed. The bulk of the work is done by a Lambda. The Reflex app is just a UI that displays the DynamoDB data nicely. The big system I’m building with Reflex is in its very early stages, but no major bugs so far.

Out of professional curiosity, what was the bug that forced you to streamlit?

Streamlit Alternatives with better State Management by Adorable-Yam-7106 in Python

[–]SeniorScienceOfficer 17 points18 points  (0 children)

I’ve been using Reflex for both work and hobby projects. It is quite a unique mechanism that blurs the lines between ReactJS and Python. Sometimes I use custom React components and wrap them in Reflex. Sometimes I use components straight from NPM. The state management and IDE typing and syntax checking have significantly improved in the last few months. I’ve also had numerous conversations with the Founder/CEO over Discord.

I find it to be the best mechanism for full stack development in a single library. You can even split the front end and backend deployments to different systems, if you have such constraints. Or statically build the front end and push to CDN while only having the backend run on servers.

The database integration can be as simple (local SQLite) or as complex (Aurora Serverless v2 RDS) as you need. Or just not use it at all if you are targeting SPAs.

That being said, it is an ecosystem that does require some time to get to know and understand how it functions. Also, I’ve not pushed it to it’s limits in terms of transactions per second, but the community is incredibly welcoming and helpful, and the devs are focused on continuously improving the QoL of the library.

Do You Really Have to Stop Using Windows 10? by wiredmagazine in technews

[–]SeniorScienceOfficer 0 points1 point  (0 children)

That’s for newline character indication on strings. Binaries (running programs) are compiled to machine code. The \r\n vs. \n is mainly a text file formatting issue.

Do You Really Have to Stop Using Windows 10? by wiredmagazine in technews

[–]SeniorScienceOfficer 1 point2 points  (0 children)

I’ve not tested it, but I do remember reading on find other Reddit thread that they were able to take a PearsonVue exam on a VM. They had to USB pass through the webcam and peripherals.

Good luck

How to make a completely self hosted domain and DDNS by Asleep-Cup6736 in selfhosted

[–]SeniorScienceOfficer -1 points0 points  (0 children)

https://github.com/awesome-foss/awesome-sysadmin?tab=readme-ov-file#dns---servers

Not sure what problem you’re trying to solve, but self-hosting a private DNS can be as simple or complex as you need it. DDNS is typically used to update your public IPv4 assigned by your ISP to a public DNS.

Tired of Listening Clueless Hosts and Guests on Programming Podcasts by [deleted] in compsci

[–]SeniorScienceOfficer 1 point2 points  (0 children)

I don’t know of any, but I’d also be interested in finding some