HackerTrans
TopNewTrendsCommentsPastAskShowJobs

laut

no profile record

Submissions

Wi-Fi is not ideal for audio and video calls

creativedeletion.com
1 points·by laut·5 anni fa·0 comments

How to improve your video and audio call stability for $8

creativedeletion.com
1 points·by laut·5 anni fa·0 comments

comments

laut
·5 anni fa·discuss
The Mercedes AMG C 63 S costs USD $76,200 (MSRP) in the US according to https://www.mbusa.com/en/vehicles/model/c-class/sedan/c63ws
laut
·5 anni fa·discuss
The Wrangler 4xe is a plug-in hybrid and began production last year. That car is featured on the US website too.

Jeep also has the Renegade 4xe and Compass 4xe. All plug-in hybrids. Fiat might not have brought them to the US yet.
laut
·6 anni fa·discuss
Yes, the `phx-click` doesn't automatically get translated to a link or form submission. You can still design the page to work without javascript. For instance by having a "+" button be a normal form or link and then have phx-click intercept it when javascript is enabled. This can be done with one LiveView module without having to also have a separate regular controller.

One way to do it would be to in the `mount` function handle normal non-javascript params being sent and a `handle_event` function handle `phx-click`.

I don't know if there is already a way to have `phx-click` with fallback to HTTP in a less "manual" way. It should be possible to make.
laut
·6 anni fa·discuss
> But with LV wouldn't you need to create both a LV and a regular controller? That's a huge amount of code duplication.

You just do LiveView instead of a regular controller. No duplication.

When you request a page, it is render on the server and all of the HTML is returned over HTTP as usual.

After the client has received the HTML updates, live updates can go over a websocket. For instance you start typing in a search field, this is sent to the server over websockets. Then the server might have a template for that page that adds search suggestions in a list under that search field. The server basically automatically figures out how the page should be rendered on the server side with the suggestions showing. By "re-rendering" the template with changed data used with the server side template. Then it sends back a diff to the client over websockets. The diff adds/changes the search suggestions to the page. The diff is very small and it's all very fast.
laut
·6 anni fa·discuss
Apple copied that from the Beocom 6000 phone by Bang & Olufsen.