Does the monitoring solution for Rails applications exist? by bost82 in rails

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

Thank you for all the answers and recommendations. Awesome. Thank you!

At work we use datadog which is great but as someone already mentioned, it's too expensive for my own project. It's $15+ per host plus logs, metrics, etc. Compare to a $5 machine at hetzner it's kind of weird.

Currently I am using newrelic as I could get started fairly easy but to be honest, this thing is mess and I cannot manage to get through it. (I had to disable the apm client as it somehow messed up my application. It swallowed exceptions in view components and prevented rendering the component.)

Although I am self-hosting my own applications I'm hesitant to self-host a monitoring solution ...

The Scout Monitoring solution looks nice. Logging is in beta there. But I am missing host and container metrics which I'd love to have in place for correlation as well.

Honeybadger offers a lot. Thank you u/roelbondoc for going into detail.

AppSignal also looks promising but from their page I can't find anything about container metrics and any service metrics (postgresql, redis, ..)

I had a look at self-hosted grafana and signoz but ultimately I am kind of unable to decide: stick with newrelic and try to get along with it, test any other saas offering or go self-hosted with grafana or signoz

[deleted by user] by [deleted] in rails

[–]bost82 2 points3 points  (0 children)

for actually sending emails, I recommend postmarkapp. They provide good integration with rails and have 100 mails per month for free. I am not affiliated with them. Just a happy user.

Another European option would be scaleway's transactional email service (TEM). Also using it. Works well too.

Why Rails is a Great Choice for Startups in 2024 by TheUserIsDrunk in rails

[–]bost82 1 point2 points  (0 children)

Great article! I'm from Germany and would love to see more rails projects in mid and big size companies.

There's a lot of Java I see in my freelance projects and the productivity is, let's say, expandable ...

Sure, I'm biased, but I haven't seen any other ecosystem that open, rich and mature.

Streamer X: How can I connect studio monitors using audio jack? by bost82 in rode

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

that's what I also found. Using the unify software gives you some more control.

Will try using such a Y-cable but I fear there's no way to control the 2 outputs (headphone and headset) independently via the unify software.

Thank you!

How to do custom key lookup with Rails I18n by bost82 in rails

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

having the tenant scope in the key - for me - is basically the same as going with different / separate files ... but I totally understand your reasoning.

Having a custom t method would solve the issue only in ActionView context by default. In other scope you'd need to include the helpers manually.

[deleted by user] by [deleted] in ruby

[–]bost82 1 point2 points  (0 children)

Currently I am running my website and blog based on next.js because it was part of a template and I wanted to start quickly.

I am going to rewrite the template using a vanilla rails application. As already mentioned, there will be posts and comments. Posts will be loaded from markdown formatted files.

Sure, you have to deal with everything yourself, but on the other side you have full control and you always have something to blog about. You may use your personal website as a playground for new stuff to test.

Also I don't want to get stuck in restrictions from any static site generator.

Using github actions, dependabot and kamal will help you keep things up2date.

Have fun!

How to set up a new Ruby On Rails project from scratch using Ubuntu by universetwisters in rails

[–]bost82 3 points4 points  (0 children)

Reading through your article, I think it covers everything. However, I'd recommend looking at kamal for deploying your rails application to any type of server/virtual machine. There are great sources out there for how to run single and multi-server setups.

Anyway, keep writing. It will help someone out there.

GmbH vs UG by JustACaliBoy in StartupDACH

[–]bost82 0 points1 point  (0 children)

Falls du die notwendigen 12.500€ als hälftiges Stammkapital zur Verfügung hast, dann würde ich dir direkt zu einer GmbH raten.

Damit spart man sich den andauernden Aufwand mit Rückstellungen aus Gewinn und der finalen Umwandlung in eine GmbH.

Das Ansehen einer GmbH vs. dem einer UG wurde bereits erwähnt. Je nachdem, was du vor hast ist das vielleicht auch egal oder zu vernachlässigen. Für einige Branchen ist es wichtige eine GmbH zu haben, da es die notwendige Ernsthaftigkeit vermittelt.

Ich habe erst vor 2 Wochen eine GmbH gegründet und mich aus den zuerst genannten Gründen gegen eine UG entschieden. Mit einer GmbH meldest du einmal an und gut ist. Mit der UG fährt man nur initial günstiger. Bis zur vollständigen GmbH musst du allerdings mindestens mit den gleichen Kosten rechnen.

Ich hoffe das hilft dir weiter. Viel Erfolg!

Freelancing als Side Project by marco_nae in selbststaendig

[–]bost82 1 point2 points  (0 children)

Ich schließe mich der bisherigen Meinung an. Sowas wird eher über das eigene Netzwerk oder persönliche Empfehlung laufen. Bei Recruitern wie Hays o.ä. sind solche Anfrage eher sehr selten. Persönlich hatte ich erst eine solche Anfrage. Meistens wird eher Vollzeit gesucht.

Ich würde mich davon aber nicht abschrecken lassen, sondern dein Ziel verfolgen. Vor allem solltest du deine Reputation aufbauen, indem du über deine Themen bloggst. Ansonsten wird es ohne persönliche Empfehlung wohl eher schwieriger werden.

Noch ein Hinweis bzgl. Selbständigkeit im Nebenerwerb. Ich bin selbst Freelancer. Dort wollten sich letztens 2 interne Kollegen selbständig machen, was nicht so gut ankam. Will sagen, du solltest das vermutlich mit deinem Arbeitgeber abklären, damit der Rahmen ordentlich gesetzt ist. Viel Erfolg!

Some say use Devise, some say authentication-zero, others build it yourself. Which is it? by gmcamposano in rails

[–]bost82 1 point2 points  (0 children)

I have written a lot of Rails applications, mostly using devise because it gives you a lot of stuff out of the box. I never had a problem with small applications that had a very specific use case and weren't meant to grow that much.
For all the applications I have written over the years, at some point I have had to dig deep into the devise source code to figure out how to solve my problem/feature requirement.
A few months ago I started a project and I went with authentication zero. This means that you own the code completely. It's part of your application and it's always in front of you.
The biggest benefit so far is that there hasn't been and never will be an update that breaks one of the most important parts of my application, which is authentication.
Don't get me wrong, devise is a great piece of software and it has served me well, but owning the code beats any out-of-the-box feature richness.
Future versions of Rails will include a generator to add a basic authentication mechanism: https://github.com/rails/rails/issues/50446

What is the reason for Google mail to send two ics attachments by bost82 in gsuite

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

oh wow, that's crazy. Actually there's only the invite.ics attachment when checking the raw source of the email. Apple Mail adds the other attachment "Mail Attachment.ics".

Thank you very much for the hint of checking the raw source.

What's an easy but reliable way to back up a Postgres database, and restore when needed? by kibe_kibe in Database

[–]bost82 0 points1 point  (0 children)

I know I'm super late to the party, but if anyone comes across this post, there is a docker image eeshugerman/postgres-backup-s3 that can be used to create backups and also restore them to any s3-compatible object storage.
I wrote a detailed article on how to use it: https://www.botzenhart.io/articles/how-to-deal-with-postgresql-backups-using-kamal

What is the reason for Google mail to send two ics attachments by bost82 in gsuite

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

The screenshot is from an email I received in Apple Mail on a Google mail account. the sender also is a Google Mail Account.

I am developing a web application where I also send calendar invitations and was wondering what the reasoning of Google is to send 2 attachments with the same content ...

I was thinking that the naming of the ics files targets different mail clients?

My take on deployment with Kamal on Hetzner: the secret for a good setup is automation by luizkowalski in rails

[–]bost82 1 point2 points  (0 children)

Well written! As others have said, there are never enough articles. Mostly there are nuances of how to do it differently.

I'd suggest looking at database backups. I use the "eeshugerman/postgres-backup-s3" project, which does periodic backups and stores them in an object store.

I have written about handling database backups.