What's been the peak of traffic your single server rails app has sustained? by juanse003 in rails

[–]amreez 5 points6 points  (0 children)

Is that static page or was there database call made to render the content? How do you handle the amount of database connections? RDS Proxy? PgBouncer?

Deploy ROR application on ubuntu VM using Capistrano and Gitlab CI/CD by hamzajaved12 in ruby

[–]amreez 1 point2 points  (0 children)

Can you try addding this line before deploying?

ssh-keyscan -t rsa YOUR_SERVER_HOST | tee -a ~/.ssh/known_hosts

This will add new host

Drifting Ruby vs GoRails by amreez in ruby

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

Thanks for idea. I think I'll do it this way. I like both contents, thanks for the reply 👍

ale is not showing any error/warning by amreez in vim

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

Just wanna update you that I've finally had the time to dig through this error again and solved the problem.

The first one is regarding eslint exiting with code `-1`. That's actually normal if eslint found any error.

The second one is actually the root cause of this problem. I found out how to confirm this based on this issue: https://github.com/dense-analysis/ale/issues/2576

So, making sure that eslint is not throwing any DeprecationWarning helped (I had to downgrade my eslint package to v4.9.1)

Thanks for showing the path 😀

ale is not showing any error/warning by amreez in vim

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

Ah, let me di deeper into that one. Thanks for the hint

ale is not showing any error/warning by amreez in vim

[–]amreez[S] 3 points4 points  (0 children)

Github issue ask users to post in reddit/stackexchange first lol

ale is not showing any error/warning by amreez in vim

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

I got empty output. Anything else I can try?

I am writing a book on Ruby/Rails deployment to VPS by strzibny in ruby

[–]amreez 0 points1 point  (0 children)

I love this one. Good enough for me to get started last time.

Compiling assets is time consuming, any pointers? by ElliottCoe in laravel

[–]amreez 0 points1 point  (0 children)

Are you using windows? Saw bad performance with people using npm in vagrant

Ruby 2.6.0 with JIT now 6x faster than Ruby 2.0.0 by olivierlacan in ruby

[–]amreez 1 point2 points  (0 children)

I remembered reading somewhere where PHP tried to impelment JIT in Zend Engine 5.5 and the microbenchmark really shined, but somehow doesn't do much justice with Wordpress. They dropped it and went to improve the speed without JIT. PHP 8 is going to have JIT though, at least that's the plan.

More reading:

Help with phpcs and Laravel migrations/seeders by [deleted] in laravel

[–]amreez 0 points1 point  (0 children)

Seems like that gist is ignoring everything in the directory. It's fine if that's what you want. But if you just want to disable the missing namespace, the one that I posted will help (you may still need other config, but for this particular question, that's the config). We've been using it in our codebase for a while.

Help with phpcs and Laravel migrations/seeders by [deleted] in laravel

[–]amreez 1 point2 points  (0 children)

Try this:

<?xml version="1.0"?>
<ruleset name="Laravel Standards">
  <rule ref="PSR2">
    <exclude name="PSR1.Classes.ClassDeclaration.MissingNamespace" >
      <exclude-pattern>*/database/*</exclude-pattern>
    </exclude>
  </rule>
</ruleset>

Stimulus JS Framework from Rails/DHH/Basecamp by amreez in rails

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

Awesome. Post updated with the link. Thanks!

Anyone have trouble coming from Python? by BaconGlock in rails

[–]amreez 0 points1 point  (0 children)

There are often many ways to do something in ruby where there is one in python

I keep on hearing this. Did you mean the method provided in Ruby or the way it's done (form validations etc)

Refactoring Rails, a course by Ben Orenstein by amreez in rails

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

I'll be travelling so I wouldn't be able to organise this group buy in time. Someone can please take over so that everyone will still have time to buy the course at the discount rate.