Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
pqdbr
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
23 ms
·
211.
▲
by
pqdbr
6y ago
I remember very vividly the first time I listened to Daft Punk. I was maybe 16 years old (circa 2003) and was one of the first times I was traveling without my parents. I was on a skydiving trip with my instructor and crew. At night, there
212.
▲
by
pqdbr
6y ago
I used to love OSX for the same reason, but it's insane how much we've lost in this regard. Take Photos for instance; I simply can't drag a picture into a browser anymore; it forces me to drag a picture into the desktop, so t
213.
▲
by
pqdbr
6y ago
Me and my friends would pay for this. We fly paramotors and almost every weekend we fly to places with no cell connection. Plain old radio is terrible (there's always someone transmitting all the time without realizing, blocking commun
214.
▲
by
pqdbr
6y ago
Great news!
215.
▲
by
pqdbr
6y ago
And what about an MRI? This website lists rates around 2k USD, while in Brazil you can get one (in high-end modern hospitals in São Paulo) for around R$ 600 (== $120).
216.
▲
by
pqdbr
6y ago
I changed database.yml to use 10 connections. I didn't change the Sidekiq configuration, which still uses concurrency: 25. Strangely, tonight I've seen the first exceptions like `ActiveRecord::ConnectionTimeoutError: could not obt
217.
▲
by
pqdbr
6y ago
Great article! We have a Rails app that uses Puma with MySQL, but so far single threaded (the Puma config has `threads 1,1`), because we migrated from Unicorn and are still worrying about thread-safety. Currently our database.yml pool size
218.
▲
by
pqdbr
6y ago
There's a great Veritasium video explaining the Magnus effect and the Flettner rotor here: https://www.youtube.com/watch?v=2OSrvzNW9FE The Norsepower company (which installs Flettner rotors on ships) also has a short v
219.
▲
by
pqdbr
6y ago
You are correct and the page is wrong. To calculate churn you simply divide the number of churned customers by the number of those customers you had at the beginning of the period. Note I mentioned "those" customers, because you n
220.
▲
by
pqdbr
6y ago
Why does the US support holding funds for up to 2 years, while everywhere else (like Brazil) only 90 days?
221.
▲
by
pqdbr
6y ago
If using Chrome, you can use Cmd+Shift+C to open DevTools, Cmd+Shift+P to open command palette, and then type 'disable javascript' and hit enter.
222.
▲
by
pqdbr
6y ago
That last paragraph: > Before he goes, I sneak in another question: given that he uses the word in his book’s title, how does he feel about the future now? “I don’t make a lot of plans. I’m a little – I sometimes wonder how… ” he trails
223.
▲
by
pqdbr
6y ago
I've been using Sorbet for a while integrated in my SublimeText. I have never added a type signature, not even once. I just use it to prevent me from silly mistakes (like changing a variable name somewhere and breaking code downstream)
224.
▲
by
pqdbr
6y ago
Ruby 2.7.2, just fire up irb: BigDecimal("123.45") == 123.45.to_d => true
225.
▲
by
pqdbr
6y ago
Great article. Just one small tip: instead of using the BigDecimal("123.45") notation, I much prefer typing 123.45.to_d. Anywhere you used Floats, you can just replace them with BigDecimals. They work just the same. Some people ge
226.
▲
by
pqdbr
6y ago
I love Ansible, and we migrated our Rails deployment from Chef to Ansible. Now we have a subfolder /ops in our project that contains all the code to provision our infrastructure and deploy our app. However, I still find it very hard to
227.
▲
by
pqdbr
6y ago
Having picked up Rails 9 years ago and having been using it literally daily ever since, it's joyful to read from someone that is just starting. I also started with https://www.railstutorial.org/book , highly recommend i
228.
▲
Ask HN: Gitlab Down?
3 points
by
pqdbr
6y ago
|
0 comments
229.
▲
by
pqdbr
6y ago
This works wonders, and I first learnt about this approach in the Atomic Habits book [0]. I highly recommend it. I can list at least ten good daily habits that I have developed after reading the book, like doing 2 sets of pull-ups every mor
230.
▲
by
pqdbr
6y ago
Strongly disagree. Very been a customer for years before DO was launched. I've always benchmarked the same apps under the same load in both of them over the years and Linode has beaten DO every single time. Never had any issues with th
231.
▲
by
pqdbr
6y ago
I'm also not a fan of spending this syntax card on this feature. The ... => ... syntax might be needed for something more useful in the future.
232.
▲
by
pqdbr
6y ago
We do the same. The page loads with a div containing something like: `<%= content_tag :div, data: { behavior: 'vue_app', 'initial-data': { some: 'json' } %> <html spinner> <% end %>`
233.
▲
by
pqdbr
6y ago
I remember watching an YouTube interview with the founder, and he explicitly said that he could suspend his entire body weight on his arms alone, on pilates or something, and that was the base idea for the design he went with. He is a forme
234.
▲
by
pqdbr
6y ago
I'm also very excited for Sorbet. Not because of types specifically (I don't use them and don't plan to), but because I hoped it would give me the same linting experience that ESLint gives me on JS files (unused variables, un
235.
▲
by
pqdbr
6y ago
Someone replied but deleted right when I was posting this answer, so I'm replying to myself: What I didn't understand was why the listed performance optimizations couldn't be implemented in the monolith itself and ensued the
236.
▲
by
pqdbr
6y ago
Some of the listed optimizations were: > We carefully vet what we eager-load depending on the type of request and we optimize towards reducing instances of N+1 queries. > Reducing Memory Allocations > Implementing Efficient Caching
237.
▲
by
pqdbr
6y ago
I'm not familiar with Cloudflare Edge Workers, so sorry if this is an obvious question, but what kind of data store (database) can you use in a setup like this?
238.
▲
by
pqdbr
6y ago
This. We have very complex business logic directly tied to our Rails / ActiveRecord validations (and, btw, they are a blessing). Also, it's not only validations. We rely heavily on ActiveRecord callbacks, which are awsome. We have
239.
▲
by
pqdbr
6y ago
If you're using delayedjob, I strongly suggest you check out the Performance table in Sidekiq's readme. 465 seconds for DelayedJob against 14 seconds for Sidekiq for the same workload. It's 7100 jobs/sec x 215 jobs/
240.
▲
by
pqdbr
6y ago
I have explored the Node ecosystem/frameworks and Python/Django, but I still wouldn't trade Rails for anything.
More ›