skysight-inc/HackerNews huggingface dataset:
That may be less useful than you think, since the FP versions of many OO design patterns are just functions. The FP design patterns can end up being quite different than the similar OO versions, if you can even call them design patterns.

So, all of this below is written in terms of FP beginners, so if I make a claim, it's in those terms, not general functional programming terms. I know that some of the information below is not entirely correct, just bear with me.

Some argue that FP doesn't really have design patterns, which isn't true, but can be a useful mental model to keep you from getting hung up on them while you're learning. Consider than many of OO's design patterns are built to structure mutations on data. FP, by contrast, doesn't (typically) mutate data. That's where things diverge, and that's fairly early in the learning process.

All that said, there are slews of things that can be "close enough" one-to-one mapped to an OO version, it's just that most of those things are fairly trivial. Map/filter/reduce vs. for-loops, for example.

Perhaps you could start there. Rewrite some for-loops with map/filter/reduce. Learn the rules they follow, learn what a monoid is and what laws it follows and why they're useful, go from there. Something that helped me early on was implementing each of those in terms of the others. For example, implementing filter with reduce.

Experimenting with good "playground" languages can help a lot. Hy[1] is an example of that, it's Lisp-flavored Python. You'll have a Lisp with a standard library that's very widely known, and you only need to install a Python module to use it (rather than, say, the entire Clojure stack).

The biggest takeaway is that FP is geared very heavily towards writing programs and data pipelines that are built with small, composable pieces that are ideally also associative. You can of course do this with OO, but then your code ends up looking like this:

someFunc(anotherFunc(thirdFunc(data)))

Or:

var someVal = thirdFunc(data)
var anotherVal = anotherFunc(someVal)
var finalVal = someFunc(anotherVal)

Or:

// Mutate
data = thirdFunc(data)
data = anotherFunc(data)
data = someFunc(data)

Compare to Clojure's version:

((comp third-func another-func some-func) data)

And Haskell's (might be wrong, I'm not a Haskell programmer):

(thirdFunc . anotherFunc . someFunc) data

[1]: http://docs.hylang.org/en/stable/
>The cost of fraud is chargeback fee (usually ~15 bucks) + merchandise.

that's the least of the cost. the real cost of chargebacks is in the processing rate increases.
Yes, especially if you wait a while and get hit with the massive ISO exercise AMT tax because the fair market value is now high. I've paid well over $100k in AMT because of this.
How to Increase Jio Speed
Does anyone know any investors I can pitch to? I'm actually serious about a social media platform that pays users to use it.

It's a totally shameless clone of facebook. We'll collect user data, monetize it, track people, everything. The whole 9 yards.

The only difference is that we'll take the profit and share it with users after we take a fair share for ourselves. Users will love it because they get paid for it. Advertisers will love it because the users will have extra cash to buy shit with.

Everybody wins.
Listening to some podcasts that feature Dr Steven Gundry will motivate you to fast for the gut health benefits alone

(Here's one: https://aligntherapy.com/podcast/dr-steven-gundry-plant-para... )
Interesting. I can't hold it against someone for enjoying the area where they grew up. I know how it feels to have someone insult your hometown and wouldn't want to do that to anyone else. I've always enjoyed visiting the west coast.

If you ever find yourself in Northern Wisconsin, sea kayaking the Apostle Islands is pretty spectacular. Check out http://livingadventure.com/ for more info.
Perhaps 10 years too late for you, but high bit depth is finally here in 2.10.
The problem is not for the rapist or killer, the problem is for someone innocent getting matched as one.

If you run a 99.99% accurate match against a database with 100,000 people, one of whom is the criminal, you are going to get 10 false positives.

If you're one of those false positives, good luck convincing a jury that the 99.99% accurate test is wrong in your case. There's a reason for why general warrants, and most kinds of fishing expeditions are illegal.
I bought a laptop from HP about a year ago, and they canceled my order after shipping it, having FedEx return it to them. I'm still mad about it.
Thanks. I also found this too: http://www.shervinemami.info/armAssembly.html
I use reshipping centers a lot, even if the store ships internationally. There are two main reasons:

1 - I may buy a lot of things from Amazon. It's cheaper to pay US shipping for X times (sometimes they are free) and only one international shipping to my country.

2 - Customs taxes, etc. The company I use for reshipping takes care of everything. I pay them and they deliver the items to my house at the time I ask them to do it. If not, due to the policies of my country customs, I would have to attend a custom office for every item I purchased, which is a pain in the ass.

Don't discriminate us, please.
> Don't ask someone else to DDoS your competitors, even in jest, especially not in writing. Besides being in bad taste, this can come back to bite you.

I'm sure there's inspecific biting precedent about using an overabundance of caution in writing about any jokes you might have made to any other person, maybe especially in a legal system where even the risk of having legal proceedings can cripple you for the rest of your life, but the guy literally said "No, don't. I was just joking" a few moments later.
Add the HN RSS feed to a feed reader, use it to skim the subjects (HN doesn't put anything but the subject line in the feed) and only open those subjects which are of interest. Never hit the main page. This does two things:

1: it allows you to only look at those subjects which are of interest, either through the comments or by opening the page link without seeing the comments

2: it somewhat protects you from the effects of the HN echo chamber/popularity contest in that it shows you everything which made it to HN, no matter whether it was directly pushed off the front page due to flagging/downvoting/overactive moderation.

I'm using the Nextcloud [1] News app [2] as a feed reader, there are others but this one works well and handles large volumes without problems.

[1] https://github.com/nextcloud/server

[2] https://github.com/nextcloud/news
Money is one factor, but so is time. A lot of these kinds of parts like heat shields and expensive instruments are effectively one-offs, where there may be 1, 2 or 3 of them made, and usually the test articles aren't fit for flight because they determine defects that are later fixed in the one that flies.

There are certain launch windows for Mars where Earth and Mars are closer together [1] that you really need to be ready for. If you miss it, you might have to wait 2 more years for the next window. Sometimes you can't get the necessary refit time no matter how much money you spend.

[1] https://en.wikipedia.org/wiki/Exploration_of_Mars#Launch_win...
Are there any harmful effects the increased surface gravity would have on the human body and if we were to live on these Super-Earths how would we mitigate them?
>I don't see anything uniquely American about it. More like The Human Way™ :p

The uniquely American bit is the 300 years of institutionalized slavery which bred and sold humans like cattle by the millions and treated them as agricultural equipment on a scale unrivaled in all of human history.

Of course many societies have had slavery, but the transatlantic African slave trade (which was the very economic basis of the New World, centered on tobacco, sugar, and cotton production) was far and beyond the most brutal act ever committed against a race of people.
Meh. I still find Eclipse to be far superior to Intellij. I gave Intellij a try last year and just didn't find anything appealing about it.

OTOH, Eclipse, while different releases have been better or worse than others, and despite a rough period starting with the whole "Eclipse 4" thing, the Oxygen version has been very nice. I started with a RC of Oxygen and it's worked so well I never even bothered upgrading to the actual release version.

The only thing that really annoys me about Eclipse is that they killed off the TPTP sub-project, and I really liked their profiler back in the day.
there's no reason to believe overengineering leads to safer results, yet alone competitive on the market or fit for the problem statement. case in point: airbus a380
Finland wants to boost growth with a new startup residence permit
Development teams not wanting to learn or own infrastructure development, probably.
Data on a Genealogy Sites Raise Privacy Concerns
A rare occasion where I disagree with the EFF: There might be many cases where people want to get inconvinient truths censored but the right to be forgotten is necessary in an internet where lies are spread just as easily, where the media (look at you yellow press) are quick to print a suspects name before they've been convicted. We are not just talking criminal records or data collection companies.
In emacs, 9 keys. M-1 0 0 0 0 0 0 i
> It was a the era of "what should I name my cat?"

A lot of those links 404 for me, but a lot of that stuff could have been taken care of by being better at defining what was on and off topic, e.g. it's a site for subjective questions about programming, rather than programmers answering subjective questions. SO has the moderation resources to handle that.
The list of ingredients on Knorr bouillon is extensive:

Salt, monosodium glutamate, hydrogenated cottonseed oil, chicken fat, hydrolyzed soy/corn protein, dehydrated mechanically separated cooked chicken, dehydrated chicken meat, dehydrated chicken broth, autolyzed yeast extract, dehydrated onions & parsley, lactose, water, colour, spices & spice extract, disodium guanylate, disodium inosinate, citric acid, tartaric acid, hydrogenated soybean oil and sulphites.
Base 256 is plaintext. That’s just standard bytes.
If the objective is "have a flashy headline", yes.

If the objective is a lasting peace on the Korean peninsula, I'm not so sure.

Here's why: https://twitter.com/QiZHAI/status/989795774975242241
"You know, Facebook's free. If something’s free, that means you’re the product."

Even when a product is not free, you are still the product. I'm pretty sure Walmart is selling my purchase information to advertisers.
I hear people make claims like this all the time on hacker news and reddit, and I just don't get it.

The only way I can see someone who knows nothing about computers experiencing 10x less issues by switching from Windows to Linux is because they use their computer 10x less or the person they go to for tech support knows Linux better than they know Windows.
NewEgg’s operating margin is probably between 3 and 10%, so that bounced transaction cost them ~$250 in profit. Would they have lost more than that by fulfilling your order size in 2009 if it had been fraud?
Cool. That's handy. I will try it out for a few days.
It also seems to have pretty much locked up my emacs. I guess I deserved it.
We know states are prohibited from storing biometrics (DNA, fingerprints) of law abiding people for law enforcement purposes. Then it follows they are prohibited to outsource the same to third parties.
Towards fairness in ML with adversarial networks
Claims by Joy Reid’s Cybersecurity Expert Fall Apart
> It is very informative to make a an online dating profile of the opposite gender. I'm a man, but when I made an account on tinder with a female friend's pictures I was blown away by just how radically different the experience was.

It sounds like I'm joking, but if you're a moderately attractive male in a smaller city, a Grindr account will give you a very similar experience. Within an hour I had quite a surprising number of, let's say, risque images sent to me.

Nowhere near the same number of weird or inappropriate messages, though. Some of them were pretty blunt, but nothing I didn't mostly expect, and nothing like the awful things I sometimes see being said to women on the internet.
Not everyone lives in US and earns 100k+…
However, even you you get 1/3 of that, if having a better tools speeds you up it's still worth it IMHO (thus I took the plunge and migrated from NetBeans to IntelliJ a couple of years back).

ad rem - I could never make myself using Eclipse - it always felt like getting in the way instead of helping.
Amazon: For every dollar of op. profit, 73 cents came from AWS
> My criticism is that news orgs shoot first and ask questions later.

That's a gross generalization.

> Even the news orgs we hold in very high regard (NPR) do it.

Source?

> They need to operate more like the justice system; you should be absolutely sure of the facts before you publish them.

One should never use absolutes as there are exceptions to nearly everything.
NK had been working towards ICBMs + nukes for decades. This had been the biggest source of conflict with the U.S. during all that time. That their project completed is not enough to explain why the DPRK is coming to the table.

Giving up their nuclear capability means they can never do this again, and they'll have no way to ensure that we keep giving them whatever it is that we'll agree to give them. Which is why I fully expected them to insist on a continuation of the status quo, with them retaining their nukes.

That they are willing to [verifiably, presumably] give up their nukes is a very big deal. It means that the DPRK was faced with something very bad for them. That can only have been Trump's twisting of the screws on the DPRK. My impression is that Trump would starve them to the point that Kim would end up hanging from a lamp post, and that he has the leverage on China needed to make that happen.

The change in the American approach to the DPRK nuclear weapons issue is the biggest change, and it is the direct cause of Kim suing for peace.
Thanks! I just set up the reminder. It really should be opt-out but I'm sure Amazon knows what it's doing... Also curious if Amazon will send it's customers an email regarding the price increase (regardless of their settings).

Also strange... it also states on the left-hand panel (as of 27apr18, 1pm PDT):

> Next Payment: On September 25, 2018, you will be charged $99.00 for a year of Prime.

From all the articles I've read regarding this, the cut-off date for existing prime customers is June 16th. If I'm to be charged $119 on Sept2018, it should already be noted on the Prime Pages. Seems like a user-hostile action on Amazon's part.
>Accept a certain amount of loss in exchange for fair customer treatment.

"accepting loss" gets priced accordingly. personally, i'd rather give merchants my real email address and not pay an extra fee simply to give you the privilege of keeping your email address secret.

If you want to make yourself indistinguishible from a fraudster, please find a way to do it without affecting the price everybody else pays.
>A successful test, identifying an flawed component design.

It could also be a flawed component. Just because the test failed doesn't mean the design is flawed.
That combination is probably what I would need if simpler corrective attempts don't work. Thanks!
I know there was a big thing in like 2010 that tried to discredit them. They were forcing people to pay for good ratings and giving lower ones to people who wouldn't. Honestly thought they died out after that.
I haven't used Photoshop in a long time, like 10 years and I'm sure that version was out-of-date already being a public school computer. I had used GIMP before using Photoshop. Given that context, I remember Photoshop to be significantly more user friendly than GIMP is even today.

Where did you find it to be more intuitive? I'm thinking big features like iWarp vs Liquify (which is now addressed as well as similar tools, sweet) and then basic things like the default brushes are horrendous (the pepper is funny but really?) and the scale slider for editing tools is absurdly weird to use. Depending on where you click there are like 3 things that might happen and on a brush or brush-like tool 75% of the slider scale is larger than the image dimensions thus useless. I end up struggling with that slider _a lot_. Not to discredit GIMP, I've been happily using it for more than half my life, but I'm genuinely curious what parts of it you think are more intuitive than Photoshop?
which is what?
> It's so weird for someone to assume that weird looking address indicates fraud.

I mean, they aren't assuming that... they are basing it on data. They have lots of data on fraudulent purchases, and apparently that is one of the indicators.
Ask HN: Is any of the big COBOL codebases open source?
I read Increment.com article on COBOL and I'm wondering if there are any COBOL codebases that are (a) used (b) open source. I wanted to see how ugly it can get inside.
First were Applesoft BASIC on my Apple IIe at home, and whatever weird BASIC ran on the TRS-80s at school. Then Microsoft QuickBASIC on an early Mac, followed by FutureBASIC, mostly on a Mac LC. There was a little RealBASIC near the end before I finally switched over to C.

FutureBASIC was my jam. QuickBASIC was too slow so I tried to learn C, but it was brutal trying to learn that on my own. This was before the web and I knew zero people who knew any C. Something like a misplaced semicolon would get me stuck for weeks.

But FutureBASIC was almost as easy as QuickBASIC, fast enough for games, gave full access to the Macintosh Toolbox (graphics), and had a really cool visual interface builder (PG PRO). I could make software in it that looked like "real" Mac applications (which felt amazingly legitimizing to teenage me) and ran fast enough for real games.

It was really hard to make the switch to C because FutureBASIC was good enough for quite a long time. I wouldn't be where I am today without all the fun I had using it back then.
I love the artwork behind the article:
https://www.candyjapan.com/static/credit-card-fraud_s.png
Can someone elaborate on why escaping a planet's gravity is about velocity and not just attaining a certain height from the surface? More concretely, why isn't getting to space as easy as taking a balloon to a certain height?
LabCorp will introduce at-home lab tests to connect directly with consumers
As a single guy who has little interaction with women, it terrifies me. It's pretty much the only way I'll ever meet someone, but it doesn't fucking work for me.
#stoned_ape_theory
I have begun wondering aloud about whether the social media era is our closest approach as a species to telepathy.

And while hardly a (modern) sci-fi maven, I never encountered any works that tried to step through how a species would achieve telepathy.

The stories I read that had telepathic species glossed over their transformation, usually with some variant on the phrase, "It wasn't pretty."
I think that really depends on the problem space. If I had to hire a sales team to increase revenue, then I hire them and check the revenue numbers (with basic accounting for other secondary variables), its pretty straight forward to validate.
Doesn't Stripe cover some / most of this?

There are some settings, or at least an overview in the dashboard where you can see if the address was verified and it matched the one on the card. Using billing / shipping address in your order form is obviously for this reason.
How could the government get their hands on your DNA, unless you've committed some crime in which your bodily fluids were involved?

> However, what if your cousin uploads his?

If you've given your DNA freely to the government by participating in a violent crime, then hopefully you will be caught and your cousin will be relieved that yet another criminal will face justice.
> As a result your DNA can be found at a location you have never been to.

Sure, but how could it possibly be linked to you?
Poor village workers had to work physically and strength mattered a lot. Also, you paid taxes per household making it very hard for single women to make it. E.g. girl has to marry cause living without man is super hard.

You dated two weeks at 15 and then announced marriage and then it was for live.
Is this necessarily true though? Do you think the situation I illustrate here is not possible (crappy photoshop of cas9 guide RNA matching a DNA sequence across a 'imotif'):

https://i.imgur.com/huIKqyD.png
Which is rather slow and doesn't add much. Other than awe that someone actually managed to do it :)
This kind of trolling doesn't belong here and will get your account banned.

https://news.ycombinator.com/newsguidelines.html
If you put a smartphone circuit board into a car it won't make it 5 years until failure from sheer mechanic stress. There is a reason you can buy automotive grade components, and it's not that car makers like to pay more or have less volume.

And ultimately, of course, circuit board weight or dimensions are not really a metric worth optimizing for something that goes in a car. If you can make it cheaper by only having 6 layers instead of 18 for a smaller version, auto makers will choose the penny pinching option every time.
The camera stores have it down pretty well. I remember trying to ship a camera lens to my fathers place (He's retired and can sign for it) as opposed to my usual address. Long story short (and a phone call), I did get it sorted. But part of that was I was a customer for a few years and was able to prove that it was ok. I was glad they were vigilant.

They have databases of "known addresses" so if your order doesn't match, it can be hard.

(They keep the old addresses too, as an attempt to get UPS automated phone center to hold for pickup one time ended up with them shipping the clothes to an 8 year address of mine in a adjacent state. )
The prosecution has this mans DNA. His relative's DNA likely matched a lot of people. Obviously, they didn't arrest the entire family. It seems likely that they will collect his DNA and attempt to match it to the DNA in his semen. If they get a match, then there is a high likelihood he is the suspect.

More likely, though, they will get a full confession. Serial killers often love to explain their work and take a lot of pride in confessing, because they're really messed up people.
Alcoholism rates change over time. And the gap between men and women was getting smaller.
If all you want is Vim-but-with-SLIME, there's always evil-mode.

And it's not that you have to use Emacs to become a proficient lisper... it's just that once you're used to doing things the lisp way, you'll want a hackable environment that also does things the lisp way. This includes the editor.

That said, I prefer lisp for my smartphone programming. Not because I have emacs on my phone, but because lisp is such a great choice precisely when you don't have a good editor and keyboard.
I'm guessing it's more so that there's a lot of traffic coming from that IP that it was flagged as a proxy.
Please link to the original article. https://theoutline.com/post/4277/dont-buy-the-new-macbook-pr... Linking to Gruber instead caused a bunch of confusion last time. https://news.ycombinator.com/item?id=15499536
Apple's rumored AR headset may pack 8K displays and VR support