Gabriel Sobrinho

202 posts

Gabriel Sobrinho

Gabriel Sobrinho

@sobrinho

CEO at Code1 | Senior Developer | Turning Technology Into Business Results

Brasil Beigetreten Ağustos 2008
122 Folgt504 Follower
Zeke Gabrielse
Zeke Gabrielse@_m27e·
@craigkerstiens Rarely do I ever want to count without a tenant filter. That's always been my issue with count estimates tbh.
English
2
0
3
148
Craig Kerstiens
Craig Kerstiens@craigkerstiens·
SELECT count(*) is notoriously bad on performance of the database, do approximates work? Postgres keeps stats on your database and already has a rough count.. SELECT reltuples::bigint AS estimated_count FROM pg_class WHERE relname = 'your_table'
English
1
2
9
1.2K
Gabriel Sobrinho
Gabriel Sobrinho@sobrinho·
@SamsungBrasil não consigo recuperar minha senha para o Smart Things e o suporte não sabe resolver
Português
0
0
0
1
Carlos Antonio
Carlos Antonio@cantoniodasilva·
Starting something new today. Super excited to be working / learning together with @adamlogic, building Judoscale!
Adam McCrea@adamlogic

Today is @cantoniodasilva's first day working at Judoscale! He's our first full-time hire, and I couldn't imagine a kinder, more capable teammate. I learned a ton from Carlos when we worked at @ynab together, and I'm ready to learn a whole lot more. Let's goooooo!!! 🥳

English
7
0
42
3.1K
Gabriel Sobrinho retweetet
Jaana Dogan ヤナ ドガン
The real billion dollar mistake is ignoring Postgres when building a billion dollar company.
English
28
84
1K
181.5K
Gabriel Sobrinho
Gabriel Sobrinho@sobrinho·
@locaweb estou tentando abrir um chamado de suporte porque perdi meu 2FA e não consigo porque me exige fazer login. Como faço?
Português
1
0
1
47
Gabriel Sobrinho
Gabriel Sobrinho@sobrinho·
Ruby doesn't segfault, they told me.
English
0
0
0
141
Marko Anastasov
Marko Anastasov@markoa·
The @semaphoreci team retreat begins in just 2 days! Folks from across the Atlantic are already on their way. Super excited to see everyone 🎉
English
2
1
5
485
Gabriel Sobrinho
Gabriel Sobrinho@sobrinho·
Heroku limits env vars in 32kb and we already have exceeded that limit, so, moving out of encrypted credentials is not an option.
English
0
0
0
78
Gabriel Sobrinho
Gabriel Sobrinho@sobrinho·
I need to share those credentials with another framework but I can't use environment variables since the encrypted values there are quite big (quite a few private certificates).
English
1
0
0
85
Gabriel Sobrinho
Gabriel Sobrinho@sobrinho·
Assuming that I have both config/credentials/#{env}.yml.enc and config/credentials/#{env}.key, what is the easiest way of reading it without Rails? Looking for something in plain Bash, for instance, or a Go that I would be able to compile and distribute the binary.
English
1
0
0
131
Gabriel Sobrinho
Gabriel Sobrinho@sobrinho·
@nateberkopec Query cache might be retaining the objects in memory. You can try ActiveRecord::Base.uncached { everything here }
English
0
0
0
103
Nate Berkopec
Nate Berkopec@nateberkopec·
This code "leaks" memory - not really, but it causes memory growth over time if `bag_of_words` is large enough. I see this anti-pattern in Sidekiq jobs. Think: why does this lead to increasing memory every time we go through the loop, and how could you rewrite this to avoid it?
Nate Berkopec tweet media
English
13
2
81
16.5K
Gabriel Sobrinho retweetet
Jake Card
Jake Card@jakecard·
please don't apply for a senior dev position if your github looks like this
Jake Card tweet media
English
2
4
40
6.4K
Gabriel Sobrinho retweetet
Thiago Massa 🌌
Thiago Massa 🌌@th1agofm·
"The Ruby people, strange people." - Linus Torvalds #ruby30th
English
2
19
127
6.5K
Carlos Antonio
Carlos Antonio@cantoniodasilva·
I am starting to remember why OSS gets hard... a few hours of work and only 4 issues closed, plus a couple others having some back-and-forth... none of which required any changes yet. Anyway, 4 down, 135 more to go... that's progress I guess.
English
3
0
16
2.1K
Gabriel Sobrinho
Gabriel Sobrinho@sobrinho·
If Rails (AR) connection pool is lazy connected so you don't use connections you don't need, why not keep it with a high number like 1000 by default?
English
0
0
0
112
Gabriel Sobrinho retweetet
Oliver Jumpertz
Oliver Jumpertz@oliverjumpertz·
Junior developer: if ... { } else if ... { } Senior developer: new DecisionTree(...).case(...).case(...).default(...) Staff-level developer: if ... { } else if ... { }
English
82
215
2.9K
407.8K