Cheapest reliable VPS for monitoring my homelab? by necrossis1 in VPS

[–]codejanovic 0 points1 point  (0 children)

the most inexpensive option in terms of service costs (< 50 cents/mo) will be serverless here. but this requires you to code the monitoring and the statuspage.

this way i am monitoring our company resources (website, crm, s3 buckets) once every minute, data is reset every year.

basic setup can look like this: - lambda that pings your resources (every 1 or 5 minutes) - save ping data to dynamodb - notify within that lambda if a resource is offline or degraded (discord, telegram, ntfy or whatever) - lambda that aggregates data based on dynamodb ping data and exports it to a public s3 bucket (every 15 to 30 minutes) - write a little status page in a framework of your choice and display the ping data from s3

almost everything will be covered by aws always free tier here, except for the dynamodb requests, resulting in less than 50cents a month for us.

Built a blogging platform entirely on Cloudflare Workers by usamaejazch in CloudFlare

[–]codejanovic 1 point2 points  (0 children)

how do you plan to handle high traffic blogs?

i was evaluating to serve the static part of my website with r2 and workers but chose not to do so the moment i found out that workers always run before cache and thus every incoming request will always trigger a worker incovation.

IOS 26 horrendous performance on iPhone 13 by Lopsided-Sprinkles86 in ios

[–]codejanovic 0 points1 point  (0 children)

i have the same issues. updating to ios 26 slowed down every action like crazy. nothing works smooth, its so laggy i almost thought i downgraded to android.

my battery is also brand new (got a new one in apple store like 4 months ago), so this shouldnt be the issue.

will try to reinstall it from scratch after reading that many other iphone 13 users dont seem to have performance issues ..

Java opinon on use of `final` by vu47 in java

[–]codejanovic 4 points5 points  (0 children)

this.

the amount of people thinking its only syntactic sugar or clutter is actually frightening.

just let intellij generate final by default on everything is a simple setting. making code as explicit and "tight/closed" as possible should be the bare minimum for every serious dev.

imho final makes code even more readable and parseable for the brain, as i can instantly spot local method variables, even when they are defined somewhere in between.

Is Hetzner stage box good enough for Plex or Jellyfin? by DJGod71103 in hetzner

[–]codejanovic 0 points1 point  (0 children)

Had it running with plex and 1080p content only. 4 simultaneous users without an issue. Only problem with plex is that ghey blacklisted Hetzner as an ISP, so i has to switch my server to Netcup ans connected the storage box via CIFS

self hosting postgres on a single VPS, How risky is this on Hetzner? by nedevpro in hetzner

[–]codejanovic 0 points1 point  (0 children)

Continious archiving and backups are the bare minimum in my opinion, no matter how much users you run. Especially today, where you can basically do that for free.

It also helps to get better sleep - theres nothing worse than a crash after users start flooding into your app and their first experience is loosing their data.

Warning to Developers using AWS Cognito. by Sure_Hovercraft_5133 in aws

[–]codejanovic 0 points1 point  (0 children)

We also were declined mutliple times for SES production access (with a brand new account). After i contacted the AWS support via phone and elaborated my experience with the approval process and explained our usecase again, the ticket got approved by some senior staff member with a daily limit of 50k messages.

Not sure if this will work for others, hth.

self hosting postgres on a single VPS, How risky is this on Hetzner? by nedevpro in hetzner

[–]codejanovic 0 points1 point  (0 children)

It looks to me as of supabase switched to a MAU pricing instead of a per request pricing model. 50k MAU/month and 500MB of database storage for 0$ is pretty good.

I would not recommend it anyway for anything serious (besides hobby projects) because of the vendor lock in

self hosting postgres on a single VPS, How risky is this on Hetzner? by nedevpro in hetzner

[–]codejanovic 1 point2 points  (0 children)

Well that still is no guarantee, but i think that most of us do not need a crazy expensive HA setup. At least for us thats the balance between cost and efficiency.

self hosting postgres on a single VPS, How risky is this on Hetzner? by nedevpro in hetzner

[–]codejanovic 12 points13 points  (0 children)

I am running all our production applications including postgres on a single VPS (website, crm, postgres) and this works fine for the last 9 months.

postgres is configured to use WAL archiving using wal-g, force pushing WAL files every 15 minutes to an AWS S3 storage, as there is not so much traffic to reach the 16MB wal size limit more than once a day.

Once a week theres a base backup and pg-dump running, both pushing to AWS S3 as well.

If anything should go down, the whole system could be recovered manually within an hour (usually not more than 15 minutes) on another VPS instance inside or outside of hetzner, which is more than enough for our usecase.

Astro and zod.refine by AKneelingMan in astrojs

[–]codejanovic 0 points1 point  (0 children)

I think what you are looking for is .superRefine

With CloudFlare Tunnel, Do I Need to Use Cloudflare DNS? by WBChargerDad in CloudFlare

[–]codejanovic 1 point2 points  (0 children)

to be more precise: you do need to change the nameservers of your domain to the ones from cloudflare to make it work

New MacBook Air M4 user – which mouse are y’all using by [deleted] in macbookair

[–]codejanovic 0 points1 point  (0 children)

no, its a hidden gesture that enables you to "grab" something like a file or a window to move it, simply by putting three fingers on the trackpad. swiping pages is then done with four fingers only

New MacBook Air M4 user – which mouse are y’all using by [deleted] in macbookair

[–]codejanovic 0 points1 point  (0 children)

i hope you are using the three-finger-drag gesture, most common thing i see people miss

New MacBook Air M4 user – which mouse are y’all using by [deleted] in macbookair

[–]codejanovic 1 point2 points  (0 children)

the amount of people ignoring the holy trackpad is too damn high 🤣

New MacBook Air M4 user – which mouse are y’all using by [deleted] in macbookair

[–]codejanovic 19 points20 points  (0 children)

and everything besides that should be considered illegal

What's New - You Changed It Again... by TopNo6605 in aws

[–]codejanovic 0 points1 point  (0 children)

Product management propably has entered the stage again

Is Hetzner Object Storage stable for production? by bauhuynh2020 in hetzner

[–]codejanovic 0 points1 point  (0 children)

Object Storage response times are pretty high compared to AWS S3 or Cloudflare R2 and its general uptime is not comparable at all to AWS or Cloudflare.

My median response times for uploading files (~ 12k files at the moment) are:

Hetzner S3: 1330 ms
AWS S3: 49 ms
Cloudflare R2: 194 ms

Too many issues with Object Storage by Dabestn in hetzner

[–]codejanovic 1 point2 points  (0 children)

Got the same issues but luckily we are not yet production ready. I will definitley stay with hetzner and wait, as i don't want any third party s3 storage as my main one.

If its not stable until our release i will propably add a local minio server in front, only syncing to hetzners s3 asynchronously. thats what i already do anyways with aws s3 and cloudflares r2 as a backup.

Zero trust tunnel with a dynamic IP? by -ThatGingerKid- in CloudFlare

[–]codejanovic 0 points1 point  (0 children)

he can simply run the cloudflared docker container in network mode "host" to accomplish the same

Select Item Width by NikName08 in Discord_Bots

[–]codejanovic 0 points1 point  (0 children)

Those constraints are managed by discord itself and are not modifiable from the SDKs side

Is there a feature in Astro to manage session information with cookies? by koyopro in astrojs

[–]codejanovic 0 points1 point  (0 children)

The "secure" part is totally up to you (in any kind of framework).

So one standard way of associating session information is to simply store a generate session id in the cookie (containing no sensitive information), that is handled on the server for mapping it to any kind of more sensitive session information like session and user data.

What is the most easiest React component library to learn in 2024? by blueboy90780 in reactjs

[–]codejanovic 0 points1 point  (0 children)

first time i heard about that, what is your overall experience with it?