laut | 5 years ago | on: Two days with Volkswagen’s electric ID.4
laut's comments
laut | 5 years ago | on: Ford Makes $29B Commitment to Electric and Self-Driving Cars
Jeep also has the Renegade 4xe and Compass 4xe. All plug-in hybrids. Fiat might not have brought them to the US yet.
laut | 5 years ago | on: Hotwire: HTML over the Wire
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 | 5 years ago | on: Hotwire: HTML over the Wire
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 | 5 years ago | on: Dieter Rams: ten principles for good design
laut | 6 years ago | on: Apple Commits $2.5B to Ease California Housing Crunch
laut | 6 years ago | on: How to pack a Norwegian sandwich, the world’s most boring lunch
laut | 9 years ago | on: Passport Index 2016
laut | 9 years ago | on: Unity raises $181M round at a reported $1.5B valuation
Employees could also be required to pay taxes on employee stocks - money that they had not earned yet because they had not sold them.
http://www.business.dk/navne/ivaerksaetterskat-skal-ses-efte... http://penge.dk/pension-skat/ejere-af-medarbejderaktier-risi...
laut | 10 years ago | on: Apple’s loudest activist investor just dumped his stake
laut | 10 years ago | on: Falsehoods programmers believe about time and time zones
laut | 10 years ago | on: Falsehoods programmers believe about time and time zones
Does Apple even have resources that work on tzdata code? Or do they just use open source code?
I wrote more about the issue here: http://www.creativedeletion.com/2015/12/03/timezone-updates-...
In particular for Elixir I trust the time zone data from Tzdata more than for any other language, mostly because I know it is designed to have up to date data. (And well, I know the code because I wrote it myself.)
Even if a system is good in many ways it does not matter if the data is not up to date.
laut | 10 years ago | on: Falsehoods programmers believe about time and time zones
laut | 10 years ago | on: Falsehoods programmers believe about time and time zones
"CST is also used for: Cuba Summer Time, China Time, Central Standard Time (Australia). PST is used for Pakistan Standard Time and Pacific Standard Time. If you want a unique identifier for the time zone in the Pacific West of the USA it looks like this: “America/Los_Angeles”."
In this case the name of the time zone "people live in" is "Europe/London", not GMT.
laut | 10 years ago | on: Falsehoods programmers believe about time and time zones
laut | 10 years ago | on: Falsehoods programmers believe about time and time zones
I'm curious: Why where you using e.g. GMT+5 or GMT-5?
laut | 10 years ago | on: Why Erlang Matters
You can have continuously running processes without relying on something outside of the language. You can more easily distribute such code as an Elixir package. The code can work without relying on e.g. cron or redis being available and configured.
laut | 10 years ago | on: Death by gentrification: the killing that shamed San Francisco
"In many cases rent control appears to be the most efficient technique presently known to destroy a city - except for bombing." - Assar Lindbeck
laut | 10 years ago | on: Falsehoods Programmers Believe About Phone Numbers
http://www.creativedeletion.com/2015/01/28/falsehoods-progra...
laut | 10 years ago | on: Denmark confirms US sent rendition flight for Snowden