skysight-inc/HackerNews huggingface dataset:
Stripe won't touch adult content, I've tried (chargeback ratio is very high, I don't blame them). Very hard to find processors who will work with adult content of any sort.

The real problem is that person to person money transfers shouldn't be prohibited unless by law. Perhaps Pornhub, in the US at least, could use something like Zelle to mediate transfers between patrons and performers (using their bank account to make Zelle requests, and then distributing that out to performers with Zelle). At least until the Fed gets their ACH modernization act together and we get near real time payments.
Most charting packages have a terrible default: set y axis original point around y min, which is rarely appropriate in data visualization. In my opinion, the default should always be zero.

Another one is bars in bar/column charts are horribly wide.
Thanks for the links! The "green ... greeen!" guys just downvoted me to hell.
Bayes is very simple, easily understood by a 6 year old, if explained properly. There are scary looking integral equations used to express it, but ultimately if you can count you can implement this.

Let's build a bayesian spam engine:

Start with a known-good email (not-spam) and a solicitation (spam). For each word in the not-spam document, count the number of times each word appears. That's your not-spam "corpus". Repeat for the known-spam document. Now you have a list of words+frequency (dictionary of counts). There will be many words which appear in both lists. This is normal.

Now, when you have an unclassified document, for each word in the document check both lists (spam & not-spam). In which list does this word appear more frequently? if the count for that word is higher in the spam list, then this is a "spam" word, therefore this document is +1 spam. If a not-spam word, then this document is +1 not-spam. Repeat for all words. At the end, which count (spam or not-spam) has the higher total? There's your answer. Spam or not-spam. Done.

Simple counting and comparison.

Seriously, that's the algorithm. It's that simple.

If the system miscategorizes a document, move it to the appropriate group yourself and count all the words again. (retrain). The system just "learned" from the mistake. It got "smarter".

You can easily add more categories, other than "spam" and "not spam" -- "questions from customers", "family & friends", etc. It works the same. The group with the highest total "wins" the classification.

extra credit:
Now here's the interesting part. The corpus doesn't have to be words. It could be a switch set to "on" or "off." Joint angles on a robot. Ping time of a packet. Temperature from a thermistor.

And the classification doesn't need to be spam/not-spam, it could be "friend vs foe", upright/inverted, safe/not-safe, or anything else. The algorithm doesn't care, it's looking for probability of being in a classification group.

There you go. Have fun!
Using a map for hiking and for road driving are pretty different scenarios. On a GPS for car driving I don't need to really look around much it already knows where I am and I can just search for where I'm going. Hiking there's not really anything to search for and things like battery life are a bigger problem.
I think that's partially correct. If you follow https://vfxplatform.com/ it says Python3 was pushed from 2019 to 2020 to allow everyone to upgrade Qt and PySide (which are prerequisites). The reason it was deprioritized in previous years were similar transitions like C++14, gcc, etc.

I've been meaning to dig into Maya, Houdini, Nuke's Python 3 transition plans. I know Houdini will offer a Python 3 option with Houdini 18 (shipping in the next month or so).

I don't think the reason was because of downstream users. Python 3 was an inevitable change. Previously, they swapped out PyQt for PySide which wasn't a forced change, but required everyone to update their Python scripts.
necessity breeds innovation
It helps to reference Que's schema [1] and source code to explain this further. But I'm also going from memory so it's possible I will miss some details :)

* If the entire worker process dies, then it will lose its Postgres connection which is holding an advisory lock on the jobs being worked. This releases those jobs to be worked by another worker. I don't recall how the built-in retry & back-off mechanisms work in this scenario. This advisory lock is indeed held for the entire time the jobs are being worked on, but only from a single supervisor connection (rather than one connection per job).

* If the job thread crashes, the worker supervisor catches this and the job is marked for a retry at a later time.

[1]: https://github.com/que-rb/que/blob/master/lib/que/migrations...
Were any of them against an adversary as large, heavily armed, and motivated as the CCP?
On Biotech and Legacy Software
A contributor once wrote on hn about the huge market for a porn friendly payment system. Key feature, must not look suspicious on credit card bill...
> "This may be why cats are getting diabetes," Brand offers. "Cat food today has around 20 percent carbohydrates. The cats are not used to that, they can't handle it."

It's worse than that, usually 35-50% carbohydrates. The good (expensive) dry stuff is usually 10-20%. Wet food is often lower, depending on the type, as low as 7% as-fed with pates.

The weight-control labelled food is terrible both for weight and diabetes risk. It trades protein for carbohydrates under the assumption that cats don't absorb the carbohydrates as easily because the cat's liver has to process them. But this means the liver processes them to body fat, and the lack of protein leaves the cat less satiated, so it eats more food.
I think they're both fucking with each other, and they both know it. It's the equivalent of a black guy pointedly using street slang with a white guy he doesn't like.

The sushi chef is the only one who doesn't realize exactly what's going on. Or maybe he does and he's playing along to have some fun at both their expenses.

(Come to think, the chef is doing the same thing, isn't he? He can make himself understood in English when he wants to--"He say you under arrest, Mr. Deckard"--but he does business in Japanese, even when the customer is speaking English.)
Something something naming things.. ;)
Porn breeds innovation.

See also: Flash video.
Perhaps an opportunity for Pornhub themselves to get into the payments business? I assume they have enough transactional volume and vendors to make it happen.
Ask HN: Is there a graphic editor for HypergraphDB (or other hypergraph)?
I searched half the web and back without a definite result. So can anyone point me to a combination of a knowledge modelling system with editor where

- hyperedges/n-ary relationships can be modelled directly.

- vertices and edges can be explored, created and maintained graphically without coding (click, drag & label rather than SPARQL/Gremlin/Cypher queries).

- several non-IT experts can collaborate to model their domain of expertise (web-based, multi-user).

- both DB and editor can be installed without DIY coding from framework/library/API.

- licence is ideally OpenSource type.

I found HypergraphDB and webVOWL, but I could not find out whether and how they work together to model knowledge hypergraphs.

Thank you for any help/hint!
Windows: Forcing a System Crash from the Keyboard
One more - in what is now a very long list - argument for bitcoin.
The irony, of course, (as anyone with failed ML launch at Google knows, haha) is that internally Google has extremely strong privacy practices and safeguards and probably is the best organization to actually handle this data correctly.

As for de-anonymization, of course raw data should be pre-anonymized: anonymization is a major source of mistakes in the data, often rendering data useless, and needs to be done correctly by the people who know how to do it correctly.
It should theoretically be possible, since even fancy high-luminance monitors only run about 30W in use.

The real limiting factor here is that, assuming you could get a GPU with USB-C-out, you'd have to pass that power and any for accessories hooked up to the monitor through the GPU, and the nice ones currently are hitting the limits of available power already all by themselves (75W PCIE, 2x 150W power connectors - and a Vega 64, for example, can briefly peak at 360W).

So, to power your monitor over the same cable (and have at least another 15W for accessories plugged into it), you'd need a GPU that maxes out well under current ones on the market, which kind of defeats the point, you know?

On a side note, the way GPUs are increasingly hitting power constraints is why you see new designs switching to weird proprietary stuff like Apple's MPX modules, which allow a dedicated 500W per graphics card.
China Releases the Kraken Against US Dollar
I’m the last person to jump on the bitcoin bandwagon, but this is one case where I think it’s warranted.
95% of voters say homelessness is L.A.'s biggest problem
Experimental test of local observer independence
> Real alternatives to paypal and credit cards need to enter the market.

They already have. They're called cryptos.

[edit]: judging by the downvotes, looks like the sheep instinct is strong on HN
Why would Array.Sort have locking in need of elision?

[I'm reminded of the old Java "Vector" or "StringBuffer" that put a lock around every operation "because thread safety is good" which had high cost for single threaded usage. But this is likely not what this is about.]
"If you don't talk to your kids about quantum computing, someone else will."

http://www.smbc-comics.com/comic/the-talk-3?fbclid=IwAR3vAxI...
For those employees maybe
How are wind and solar cost-competitive when they can exist in Germany only with extreme high subsidies?

Look at the new windfarm called "Wikinger" that Germany built near the island of Ruegen: https://de.wikipedia.org/wiki/Offshore-Windpark_Wikinger

Cost: 1.4 billion Euros
Lifetime: 20 years
Power: 350 MW
Max. capacity: 0.4 (40%)
Price at the electricity stock exchange Leipzig: 36 Euro/MWh

Thus: 3500.42436520*36 = 883 million Euros

Result: 517 million Euros loss
I use none of the above, but I guess you can't autofill smartphone app credential fields with Lockwise, while you certainly can with 1pw.
Unknown Fund: Investing and donating to support anonymity
Top Apple exec – students using Google laptops at school ‘not going to succeed’
The question is not if you're carrying $400 in cash, but whether you can afford that expense. A credit card paid off in full is considered cash-equivalent: "When faced with a hypothetical expense of only $400, 59 percent of adults in 2017 say they could easily cover it, using entirely cash, savings, or a credit card paid off at the next statement (referred to, altogether, as “cash or its equivalent”)" (from the same page of that report).
Please link to previous comments rather than copying them. Copy/paste isn't good for fresh conversation: https://hn.algolia.com/?dateRange=all&page=0&prefix=false&qu...

It's a great comment otherwise.
...but in the countries of the former east there is barely any variation, whereas in Bavaria, Baden-Württemberg and Brandenburg there is massive variation. Also, you'd expect that in the countries of the former east, taxes would be lower to attract more business activity, but the opposite is the case, since those tend to have more left-leaning leadership.
can you point to a minimal example where vanilla vim autoindent cannot cope with python code editing? I never found any situation where I had to press the tab key
The issue here is that it needs to be easy for a person viewing their credit card bill to know that they paid for something... and not be super weird.

I had a buddy who nearly did a chargeback against a club that put "E 11 EVN" on his bill... name is Eleven Club.
I'm using the Birwarden Windows app (and Mac app) right now, and both seem great to me.
Beyond distributed and decentralized: what is a federated network? (2013)
I'm still waiting for a work project to come by where I can replace Redis with https://keydb.dev and test that in action.
It would be awesome !

There is a long history of people getting screwed to the point of having their company go out of business because paypal decides that they will freeze their funds for 6 months or that they no longer want to be their payment platform.

It would not be a big issue if there were 3 or 4 competitors .. but as things are, paypal is what people use to buy things online or to send money to a friend.
20 years is a common number that is used for windparks and solar cells. A lot of sources cite that number.

And that with capacity factors ranging between 10% to maximal 50%.

Modern nuclear power plants (VVER-1200) reach 60 years of lifetime and have a capacity factor of 90%.
But if they're just using Google as cloud storage/compute it's not being shared. Only very few Google employees would have access, they'd have very careful limitations and access on who accessed what - that's not the same as giving to google for some big AI experiment.
> and almost certainly had timeouts, the "max" would also likely be at the timeout

You filter out the 504s, just the same way you would analyze it on a per-route basis for those metrics.
I work for Google but not Cloud.

From what I understand they serve different needs. One is deployment at the container level and the other is at the functions level. Both use HTTP as the communication layer. Depending on your workload there are good reasons to choose either.
The headline makes no sense when they follow it up by saying

> Battery-grade lithium is used primarily in EV batteries, and many automakers have high purity standards. Much of the industry’s capacity to produce high-quality, battery-grade lithium is locked up until 2024

They're just putting two unrelated things in a headline to imply they're related. It's clickbait/FUD. If they're selling all the battery-grade lithium, why don't they tell us about why demand is down for low-grade lithium?
BetterTouchTool. It's not free, but it's cheap enough, and it lets you do a lot of cool things (including the multi finger swiping which you can assign to anything you want). You can write AppleScript routines and assign them to buttons, or have them run every n milliseconds to display something, which is what I did for the last line of the file thing.
I would love a 6" screen if it had any breadth. My Samsung Note 3 just had a hardware failure forcing me to "upgrade". Even though the Note 10 has a 6.3 inch screen instead of the Note 3's 5.7 inch screen, the Note 10's screen is _narrower_ due to the change from an 16:9 aspect ratio to 19:9.

My search for a _wide_ phone led me to develop this:
https://github.com/dotancohen/screensize/

I've run it across every phone on the market and no phone is available that has a screen as wide as the Note 3 had six years ago. But phone _height_ has increased over 30% on average.
How so? Please expand.

They sum up as follows: "Aside from a few devotees of the White Goddess, no one rates Graves as a prophet these days, but his books, some of them at least, are too good to be left “lying about.” The best of them should be picked up and read. We should be grateful that it’s easier than ever to rediscover Graves and grant his work the attention it deserves."
I remember those late 90s VR chat apps. None of them figured out the controls, usually opting for some sort of awkward three knob style navigation widgets. Interface was via browser widget so it barely worked on every platform. Everybody wanted to make Neuromancer's Other Plane, but the tech wasn't even close to ready.
The spec isn't a disaster. Vendors implementing is.
The main problem is that OEMs don't give a sh*t about the spec and cutting corners whenever they can.
Lots of mining sites have created a supply glut, this isn't a downturn just a market correction. Not a negative for consumers.
Donald Schön and the reflective practitioner [pdf]
Commercial Open Source Software Glossary
Message queues achieving the rate you said are typically not durable.
Pretty much my thinking as well. It's not a question of not investing in clean energy, it's a question which is a better bang for the buck and which gets us to fully carbon free energy faster and more reliably. Economies of scale would drive the costs of power plants down like you wouldn't believe. And then there's the secondary effect of more investment into nuclear physics research, which, after we figure out fusion will make carbon based energy completely obsolete everywhere, forever.
Bitcoin will solve this problem.
Terminally-ill scientist completes transformation into world's first full cyborg
If the state wins, I wouldn't be surprised if Lyft and Uber pulled out, or at least increased their fares by a substantial amount.
I'm working on a decentralized app to remedy these type of moves by big payment processors.

The new flow I suggest is: BTC -> Coinbase -> PayPal.

Withdrawals are instant & only subject to standard fees. The can funds can also be instantly converted to cash, via the PayPal Business Debit Card.

References:
[1] https://blog.coinbase.com/instant-paypal-withdrawals-now-ava...
[2] https://support.coinbase.com/customer/portal/articles/295995...
[3] https://support.coinbase.com/customer/en/portal/articles/210...
[4] https://www.paypal.com/us/webapps/mpp/business-debit-card
I guess they weren't needed then perhaps? Generally local maps here in the states, until the invention of the automobile were drawn up by whatever county or city the maps were for, yes, you could buy a copy, but they were not in common circulation unless you had a car.
I believe the original commenter was more referring to the lack of 'this' usage in Java.

So instead of having:

this.x = y

People tend to do:

x = y

Which isn't always the most clear that it's referencing an instance variable rather than a scoped variable, especially if you see it midway through a method.
Show HN: Puzzle Game Made in Go
I'm not sure how they would avoid getting frozen out by Visa/Mastercard/Amex in turn
It's disappointing to see a highly-upvoted comment from someone that didn't read the article. The article discusses explicitly why R-trees were not used:

>Instead of indexing the geofences using R-tree or the complicated S2, we chose a simpler route based on the observation that Uber’s business model is city-centric; the business rules and the geofences used to define them are typically associated with a city. This allows us to organize the geofences into a two-level hierarchy where the first level is the city geofences (geofences defining city boundaries), and the second level is the geofences within each city.
Very much for your help you with the details of the matter is that you are not feeling
Oil and gas ("energy") companies are investing a lot into wind energy. They know they have to adopt. In the end they just want profits and they have the capital to make the right investments. I really wish the environmentalist movement saw them as just another money hungry corporation instead some evil villain out to destroy the planet. They would love to diversify their revenue stream, now is a good time to work with them because of the huge fossil fuel demand and the political pressure to wind down dependence on it.

On a separate note, I have two questions: why don't wind turbinea have more than one "wheel"? And does anyone know if ground tethered floating turbines (like airships) will be commercially viable?
Cats tend to kill small birds that aren't considered very valuable. House sparrows for example are a dime a dozen, and are an invasive species.

Turbine blades tend to kill larger birds, usually raptors that have populations that regenerate slowly.
Fight the New Drug
> The dangerous part imho when it comes to a geopolitical application is, while most of us can recognize the complexities and tradeoffs in a computer system, at least when they're pointed out to us, very few seem to be able to see similar complexities in geopolitics (a massively more complex system), even when it's pointed out. It's as if we've developed an intuition that passionately rejects the very suggestion, a behavior which in itself highlights the complexity involved.

Well, one of the fascinating things that anthropologists point out is that every society succeeds by-and-large in getting the children to behave like (that society's version of) adults. In other words, culture is somehow stable even though it gets renewed from generation to generation. So we are programmed in a way, and for that to work as well as it does, parts of the program have to remain stable, and that implies that the conscious ego cannot be allowed direct control over all parts of the internal model. And, in fact, there are only a few autonomous functions that are also (partially) subject to conscious control: breathing, blinking, and a third one that I just forgot... heh

In other words, the rigidity you're talking about is "works as intended" for the original context: small tribal groups living in the wild. What we call civilization is only about 12K years old, eh? With most of the action happening just in the last two or three centuries the complexities in geopolitics are entirely novel.

However, since about the 60's information about reprogramming ourselves has become more and more available (Just for example, "Programming & Metaprogramming in the Human Biocomputer: Theory & Experiments" by John C. Lilly was published in '67 I believe.) Rapid progress has been made, but a concerted effort to apply this information as part of an overall political shift has not arisen.

Bucky Fuller pointed out that we have the technological capability to create a kind of utopia, from my POV it seems we also have the psychological "technology" to get over our problems and actually do it.
Yeah, that's fair. My experience is the navy, which is mostly a safer-than-average industrial environment.
My hunch is that would incur unwanted liability from FOSTA-SESTA [1]. Producing content and paying talent out directly is fairly straightforward for adult entertainment. There be dragons if you're attempting to build a marketplace to do something similar.

"The Stop Enabling Sex Traffickers Act (SESTA) and Allow States and Victims to Fight Online Sex Trafficking Act (FOSTA) are the U.S. Senate and House bills that as the FOSTA-SESTA package became law on April 11, 2018. They clarify the country's sex trafficking law to make it illegal to knowingly assist, facilitate, or support sex trafficking, and amend the Section 230 safe harbors of the Communications Decency Act (which make online services immune from civil liability for the actions of their users) to exclude enforcement of federal or state sex trafficking laws from its immunity. Senate sponsor Rob Portman had previously led an investigation into the online classifieds service Backpage (which had been accused of facilitating child sex trafficking), and argued that Section 230 was protecting its "unscrupulous business practices" and was not designed to provide immunity to websites that facilitate sex trafficking."

[1] https://en.wikipedia.org/wiki/Stop_Enabling_Sex_Traffickers_...
Jersey City just had a public referendum on short-term rentals that AirBnB spent millions of dollars lobbying against. It's good to see that the both the public and its elected officials are coming up to speed on the realities companies like Uber and AirBnb force upon them by skirting the law.
I've seen a lot of people online suggest that the Bolivian coup was CIA-backed to take control of their lithium production.
I was just quoting the source :)
I share that perception. For me, this is a sign that people working with the data, probably should not work with this data. They don't really make a good case.

And saying this is business as usual is extremely disingenuous, since the distribution of information was completely different just a few years ago.
This belongs here as it is related:

https://www.forbes.com/sites/chuckdevore/2018/11/27/trumps-r...
Even as a dev and ops engineer, or especially so perhaps, I want passwords to just work. Sure I could write my own but why.
Did you see the "Retro Razr" mode image at the bottom of the article? Even better nostalgia factor!