skysight-inc/HackerNews huggingface dataset:
You can be unsafe even with typesafe builders. See

fn build(text_to_show: &str) -> HTML{
HTML(Body(H1(text_to_show)))
}

What if text_to_show wasn't sanitized? You got yourself a XSS. And if you do sanitize it (and keep it in a StrSanitized type), what are the chances of accidental XSS?

Really, what should have been done is a "user supplied tag", which automatically displays everything as plain text, like <user-supplied id="ahdjdh37736xhdhd"> Content </user-supplied id="ahdjdh37736xhdhd">
This criticism rings extremely hollow.

The 30-pin connector lasted from the third-gen iPod (2003) through the iPhone 5 (2012), or around nine years. Lightning has remained the connector of choice since then for the past six years.

MagSafe debuted in 2006, was improved to MagSafe 2 in 2012, and is being phased out for USB-C (which is terrible, but I digress) in 2018.

One change in fifteen years for their handheld product lineup and two changes in twelve years for their laptop lineup seems pretty reasonable.
It is an excellent example of why health care is fundamentally at odds with capitalism.

Now I don’t see this as black and white. The free market is a useful tool one can use in healthcare WHERE it makes sense.

However that is not nearly as many places as the conservative free market fan club thinks it is.

This ought to be a reminder that more market does not equal better. More market thinking in health care is to the contrary going to bring worse results.

It is an extremely difficult problem to solve which means they only way to deal with it is through experimentation, tinkering and data gatering. Not through ideological silver bullets.
Show HN: Consumption Tracker – Android app to help you track your consumption
Hi,

I've created an Android app "Consumption Tracker" to help you track your consumption of things.

Basically, for each item, you enter name, purchase date, quantity, and cost and other details and later you mark the item as used when it's completely used.

You can monitor your consumption and view stats and charts about your expenses.

Features:
- Add as many items as you want.
- Capture and add photos of items.
- Manage and assign categories to items.
- View stats and charts about expenses in a given date range.
- Export data to CSV file.
- Create and restore local data backup copy.

Here's the link: https://play.google.com/store/apps/details?id=com.consumptio...

I'd love to hear your feedback. I hope you find the app helpful and useful.
I knew some “entrepreneurs” from college who couldn’t land a job upon graduation. They’re prideful, so they sugarcoat their situation and justify why it is meaningful, when really the opportunity cost was zero. This isn’t a knock against all entrepreneurs. It’s the difference between “billionaires are dropouts” vs “dropouts are billionaires”. Ironically, one of those “entrepreneurs” said “I’m a C student, therefore all of you will end up working for me.” Last I heard, they were smuggling medicine in the legal-grayarea across borders.
> Just because there exists a multi-million dollar over a lifetime treatment regime doesn't mean that it is okay to suddenly "own" an equivalent chunk of cash from everyone cured.

The chunk of cash is the only reason the company is doing the research to begin with.

If finding a cure was easy then it would have been found a thousand years ago -- as some of them were. The ones remaining are hard and require a lot of resources to solve. If you want someone to put that kind of money in against a high probability of failure, they have to be able to expect an even larger amount of money to come back to them if they succeed or they won't do it.

The alternative is government funding, but then you're spending pretty much the same money. The taxpayer now has to pay the tab for all the high risk/reward research that didn't pan out. And then you're subject to all the usual government issues with bureaucracy and cronyism and principal-agent problems because you've put a thick layer of abstraction between the researchers and the patient outcomes.
WebAssembly actually CAN access the DOM, but it requires some glue code.

Essentially, from the developer perspective WebAssembly is like embedding native code as a scripting language in the browser.

Only primitive data types can be passed back and forth between the foreign function interface between the two.
This is extremely relevant for someone that was formerly a prostitute or drug addict. Even with laws in the US to wipe underage prostitution records there is still a major issue of people even knowing it exists. The people that get convicted of underage prostitution sometimes are trafficking victims. So in the US we are so harsh that we punish previous human trafficking victims indefinitely. It’s a balance. Employers have the means to identify those convicted of crimes.
I'm pretty sure the default is still UFS, but FreeBSD allows you to use ZFS as the root filesystem. I've been using this for a while and it's been incredibly solid. It's a first class feature that's supported by the bootloader and the GENERIC kernel. My experience with it has been uneventful, which is exactly how a filesystem should be.
There is a solution. An equation is really a question.

x+3 = 1

is asking the question, “what value for x makes x+3 the number 1?”

The polynomial x+3 is defined for all values in R, the base ring you are working in. We are trying to find the elements of R for which x+3 is the element 1.
Of course you won’t be impacted, but your protection is via selective enforcement. You won’t be in compliance with the law, but the government will lack the resources or determination to punish you. Until that changes.

This is fundamentally dangerous. Once we are all lawbreakers all the time, it creates a powerful tool for oppression and using the law to harass and silence political opponents.
That's one model, sure, but it is a simple model, it has been explored quite thoroughly over the centuries, and it seems to inevitably bring exploitation and tedium. Life is short and I have no desire to spend mine going over that well-trod terrain; I'd rather look for ways of using technology to disintermediate, to detransactionalize, to find better ways of making collective decisions and coordinating group effort which do not involve money or accounting and are therefore resistant to control and exploitation by gatekeeping institutions.
Huh, that was a total waste of some 5-10-whatever minutes I spent.

The title was "Anne Wojcicki on How to Build the Future"

There was absolutely nothing about "How to Build the Future". Just a random blabber about whatever.
0/10
> What if browser would provide us just abstract DOM with minimal HTML/CSS implementation and some extensibility/plug-ins

That's what Houdini layout extensions are about, if that work ever comes to fruition that will indeed be a pretty major advance for web design.
The problem with your example is that the internet does not work exactly like meat space. Why not compare it to tourists shopping while on vacation in China and purchasing items that could not be sold in the US, then bringing them back in their luggage?

In that case, either the tourist who bought it is the one in the wrong and will need to forfeit it at the border, or the law does not apply.

I see no reason why the conclusion about the GDPR cannot be "EU companies on EU soil need to comply, but EU citizens touring the internet via non EU sites are on their own and proceed at their own risk, without protection from the GDPR."

IANAL, but I have had a couple of law classes. Also, one of the things I do know is that we have no world government and laws regarding international internet stuff are breaking new ground daily because it is an unprecedented circumstance that doesn't one-for-one compare to historical legal precedents.

I imagine if we ever get a world government, it will be an emergent event and it will grow out of the current trend of multiple countries joining together to form blocks like the EU. But I see absolutely no reason why any country outside the EU should be presumed to be subject to EU laws just because EU citizens are capable of accessing their sites via internet.

If someone has an article that shows this has been established as a precedent the world accepts, I would be interested in seeing it. But I am not aware of any established precedent suggesting the EU will by default be accepted as having the authority to dictate standards across the globe.
You could use that CSS rendered font someone made a while ago to make it into an uncopyable text.
> In simple words, regression analysis is used to model the relationship between a dependent variable and one or more independent variables.

“model” isn’t a simple word.
> globalists

Did you mean actual globalists, or were you just using a racist dog-whistle to imply Jews?
Afaik the whole purpose of DragonflyBSD is HAMMER so no.
Best comment on this thread.
YouTube Red is nice, but so many videos bake-in ads. It would be nice to have a player only play selected portions of a video; for a video with an ad baked in from 0:11 to 0:41, the player would play from 0:00 to 0:11, then auto-skip from 0:11 to 0:41, and continue playing. These could be set from an earlier viewing, suggested by the site by other viewer behavior, or have common shows have a "time file"of clips to skip to. "Abridged" shows could use a "time file" and subtitle track for easier content creation.
Sure those cards help. But still impressive to see a trend (cheap Genetic tests) and the dumpster fire that healthcare is and create something like this. I'm not as optimistic as the founder on the impacts of all these datasets, but non the less it will likely help cure or delay onset of a disease or two for large portions of the population. Let's celebrate that.
I don't know much about wasm, but I imagine that most wasm binaries will be statically linked. The runtime does add overhead but I'd like to know how much compared to what you see with reasonably complex rust wasm code.
I'd argue China is actually one of the easiest markets to adapt for, given its size. We're talking 1.3 billion people with the same national language, 92% of which share the same ethnicity (Han). Most Chinese cities are quite consistent in terms of culture and regulations. It's a very homogeneous country with a large middle class

Indian or South-East Asia markets are much more difficult to adapt for. You've got a smaller population with less buying power divided up into more than dozens of major languages, cultures, ethnicities, laws, etc.

Protectionism is the real barrier in China, not Western ignorance.

This is what I experienced at a Chinese startup, where a large majority of the strategy/ops efforts were dedicated to localizing products for SEA, compared to the domestic market.
Let me be more precise. Assume x+3 is an element of R[x] with x an indeterminate and R a ring with characteristic not equal to 3. Then x+3 defines a natural map from R to R. The equation x+3=1 is just a shorthand way of asking for the pre-image of this map.

In two variables we get a map from R^2 to R^2and solutions are ordered pairs. By definition of an element of a polynomial ring over R the variables are ordered.
If you compiled a list of all successful entrepreneurs and it was overwhelmingly full of ones who were poor when they started, it would suggest that such circumstances raise the chance of being able to succeed as an entrepreneur. More analysis of different stats would have to be done to elevate that beyond just a suggestion. Personally I feel that at least to some degree it could be the case. (Necessity is the mother of invention, and limitation actually helps creativity far more than abundance) I didn't grow up poor necessarily, though there were times growing up that things were limited quite a bit. I do believe these times are disproportionately responsible for my abilities today, as well as happiness.
I read about this recently with respect to GMs invention of planned obsolence for cars. They managed to give cars to all Americans which lasted a good time. To continue sales they had to reduce quality and do frequent style changes.

I guess it was really just a reinvention of what the fashion industry had been doing for a long time. Get people to throw away perfectly good clothes and biluy new ones because it no longer matched fashion.

We really ought to rethink this madness. Companies are already able to make really durable products but there is no economic incentive to do so.

How can we change the incentives?

I am not sure if that is possible in a regular free market economy, as one kind depend on sort of perpetual growth
It's time to decolonise science and end another imperial era
Not in charge of treatment maybe in charge of the cost benefit analysis of a decision. Most people just spend a lot resources for not much.
"Entrepreneurs start companies" would be a tautology.

"Why entrepeneurs become entrepreneurs" is a question that can be answered (to some degree). If more than one answer is possible, as here, it doesn't really make sense to complain that the question is a "tautology".
I recommend this book. https://www.amazon.com/Achtung-Baby-American-Self-Reliant-Ch...

Mostly I’m trying to model good behavior. My kid mimics me a lot better than he can follow my directions. He’s going to be his own person, and nothing I can do will change that, I’m just a caretaker to help him grow into himself.
You can say a lot about what linear regression gets you when you fit a line to nonlinear data. It's a weighted average of the derivative. You don't need a linearity assumption.
That is an astute observation. Steam's success pivots on its ability to develop and strengthen a marketplace.
A good place to start might be the original paper by Donald Kessler, "Collision Frequency of Artificial Satellites: The Creation of a Debris Belt" http://webpages.charter.net/dkessler/files/Collision%20Frequ...
Indeed. I'll try to fix it. I hate to change titles.
Dig a little deeper: https://docs.google.com/document/d/131vjr4DH6JFnb-blm_uRdaC0...

Mentions:

> Currently WebAssembly has no threads, but they are on the roadmap. Most Go code can run fine on a single thread. The only drawback is that “sysmon” is not available, thus there is no preemption of goroutines.
It’s not that slippery slopes don’t exist, but when the only argument against something is the supposed harm that it may lead to via a slippery slope, it’s suspicious and unconvincing. This thread is full of people saying that this is a step on the road to tyranny, and may end there, that’s true, but the arguments don’t seem to really support the claims.

If this really matters to you, and you care about doing more than signaling to others of your ideological persuasion, you need to offer more and better. Slippery slope is too often the lazy fallacy, and not a real case against something. How does this law as written and likely enforced do all of the bad things claimed here?
That may be a consequence of such laws but do you have evidence that this is the consequence that the people making this law want? What evidence do you have for the motivations for the people making this law.
You see everything from a US centric perspective, I have a contrarian view:

1) Not clear what you call a rich country but Argentina has a lot of entrepreneurs and it is considered an underdeveloped country.

2) Best universities here are free and everyone in the world can study here. The average student study and work at the same time.

3) Lots of bootstrapped companies, limited access to capital.

4) Obviously age and family matter but you don't need to be the first founder who take all the risks. It is possible to join an existing company as a cofounder starting part time if you have critical skills to contribute.

Not saying that starting a company is easy, just saying that the world offers many different perspectives to the same problem.
My previous life was network hardware validation, so I have some perspective on this.

What your describing is "interoperability testing", and it's ubiquitous in the communication standards world.

Standards sometimes aren't clear, sometimes there are multiple implementations of a feature before a standard is ratified (and a big user base with the now non-standard implementation), and sometimes bugs end up in silicon and firmware.

One company I worked with had a very large lab with hundreds of ethernet cards. A column of robots would cycle through each one and plug a network cable in, make sure the link was up and solid, then move on to the next.

I think this is fundamentally different than Apple supporting third party hardware.

Communication standards are designed to allow chipset a to talk to chipset b. Both have an obligation to get a link up. A failure to get a link up is a failure for both, from the customer perspective.

A closed, proprietary, custom hardware system has no such obligation. Unlike the communication channel, the risk is completely unbalanced. A failure for the knock off hardware design is just directed to Apple (as you see in the comment section here).

Sure, you can't really blame the customer since the knock off parts aren't easily detected or may have been installed by the previous owner. You also can't blame Apple since you've made a custom iPhone with mystery parts, and I think it's unfair to make them stop updating firmware/software so they don't break these mystery parts.
Doesn't TrueOS default to ZFS?
Word association game by Google
From the discussion I've heard, it would be challenging even to port HAMMER2 to other BSDs, so I wouldn't expect to see it on Linux any time very soon.
My family is from Warsaw Poland. There are so many ways in which the war affected my family.

On one side of my mom's family, I had a great grandmother who was a covert operative for the Polish underground resistance. She carried information and communications during the war. She told us stories of being ambushed by german soldiers, once they learned of their communication routes. She hid in a secret hiding spot in a well to escape. Had friends die in her arms. She had to marry another operative in order to fake documents for a mission. She ended up falling in love with him, but was separated during part of the war and couldn't find him. She ended up re-marrying, and then later on in life when she was much older, spotted the man on a trolley but decided not to say anything since so much time had passed.

I have really fond memories of sitting in her living room when visiting Poland when I was younger. She was telling us stories of the war as we ate ice cream on a hot summer day. She was an incredible woman. She passed away a few years ago.

On the other side of my mom's family, my grandmother's dad and brother went missing during the war. They went out one night and never came back. Another time when we visited Poland, we went to the Auschwitz memorial. They have a massive book there with all of the names of people who were in the nazi records for having been prisoners at the camp. No one in my family knew what happened to the two brothers, but my mother, decided to look up their names. And their names were in the book. Since then, we contacted the international red cross tracing service. They mailed us copies of hand written documentation from the nazi. Both brothers were participating in an uprising, and were captured as political prisoners. One died in Auschwitz and the other was transffered to Birkenau where he died of Tuberculosis.
Wikipedia is the closest thing that comes to mind. Anything that lets you form edit through html in raw html, or liberal markdown.
Don’t forget to put RANSAC on you list:
https://en.m.wikipedia.org/wiki/Random_sample_consensus
>Noncommercial actors (bloggers etc) are supposed to be exempt.

Looking at EU's history of jurisdiction in these matters, this usually means almost no one is considered "noncommercial". You better believe this is going to hit small bloggers hard. C&D-happy lawyers are going to have a field day.
> Instead now I need to write a stupid page where I say "[MY NAME] will manage your data this and this way".

Are you referring to the Data Protection Officer (DPO) requirement?

I believe this is the relevant article: https://gdpr-info.eu/art-37-gdpr/

If I understand correctly, you only need to appoint a DPO in cases where you are either a public entity (you are not) or in cases where your site requires "regular and systematic monitoring of data subjects on a large scale", or in a couple of other special cases where you process extremely sensitive data.

Presumably you aren't doing that on "your" forum/webpage, so you don't need to appoint a DPO.

I think you are making a bit of a storm in a teacup here.
Can you post this somewhere? Maybe a Github Gist?
Law enforcement using a throw away account here. Why is this such a mystery? Of course they have it. We're all scrambling to find the 15 grand to get a license. (its 15K for a web based license, 30K for a standalone license) Cold cases are being re-opened because we can now access devices we have shelved. I guess I'm just confused why it's such a big deal?
My friend, the secret is chicken fat, shmaltz.

Try this, and I think your soup will improve. http://www.momfluential.net/2012/03/21/my-grandmothers-matzo...
Could be worse. I've seen things like f(x) = g(x) + O(h(x)) a few times.
Can you go into more detail please? That sounds interesting. I thought it had to do with concurrency.
Government is already developing most of the drugs to my knowlege. Univerisites research drugs with public money. Universities then work with companies to commercialise it.

As far as I know the most productive research places like xerox-parc was pretty open ended. There was not clear profit driven goals.

We also see massive success with open source projects which suggests to me that there are other ways of organizing this research which we have done very little to explore.

Not strange since there is a mssive profit incentive by industry to lobby us against ever trying alternatives.
> Maybe. But maybe there's also something wrong with expecting that much. Somehow Sidney Farber didn't decide that he was going to charge the families of kids with ALL the actuarial value of the remainder of their lives.

The problem is this. Suppose the total value of a cure is two billion dollars but it takes a billion to do the research. You can say they should get, say, 1.2 billion instead of the entire two, but that isn't actually that much different, and if you make it 0.8 billion then the research doesn't happen. And it's really hard to calibrate that sort of thing -- you can't just look at the amount the research actually cost because that doesn't take into account the risk of failure, which you have to compensate for or you won't get the investment.

Which is also where the apparent inequity comes from, when a million dollars in research produces a billion dollars in profit. But that's usually because it was a thousand to one shot to begin with. If it wasn't, why has it taken this long for someone to take ownership of that huge pile of risk-free money, instead of the cure being discovered 30 years ago and already being out of patent?
If you like this, you might also like This American Life's 24 Hours at the Golden Apple (2000):

https://www.thisamericanlife.org/172/24-hours-at-the-golden-...
I wonder how this will hold up with AI written summaries that don't use any of the original text.
Are there many users of dragon fly bsd? Are people using it in production, and why/why not?
In 2017 I couldn't get a price on anything in the Cisco Select range because clicking the link triggered a WAF on the distributor's servers.
Sweden modified a road to recharge e-cars while driving