skysight-inc/HackerNews huggingface dataset:
5 Key Factors to Achieve Agile Testing in DevOps
Ah I see what you mean (I wrote macros in Clojure years ago). Yep that would do it, but would require an AST-rewriting decorator in Python.
In all fairness, this thing in China is more close to Italian Fascism from the '30s...
Or hardwire? A fuse, just not having enough voltage, etc?
I imagine it is something like a new building, or perhaps the original heating system being replaced.
My Mom does quilting, and one of her specialties is selvage quilts, so I have some idea of what good quilts look like. This collection has some very odd functions.

Take "colourcode". Why is there a 'longhex' at all? Why not have a 'destinationtype' which is "longhex" in addition to the existing "hex"? That makes it much easier to implement the code as a dispatch table, rather than a lengthy if/else chain (with multiple lower() calls!). For example:

_colourcode_ops = {
"hex": lambda c: c.hex,
"longhex": lambda c: c.hex_l,
"hsl": lambda c: c.hsl,
...
}
def colourcode(startcolourcode, destinationtype):
...
c = colour.Color(str(startcolourcode))
op = _colourcode_ops.get(destinationtype.lower())
if op is not None:
return op(c)
raise ValueError(f"Unsupported destinationtype: {destinationtype}")

The 'destinationtype' docstring is confusing because the code normalizes to lowercase, so why do the examples show "HEX, HSL, RGB, red, blue, green, hue" instead of a all upper or all lower?

Oh, and I believe raising a ValueError ("Raised when an operation or function receives an argument that has the right type but an inappropriate value, and the situation is not described by a more precise exception") is better than a RuntimeWarning ("Base class for warnings about dubious runtime behavior") since 1) this isn't a warning, and 2) it doesn't deal with runtime behavior in the way Python intends.

As another example, consider:

def posnegtoggle(number):
if bool(number > 0):
return number - number * 2
elif bool(number < 0):
return number + abs(number) * 2
elif bool(number == 0):
return number

There's no need for the bool() of a comparison because the reference manual says "Comparisons yield boolean values". And, what's the point? Why would someone use this instead of unary negation? Note that:

>>> math.inf
inf
>>> -math.inf
-inf
>>> posnegtoggle(math.inf)
nan

Furthermore, math.nan is a number, but the above returns None for posnegtoggle(math.nan) when it should return the original nan.

The isfib() also doesn't expect math.inf as an input value.

I think the following function:

def isinfinite(variable):
return bool(math.isfinite(variable))

should be written:

def isinfinite(variable):
return not math.isfinite(variable)

but again, I don't see the point of calling that function instead of just using "not math.isfinite()" directly.

As far as I can tell, "hcf()" always returns 1. Is it supposed to be the same as math.gcd()? I think the loop is supposed to be range(smaller, 0, -1).

fracsimplify() should use the fractions built-in module. Then it wouldn't have the bug that fracsimplify(6, 4) reduces to "6/4" instead of "3/2". This is Python 3 so use numerator//2 instead of int(numerator / 2).
The author (Talia Jane) has some interesting tweets.

My BS-meter is showing a strong reading after seeing these:

"i’m pretty blindly aggressive against all the manifestations of capitalism so naturally my takeaway is Eliminate The Stock Market: It Is Stupid And Harmful And Archaic And, Perhaps Worst Of All, Boring."

"moisturizing in my 20s like i’m in my 40s with the (pointless) hope i won’t look like i’m in my 50s by the time i hit my 30s"

Here she's offering to help buy some guy a mattress:
https://mobile.twitter.com/itsa_talia/status/107409983684723...

Here's she's gone to LA (from New York) for work:

"lemme try this in LA-speak: hey, LA buds! although i’m in town working on a tv project, i’d love to hang out tonight! let me know if you’re interested!"
If you're into this kind of thing a little bit of compilation should not scare you. The norm in the embedded world is to bootstrap your toolchain first, the availability of a good compiler and libraries that are endian clean is amazing progress.
Blame the banks. If it weren’t easy to get loans, people would live within their means. They wouldn’t have a choice.
This isn't a show that is well-served by sequential viewing.

Try the Best of Both Worlds two-parter.
Would it be possible to put the magnets in some kind of tube which blocks magnetic flux, in order to get a linear relationship instead of the square law?
Eh, pretty much Capitalism end game. I'd call it Corporativist Fascism as Mussolini blabbered about.
Google Year in Search 2018
not that hard with some fiducial tags. Here's my (hobbyist) effort that cost a bit more than 1k https://youtu.be/9_9aARNxSuE
What kind of rock are we talking about?
> Maybe most current art and journalism online won't be missed at all.

Likely they wouldn't be missed. Perhaps we would also realize that enabling everyone to become a publisher was a mistake.
Mythbusters did an episode about those masks. They only fooled humans at a distance, and then not well.

Grant does a heck of a double-take, though, at one point. It is a fun episode so I won’t spoil it.
As someone who has worked with the FDA I find this laughable. The FDA has very few qualms about bringing the full force of the US govt down on a company.

Maybe, just maybe, the situation is a little more complex than you realize?
> the “boats” project, whatever that may be

"boats" is a person. Short for "withoutboats". From their about page:

> This is the blog of withoutboats, a Rust contributor and a stack of labrador puppies in an overcoat.
Depending on what fails how in a car, you may have less than a second to recover.

Apart from being hit with a high-explosive anti-air missile, I can't think of any failure mode in a plane that has such a narrow recovery window.
Do you (plan to) support (multiple) one-time billings ?

I am kinda of looking for a library to manage each customer billings and balance
"travelers" is good sci-fi. In the vein of "Fringe" but a little nerdier.
Imagine a simple game where the player has to adjust a dial to tune in an old FM radio manually by holding either button A or button B. The game needs to provide feedback to the user as the tuning happens, in the form of more or less noise, so that the user can stop when the station is found.
He's under no such obligation. Unless you have hard proof it would be nice if you did not contribute to attempts to label people here as shills. See HN guidelines.
Flagging your comment. See guidelines.

"Please don't impute astroturfing or shillage. That degrades discussion and is usually mistaken. If you're worried about it, email us and we'll look at the data. "
> All this to render web pages. I think we must have made a wrong turn somewhere.

We've taken plenty of wrong turns, but none, I think, accounted for more than a rounding error in time or code needed to render web pages. Writing a browser is hard.

Hell, even writing a toy browser-like mockup isn't easy. I built an extremely bad renderer for an extremely simple class-provided XML-ish grammar in school. It only supported a handful of styling keywords (all inline/attribute-based), only one of which was positioning-related ("wrap to next fixed-height global line of display after this element").

It was really hard. Like, really hard. Even looking back on the code with the benefit of experience, it still would not be a breeze.

It supported a single fixed window size and a guaranteed-correct input file. Removing either of those constraints would have exploded the code size to the point I doubt I could have done it alone then, and if I could now it would take me an incredibly long time. Adding the full HTML spec would probably bring its SLoC counts into the 100ks, if not millions. Supporting re-renders and after-the-fact DOM updates would blow it far beyond that, making them fast might require me to go back to school, but who knows; maybe it's easier than my hunch. I suppose I could shave time by moving some of those hundreds of thousands of lines into the libraries which evolved during the many years since browsers became popular, but it would still be a gargantuan undertaking.

And all of that is before the immense amount of person-hours which would be needed for:

- Supporting cascading styling of any kind, with or without embedding another language.

- Adding networking, even if interoperability/an agreed-upon communication pattern or protocol already existed.

- Displaying assets other than styled text and SVG-esque drawings (images, videos, etc).

- Securing the request/response protocol, even if leveraging existing tools like OpenSSL to the max.

- Adding another turing-complete and secure programming language for communicating with random local/networked resources and producing more requests or DOM updates.

It's hard.

TL;DR There are plenty of needlessly-complex tools and technologies out there. But I don't think web browsers are some of them. Even if you're anti-JS and anti-CSS, there is still an absolute shitload of complex, careful, hard-to-get-right interactions going on under the hood.
You might not need a computer science degre
Google would have known you clicked on the link anyway. You would prefer the publishers and ad networks track users on pages they never even visit?
I just published some thought that I had in my mind for long about Computer Science degree. Please help me to see you point of view about this topic too ;D
It's an interesting saga. One of the parts that I hadn't heard before was that not only did the band leader fake all the parts necessary to book the tour, he also claims to have faked much of the outrage exposing himself as a fake:

But that’s because he had something he was eager to show me - a series of emails that he said he sent out under yet another alias, a Gmail account belonging to “E. Evieknowsit”.

“URGENT: News tip,” the subject line read.

“The musician going by the name Threatin is a total fake. He faked a record label, booking agent, facebook likes, and an online fanbase to book a European tour. ZERO people are coming to the shows and it is clear that his entire operation is fake,” he wrote, including links to all his phoney websites.

“Please don’t let this man fake his way to fame... Please Expose him.”

The first such message he showed me was dated 2 November, a day into the Breaking the World Tour, and a week before the first news reports were published. He says he sent the messages out to a database of reporters’ emails he keeps in a massive Excel spreadsheet on his laptop - to outlets like the Huffington Post, Spin, Consequence of Sound, Rolling Stone, The Guardian, Pitchfork, New York Times, MetalSucks and, yes, the BBC. Although it was unclear if the tips directly resulted in coverage, some of the emails appear to have predated articles.

If true, this is a rather extraordinary level of fake self-promotion. And if it's not true, it's even more remarkable to that he was able to get the BBC to write an article making the claim on his behalf.
Don't you have at least a raise up to the yearly inflation? If not, you should vote for a prop like this in your country.
I think any pronouncements about the death of an ad supported web are probably premature.
If you treat the whole country as a battleground and the people as the enemy, don't then ask those same people to pretend you aren't hostile

The moral high ground was lost once mass surveillance with no judicial oversight started. It's not Silicon Valley's problem that the current establishment has a bad reputation and can't poach engineers
According to The Economist, blue collar wages are rising faster than white collar wages, something that hasn't happened in a long time.

https://www.economist.com/united-states/2017/11/14/blue-coll...
No, Nick Szabo wasn't Satoshi in 2014 either
What? Prescriptions tend to increase when a drug goes generic, not decrease, since the cost is lower.
Please, share the use cases where serverless is the optimal choice.

Because I've tried it. For problems like thumbnail generation which is literally the canonical example [1]. And even in that case, found myself switching the workload back to containers to control the exact version of imagemagick to prevent a color gamut bug.

1. https://docs.aws.amazon.com/lambda/latest/dg/with-s3-example...
Do you mind to list the existing starter setups in Rails/Laravel? Thanks.
> a version for Google's visitors

And Microsoft's and Pinterest's and Baidu's and on and on. There are many search engines and link aggregators that preload AMP pages.

You prefer that publishers make versions of their articles solely for Apple and other versions of their articles solely for Facebook? (Each has a proprietary competitor to AMP that actually have the disadvantages you listed.)
It's not about reading 52 books or reading 1 book 52 times. Your literary journey should be all about discovery, if you really like an author then read his omnibus. If you gravitate towards certain areas - then read the best writing that is available. Books lead to other books and good authors always name their influences. There is nothing quite like reading, when you read an author's omnibus you are literally getting into his head and realizing he is/was wrestling with the same existential dilemmas that you have/had.
:-)
https://gizmodo.com/heres-how-a-macintosh-tutorial-taught-pe...
I'm disappointed someone would down-vote this. Sincerely: Why would you do such a thing?

In my thinking, this author does not seem to be living the life of a poor person trying to save.

If you downvote, please share your point of view. I'd really like to understand.
STEM is not dry. It can be, but does not have to be. Dont start with assumption that kids are not interested in STEM which has to be dry, they are interested even if fully factual books and texts. Don't make it analogical to vegetables hidden inside cake. Make STEM parts fun on what makes stem fun to us (puzzle solving? discovery? just knowing how it works). Mix with magic can then add additional wonder.

How old the kids? I think that your question is unanswerable without knowing that. 3 years like something completely different them 7 years old who are not the same as 12 years old.
It could be a combination of something you have (your face) and something you know (for example, that your right eyebrow has to be raised for face unlock to work).
Nothing notable here except Amazon's punny acronym for unprofitable products.

The nice thing is the elimination of waste. The lack of margin on those items implicitly means there is significant waste involved with selling them: large, wasteful packaging as well as more fuel needed to transport them to warehouses and then to customers.

It serves as a forcing function to encourage manufacturers to adapt their products to this new form of distribution, similar to Walmart or other retailers being selective about what they grant shelf space to.
Yep, still quite hard to read.
Because it’s actually not that cheap compared to SSD and HD? (Not to mention the obvious persistence issue.)
Yeah, when I was originally thinking of this, the conclusion I came to was that this would be a more honest version of the available 'robotics' solutions.
I'm totally open to this being a diagnosis. But I think the point is more that a kid with a foot infection who refuses demands would probably be called "independent". Stubborn, even. But it wouldn't necessarily be medicalized.

There was a recent study on ADHD and birthdates; the upshot was that kids on the younger end of the age spectrum are medicated for ADHD more if they're young for their grade. Which implies that some number of kids are medicated more for "teacher inconvenience syndrome" than any real disease.

There's a long history of medicine treating different as bad. (The formal academic term is "medicalization of deviance".) So I think it's worth being a bit skeptical that traits that teachers and parents might inconvenient are diseases on the order of foot infections. Rather than, say, how homosexuality was medicalized for decades.
Has anyone else come across TypeA McK consultants and thought they have come across as not genuine?
Your comment and many of the siblings just read to me as random victim blaming. "Oh, you were mistreated at work? I bet you are lying and incompetent and were actually entirely at fault."

the parent is relaying their personal experience, why would they have to add disclaimers about one-sidedness? A forum like this is literally just people telling "their side" on various topics.

I've been mistreated at work and find the parent comment very believable. If you haven't been, then you are either young or lucky. Good for you but please don't just discount other people's experiences.
Might work, otherwise just a word pitch on past "business improvement" protocols and snake oil
The author's Twitter account shows that she flies from New York to LA for television projects.

She's not just a sandwich-shop worker, apparently.
It says you get about a Gbit of throughput. That isn't bad but I wonder if that is simply because the processing isn't or can't be efficiently paralleled.

You might be able to make several of these connections between 2 machines and trunk/bond them on each side into a combined interface for even more throughput. 10Gbe and 40Gb fiber cards are getting pretty cheap.
They have but their image had to be channeled through traditional distribution channels which created a narrow funnel for who and how many gained noteriety.
dumb question: do Taboola and Outbrain try to infer the user's demographics based on the clickbait "news stories" the user clicks?

e.g. some of these "stories" appeal specifically to fans of a particular TV show or actor from a specific time range.
Is there any actual QC hardware that can run these algorithms? Does it even make sense to say that you can "run" code on a quantum computer?

I don't follow this field much, but I remember there was a company called D-Wave, and people saying their product was not a "real" quantum computer. Has anything changed since?
Property rights still exist but since it only became a concept about 80 years ago lots of property still belongs to the government and they can generally give you something worth more than your current property.
Another interesting one is Saint Pierre and Miquelon (France), fully contained within the eastern maritime borders of Canada. (edit: It is within Canadian exclusive economic zone which are international waters, not sovereign territory).

[0] https://en.wikipedia.org/wiki/Saint_Pierre_and_Miquelon

[1] https://upload.wikimedia.org/wikipedia/commons/7/79/Saint-Pi...
Thanks very much for posting that. Looks about what I had in mind (though I have machine tools, so I'm hoping I can make fancier hardware).
> And you have to get into the exact right internship, or get lucky enough to snag one of the dwindling number of government jobs in your field.

There aren't a dwindling number of government jobs in public administration or public health.

> But no one at these schools bothers to tell the students these things.

Several schools' in those fields big draw is their internship/fellowship programs and connections to key employers in the public or private sector, and these things are heavily marketed as important.

> So in the end, relatively few graduates end up working in the field they studied.

A number of professional degrees are competitive advantage in related and even distant fields as well as their exact field, so that's not a sign of not getting a significant career advantage from the degree.
What I find super interesting is that some people in the USA seem to think that evidence that the US has attacked the elections of the USSR and Russia in the past means that we somehow shouldn't fight when the reverse happens. I mean, if you accept that we got Yeltsin elected, well, in a real way, we dissolved the USSR, making Russia dramatically less powerful. (And yes, I agree that's dramatically more severe than anything Trump has done so far.)

I am not going to vote for any politician who thinks allowing the same sort of thing to happen to the USA is in any way okay.

(I mean, from a completely neutral sense, I get what they are saying... but I'm not completely neutral; I don't think any of us are. Leaving aside that I think you can make a reasonable argument that the USSR was, even for those who lived there, a bad thing, (though I'm obviously biased on that point.) I do think it's reasonable to expect your political leaders to take steps to prevent your country from being taken over by a foreign power.)

Edit: neutrality and clarity
So, one interesting tidbit from the German version:

Germany introduced daylight saving time ("Sommerzeit") in 1980, but Switzerland only in 1981. In 1980, Büsingen used CET (like Switzerland), not the daylight saving time (like the rest of Germany). So, while there was only one summer season of deviation from Germany, Büsingen (pop. 1443) is listed separately in some time zone databases, eg the Common Locale Data Repository.

As so often, the devil is in the details.
I don't know that is true, I spend more than half my time on resources similar to (sometimes even from) the pre-commercial Internet. The existence of the Ad driven Internet is disruptive even if it were pretty benign simply because it has money and it wants all the engagement.
http://archive.is/o3LVk
The article says it went from the 95th to the 11th floor. It appears it stopped before reaching the bottom buffer.
> after having built N billing portals in the past

Quick question. Any recommendations for a "wallet library" for a web-app side project (either JS or Java backend) ?

Basically we want to take payments from users, charge the wallet for certain operations, and show history and balance.

I am not even sure what to google to find this.

Any pointers appreciated.
How about

print :: a->a

or some variant.

Or

print:: a->(a->b)->a

where (a->b) is a function that extracts some value 'b' out of 'a' and that value 'b' is printed.

I mean pretty straightforward. id functions in your compositions don't effect the overall program.

This is only for the O part of IO. Input is a different problem.
I prefer examples of Why "XXX Thinking do not work".
Why ?
Because learning from failures will shape correct lessons.
That's how AI works, too.
I'm very excited to see that some of the biggest ideas for improving the bottom line are also better for the environment. The alignment of these agendas could be very powerful.

Specifically, reducing double shipping (Coca Cola -> Amazon -> Customer) and inefficient packaging are both targets as Amazon seeks more profitable delivery.
And those cheap cars are more likely to have faults that police can write tickets for, pushing those poor people into further debt, and then into the criminal justice system because US courts are just weird.
lol I can't afford a back yard but if my apartment building had a nuclear generator in the basement I'd be pretty happy about that
> Nothing notable here

I didn't know Amazon was now focussing "on its bottom line in addition to its rapid growth" [1]. It has historically been a top-line company.

Amazon asking Coca-Cola to "start shipping [Dash button] orders directly to consumers" also surprised me. It shows a shift from relying on logistical and distribution supremacy to market power through customer access. (One also wonders if recent political elements factored into the decision.)

[1] https://www.wsj.com/articles/amazon-targets-unprofitable-ite...
I'm not quite sure how sites do it, but, lots of sites manage to enforce the article limit across even incognito and even across browsers... i pasted an archive.is link (http://archive.is/o3LVk) which is quite reliable for me and 99% of the time someone else already archived it.