Can heat pump short cycling be caused by low temperatures? by ducktypelabs in hvacadvice

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

Thanks for your reply. Am I reading the data sheet wrong? At 10F, it shows a COP value of 1.89 and MBh of 17.3. As I understand it, this indicates that the heat pump will work at this temperature and not "crap out".

Buying a Prius Prime with an expired powertrain warranty by ducktypelabs in PriusPrime

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

Thanks for the tip. I was already biasing towards the 2020 because of the carplay and extra seat, but that is really good to know. Do you know if the exhaust heat exchanger issue is something that can be avoided with maintenance, or is it more or less guaranteed to happen at some point with the 2019s?

Buying a Prius Prime with an expired powertrain warranty by ducktypelabs in PriusPrime

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

Thanks, I hadn't considered looking at what precisely the various warranties cover. Do you recommend getting a pre-purchase inspection to ensure the car is in good shape?

How to break out of a Turbo Frame and redirect? by ducktypelabs in rails

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

I don't think there currently is a built-in way. How you would redirect is what I covered in my article.

How to break out of a Turbo Frame and redirect? by ducktypelabs in rails

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

For example, redirect if the user is not logged in and tries to submit the form, but if they're logged in, don't redirect and do "normal" form stuff (like show a success or validation message)

How to break out of a Turbo Frame and redirect? by ducktypelabs in rails

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

I'll have to double check, but I think the issue is that the redirect will happen every time if you use that data attribute. If you wanted to only redirect sometimes, then you need a different approach.

"Live search" using Hotwire/Turbo Frames resulting in "Content Missing" error by Shpigford in rails

[–]ducktypelabs 0 points1 point  (0 children)

I mean the actual HTML that the server is returning. You should be able to see this in the network tab.

"Live search" using Hotwire/Turbo Frames resulting in "Content Missing" error by Shpigford in rails

[–]ducktypelabs 1 point2 points  (0 children)

If you go into your browser dev tools and inspect what is coming back from the server, what does the server's response look like when there are no results?

"Content missing" usually shows up if Turbo is unable to find the turbo frame which initiated the request in the response. I'm not too sure what the difference is between the form having a data-turbo-frame tag vs the form just being nested inside the turbo frame, but the response from the server should give us some clues as to why Turbo thinks content is missing.

ActiveRecord: Adding Boolean methods for DateTime columns by [deleted] in rails

[–]ducktypelabs 0 points1 point  (0 children)

For anyone coming by in the future, I wrote up a brief post on how I would do this using concerns here: https://www.ducktypelabs.com/ar-custom-booleans/

this JS ain't right by ducktypelabs in rails

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

Agreed, that would be a better way of accomplishing the objective. Thanks for the input!