skysight-inc/HackerNews huggingface dataset:
Note that California's net-zero energy mandate for new construction also starts in 2020 [1]. However, I'm not sure what that means (my web searches didn't find much).

My guess any new construction will need to be very well insulated, and in most of California's climate, won't require much heating?

I don't see how this would work in colder places like Lake Tahoe, though.

[1] https://www.cpuc.ca.gov/ZNE/
Ask HN: Why is programming editing text?
What you care about as a programmer is what your code does, right? Basically whatever the compiler has after lexical analysis (except for comments maybe).

So why do we bother with all that coding style stuff if we could make an IDE that edits the program itself instead of text? (I get that text is a universal format, but that doesn't mean we have to edit it directly.)

Instead of editing text you could choose to "declare a function", "rename this identifier" or "call function x with y and z arguments" and then save it with some coding style.

Is there such an IDE? I know what I'm describing is pretty much visual programming, but I mean for "text" languages.
Humans are moderately complex, so we have multiple means of demonstrating fitness rather than just one. But there's plenty of evidence that successful public music performance is highly attractive to at least some of the population. (Noodling around with a DAW in your spare bedroom doesn't count.)

I vividly remember reading a site in India which explained how expertise in one particular style of drumming was "considered useful in marital selection."

In the 18th and 19th centuries, musical skill could literally be a deal maker for eligible women looking for a husband.

And groupies are definitely a thing - certainly once you get to the stadium sell-out and/or internationally known DJ level.

It's even rumoured that killing a karaoke session will get you admiring looks.

(Etc.)
> (Also, my gut feeling is that when you're talking about "arguments" instead of "facts", "evidence" and probabilities, you're in business of convincing, not truth seeking).

Depending on context pro/contra is probably what can be generated from facts when comparing things, so facts should be persistent, pro/contra dynamically generated.
The IRS would probably get a court order. Why would any other government department give a crap?
How do I negotiate a session key with the email recipient? it's a single transmission? otherwise it's a one time pad perhaps - but then that defeats the point of the public key ?

would you mind expanding on this as it is an interesting area
Fortunately for this particular case, Berkeley winter temperature hasn't seen a record low below 25 degrees F in the last 30 years. Or more, Wikipedia doesn't go back further than that.

https://en.wikipedia.org/wiki/Berkeley,_California#Climate

So heat pumps should be OK for Berkeley.
https://stackoverflow.com/ :)
Not in California. And California overproduces power by state law.
Why does such a certificate exist in the first place?
I've not found anything in JavaScript that replaces Django in terms of ecosystem and reliability. There's lots of attempts but Django and Rest Framework nail building out APIs.

Java executes faster than Node but is more verbose.

Choose the right tool for the job. I've put Node as a reverse proxy in front of Django, but now you can do JS in Nginx so I might not choose that pattern again.
Trusted Types aim to prevent the injection, XSS-y CSP directives (script-src etc) act as an XSS exploit mitigation that fires after the injection is already there. So, for example, even if the JS execution is stopped, the attacker may still exfiltrate the data via form tags etc.

CSP was traditionally deployed by security folks only and is a bit disconnected from the regular dev workflow. For example, if your application does not conform to CSP (i.e. you have an XSS), you can know that only when you deploy it, and the violations keep coming.

TT are part of your JS program, and are much closer to how developers prevent other bugs in their programs. For example, since the API uses types, you can even set up your build for the application not to compile if innerHTML is used with a string.

Additionally, TT allow the application to be a bit more precise - e.g. maybe you can't refactor the application not to use eval() ever (this is surprisingly common), but would rather make sure that this one eval() instance is secure, and disallow all others. TT solve that elegantly. Your reviewed eval starts using eval(TrustedScript), and all other evals - should they exist - are blocked.

In our experience rolling out CSP, its nonced version (w/ no script-dynamic, no unsafe-*) works well for server-side injections, whereas TT cover the client-side better.

https://github.com/WICG/trusted-types/wiki/FAQ#do-i-need-tru...
The Amazons
Agreed.

I clicked on the link, and my thought process was something like:

The name invokes markdown, so it sounds like something for marking up args but I have no idea what args are.

> A simple syntax for complex argumentation

What does that even mean?

Clicked on "Getting Started" and immediately it wants me to install something and/or use a sandbox. Well, I'm not going to install anything when I have no idea what it even is, and I'm also not going to bother trying out the sandbox because I have no idea what it is.

The next three text blocks on the main page:

> Simple - Writing pro & contra lists in Argdown is as simple as writing a Twitter message. You don't have to learn anything new, except a few simple rules that will feel very natural.

Oh, so it's a markup language for writing lists?

> Expressive - With these simple rules you will be able to define complex dialectical relations between arguments or dive into the details of their logical premise-conclusion structures.

No wait, it's a markup language for making mind maps?

> Powerful - Your document is transformed into an argument map while you are typing. You can export your analysis as HTML, SVG, PDF, PNG or JSON. If that is not enough, you can easily extend Argdown with your own plugin.

Well whatever this is, it can export to other file formats. Too bad the website never bothered telling me what it was, so by this point I just gave up.
The focus on "identifying journalists", muting "annoying" voices, the "RESPECT" button and pushing specific comments to the top by featuring them kind of leave a bad taste in my mouth...

And I would be the last to argue that comment sections below news articles are anything but a cesspool - they're notoriously bad! But I'm just not sure a control model this heavy handed and lip-servicey is the right approach.
The issue with PHP is devs like that guy.
Hi!
Take a look at NodeRed... Still some code behind the scene at lowest layer but the visual display of algo is a starting point.
> Even the little fans in desktop computers now are BLDC now

Those are at the lower end of the power spectrum of electric motors (which spans approximately 10 orders of magnitude from a few mW to hundreds of MW) and have been BLDCs for a very long time. To see something else in a PC you probably have to go all the way back to the IBM PCs.

> The power electronics these days are dirt cheap.

For a <1 W fan, yes, but when you want to run a 5.5 kW saw it still costs real money and the motor is more expensive.
I agree that math is a useful tool in programming, but domain knowledge always trumps math knowledge. Case in point:

> Recently, I worked on an API at work for pricing cryptocurrency for merchants. It takes into account recent price changes and recommends that merchants charge a higher price during volatile times.

You shouldn’t look at the past price for a cryptocurrency to determine the current one. If few trades happen in a period you’re using outdated data.

The price of interest for merchants who want to sell cryptocurrency is the best bid (highest-priced buy order) in a market where fiat bids on crypto (e.g. BTC/USD, ETH/USD). You should be downloading order book data from exchanges (e.g. [1]), and quoting the best bid to merchants.

Also, what you call high volatility (of past trade prices) might simply be a proxy for a large difference between the highest-priced buy order and lowest-priced sell order (large “spread”). Instead of looking at volatility of past trades, I recommend you look at monitoring the spread of the order book of interest. Although this might not be all that relevant, since merchants (who sell crypto for fiat) are only interested in the price they can sell for, not the price they can buy for.

[1] https://docs.pro.coinbase.com/#get-product-order-book
I'm surprised that in 2019 people (especially on HN) still believe/claim that users trying to hang on to their personal data "abuse" this to "take useful data away from innocent webmasters".

There are dozens of real life situations where covertly collecting such data would be considered completely unacceptable and yet my comment arguing this was still substantially downvoted.

But I guess my point is being in a technically literate community makes no difference when it comes to making a buck. Once one agrees to take a "not an outrageous amount" of private data for a bit of money, they'll agree to take an outrageous amount for outrageous money. And I think this is a perfectly accurate explanation for what FB, Google, [you name it] are doing.
Never heard of them either.

YouTube was a simply better product. As was Facebook compared to mySpace.

The innovative features weren't the right ones. YouTube may not have had them but ultimately in the market today we haven't got those features that seemed such a good idea at the time. Just because you can do clever stuff, e.g. showing multiple streams, doesn't mean that is what people want.

The content was better on YouTube unless you really did want porn. It is not a problem Google paying people to do content for their platform in exclusive deals. They had pockets deep enough to do such things and this investment has paid off.

Sure the startup with $50 million isn't going to be able to just sign up all of the big names but they also were not going to be able to pay as well as Google when it came to monetisation since they were going with adSense. Had they developed something special when it came to ad sales then they could have been on to something.

Then in the search results there is no reason to believe Google were doing anything shady. The shadiest part could be the way Youtube was built for SEO. Every developer wants good SEO so it is only natural to try and excel in this area. Within YouTube they potentially had a better idea of how the Google search engine works so they could have written their front end to specifically game the system. I doubt they did that to a level beyond what outside developers can achieve.
Do you have actual numbers for the COP factor for modern heating and cooling solutions? If its actually 5 (after accounting for transmission losses from power plant to building and other inefficiencies), then that means electric heat pump heating releases 3x less C02 than a in-building gas heater [1]. A solar panel solution will release like 4.5x (assuming 90% efficiency) less C02.

Finally, burning natural gas inputs additional heat energy into our atmosphere, with the gas-burner inputting 3x more heat into our atmosphere compared to the electric heat pump. A solar panel solution doesn't add more heat to the atmosphere. It takes energy that was going to get absorbed by the atmosphere anyway and concentrates it inside a building for localized heating. Except for the second hand effect of some of sunlight that would have reflected off from the roof back into space, now being dispersed as high entropy heat into the atmosphere.

Not to mention that if you use solar

[1] This is assuming that the power plant is a hybrid natural gas one (60% max efficiency) so 5*0.6 = 3. And the in-building natural gas heater is 100% efficient.
I've heard of it, but it generates JSON, doesn't it? What I mean is something like an editor/ide for C or Python or something.
In dense enough areas you can also do well with heat distribution networks, or mixed heat and cold networks. These are a good low-regret choice because you have a big central plant which you can easily refit if the best supply technology changes.

Also if you're running a heat pump having one big central heat pump with a big thermal store can allow you to get better conversion ratio from electricity to heat.
Magento is not exactly known for well written code, actually it is full of anti patterns and antiqued practices. PHP 7 was released in 2015, and if authors of those millions of lines of code can't be bothered to upgrade then probably their code should not be used.
If they removed support for frames, A LOT of internal line of business applications build in the early 2000's will stop working.
If you have a problem with people using the word monopoly as synonymous with anti-trust then just interpret it as anti-trust and ignore the word.

For example, Article 102 of the Treaty on the Functioning:

Any abuse by one or more undertakings of a dominant position within the internal market or in a substantial part of it shall be prohibited as incompatible with the internal market in so far as it may affect trade between Member States. Such abuse may, in particular, consist in: (a) directly or indirectly imposing unfair purchase or selling prices or other unfair trading conditions; (b) limiting production, markets or technical development to the prejudice of consumers;

With Sherman Antitrust Act of 1890 we get supreme court cases that states things like: The purpose of the [Sherman] Act is not to protect businesses from the working of the market; it is to protect the public from the failure of the market. The law directs itself not against conduct which is competitive, even severely so, but against conduct which unfairly tends to destroy competition itself.

And in an other supreme court case:

The goal was to prevent restraints of free competition in business and commercial transactions which tended to restrict production, raise prices, or otherwise control the market to the detriment of purchasers or consumers of goods and services, all of which had come to be regarded as a special form of public injury. For that reason the phrase "restraint of trade," which, as will presently appear, had a well understood meaning in common law, was made the means of defining the activities prohibited.

Not a word about monopoly but a lot about behavior which in common speech people call monopoly but actually refer to behavior which is illegal according to anti-trust.
Who says argument maps rely on rationality? Many arguments are based on emotions and subjective values. Those can also be represented in the tool.
I believe the parent was making a somewhat snarky comment implying Chrome itself reports every click to Google.
> React and Vue makes it easier with single file components and wrapping it in functions which makes handling state and configuration

But is this really true? If you have simple presentational components, this is probably true. But your app is tied together by "container components". The state is unique to the app you're writing. You have to somehow map the state to the components. Maybe you use "container components". In one project, you use Redux, in another, you drill props down to all children. In the next, there's React Context or whatever the next thing is. Do components load their own data (like some widgets) or is there a root component that loads all data and handles the state for the entire app?

I'd argue writing presentational components isn't that different from writing just HTML and CSS. The tough parts of React is where all the unique state logic is placed.
Before I gave up on finding out what this was and closed the website, I saw that the copyright author on the bottom of the page was German or affiliated with a German university. I'm fine with giving the person a pass on some of this language, and drawing on the German I know (and having lived there, somewhat familiar with how Germans would say things in English), I think:

- argumentation should be arguments or in more words: "these are the arguments I'm presenting to support my claims."

- pro/contra is pros/cons

- I have never heard the word 'dialectical'

- premise-conclusion structure I think is something like hypothesis-conclusion, maybe?
Yes, I came to the same conclusions. Pro/contra trees look like an answer to a query on the graph.

One thing I find manually written pro/contra trees don't capture is that the same observation can be simultaneously a pro and a contra, or can flip between being pro and a contra depending on strength of that observation, or surrounding context.

Ultimately, I find those trees a nice visualization, and writing them an interesting exercise in structuring your thoughts, but I'm not convinced whether or not they're helpful at getting to the truth.
What's your approach to the loss of urban wildlife habitat (let's face it, bees) and the reduction in carbon sequestration potential (let's face it, trees) through the conversion of backyards into property development?
We just asked you yesterday to stop posting flamebait to HN. If you keep doing this we will ban you.

https://news.ycombinator.com/newsguidelines.html
Found this article interesting (have not fact checked):

568 kWh/an * 0,98356 kg de Co2 = 559 kg of Co2 / Year and per UK Familly cooking with electricity
534,3 kWh/an * 0,231023102 kg de Co2 = 123 kg Co2 / Year and per UK Familly cooking with natural gas
534,3 kWh/an * 0,260 kg de Co2 = 139 kg Co2 / Year and per UK Familly cooking with bottled gas

https://www.solarcookingatlas.com/cooking-and-resources-gas-...
Y Combinator Founders' Guide to Running a Startup
And the alternative explanation is even worse: modern behavioral model (at times) as so good that they know what product to sell you before you do.
Founders of YC-backed companies give advice for founders on how to run their business, hire, handle growth, marketing, sales, and much more.
Ok, so if the guy actually tries sell the piece on black market and gets caught, will IRS be prosecuted for aiding and abetting the crime? By issuing $29M tax bill they are basically encouraging him to do that.
I had read this story on Wikipedia. Very compelling.
In nearby Concord, yes. Have you been to Berkeley?

I love the sense of class humor in Berkeley weather. Down in the affordable flats, the fog often clears. Up in the "four bridge view" hills, not so often. Annual sun striking the entire roof would still generate more electricity than needed, but there's that storage problem.
Think of it in terms of economics. If new buildings can do whatever, it will increase the demand for both (clean or dirty) electricity and natural gas. If they can only install electric heating/cooling, then only the demand for (clean and dirty) electricity increases. So this law indirectly promotes the clean electricity industry.
The "MITM on all HTTPS traffic in Kazakhstan" issue suggests that relying on STARTTLS for email encryption isn't that great.
Best payment gateways for your ecommerce website in 2019
It is, but we need to stop using fossil fuels in the next twenty years.

That's easy to say, difficult to implement.

E.g. China is cutting back on domestic use of coal, but has decided to build hundreds of new coal plants worldwide: https://www.npr.org/2019/04/29/716347646/why-is-china-placin...

Also, there are other vast large-scale man-made ongoing changes to the world's ecosystem. E.g. the Amazon rainforest continues to be under attack. Same in other countries like Indonesia.

One US city switching away from natural gas is totally insignificant compared to all that.

If you really want to reduce climate change, figure out how to stop the big big crazy things. Banning natural gas in new construction in Berkeley is simply symbolism over substance.
We have 2 beaches within 20 minutes of us

Walking or... driving?
A random key is used to encrypt the email, then that random key is asymmetrically encrypted using the recipient's public RSA key. You do not use your own key to encrypt mails to someone else. Indeed, you can send encrypted emails without even having a key of your own.
This fractal debating is kind-of captured by Kialo [0], not that it makes much difference on anyone's opinion.

[0] https://www.kialo.com/should-hpv-vaccinations-be-compulsory-...
https://news.ycombinator.com/item?id=20460325
> Based on that study, solar PV works out to about 50g of CO2 per kWh compared to coal's 975g of CO2 per kWh, or about 20x "cleaner." [1]

[1] https://www.mnn.com/green-tech/research-innovations/blogs/ho...
>It implements RSA, which nobody should be using anymore

Can someone elaborate a bit? My impression was that RSA is fine with long keys, elliptic curves mainly provide shorter keys, and no decent quantum resistant algorithm emerged?
Wikipedia has some numbers:

https://en.wikipedia.org/wiki/Geothermal_heat_pump#Thermal_e...

https://en.wikipedia.org/wiki/Air-source_heat_pumps#Efficien...

These numbers don't account for transmission losses or power plant inefficiencies. But even if you low ball things you likely save some CO2 over just burning the gas for heat, e.g. take the power plant and transmission efficiency to be about 0.4 and even with a poor heatpump efficiency of 2.5 you break even. Not to mention that the heatpump runs on renewable energy without further investment once the power grid is modernized.
They couldn't sell it currently, if the law changes in the future (or if it can be moved to another jurisdiction) then it could be sold for a non-zero value.
This law is for new buildings, and it makes complete sense to only install heat pumps instead of resistive heaters in new buildings.
People have built a net-positive energy house in the middle of Norway. It's mainly a matter of very good insulation, heat exchangers between outgoing and incoming air, heat pumps, and rooftop solar. In most of these buildings the windows can't even be opened, all air flow is controlled by the central system.

https://snohetta.com/project/60-powerhouse-at-brattorkaia
Show HN: Oui – A web interface for OpenWrt implemented in Vue.js and Element-UI
>"..at least 78% carbon-free."

Well that's obvious nonsense.

Usually I laugh when the Berkeley City Council tries to save the world (broadcasting its deliberations would make a great reality TV show), but in this case, it makes sense: the imbecile heaters used in the Bay Area seem designed to heat the outdoors. It boggles my mind they can't figure out how to buy gas heaters from the East Coast where they're designed to heat the inside of the house.
There are countless things that our brains can do that are illegal to do with computers because our brains are so bad at it. Recording a phone call without notifying is illegal even though our brains remember it. Posting someone else's nudes without consent is illegal even though you can describe them from memory legally.

My eyes can't instantly recognise hundreds of strangers on the street and sync that data up with the global adtech database.