David Kimura PRO
Joined 7/18/2015
Drifting Ruby Owner
Ruby Rogues Panelist
David Kimura PRO said 5 months ago on Record Audio to Active Storage :
Set a root route in your config/routes.rb

David Kimura PRO said 5 months ago on Cloudflare Turnstile :
I have not had to set up anything related to the CORS for this. However, if you do not have the domain name set up in the Cloudflare Turnstile dashboard, then this could throw this error. See https://community.cloudflare.com/t/cors-problem-https-challenges-cloudflare-com-turnstile-v0-siteverify/509618 for more information

David Kimura PRO said 5 months ago on Cloudflare Turnstile :
That's really strange. I've implemented this a few times, referring back to this episode, and didn't have any issues with it's implementation. I did use the Cloudflare Proxy on those apps, so I wonder if that sets something in the header that could make a difference. It's pretty annoying to test those kinds of things out since the browser does some level of caching. It's usually a dance of having to clear my local DNS settings and the browser's.

David Kimura PRO said 5 months ago on Stripe Billing Portal :
  marvinick You should be able to create the plan via the code which is what I normally do. See if this helps.

plans = [
  {
    product: {
      name: 'Annual',
      id: 'annual'
    },
    id: 'annual',
    interval: 'year',
    currency: 'usd',
    amount: 1900
  },
].freeze

plans.each do |plan|
  Stripe::Plan.create(plan)
rescue Stripe::InvalidRequestError => e
  puts e.inspect
  next
end

David Kimura PRO said 5 months ago on Using LLMs to Generate Tags :
I forgot to mention this, but I've used this methodology with a few different custom models for an expense tracker app that I use for personal finances. I use it to upload receipts which go through an OCR process and then feeds the receipt text to the LLM. It makes a few calls to determine the date, vendor, category and total price. So, it cuts down the amount of data entry that I have to do and all newly uploaded receipts to into a "pending" state until they can be reviewed and "processed".