skysight-inc/HackerNews huggingface dataset:
I think you’re projecting and trying to defend your ego against supporting racist policy, because you’re not racist so how can the war on drugs be?

Please tell me how harsher sentencing on crack cocaine compared to cocaine is not the dictionary definition of racism. It sorts one group out from another (statistically crack cocaine is used more by black people), which is discrimination, and then punishes those people, racism.

The good thing is instead of trying to mind-bend your way around supporting a racist policy, you can just change your opinion free of charge.
"property testing" is closer to fuzzing: it runs a parametric test with randomly generated inputs (following an input specification). Usefully, good property testing systems will try to reduce the input when they find a failure (simplify possibly extremely complex input to try and minimise them to the smallest set of operations triggering them).

Mutation testing alters the system under test to identify under-specified (under-tested) portions, rather than explore the input space.
> People in HN need to start understanding, that...

... Cambridge Analytica probably was (is?) disinformation company, which has no any relation to Cambridge University.[0]

[0] https://en.wikipedia.org/wiki/Cambridge_Analytica
TypeScript trivially catches the mistake:

const func = (i: number, x: boolean) => i * 2
const nope = [1, 2, 3].map(func) // type error!
Indeed, that's one problem I had with it recently—with formulas. I search the web on how to do some thing, and then have to stare at the list of functions to find the same ones in my language. Doesn't help that functions are named like it's the 80s, with arbitrary abbreviations.
FX Britney Spears documentary explores FreeBritney movement
The Mediocre Programmer
Running full mutation testing may be overkill in many situations like people have mentioned here, but the idea is still useful during normal development and review. If you find a problem in the tests, submit the mutation that proves the test still passes.
I read the PDF, it looks great but it doesn't really contain that much information. It's all very abstract, which is fine since it's a booklet, but it doesn't offer much in how to go deeper into it.
Here's direct quote from the link: "we cannot guarantee safety"
I did just that in the end. It took me some fiddling with headers and form parameters and file uploads, and it worked.

It's just that httpie's (and thus ht's) CLI usage is a bit more ergonomic.
Technically, this doesn't seem to be a nose per se, but more creating a sensor to detect molecules for which the mammalian nose has evolved to detect. If we have an excitatory pattern, then most AI techniques should be able to detect it easily.

Instead of creating a single modality i.e. artificial noses or ears, medicine would benefit from a multimodal sensory system that uses vision, smell, auditory and perhaps even taste, _in conjunction_, as the human body is rich with signals through all these modalities.
C++ makes simple concepts so complex some time. I can't describe how disappointed I was when I used `std::variant` for the first time.
> ridiculously high meme prices like $1k per share could have been realistically achievable

And then what? How long is meme inflation good for? AMC managed to issue stock to cash in; how long would it have been before GME's management sold out and also did a share issue?

> variant of the prisoner's dilemma

It's an amazing one where you can meet someone on the virtual street, con them into working with you, defect against them, and leave them worse off.
Yeah, I see the point, in for example C# if you have overloaded methods it tries it best to map it to the accepted type. However you'd have to work really hard to invent a case where a library updates a signature to accept another type, and then you in your code have 2 overloads of a method that you pass and it now choses the wrong version, all while the library change doesn't break any other code.

Scenario: Library changes signature so you always pass functions with more parameters.

Result: This will break almost every codebase, they probably wouldn't do this in a minor patch.

Scenario: Library adds a new signature where you can pass functions with more parameters and keep them overloaded between each other.

Result: Compiler can't identify which of the two signatures to pass your overloaded function and throws a compilation error.
You mean to avoid passing named functions? The suggested alternative still passes a function. Although unnecessarily wrapping a named function in a lambda is bad code style (in most languages), it doesn’t seem that disastrous of a habit to get into.
Small-brain managers might use the information to retaliate against employees.

Big-brain managers would use the information to ask the employee why they don't believe in the company anymore and use it as a feedback mechanism.

Galaxy-brain managers would take the signal from many different employees to find out if their assessment is correct or not, and figure out if it is time to cash out or to go long, just like every C-level executive does.
/r/all does immediately ruin the subreddits that appear there.
> not the implicit fourth requirement that the function throws an exception for other inputs.

You could probably generate invalid inputs by taking a list of strings as input. Though of course at that point the property test has to reimplement half the function.

That's an issue I often end up having with property tests: the oracle for interesting properties is as complex as the SUT, so you end up with two of them.
There's going to be a lot of space wars
Fourier-Transform Infrared Spectroscopy
Those taking part in this program also could have known what they were doing. https://en.wikipedia.org/wiki/Developer_Transition_Kit#Condi...:

“The terms of the Universal App Quick Start Program indicated that the program would run for the duration of one year counted from the moment the developer signed up for it, with an option to terminate it early without reason. Additionally it had a specific provision regarding one of the benefits associated with the program, namely the DTK. The DTK was to be returned within 30 days after the end of the program itself or "as otherwise earlier requested by Apple".”

The $200 already was better than that. I don’t see anything to blame Apple for on how they handle this.
> What language with optional function arguments protects you from this sort of behavior?

Languages with a sane type system.

TypeScript has no issues catching such mistakes. Writing tests to catch simple type errors is such an incredible waste of time.
How to Pitch Startup Investors in the US
Nice idea, however the readability/contrast...

Author, please read: https://contrastrebellion.com/
What is that PoC in the issue doing? They check e which is not set after first line in the function:

func send(addr, server, sni string) int {
c0, e := net.Dial("tcp", addr)
if e != nil {
log.Fatal(e)
}

c1 := tls.Client(c0, &tls.Config{
ServerName: server,
InsecureSkipVerify: true,
})

c2 := tls.Client(c1, &tls.Config{
ServerName: sni,
InsecureSkipVerify: true,
})
c2.SetDeadline(time.Now().Add(2 * time.Minute))
s := fmt.Sprintf("GET / HTTP/1.1\r\nHost: %s\r\nUser-Agent: curl/7.68.0\r\n\r\n", sni)
//b := make([]byte, 4096)
l, _ := c2.Write([]byte(s))
log.Println(l)
if e != nil {
return 0
}
log.Printf("%s->%s->%s\n", addr, server, sni)
return l
}
Homemade vaccines are not contagious (just stating the obvious).
Iamlive – Generate an IAM policy from AWS client-side monitoring
> using a non Chromium browser is the only way to ensure that the Web is still healthy

Just using some other browser isn't enough. Unfortunately not all webmasters take this seriously, I reported many website issues as a Firefox user to many orgs, even university departments, the most common answer is "Just use Chrome". The ignorance is enormous.
One answer to this question would be to explore who this "Reddit" is. The company, the admins, the users, the moderators, the owners, etc etc
>"Fourier-transform infrared spectroscopy (FTIR)[1] is a technique used to obtain an infrared spectrum of absorption or emission of a solid, liquid or gas. An FTIR spectrometer simultaneously collects high-resolution spectral data over a wide spectral range."

[...]

"The term Fourier-transform infrared spectroscopy originates from the fact that a Fourier transform (a mathematical process) is required to convert the raw data into the actual spectrum."

"The goal of absorption spectroscopy techniques (FTIR, ultraviolet-visible ("UV-Vis") spectroscopy, etc.) is to measure how much light a sample absorbs at each wavelength. The most straightforward way to do this, the "dispersive spectroscopy" technique, is to shine a monochromatic light beam at a sample, measure how much of the light is absorbed, and repeat for each different wavelength. (This is how some UV–vis spectrometers work, for example.)

Fourier-transform spectroscopy is a less intuitive way to obtain the same information. Rather than shining a monochromatic beam of light (a beam composed of only a single wavelength) at the sample, this technique shines a beam containing many frequencies of light at once and measures how much of that beam is absorbed by the sample. Next, the beam is modified to contain a different combination of frequencies, giving a second data point. This process is rapidly repeated many times over a short time span. Afterwards, a computer takes all this data and works backward to infer what the absorption is at each wavelength."
The financial crisis: A foreshadow of the corona crisis (April, 2020)
Nyxt Browser (Lisp-Based)
Reddit are still processing the problems of free speech, which includes allowing others to defraud people on your platform.
Not wanting to be harsh, and maybe I've just completely missed how this works, but I'd be interested to see an explanation of why this is anything other than utter nonsense.
This is obviously false in the case that an error is made in the process. E.g. someone vaccinates themselves with a live virus, or possibly accidentally engineers an even more virulent strain.
The article content is great and a good advice, but let me nit-pick on the title a little bit.

It should be "Don't use functions as _arguments_ unless they're desdigned for it".

Function passed as arguments to higher-order function are just that, arguments.

A function callback on the other hand is just that, a call back, after a longer asynchronous run.
While being a heinous thing to do, the only devils-advocatey thing I can't refute is that there are no examples of the inverse, e.g. companies not trying to protect their businessmodel via despicable tactics for the greater good of humanity.

If this is just an inherent condition of humans working together in groups, shouldn't we rather put the blame on the regulators for ignoring the science and accepting the bribes for this long?
That's still not how I use tl;dr, because it's a teaser, not a summary. I would say "Don't use SameSite=Strict to replace anti-CSRF tokens if you have subdomains". That tells you "Here's what you're going to believe by the end of this article", and then you can decide whether you already know that or care to know.
Yeah, problem with JavaScript function signatures is that every function argument is optional, including all the arguments you didn't write.

In python those functions would look like:

def F(a = None, b = None, *args): ...

And you can't write any other kind of function in javascript. I don't really like that aspect of javascript, it creates so many hard to debug situations.
Untangling the Meaning of Object Oriented Programming
The first is an example of default argument syntax, it doesn't mean you can call functions with extra arguments, only that a value will be provided from the declaration if the call doesn't.
Just a tidbit on the over 65s having "no income".

They actually have a lot of income, from collecting pensions and rents.

Neither of these income streams were cut by COVID.
They are still very good at orange revolutions though especially domestic ;)
It doesn't if the x parameter in func is :number.
Ah yes, the good old "SV culture disrupts X! Revolution at 8 o'clock!"

There's an arms race:

* People are evolving memetic resistance to the incessant BS, ads and bombastic headlines.

* The SV/startup culture is evolving to inject authenticity to overcome people's BS defenses, convince them they need a change.

Honestly, do you still get excited when you read "AI solves X!"?

Probably another huckster peddling empty air, cutting corners, externalizing costs. The whole game is tired, and people are taking note. Not everything that exists requires a radical change.
Indeed, a very inefficient use of limited resources and energy in the known universe. How irrational.
No, there's a real flow of money: a stock entitles you to (a) the future dividends, if any (b) potential income from stock buybacks, which are basically dividends with a different tax treatment, and (c) a vote on the company to control the first two.

(Some companies have non-voting stock, and some don't pay dividends, but in all cases everyone is holding out for the eventual promise of capital returned from the business's actual profits.)
There's also people C and D who sold to A and bought from B...

So looking at it from a whole is different from just the buyer and seller. There's a chain.

I agree it's not a zero sum as stocks can rise independently of just market activity if the company is doing well.
Thanks for pointing out this confusion i'm a backend guy and anytime i have to deal with JS i keep wondering wtf people are talking about and if I'm dumb. Apparently they just switch words for free.

This is not helping beginners and it make documentation and qa especially hard to search.
Depending on whether you look at state or local prisons, anywhere from 1/3 to almost 1/2 of inmates are detained for non-violent offenses. With a reasonable rehabilitation program that focuses on getting people out of the situation that led them to petty theft, drug dealing, etc in the first place, we could probably take 30-40% of the population out of prisons and reintegrate them to society with no discernible impact on public safety.

This would be without even touching any “wife-beater,” rapist or murderer.

There are a lot of people unnecessarily locked up for absurd sentences compared to the crime who absolutely deserve another chance at society. We should actively want that. It’s a net good for society and it happens to be a lot less expensive, too.
I can understand why that is the case. But I have also buried two members of my family. So quite frankly they can fuck off.

There’s a compromise somewhere in the middle in the grey area which is actually the situation that we’re in despite it being explained as black and white but these nut cases.

We also in this case have to consider cultural differences. America is obsessed with a somewhat bent and selfish form of personal Liberty which ends up as another lever on which compromise is impossible. Liberty for the other person is their right not to be harmed by your liberty as well don’t forget. America just ends up ending up having a right to the highest body count.
Adam Back -> Satoshi Nakamoto
if one extremist chases away 100 normal users or 100 advertisers then the calculation is clear.

For instance, a normal brand like Target or Budweiser doesnt want to serve ads next to hateful content -- it has too much to lose.
The end result appears to be more regulations and more limitations on trading by retail / normal people. And it appears that normal people will welcome it (given the sentiment in these comments). Protect the people from economic and political scammers via regulations and censorship.

After 2008 one of the "solutions" was to limit day trading to normal trading.

In other words it's knee jerk bad solutions to make the problem disappear from view whilst ensuring the root cause continues as normal.
why does it say Russia and culture though? Saying this is culture based on what Russian government is doing is like saying American culture is about grabbing women by a p*ssy based on Trump's behaviour.
That's because there's no comparison between letting old people die and young people having to get an EU passport... or whatever downsides Brexit will bring us.
The Okinawa flat belly tonic
The Okinawa Flat Belly Tonic Review
Okinawa flat belly tonic is a new and powerful dietary supplement for supporting healthy weight loss and digestion.
It is inspired by the healthy ...
Click Here To Watch Video
#okinawaflatbellytonic, #health, #weightloss, #lossbellyfat, #okinawaflatbellytonicreview
There's two big issues with this approach:

1) death is but only the worst outcome. Being on the space shuttle does bring risk, yes, but not a 50/50 chance of a significant impact to your general health.

2) you'll end up testing the vaccines largely on marginalized population and people with heavy financial problems, misrepresenting the population at large and showing biased result.
I think the author may have gotten their TypeScript example wrong.

Yes, TS is fine with passing more arguments to a callback that takes fewer. The callback cannot possibly use the additional arguments, so it doesn't matter what gets passed as it will not change the outcome.

This is very different from passing the wrong kinds of arguments to functions that do read them and do something with them, like parseInt.

Now, if you decide to pass a function with an optional second argument that matches the second argument that will get passed to the callback and expect that it will not be used because why would anyone pass additional arguments to a map callback - then yes, you will have the problem again.

function addOneByDefault(num: number, addAmount = 1) {
return num + addAmount
}

[1,2,3,4].map(addOneByDefault) // this typechecks but works poorly

This extra example is missing in the article and might be helpful to add.
They'd need to maintain trusted sandboxed environments for every supported compiler/interpreter. That's a lot of work.
Sorry, but, yeah censorship is against free speech. Free speech is what prevents radicalisation because left and right will be talking with each other. The only reason we're seeing this is because of the online censorship, which has been ramping up for years now.
> In the 20th century, the country slowed and then stopped giving out hereditary titles; the last one granted was in 1984

Wasn't the 1st Baronet Thatcher created in 1990?

> But lawyers, unlike doctors (medical or otherwise), have no other title-based way to signal what they do

Don't most lawyers in the US have a JD? That's a doctorate isn't it? Can you call yourself 'doctor' from that? (Not even all medical doctors calling themselves 'doctor' have a doctorate!)
Cant help but think this is GPT-3 generated.
There is no legal address, phone, email and no imprint on your page, that looks highly fishy. Would fix that. Privacy policy is missing as well :0
I agree with you that Python now features some redundancy. Yet I do not agree with you that there is 'complexity', going by your examples.

Notwithstanding the various ways of doing the same thing (which sometimes goes against the zen of Python), as of Python 3.6 there's been a constant trend towards f-strings above all else (barring maintenance and legacy code), and generally beginners have no need for anything beyond f-strings. If they'd like to go into the old string formatting techniques, they're welcome to, but they're not that complex.

I don't understand how type annotations constitute a 'compromised design' - they've worked quite elegantly with Python's dynamic typing, they greatly assist linters and IDEs when you turn them off, and they can be disregarded when you don't need them, which is a far cry from the enforced typing of other languages.

And I certainly do not agree that there is a need for a "next Python". Python does a lot of things very well - it's design is clear, the design patterns are methodical, the language is well-governed, the central packaging system is reliable (and not like the insane NPM and dependencies of JavaScript), there is a distinct idiom/style consistency amongst Pythonistas, a and a large gathering of minds behind the language. Further, Python reads very well, and can be even pseudocode without being pseudocode, which makes it very much suited for beginners who can stray as far as they want to into the language when they feel ready for it.

Python is a great language for beginners, so I have no idea what you're talking about.
Yep the problem is very much reduced but it still exists: an API/DSL provider that hinges on blocks can change the args under your feet and it would only blow up when the argument values start to receive unexpected methods, instead of at the interface.

As you mentioned, lambdas and methods check for that, but it’s sad to have to give up the syntactic and lexical niceties of blocks.
Re why would we care: this is a search algorithm for numerical coincidences. Most numerical coincidences are trivial, for example can be derived from hypergeometric function relation which was known to Gauss. In fact it would be interesting to automatically filter formulae which can be derived from hypergeometric function relation... On the other hand, numerical coincidences can lead to deep theory, monstrous moonshine is a prime example. Hope is that by searching for numerical coincidences, we can discover one leading to deep theory without already knowing that deep theory. This seems reasonable.
Random Idea:

o P2P Stock Exchange

o P2P Insurance

o P2P Financial Contracts (Tradeable)

o P2P Commercial Paper Exchange

etc., etc.
Employees have lives right? Some of them might want a big wedding, new house, new car, nice vacation? These are all totally normal aspirations. If you’re working at a company where your boss doesn’t even acknowledge your humanity then your problems probably run deeper than this. Do these types of managers also want input on how employees spend their paycheck?
B2B LinkedIn Analytics for Lead GEN
If you are making your vaccine from artificial peptides that are a hundred times shorter than a live virus, this seems unlikely. There was no way for live virus to be introduced into this process.
I fully agree with you, but I also recognize that in our society it appears the legitimate arguments are too easily ignored because no one is out protesting as a result. At best, we get headlines about small businesses closing or people out of work or divorces, but these facts are being treated as casualties of the pandemic and not a reason to protest the lockdowns. So the only way to affect change is to whip people into a frenzy and it seems only disinformation is effective at doing that.

Again, I fully agree with you and do not believe the ends justify the means here.
We do this with Notifly.io
Another fine Example of we cant even do Web Pages, let alone Web apps.

On Safari, simple scrolling makes the content unreadable.
Because that's no longer a type error. TS is not going to help you calling the right function. :)
Divi Performance Enhancement Introducing Static CSS File Generation for Divi