David Kimura PRO
Joined 7/18/2015
Drifting Ruby Owner
David Kimura PRO said 7 months ago on Action Text PDFs :
I haven't tried this approach with importmaps but other than puppeteer which is installed on the system, there isn't really any JS dependency within the Rails app. There is an issue on github discussing this https://github.com/Studiosity/grover/issues/149. What it could mean is that you may still have to have node/npm installed on the server   Eric Chua  , but it doesn't have to be a dependency directly within your application (you can install node/npm and puppeteer within the Dockerfile, but Rails can be unaware of it beyond that).

David Kimura PRO said 7 months ago on Password Strength :
I think the let charsets = 1 is the right thing since in the array we are including the count column in the first place so it has to be offset. You can also add some console logs to see what the results are returning which can help troubleshoot further.

    let charsets = 1
    if (hasLowercase) {
      charsets++
      console.log("hasLowercase character found.")
    }
    if (hasUppercase) {
      charsets++
      console.log("hasUppercase character found.")
    }
    if (hasNumbers) {
      charsets++
      console.log("hasNumbers character found.")
    }
    if (hasSymbols) {
      charsets++
      console.log("hasSymbols character found.")
    }

David Kimura PRO said 6 months ago on AI Commit Messages :
Are you getting any response in the terminal like the "Generating AI Commit Message"? If not, to troubleshoot the issue, you need to see if the prepare-commit-msg file is even being invoked. Put an echo at the top of the file (outside of any if statements) and after the shebang (#!). If you see the message there, but not the "Generating" message then the  commit_src is blank/nil.

David Kimura PRO said 6 months ago on Embeddings :
  rgaufman it is called asitop

brew install asitop
sudo asitop

David Kimura PRO said 6 months ago :
I haven't tried using ollama yet to consume a MCP. I don't think that they have native support for it, but you may be able to get around that with an additional service that sits in front of ollama so it can call the MCP server. Alternatively, you may be able to hack something together with an ollama TOOL. However, I'd imagine that this could be a bit fragile as it goes a little beyond what the tool was really meant to do. If I understand the MCPHost correctly, it would be the endpoint that you call instead of the ollama server and it should have the ability to make calls to the MCP server and also calls to ollama. It should then give a response back to the service calling it.