Posts

This profile is from a federated server and may be incomplete. Browse more on the original instance.

rochacbruno, to python
@rochacbruno@social.rochacbruno.com avatar

I wish I could stay on the GOOD line only, but my coworkers decided that we are crossing the EVIL line.
Maybe I am the only one who doesn't own a wide screen display, and maybe I am the only one using font-size 18.

#python #coding
#tt

rochacbruno,
@rochacbruno@social.rochacbruno.com avatar

@anze3db we are using Black, but they decided to configure it to 160, that is my problem, I need to read code more often than writing it.

So I would actually need to unformat when reading, then format again when committing, and that would mess with my git tracking.

The accessibility is very bad for me, I really need to use big font sizes so I have to scroll the editor a lot.

anze3db,
@anze3db@fosstodon.org avatar

@rochacbruno if you are using Black than you can add an extra comma after the last parameter and it's going to force Black to split the line into multiple lines.

Also changing Black's line width setting sounds crazy to me. Why Would anyone do this?

rochacbruno, to random Portuguese
@rochacbruno@social.rochacbruno.com avatar

Ingresso mais caro para o show do Dream Theater

Brasil R$2000
Portugal €80

A cotação do Euro deles é 25 para 1?

#tt

santiago,
@santiago@masto.lema.org avatar

@rochacbruno O Brasil tem uns ricos que nem na Suíça eu vi. E até pobres que acham que pagar um mês de salário num show é uma forma de elevação social. Provavelmente a única disponível.

rochacbruno, to random
@rochacbruno@social.rochacbruno.com avatar

A Mastodon compatible fediverse instance server written in C that is really lightweight, no database, no javascript!

https://codeberg.org/grunfink/snac2 made by @grunfink and it looks so good! https://comam.es/snac/grunfink

We need a :yunohost: package for it!

jedi,
@jedi@bolha.us avatar

@rochacbruno @grunfink só estou confuso na parte "no database". Queria saber como que ele faz a persistência das postagens. Memória? Arquivo? Ou ele só tem um SQLite embutido e "no database" significa que não precisa de um banco externo?

grunfink,
@grunfink@comam.es avatar

No, there is no embedded SQLite nor any other "trick". Given a well-thought storage design, a full SQL engine is seldom necessary.

I use an on-disk storage similar to what Git does. I described it in the snac(5) man page:

https://comam.es/snac-doc/snac.5.html#Disk_Layout

CC: @rochacbruno

rochacbruno, to random
@rochacbruno@social.rochacbruno.com avatar

We don't need translated bridges, if the other networks don't want to officially talk to the Fediverse they are not part of it and there is no need to force it.

One more domain to block https://mostr.pub/

Notice that they don't count T and B as part of the Fediverse, they enforce the idea that Fediverse is mastodon only.

The worst part is that they deliberately list fediverse accounts without permission while others are opt-in.

rochacbruno, to mastodon
@rochacbruno@social.rochacbruno.com avatar

2 weeks ago I had no idea how to host a #Mastodon
Today I have 14 services running on my own domain, with admin panel, backups, monitoring, email, SSO (so good to have the same user across all the services!)

I still need to do some tweaks to the services, but for a single user all running well.

As I am using 2 VPS the total cost is € 9,50/month + a donation of 5€ to :yunohost: project.

I could run everything on my own home, maybe I will do that in the future.

#YunoHost #selfhosting

rochacbruno, to random Portuguese
@rochacbruno@social.rochacbruno.com avatar
santiago,
@santiago@masto.lema.org avatar

@rochacbruno Não parece ter todas as características do pix mas ser só um jeito mais fácil de entrar os dados do IBAN.

O pix é instantâneo e garante custo zero entre indivíduos. Nessa versão portuguesa não menciona instantaneidade e o custo seria de acordo com a matéria o mesmo de uma transação IBAN (o que deve ser variável?). O pix funciona para comprar pipoca.

rochacbruno, to random
@rochacbruno@social.rochacbruno.com avatar

I almost ordered more SSD or Object Storage for my poor mastodon VPS.

But then I learned about 2 commands:

tootctl media remove --days=1  
tootctl media remove --days=0 --prune-profiles  

It saved me 8GB of storage.

The commands will remove all media attachments older than 1 day that federated with my instance.

The second will remove headers and avatars for all non-followed accounts.

rochacbruno,
@rochacbruno@social.rochacbruno.com avatar

It would be nice if mastodon had performance presets as config.

INSTANCE_SIZE=micro|small|medium|large

And then with a micro preset it would:

set SINGLE_USER_MODE, Content retention to minimum possible, decrease worker number.

rochacbruno, to random
@rochacbruno@social.rochacbruno.com avatar

I can't stop thinking about the huge amount of HTTP requests that mastodon performs just to federate this post.

On the project I work we are always trying to limit the amount of requests from UI to backend even when gRPC is the bus.

Take an account with 100k followers, federating with multiple instances, a simple shitpost would require thousands of HTTP posts.

Is the Fediverse consuming too much energy and resources?

rochacbruno,
@rochacbruno@social.rochacbruno.com avatar

@manualdousuario And it is just amazing that we are discussing this based on real data.

We can only imagine how much resources the private platforms uses.

rochacbruno,
@rochacbruno@social.rochacbruno.com avatar

@manualdousuario It is possible to do everything, I am running a WP on @rochacbruno and there I have AP, Friends, MastoApps, Webfinger plugins and it works im a very similar way, there is a timeline in the admin, you can search and follow profiles, interact etc.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • JUstTest
  • mdbf
  • ngwrru68w68
  • modclub
  • magazineikmin
  • thenastyranch
  • rosin
  • khanakhh
  • InstantRegret
  • Youngstown
  • slotface
  • Durango
  • kavyap
  • DreamBathrooms
  • megavids
  • GTA5RPClips
  • ethstaker
  • normalnudes
  • tester
  • osvaldo12
  • everett
  • cubers
  • tacticalgear
  • anitta
  • provamag3
  • Leos
  • cisconetworking
  • lostlight
  • All magazines