skysight-inc/HackerNews huggingface dataset:
This comment is not germane to the point you were making, just wanted to share:

I am a web dev who knows nothing of the Collatz conjecture, so I had to check out the Wikipedia article for it. Thanks for teaching me something today.

I wrote this JavaScript function based on what I read in the article. It's a simple algorithm but it was fun to see it work. For anyone who is in my shoes (weak mathematical background), running this function might be a useful supplement for illustrating the gist concept of the Collatz conjecture:

function collatz(i) {
console.log(i); // for visual feedback
if (i <= 0) throw new Error('Input must be a positive integer');
if (i === 1) return i;
if (i % 2 === 0) return collatz(i/2);
return collatz((3*i)+1);
}

collatz(42); // or any positive integer
> b) People like to live near or in the woods, like they can in other states, so they lobby the government to suppress fires

Bringing you constructive criticism here:

American states seem to have building and zoning codes regulating everything imaginable, but they let you build a residential in the woods without a fire safety zone...
How do you figure? Is it your impression that being ethical is generally good for corporations financially? You're much more optimistic about both the way the economy works and other people than i am. (I should note that I'm not a believer in the "corporations automatically behave soulless and corrupt" camp that's so popular; I just think that your comment's implication goes too far in the other direction)
If your society has a value system that can easily justify genocide, harvesting organs of political opponents, and imperialism, I am not convinced that your society will sustain long term.

We have seen similar value systems in colonial Europe, Soviet Russia, 1900s Japan. History shows us what this leads to in quantifyable terms.
For those interested in how EXIF is treated in other apps, a dated but informative article from 2012: https://www.daveperrett.com/articles/2012/07/28/exif-orienta...
Weirdly enough, it's mentioned in the "Past Research" section above, but not listed amongst the compilers. Maybe not small enough?
Believe me, if this Malaysian's remarks really hurt the American people, we will not express any dissatisfaction. We can even criticize this person with the American people.
Should we not distinguish right from wrong? What does it have to do with revenue stream?
Pure speculation, of course, but it is kind of in their wheelwhouse. If there were a connection, I imagine it would take the form of influencing individuals like Blitzchung and Daryl Morey to make their pro-Hong Kong statements in the first place, anticipating the response, and not plotting with the companies themselves (that would be way too crazy).
That's a matter of philosophy and opinion, not established fact.
You just made me register to say thanks, I'm a noob currently exploring time series and it's usage. You helped me a lot
Well I’m not reading Feynman’s take because he is dead right now.
We're talking about a company that makes the bulk of its money with ads, running a (supposedly ad-free) product on the same infrastructure that the ad-contaminated products run on.

There's both a risk of accidentally misusing data given the two services share infrastructure and code, as well as a business incentive to commit such "accidents", especially given both Facebook and Twitter set a precedent that there's absolutely no downside in doing so.
Apple pulls police-tracking app used by Hong Kong protesters
Ok, we've belatedly changed the URL from https://www.intelligentliving.co/anti-solar-panel-generates-... to the better article. Thanks for letting us know!
unless they're white trucks, it seems
I think this is naive.

Expecting a corporation's officers to enforce moral corporate behavior will generally lead to disappointment. Only law or the market will impose morality and ethical behavior on a corporation. This is by design.
AWS is a great example of a topic that used to be specific, but has now grown too general to have a great consulting practice. AWS billing, by contrast, is a fantastic topic; I actually know someone who specializes in this, and he's making a killing by saying, "I'll save you hundreds of thousands of dollars each month on AWS fees."
Show HN: New Jobs in Startups
You don't have to figure out a solution for 40k people though. Just trust each relatively small group to figure out for themselves.

If you're a college professor or student and can't figure out how to hold class without electricity...
https://news.ycombinator.com/item?id=21210678
> no one is paying me to write extra code (or any code, really)

Fair enough, I understand the mentality, it's not easy developing and maintaining packages in your spare time...

But it's important to remember that thousands of hours of frustrated google searches:

'error: something not found'

Could be prevented with a single helpful error message for the user...
It’s so our new Chinese overlords have your mug on file. Same government that has face recognition and cameras all over... Next time you step in China passport control, get ready for a grilling.
Related discussion from an earlier stage of this: https://news.ycombinator.com/item?id=21159872
"a superpower based on capitalism"

This seems to me like a bag of words, not a real concept that means something. It's like saying America is "a superpower based on Christianity," or "a superpower based on immigration," or "a superpower built on the back of slavery," or "a superpower based on the proposition that all men are created equal." Capitalism isn't even a philosophy, it's a side effect of freedom.
This guy really hates the search for grand unified theory, wow. What a miserable fellow.
I agree that Lean or Coq or something else is the future of solving mechanistic argument, but my opinion is that this has been the expectation for maybe a hundred years already and was right up there in the time of Turing and Church (and Boole and Heyting and Curry and Kolmogorov).

But compare all of mathematics to just linear algebra and specifically neural network implementations. You have a lot of people working on AI who sometimes grossly overstate the capabilities of their system and fail to understand their systems when they do succeed. I would venture that the issue is not solving problems as much as it is to understand things to the level of mastery. It is always worth it to understand something to a continually exhaustive level of detail.

I think this is what artisans are. If you can make incredible hand made books [1], then surely you have underlying skills and abilities that transfer as well? If you are a grand master chess player then you may be dismayed that computers will always beat you [2], until you use a computer yourself to beat another computer (or at the very least until you become resentful towards IBM for misleading you in 1997). [3]

[1] https://www.reddit.com/user/iostopan
[2] https://en.wikipedia.org/wiki/Human–computer_chess_matches
[3] https://en.wikipedia.org/wiki/Solving_chess
Good catch! Added now.
It's not just Google you need to be worried about. Your data could easily be subject to a government surveillance request, which Google not only can't turn down, but can't even notify you if it's ongoing.

Regular run off the mill Google employee (even one working on G Suite) can't see anything of course. But I have no doubt there is a small group of Google employees who can see whatever the hell Google wants to see.

That said I don't quite get what the motivation would be, unless the reporting in question could be of material consequence to Google.

I think US government is a far more worrisome attack vector.
>Spinning this as not coming from Xi's administration is absurd.

From the WSJ article, China has an apology playbook as incidents like this aren't rare. This isn't causing a political crisis like the poster said, and the practice predates Xi's reign.
I'm saying that it's not even remotely far-fetched to believe that Chinese Americans living in Cupertino would hold beliefs similar to those who live where they are (or were) from. Implying it's racism is frankly childish.
For an accessible and convincing (albeit controversial) presentation of this concept, see the movie Hero:

https://en.wikipedia.org/wiki/Hero_(2002_film)
> (and we let them win)

That's indeed the key point. While the Chinese government can censor whatever it pleases and enforce any policies on its citizens, it's up to US corporations to decide whether they want to keep in line with them.

For what it's worth, corporations will be gradually replacing public institutions and governments in a few decades from now (at most in a century). Not by coups, but by making them largely irrelevant in everyday life.

Democracy will then be as archaic as monarchies.
Could be Apple fans flagging it too, but usually I see negative Google stories get flagged off really fast.
At some point, parents have to be cut out. A child wanting to handle things more independently from parents is not a bad thing - learning to do it independently is important. What you call "mis-directed rebellion or overzealous DIYishness" is them reaching developmental milestones.

A school system that requires extensive parental help is bad system.
Sorry, blog layout has changed since then. https://zserge.com/posts/cucu-part1/
Not sure if this was ever the case. The Christian temperance movement succeeded in restricting liquor trading hours in Australia in the early 20th century. Workers would finish work and hurry to the pub for an hour of binge drinking known as the 6'oclock swill that lasted in some states until the 1960s. Working men's bars changed designs in response. Very long bars were needed to serve lots of beer in a hurry. And with people carrying lots of beers back to tables, sometimes doubling up before last drinks I expect a fair amount ended on the floor. So I think they got rid of all the fancy decor and went with tiles and troughs they could wash down which did give these old bars a public toilet look. I doubt if many have survived.
They seem to all end in 404 for me (Sweden). Maybe they are just in the middle of redesigning the homepage?
The S&P isn’t a reasonable benchmark to PE in the first place. Your argument is like saying: “US Teasuries underperform the S&P by 8% every year, people and countries buying treasuries are stupid and just want to be part of some secret club.”

There’s a couple of things wrong with this argument so let’s go over it:

1) Low or uncorrelated return streams are very valuable due to the central limit theorem. As you add these return streams together, they form an increasingly tighter normal distribution. This gives us two advantages: we can convert non-normal distributions into normal ones, and we reduce our standard deviation with every stream we add as long as the correlation is less than one.

2) Returns aren’t the defining factor of whether a strategy is worth it. Instead institutional investors measure investments by their Sharpe ratio: the slope of the line between return and risk (the axis is the risk-free rate). The reason for this is that since these kinds of investors can not just lend, but borrow at the risk-free rate, they can lever up their returns to anything they want. This is called risk-adjusted returns.

4) The biggest risk in investing is exposure to Beta, “the market,” which in the US is usually measured by the S&P 500. Reducing exposure to Beta is often goal #1 of institutional investors. Maybe not a 100%, you should definately not be exposed to a 1.0 Beta coefficient. This is especially important for endowments, pensions, and other funds that have monthly or yearly pay-outs. The auto-workers would be super pissed if the economy tanked and they no longer got their retirement pensions. After all, that’s one of the things that pensions are supposed to hedge against.

Before I started working in finance, I definately had the same questions and theories as you. After all, the field is very baroque and complicated and the explanation of the industry being stupid is very simple and straightforward. Chesterson’s Fence is a good way to view a lot of things. Understanding is always a prerquisite for change.
>> A truly dumb idea is giving anyone unfettered access to your digital devices.

Goes without saying. But laws being what they are you may have no choice in the matter.
Those two points aren't exclusive. They've now seized a secure phone and are still required to let you enter the country.

I wonder what would happen if you tried to claim insurance on a phone seized at the border?
Can't help you with the video-taking technique but when playing back the videos, if you hold the phone so that the video matches the screen, then rotate it so the screen is upwards, you can then spin it so it looks the right way up as long as you keep the screen vertical enough.
Makes sense. They have their own TLD: .im. There was a time in the 2000's when .im was a halfway useful TLD for startups to use.
Any time you say to the officer something you know is not true is lying. It may not necessarily be immediately grounds to detaining or turning you from the border but it may cause further escalation. Never tell a lie to the police and never offer any information unless directly asked for it.
You are both correct.

Incidentally, the "border" for legal purposes extends 100 miles into the interior.
Most likely a copy paste from what the CCP told them.
Your statement is untrue. You have the right to remain silent at the border as well.
You absolutely do have the right to remain silent at the border.
Untrue. People who crack jokes about "constitution free zones" at the border are just uninformed. There are some obvious broad waivers on searches to enable the enforcement of import/export and immigration laws, but other rights that don't relate to the particulars of border enforcement are not impacted.
Apart from the US, where else has middle schools? Here in Scotland there is (Optionally) nursery, primary school (5-12) and then secondary school (12-16/18), no middle.
In my experience, refusing to unlock/answer questions results in a 3-30 hour delay, depending on the mood of the border pigs.
Nothing here justifies what you said.
The hypocrisy you're referring to applies to practically every liberal nation you can name. You're merely selectively, conveniently focusing on the US and narrowly focusing on this issue while ignoring other types of very common border restrictions in "free" countries that like to lecture on human rights.

Shall we discuss border security and immigration (which is a type of border security restriction) policies of Canada, Australia, Japan or the Scandinavian nations - to name a few?

Nearly every liberal democracy is blatantly, intentionally regressive at the border, typically in several different ways.
Agreed, largely. At the rate we're going, that mantle will be theirs for the taking before long.
the link show aggregate death for all kind of road vehicles and all kind of weathers. select for clement weather, exclude bikers, filter by city drivig so the comparison is in line with what waymo does and suddenly the bar is much much higher.
We've banned this account for trolling.

Please don't create accounts to break HN's site guidelines with.

https://news.ycombinator.com/newsguidelines.html
>If the "new" chain has some value post-fork, that value has been siphoned off the "old" chain

Not necessarily. I don't see how that follows at all.

>Suppose the opposite was true. If you could create value out of thin air like that, we could all get rich just by forking cryptos over and over again. I know it _seems like_ this has been happening in past 2 years. It's an example of irrational market behavior. There is no* reason hard fork should create value.

How does that matter to the IRS whether market is being irrational or rational?

>However, in a rational market this information would be incorporated into prices _before_ the hard fork: there is still no rational reason for the total price of assets to magically jump after the event.

The crypto market is full of hype and irrational actors
Here's a reason: the market was unsure whether the fork would happen until the moment of voting.

Let's say the chain is worth $100 unforked and the value of forking is $10. The value might be $105 if the market only thinks forking is 50% likely, and can remain uncertain depending on how much voting information leaks out. If the fork succeeds, value jumps to $110.

I'm not making this up out of whole cloth either, merger arbitrage funds make a living on these price jumps in equities.

As a meta comment, it's probably unwise to make such sweeping negative claims in a field as varied and immature as economics/finance. You'll always find broad exceptions, since the definitions are all made up by humans out of convenience.
I used to do this but I have two iPads and three phones and the larger ones take several hours to backup/restore. :/
They'd likely point to the clause that excludes seizure by authorities, which most policies have.
I'm as sympathetic to the protests as anyone and I'm definitely not used to defending Apple's behavior, but are we sure that this is spin? Undoubtedly the app is being used for more than just "ambushing and attacking police". But absent a firm belief that this reason from the Chinese government is bullshit, it's actually a pretty tall order (and questionably ethical) for a corporation to push back against a govt demand to remove a tool ostensibly being used to attack police forces.

My views on computing freedom generally skew towards the Stallman side of the spectrum, so I'd actually be fine with a stronger norm that Apple could tell govts to screw off[1]. But I'm very aware that I'm an outlier in this sense, and expecting Apple to push back in the face of a demand like this seems well beyond consistency with the norms that currently exist around tech companies' responsiveness expect to govt demands, on grounds of what the power relationship should be between governmental and corporate entities.

[1] (and ideally stop being so heavy-handed about their own enforcement of App Store apps...but that's another story)
Thanks!

For me as an outsider it looks like Chinese people are scared from another massacre (for a good reason), but it's interesting to know that Xi's power doesn't look that stable for you.
That's a misleading statistic.
The death rate is around 1 per a billion kms driven.
One might argue that humans are actually very good at driving.
Calling them "border pigs" will result the delay being closer to the 30 hour mark =)
Thanks for clarifying, but neither Emacs nor Vim is my cup of tea :)
Strange society where friendships need to be made via organisations. What about the good old chat at a pub or somewhere else and keeping friendships?
A status symbol is something that shows that you can afford something other people can’t. Almost anyone in the US who is on one of the four major carriers can afford an iPhone.

Have you ever thought that people might actually prefer it’s functionality?
Hmm, the Chinese site seems to be down in general: http://web.archive.org/web/20160604100313/http://www.dol.cn/...

Translating the page [1]:

> can not find this page

> The page you are searching for may have been deleted,

> renamed, or temporarily unavailable.

>

> Please try the following:

>

> Make sure the website address shown in the address

> bar of your browser is spelled and formatted correctly.

> If you reached the page by clicking the link, contact

> your webmaster to let them know that the link is not in

> the correct format.

> Click the Back button to try another link.

>

> HTTP Error 404 - File or directory not found.

> Internet Information Service (IIS)

>

> Technical information (for technical support staff)

>

> Go to Microsoft Product Support Services and search

> for titles that include "HTTP" and "404".

> Open IIS Help (accessible in IIS Manager (inetmgr))

> and search for topics titled "Site Settings," "General

> Administrative Tasks," and "About Custom Error Messages."

Looks like the website hasn't gone anywhere for a while now.

[1] https://translate.google.com/#view=home&op=translate&sl=auto...
You don't understand how things work in China. It has nothing to do with ethics. You give up free speech so you can make a few bucks in China. But in the long run they will only let their own companies thrive. Those the communist party can control. You will be eaten alive.
But will they get here before fusion power? Which I hear is about 30 years out.
Argh, and I thought Switzerland was confusing (though as a completely sovereign country it may still be near the top). These are on a whole different level.
Just how much bakers are appreciated in France.

(Which I think is great.)
Great read! Just noting that the website redirects you to an obscene (but funny) image if this site is the Referer. Disable Referer before clicking or copy the link into the toolbar manually.
As a US citizen you are not required to unlock anything (or answer any questions) when re-entering the US.
No professional experience. I'm intrigued by systems of rules with exceptions, and I have pretty good recall for random, mostly useless data. (It's a useful collection in aggregate). Some amount of motive to minimize taxation; the tldr there is if you wanted a super awesome charitable trust, open it in the 80s; and maybe try to figure out how to get startup stock into a Roth account before it's worth much, but this requires prescience to know it's worth the effort. I think there are some brokerages that could offer enough flexibility to do it, but I only looked into it much too late.

I read bogleheads forums and tax questions are usually interesting to me. I don't like filing my tax returns without understanding why everything is where it is.

All that said, discounts aren't income comes up in the context of "why aren't cash back credit cards taxable, but account opening bonuses are" which also touches on 1099 rules because people complain about bank X issuing 1099s for all the bonuses, even when they aren't near the reporting limit. A quick search to verify that gift cards count as income (because they're considered cash equivalent) also reminded me of the name of the W-9 form.
I realize that it's frustrating to represent a minority or contrarian view, but if you post in the ranty and flamey style, not only do you break the site guidelines, you end up discrediting your own viewpoint. And if your view is correct, then you end up discrediting the truth, which is even worse.

We've had to ask you multiple times not to do this. Would you please read https://news.ycombinator.com/newsguidelines.html and stick to the rules when posting here, regardless of how wrong others are or you feel they are?
In the ex Soviet countries its main school 9 yrs that is obligatory, then gymnasium for another 3 years that in theory voluntary but everyone does as it's also necessary for university etc.
My original claim was simply "firsthand accounts are evidence". Your said there wasn't evidence. I provided firsthand accounts. Multiple ones. You are now apparently claiming that these firsthand accounts are not evidence. This is a simple falsehood. You may disbelieve these accounts, but they are still evidence. And they justify what I said: evidence exists.
Wouldn’t it be safer to:

1) Backup phone then reset to factory before flying
2) Restore once through customs.
One of the common image processing libraries does take into account EXIF rotation: OpenCV [1] I would tend to use that over manually rotating using the code from the article. Although beware that OpenCV cannot open quite as many formats as Pillow, most notably it cannot open GIFs due to patent issues. You can get a prebuilt wheel of OpenCV by pip installing the package opencv-python [2]

[1] https://docs.opencv.org/trunk/d4/da8/group__imgcodecs.html#g...

[2] https://pypi.org/project/opencv-python/
The usage of the 2 character variable names is a "refreshing". At least the author of the code was gracious enough for the following to help debugging.

debug; // print executed instructions