David Kimura PRO
Joined 7/18/2015
Drifting Ruby Owner
David Kimura PRO said 7 months ago on Failover Requests :
In the README.md of the template, I also share my railsrc dot file which includes

--css tailwind

as one of the flags. I believe this makes the difference between what you're experiencing and what I am doing.

If you were to run

rails new example --css tailwind -m path_to_template/tailwind.rb

then you should get the same results as I do.

David Kimura PRO said 7 months ago on Kamal Registry :
That's good to know. I'm not sure why I didn't run into that issue on my end. Maybe during the initial testing of creating a new app, it ran the  
kamal registry setup
automatically.

David Kimura PRO said 7 months ago on RubyMine :
This episode is a bit dated, https://www.driftingruby.com/episodes/from-editor-to-ide, but it is still fairly relevant. Instead of solargraph i've been using Ruby LSP and also ruby-rubocop-revived. But other than that, I don't use many extensions or custom config. 

David Kimura PRO said 7 months ago on Password Strength :
You may be right   Eric Chua where if there is only upper case letters in the password then it could return incorrect results. Something like this could work better where we're basically getting a column count and each condition will bump to the next column.

getEstimatedCrackTime() {
  const password = this.passwordTarget.value
  const length = password.length
  const hasLowercase = /[a-z]/.test(password)
  const hasUppercase = /[A-Z]/.test(password)
  const hasNumbers = /[0-9]/.test(password)
  const hasSymbols = /[\W_]/.test(password)

  let charsets = 0
  if (hasLowercase) charsets++
  if (hasUppercase) charsets++
  if (hasNumbers) charsets++
  if (hasSymbols) charsets++

  let column = charsets
  if (column < 1) column = 1
  if (column > 5) column = 5 

  const row = length > 18 ? 18 : length

  return { row, column }
}


David Kimura PRO said 7 months ago on Kamal Registry :
It should still be able to run kamal app exec -i bash as the image is still pulled on the production server. But I may be misunderstanding your issue.