dan.laffan
Joined 11/29/2021
dan.laffan said almost 4 years ago on Stripe Donations :
This might be a simpler implementation of the routes:

resource :donates, only: :show do
  collection { get :thankyou }
end

dan.laffan said over 3 years ago on Tailwind CSS :
HI   David Kimura ,

This was a really useful summary of TailwindCSS. I agree with you that Bootstrap seems like the better choice - a single add-in that gives you just about everything you need.

Best regards, Dan

dan.laffan said 9 months ago on RubyMine :
As a regular Rubymine user, I was also confused about the difference between AI Assistant and Junie.  I just found a pretty vague answer on the Rubymine help site.

I am also still unclear about how much I can use AI Assistant or Junie for no extra charge (I have a personal license for RM).  I guess I'll just go and ask Jetbrains! :)

dan.laffan said 3 months ago on Optimizations :
Hi David,

Thanks for another great episode. Regarding your seeds file, have you considered / previously tried using the Faker gem to generate pseudo-realistic seed data for your dev environment?

Cheers, Dan

dan.laffan said 3 months ago on Daylight Savings :
I wonder if it would be viable to do the following:
  • Add time_zone to users.
  • Have some table/column that opts the user into receiving the report.
  • Schedule the report to run twice an hour (at h:00 and h:30 to support time zones that are X hours and 30 minutes off UTC).
  • Tell the report to find the users whose local time-zone hour equals the report's scheduled time/hour, and a similar check for the minutes.

I can't quite think of a way of quickly selecting all users in a single query whose local time hours and minutes match, but maybe a find_each that pulls back just the user ID and the time_zone might make it doable for a large data set.  

Anyone with other ideas please jump in.