skysight-inc/HackerNews huggingface dataset:
Functional chaining (aka “fluent interfaces”) is very bad for dependency injection / mocking.

In f(g(x)) you can directly access or patch f and g as top level names.

In x.g().f() you have to patch methods internal to other structures, and this can lead to problems if the patching should only happen in a certain local scope.

I encountered this recently with differences between pathlib.Path and os in Python.

Consider

def my_mkdir(pathname):
pathlib.Path(pathname).mkdir()
# or
os.mkdir(pathname)

From the pov of testing and decomposition, the second option is much nicer, because I can patch os.mkdir directly, and not patch pathlib.Path.mkdir (and also worry about controlling when instance creation happens to use the patch when I need it, but let other possible pathlib.Path objects my tests interacts with be constructed normally). mkdir is even a very simple example since pathlib.Path.mkdir is an instance method but only relies on the string data the instance has. Imagine how much harder if pathlib.Path.mkdir has complex interaction with the internal object structure or other instance methods.

Obviously you _can_ solve it either way, but the fluent interface does nothing except require more code.

On this balance I think list comprehensions (or just fmap, which is all comprehensions are) are much, much better than chaining.

Also if you want to operate on data structures just operate on them with module functions.

I think pandas really messes up on this.

agg(groupby(df, cols), funcs)

is way better than

df.groupby(cols).agg(funcs)
As someone living in Myanmar (Burma) nobody justifies being poor with Buddhism.

> wholesale enslavement and transport of complete populations such as in Thailand not too long ago and in present day Burma.

Nobody is being enslaved because of Buddhism in present day Myanmar. That’s ridiculous. The violence here has very little to do with religion. None of the ethnic independence armies are theological (like ISIS for example). Nobody is picking up guns because they read some sutras.

The emperor that had a huge influence marrying Buddhism with government in Myanmar and Thailand and who at one time ruled the Indian subcontinent, Ashoka the Great, abolished the slave trade (3rd century BCE). Slavery was practiced throughout the subcontinent before Buddhism became intertwined with the state.
> Perhaps the people who fled were the ones guilty of crimes mentioned in the article?

Yup. Lets trust the red terror system of justice

(do note: I have a quote from Russia, so, there is an important caveat there. Still...)

Martin Latsis, chief of the Ukrainian Cheka, stated in the newspaper Red Terror:

We are not fighting against single individuals. We are exterminating the bourgeoisie as a class. Do not look in the file of incriminating evidence to see whether or not the accused rose up against the Soviets with arms or words. Ask him instead to which class he belongs, what is his background, his education, his profession. These are the questions that will determine the fate of the accused. That is the meaning and essence of the Red Terror.
It’s not bogus if they lost the lawsuit.
Hasn't worked for me when I tried. Would be nice indeed to have a thread (maybe once a week) which is specifically for sharing landing pages or validating ideas.
Couple Creates Stunning Garden Pub and Everything Inside of It Is Handmade
the real audience for twitter is the news media who magnifies its exposure granting it more relevance than it deserves. the organizations that know how to exploit this are very good at intimidating others through direct accusation or insinuation. This can include people who simply don't agree with a point or view or are not vocal enough in their agreement.

Joseph McCarthy has been resurrected but now by the mob.
> For a long time I assumed that google indexed pretty much everything it,

They did that for a long time, but some years ago the index grew so big, they started restricting it. I thing the general timeframe is 10 years or less till the last update.

> If you click the advanced search its "updated within" and the max timeframe is a year.

Because it makes no sense to go further. For older content you can define individual dateranges. And yes, it works fine for me. Tested a search for 2015 just now, first side had entries all from 2015.

> In fact it seems the date range example doesn't even work: https://developers.google.com/custom-search/docs/structured_....

All those examples are not working. Wasn't custom search retired some years ago?
Does it?

Only one side is forbidding people to look at things for themselves. It seems better epistemological practice to suspect this side more
I'm pretty sure China has soul too, actually multiple ones.

But it's not about soul, it's about money; that's what shareholders care about. There's also the question of security - cooperating with China could lower the risk of being invaded, simply because there would be nothing to gain by doing so. (Although one of the comments below explains pretty well why invading Taiwan would be pointless anyway.)
Yeah, the leap from cute emoji variables to partial derivatives really threw me off. The vectorisation was a final punch in the gut (“I hope you can convince yourself, assuming you know matrix multiplication”).
Would it be allowed under the App Store guidelines to offer IAP, but then give customers who purchase the service through the website 30% cashback? The price would be the same in both places, you'd be purchasing the exact same service. But a certain group of customers would get a 'loyalty bonus'…
Obviously books:

[!] 1) The 360° Leader, John C. Maxwell

2) Drive: The Surprising Truth About What Motivates Us, Daniel H. Pink

3) The Alliance: Managing Talent in the Networked Age, Reid Hoffman & Ben Casnocha & Chris Yeh

[!] 4) It's Your Ship: Management Techniques from the Best Damn Ship in the Navy, Michael Abrashoff

5) Reinventing Organizations: A Guide to Creating Organizations Inspired by the Next Stage of Human Consciousness, Frederic Laloux

6) Immature People with Power How to Handle Them, Larry Mullins

7) Games People Play: The Psychology of Human Relationships, Eric Berne

In no particular order. That kind of list could be endless, but 1-7 I consider the most important ones (you can throw away (5) if you aren't interested in how to simplify corp structures) regarding shaping anyone into a reasonable leader. It's all about: attitude, values, understanding oneself and other people.

The only reason I'm putting all of this here is because it's a good investment. I hope you will read those, because I don't recommend stuff I know nothing about to random people ;) This world desperately needs better managers, not another infantile prick who thinks he gets it (I'm not pointing that to @OP directly, it's a more general problem). Again, I can only hope that the 10 minutes I've spent here are going to blossom in the future as at least one good guy who knows what he is doing because he thinks about what he's going to do beforehand. If that's not going to happen that's going to be on you (and I will find you and then we're going to have an unpleasant conversation). Meanwhile, I highly recommend the mentioned books and reading in general. This is how you can easily distinguish yourself from a herd of management sheeple who consider reading to be harmful for their egos ;) Howk!

A general tip: I've written "books, obviously", because management is on of those disciplines where there ARE good books, as well as good trainings available. The books route is far less expensive, it's as good as let's say expensive couching, and there's some space between the lines in books in general one can utilize for thinking for oneself!

All of the above comes form my own experience.
I agree about the naive free pass buddhism gets from those critical of christianity.

Ultimately though, religions tend to develop similar memes regardless of differences in philosophy or theology. "Accept your misery, peasant" is a highly recurring meme. It's not hard to find grounds for it in the christian gospels.

Victorian anglicans printed prayer books for household maids enforcing exactly this message. These were very young girls sent (sometimes sold) from villages to the cities. Many tried to escape. Religion was used as a chain.

The liturgical themes in these prayers trace back to aurelian stoicism. That nasty work (meditations) was highly influential on christianity. Originally intended to help the upper crust accept their misery, it's been recycled for millenia to help the truly miserable to obey their masters and accept their masters' cruelty... literally and in those words.^ This is just one small example of christianity re-enforcing slavery, meekness & servitude.

Modern "secular religions" entirely grounded in liberty and equality develop these themes too. 20th century communism(s), objectivism, etc. They all have (had?) ways of justifying "astonishingly callous mistreatment of the poor and unlucky." It doesn't seem to matter what philosophy you build from, it ends up in the same place.

Western philosophies of racism, imperialism & monarchy had both religious and secular justifications. The abolitionists also had both religious and secular justifications.

"Fundamentalism" is generally accepted as bad, dangerous and morally corrupting by many westerners today. Very few take the next logical step: Fundamentals don't matter. It doesn't matter what Jesus said, what the philosophy says, etc. Those things don't determine how the religion is practiced or what the operative day-to-day beliefs are.

^https://www.bl.uk/collection-items/a-pamphlet-for-servants
I know productivity takes a hit when you switch tools but FF dev tools are great, it just takes some getting used to
Oh, this is a completely different entity.

Seems a bit hostile to sweep up the branding of librivox like that.
That’s essentially the 1-3% annual raise the first post was referring to and wholly different than the 30-40% raise that was central to the discussion
> Mao killed hundreds of millions.

Engaging in genocide olympics is bad enough, but this is probably the most overt example of bad history I've ever seen. You've managed to even surpass the black book of Communism (100 million claimed) in your reaction.
Y'all ignorant gorillas https://en.wikipedia.org/wiki/Cooperative_eye_hypothesis
No, boost/preprocessor is a library that offers metaprogramming primitives for the standard C/C++ preprocessor
I think there are a few issues:

1. Site builders are still hard to use for most marketing staff, if the site should look professional and you need a few small integrations.

2. They don't mind paying for a solution where someone else does the work.

I guess it's hard for marketing departments to pick an appropriate agency and to know the consequences of the technical choices the agency makes. They generally evaluate based on design and then have a few requirements like: resonable performance and support for a handful of features in the backlog.
> We understand that Basecamp has developed a number of apps and many subsequent versions for the App Store for many years, and that the App Store has distributed millions of these apps to iOS users. These apps do not offer in-app purchase — and, consequently, have not contributed any revenue to the App Store over the last eight years.

They literally have paid 8 years of Developer Program fees for supporting the AppStore.
You all downvoted because you saw a stupid comment. I upvoted because I saw a hilarious economics joke.
"These apps do not offer in-app purchase — and, consequently, have not contributed any revenue to the App Store over the last eight years."

This is pretty grotesque coming from a trillion-dollar company that anyway already charges developers a yearly fee.
Adventures in Immediate Unreality by Max Blecher

Translation from the Romanian available at the Internet Archive:
https://archive.org/details/AdventuresInImmediateUnreality

About Max Blecher: https://en.wikipedia.org/wiki/Max_Blecher

This book is a masterpiece. Very few people have heard of it, and until roughly a decade ago, Blecher was almost completely unknown outside of Romania.
> What we really need is a new Google, built on open principles (decentralized / peer to peer, fully free software, backed by a nonprofit),

We have them, they suck.

> and focused on indexing the long tail of insightful content that is neglected by Google because it lacks SEO

How would you even define that? SEO is changing all the time. And google is fighting it all the time.

And how would you prevent SEO focusing on that new searchengine? If it becomes big enough, people will optimize for it.
Wirecard CEO exits as search for missing billions hits dead end in Asia
I'm going to assume that Apple will do everything to maintain their cut. Even if what you said would be possible, I would expect Apple to update their terms of service to abolish it.
If it’s holy in the sight of their god, who are we to judge. If they were willing, it could be argued that no harm was done, even to those who ceased to exist. They chose to cease living to cast their prior life up to that point in starker contrast to their surroundings and peers in time, place, and belief.

[This post does not advocate self-harm. Please seek help from those you trust if you have urges to do so. I care about you, person reading this right now. Please be well.]
That's cool and stuff, but irrelevant to what we are discussing here.

In Tibet, monasteries benefited greatly from slavery. Abolition of slavery hurt them a lot. No wonder they are protesting.
> First, if an app is a way to exclusively consume content purchased elsewhere, like songs or movies or podcasts, they don't have to have in-app purchases

So that might just work, you consume a coupon on the app ? Or not even that, purchase just associated with account
To me that looks super easy to read. You just go left to right.

for y in z:
for x in zz:
if y in x:
yield x

It’s extremely easy to sight read. If the lines become long, just split them up and it’s even more obvious.

[x
for y in z
for x in zz
if y in x]

There’s nothing tricky about multiple loops and conditions in comprehensions in most languages that support them. Just go left to right and it mirrors outer to inner loops/conditionals.
Seems quite risky to have anything "rigged" for destruction. What I find way more believable is that Taiwanese military has exact coordinates of the critical parts of the plant for the artillery to hit it immediately when needed. Perhaps even plans how to properly rig it for demolition but I am always highly skeptical of anything being rigged with explosives on a normal basis, seems like such a high risk to take.
I thought the radar line-of-battle stuff was the wrong presentation for the first part, but kept reading because it was so interesting.

At about slide 70, I realized - "Oh: SV came from EWAR/ELINT technology."
Elon Musk, Steve Jobs and the Rule of Awkward Silence
I’m responding to your comments. It’s relevant to the discussion you started. If you don’t follow your own comments to their logical conclusion, wouldn’t you say you’re not arguing in good faith? It’s kind of how we do things on HN.

Tibetan monasteries as they operated historically are an artifact of history. Further historical and archaeological studies would be the only way to gather verifiable data, facts, figures, and artifacts from the period when the supposed slavery occurred.

This conversation seems like it is mired in historical revisionism on all sides. I’m not a Chinese Tibetan anthropologist or archaeologist, nor am I a Tibetan Buddhist scholar. I don’t know the facts of what happened, or how their society interpreted those events and the people who experienced them. For me to stand in judgement of such a nebulous concept would be irresponsible.

That you are convinced of the correctness of your beliefs is good; you should seek to share your sources so we too can be similarly convinced. Otherwise we’ll just have to take your word for it, which is no better a place than we’re in now.

For what it’s worth, slavery is much worse than being a serf. However, being a serf was likely so miserable that the distinction to our modern sensibilities may be one without a difference. I am opposed to forced servitude in all the world in all its forms.
Here's a little ELI5 about the Laplace and inverse Laplace transform, and why the inverse transfrom is fiendishly difficult, and therefore why this result is extraordinarily important.

Imagine you win the Megabucks lottery. The win is one hundred million dollars. You go to claim your money, but you are told you can choose between the full amount given in monthly payments over 20 years, or a lump sum. But the lump sum is not the full $100MM, it is the present value of the monthly payments discounted at a rate of 5%. To discount an amount received 10 years from now at the 5% rate, you simply divide by 1.05 ^ 10, which is very close to exp(0.05 x 10). If you actually calculate this present value using the exponential function, you say that you use "continuously compounded rates".

So, for any stream of future cashflows one can calculate the present value by multiplying the cashflows with appropriate discount factors (of the type exp(-r t)) and adding them up. For different discounting rates r you obtain different present values. This present value as a function of r is the Laplace transform of the cashflow stream as a function of t.

The inverse Laplace transform is solving the riddle: if I tell you the present value (PV) of some cashflows for any (positive) discount rate you want, can you calculate the cashflows?

Why is this a difficult problem? Because it is "ill-conditioned". Imagine the following two cashflow streams: in the first you get $1MM every year for the next 10 years and another $1MM one hundred years from now. In the second you also get $1MM annually for the first ten years but the last $1MM is 101 years from now. For a zero discount rate the value of both cashstreams is $11MM. For a 5% they are both around $9MM and different by about $300, which is about 0.003%. For any discount rate the PV's will be very very close.

In some cases "in real life" this closeness could be below machine precision level. If someone gives you 2 sets of inputs where their Laplace transforms are different by less than the machine precision levels for all values of the discount rate, then there is no hope to tell them apart knowing only their trasforms only, at least not if you don't use some multiple precision libraries.

That should give you an intuition why the inverse Laplace transform is nasty. All hope is not lost though. First of all, in a typical application the Laplace transform of a function is known in closed (analytical) form, so you can actually use multiple precision libraries if you so wish. I have seen cases where people were using precision of 2000 digits in Mathematica for this. It's slow as hell, but it gets the job done.

Separately, you are free to calculate the Laplace transform at any "discount rate", including complex values. If you are smart about how to choose these values, you can come up with good recipes for the Laplace transform.

For hundreds of years now, the general wisdom was that various inverse numerical Laplace transform algorithms have strengths and weaknesses, but no single one is universally good.

Maybe this one will be, and if so it will be indeed revolutionary.
Most Enjoyable Jobs for Older Workers
Indeed. But we still shouldn't blindly trust the other.
A small percentage of gorillas do have a human like white sclera. Linked article includes pictures.

> Out of the 60 western lowland gorillas they considered, only 30% had completely dark scleras. The remaining 70% had some degree of white in their eyes. Of these, a small sample of 7% had all white, human-like sclera.

http://www.bbc.com/earth/story/20150808-gorillas-with-human-...
Not great examples compared to amazon considering amazon is not just renting space to the seller, but also actually sells the illegal merchandise by taking payment and shipping it.

It’s more akin to finding it on the shelf at walmart than a stall in a market, or more akin to making your payment for the illegal BnB directly to the landlord’s office.

“ Alongside its third-party marketplace, Amazon sells products to consumers directly, and The Markup found it was also selling banned items itself, revealing cracks in the largely automated purchasing system that feeds its massive product catalog.”
Exactly what I love about Go and Gofmt.
Perceptrons were applied to image recognition tasks right from the beginning: https://en.wikipedia.org/wiki/Perceptron#History

Applying them to real tasks revealed their capabilities and limitations, and when computers got better people took it from there.
Are You a Workaholic and What to Do About It?
I feel like this is what Tim Berners-Lee imagined the World Wide Web to be: sharing knowledge and research with interactive media and hypertext, instead of printed papers. It found new applications outside academia, but this site is probably close to the original idea.
Or do as Tinder, and charge 30% more in the app compared to their prices on tinder.com
Deadly border clash prompts renewed calls in India to boycott Chinese tech
Seems like the best we can hope for is an EU antitrust ruling that reigns in Apple’s anticompetitive behavior here.
Inherited Risk for Autism Through Maternal and Paternal Lineage
Isn't that incredible?! I think of Ghz radar being a recent innovation, but that presentation mentions several examples.

Granted, some of the equipment from WWII was so big it took a whole B-17 bomber to carry one unit. So modern tech gets some credit for miniaturization, at the very least.
Twitter labels Trump tweet as manipulated media
Apple’s position is clear and legal, and it’s how the economy works including the proposed hey.com business model. There’s no antitrust violation here, so pay your fees or go somewhere else. Apple don’t owe hey.com a place in the App store, just like hey.com doesn’t owe me a free email address @hey.com.
Deutsche Telekom shapes change and commits to social responsibility
previously:

https://news.ycombinator.com/item?id=23569065

https://news.ycombinator.com/item?id=23568095
They were feudal country in the fifties. That suggests being rather slow at social changes.

Also, "figures show that since the early 1960s, the Tibetan population has been increasing, probably for the first time for centuries" (https://en.wikipedia.org/wiki/Human_rights_in_Tibet).
It succeeded at getting us into a war, but did not succeed at silencing and neutralising criticism and counter evidence. The equivalent would be if the Apollo program was riven by controversy, doubt and criticism from the start, but nevertheless went ahead and rockets were launched but the fakery was ultimately conclusively exposed in the early 1970s, with all the astronauts coming clean and admitting to it.

There was a considerable body of evidence against the WMD story right from the start. Senior CIA personnel were crying foul at how their intelligence was being manipulated for political ends from an early stage, it's just that evidence wasn't enough to stop the war.

Nothing remotely like that ever happened with the Apollo program. There has never been any substantial evidence or testimony against it from within government or NASA, or as Neil pointed out from any foreign specialists or experts, even the Russians. Conversely the WMD story was being challenged internationally from it's conception, as you pointed out yourself.

In terms of challenges, counter evidence and controversy at the time the two cases could not possibly be more starkly utterly different, and that's why they are useful comparisons because the WMD thing shows clearly how government deceptions actually work out.
The semantic web will never work because there is no way to enforce it. If the topic "horses" become popular people will just start tagging their spam pages with "horse" to try to get people to look at their pages.

As an example go look at the tags on soundcloud. People tag their songs with whatever they think will get people to take a listen.