Better HN
topnewbestaskshowjobs
Log inSign up

redmorphium

154 karma · joined Apr 2, 2016 (10y ago) · 45 submissions

Submissions

comment 7y ago · link · parent

JSON is quite nice compared to HTML, in my view. It's less verbose. Also, I like the flatness of Editor.js's data model.

Being JSON makes it easier to render into other formats, too.

comment 7y ago · link · parent

No, for the same reason that Martin Fowler argues you should start with a monolith first before moving to a microservices architecture.

comment 8y ago · link · parent

I agree with you. This is the most profound way to interpret these kinds of sentences, and it exemplifies a consequence of how English allows you to omit the "that" in dependent clauses.

comment 8y ago · link · parent

SVG can do that?! (Sarah Drasner) https://www.youtube.com/watch?v=ADXX4fmWHbo

comment 8y ago · link · parent

You don't need to run the gcloud command to connect to a Cloud SQL instance. You can run the cloud_sql_proxy as a background process on your machine and then you can use mysql or psql to connect to it instantly.

comment 8y ago · link · parent

They still have to comply with the court ruling, i.e. at least block those 18 books in Germany, as they aren't The Pirate Bay. The website's move is smart because it avoids future complications coming from the Urheberrechtsgesetz, the German copyright law, and draws much-needed public attention to how easy it is for bully firms to abuse it.

comment 9y ago · link · parent

I may be mistaken, but I believe that behind the scenes, it's the token bucket algorithm that does rate control.

comment 9y ago · link · parent

Fascinating thing about the Unabomber.

Reminds me of when an Indian friend in high school played a prank on another friend by impersonating me through instant messages (we were sharing a hotel). My friend was able to figure out that it wasn't me because my Indian friend used the phrase "today morning" instead of "this morning."

comment 9y ago · link · parent

Quite complex, actually :(. Ich hätte ihn fragen können.

comment 9y ago · link · parent

That's not the optimal solution by runtime complexity, which is often the point of these interview questions.

comment 9y ago · link · parent

Not some companies. All companies, including Google for Gmail, Yahoo for Yahoo mail, Microsoft for Outlook, etc have very limited support for HTML in their HTML rendering engines.

Instead of using floats and margins, you have to revert to using <table> for layouts. Otherwise, your emails just won't render correctly, much of the time.

It's not possible to support HTML fully in Webmail clients, either. Even without scripting, you could write an HTML email that overlays a malicious button on top of Gmail's web interface itself, and it would be too easy to phish people.

comment 9y ago · link · parent

The thing about HTML emails is, different email clients support different things.

It's not HTML5 at all. If you want to do layouts, you must use tables. There are hacky things you have to do to display things correctly across all different types of clients.

You have tools like this: https://buttons.cm/ which generate abominable code for the sake of compatibility.

Also, Outlook uses the Word rendering engine to process HTML. It's janky, at best.

comment 9y ago · link · parent

Uber gave me that, too, but only for last month. Lyft have me a flat fare deal for this month, so I use it now.

comment 10y ago · link · parent

If I were replaceable by automation, I would be.

comment 10y ago · link · parent

A small nitpick, your code is incorrect because the add operation will set ZF.
12