skysight-inc/HackerNews huggingface dataset:
First of all “/toggle” is not a proper REST endpoint. In fact, that is exactly what an RPC endpoint might look like. I can’t believe so many “developers” miss this.

With JSON RPC, he would POST a JSON object to a /toggle endpoint which runs a procedure to open or close his garage door.

If you want to be cute and conform to REST as much as possible, you would have to treat your garage door like a resource, and then use PUT to send the entire new state of the garage door to your API or PATCH to send the instructions for how to change the existing state (or use the +json media type for patch if you want to be lazy and just send a JSON object with updated key values). Your URL would probably be in the form of “/garage-doors/garage-door-id”.

Except, his garage door is probably NOT a resource and has no ID or even a serialized representation of it’s physical state. It’s just a physical door. And it should be driven remote procedures.

Maybe you don’t need any of this. Maybe you are happy with just using GET and pushing everything into REST and basically doing the wrong things. But that’s how you end up with the problems in the article, by not respecting standards, by choosing to be close enough to correct instead of technically correct. And frankly, if there’s any people who should strive for technical precision it should be engineers.

I personally would not hire a single software engineer who chose to approach this problem in the RESTful way without clear and deliberate reasoning for doing so.
How sustainable is the Internet?
This is the same EU that turned a blind eye to VW and other companies blatantly lying to regulators. In terms of EU regulation NO is normally a safe bet as long as you are big enough. You think Germany is going to fine an automaker or Lux is going to fine a bank?
Dont you have puns in your native language?
I have a friend who works on Ab Initio software. Sheryl Handler is still the company CEO. The made him sign strict NDA.

On an unrelated note, I bought "The Pattern on the Stone" by W. Daniel Hillis last year. He gives a lot of examples on Tic Tac Toe
Too funny!
It's worth pointing out there are different legal foundations. The United States is on something called Common Law [1], in which courts are generally supposed to follow precedent and not make up new stuff or function as de facto legislatures. Obviously, this is one of those plans that doesn't necessarily survive contact with the enemy, but under common law it is reasonable to criticize the court here as potentially overreaching. A mitigating factor in that criticism is precisely that many other peer jurisdictions have adopted the same standard on presumably similar bases of legislation, so there is some precedent in favor of using this same standard.

Germany is built on a foundation called Civil Law [2]. In this system, judges are encouraged to uphold principles and rule on the specifics of a case, regardless of previous cases that may have found in some way or another. Just as with common law, I'm sure judges may consult precedents as they find useful, but they aren't bound to them, and are, I presume, much less likely to mention them in judgments as they are not anywhere near as relevant.

This also applies in a fairly obvious fashion to Hermel's post that is a sibling to what I'm replying to. In Civil Law, which Switzerland also operates under [3], instructing judges to imagine reasonable laws is a reasonable thing to do. In Common Law, judges just imagining laws to be the way they believe they should be strikes at the foundation of the system.

(Perhaps ironically, it's probably easier for Common Law courts to function as de facto legislatures precisely because of the respect for precedential law, despite the fact they are nominally not supposed to. A certain court can make a decision and apply some test like this, and it tends to spread around the country unless some legislatures take explicit action to prevent it. It can even spread between countries, because common law courts can look at other country's common law courts and consider their precedents as well, though more weakly than their own. By contrast, while a civil law judge at first seems to be taking a legislative role when they make some decision based on laws that essentially only exist in their head, they are binding the future far less and the decision carries less global weight, making it much harder to truly "legislate from the bench" in the way we complain about in the US. Second order effects can be pretty twisted!)

[1]: https://en.wikipedia.org/wiki/Common_law

[2]: https://en.wikipedia.org/wiki/Civil_law

[3]: https://en.wikipedia.org/wiki/Civil_law_(legal_system)#/medi...
> I'm highly familiar with details of vascular supply.

I assumed as much, does that invalidate anything in my comment? I made it fully expecting that you have the knowledge. That's why I prefaced paragraph two with "For those unfamiliar with how blood supplies various molecules...", to avoid that you feel you are the target of a lecture about things you already know very well.
This test has been the standard in other states for a while - New Jersey for example. But I don't think it has been an issue for Uber/Lyft classifying drivers in NJ as contractors. I wonder why not?
It's possible to remove that from the history of your repo, although it breaks any forks.

https://rtyley.github.io/bfg-repo-cleaner/
I use neither of those and host my own services, but I know I'm a control freak on that.

My point is that an object that you don't control can't be trusted for privacy, that's all. Both iphones and stock android phone fits in this category, you don't control any of those.

Edit :
If Apple change it's business model and decide to use the data gathered, what do you do?
It's exactly the problem of privacy, having control of the data you consider private. Controlling data over time is a really important part.
That doesn't make sense to me either. Why would you bloat all your responses with that information rather than documenting it out of channel?
This is probably going to happen, yeah. It will however likely also establish European companies as particularly secure and trustworthy.

For a long time already, it's been common practice to avoid Chinese services, because of the surveillance that the Chinese government does. And there's a growing number of people who avoid US-based services, too. The recent CLOUD Act certainly doesn't weakening their position either.
For those who might be confused, "wolfram" refers to Tungsten.
And the freeways can support this how?
>When the author burns their own book and forbids new ones from being made is the only time that it's acceptable to print new copies.

Do you mean acceptable from a legal point of view? Because I seriously doubt that it is.
This is my main gripe. It's not that the topic isn't interesting, I think it's very likely someone affliliated with the site linked to it. I'm a relative newcomer to HN, & I love the things I discover & learn here, But Because of my displeasure with this flagged article I've lost what little reputaion I scraped together(another sign I think there are bad actors at work here)

I think we shouldn't upvote these sites so they are not rewarded them with advertising exposures. I would imagine trending HN stories drive good traffic to the linked sites.
If you have one pair of headphones then leave the adapter connected to them.
"I have cubed the earth, with 4 simultaneous _corner_ days in 1 rotation of Earth!"

-- Dr. Gene Ray, Cubic and Wisest Human.
Might be obvious to most here, but the article should probably clarify that the version of the 10 Commandments being made public domain is not the famous Charlton Heston version but an earlier one.
Because I apparently need affirmative check-the-box consent before I can actually use those ad networks.

I'm not doing anything shady: all the information I collect and why I collect it has always been in my privacy policy. But making people have to opt-in to see ads on the site is a big problem.
Indeed! Their expertise and quality are something I truly value. Percona Server is killer.
Android itself takes up 9GB on my Pixel 2. 4.7GB is taken up by the apps and whatever they are storing (Chrome takes up the most, with 1GB). I also have 4GB in music.

I don't consider myself a heavy storage user but 16GB is a really easy bar to cross.
>> larkeith: You would have to keep turning slightly South to maintain a bearing parallel to the lines of latitude - the only one that's "straight" (it curves downward, but not North or South) is the Equator.

> dbatten: Source? My gut tells me this is not true, but I'm willing to be convinced.

Consider any point on a sphere, pick a direction (which might be along a line of latitude) and visualise the plan defined by that vector and the centre of the sphere. The intersection of the plane with the surface of the sphere is a Great Circle, and that is where you would go if you didn't apply turn to the rudder.

The parallel of latitude defines a plane that does not go through the centre of the sphere (unless it's the equator) and so isn't a "straight line". If you want to stay on the parallel of latitude then you will deviant from the Great Circle, and that's why you need to apply rudder to stay on the parallel instead of the Great Circle.

Does that help?

This is all pretty obvious once you've done some spherical geometry, but can be completely opaque to anyone who hasn't.
Scott Adams creator of Dilbert, offers some unusually good (daily) advice on careers and life, see Goals vs Systems, > https://www.goodreads.com/book/show/17859574-how-to-fail-at-...
> I would spend days writing code that would take 20 minutes

And then weeks debugging the phantom problems caused by the overuse of global variables that COBOL more or less mandates... I feel your pain, brother.
(heh pointers)

I was in ECE in college (graduated in 2017) but do full stack software engineering for a bank now. AFAIK it's still C, but I wouldn't be surprised if Rust picked up due to the emphasis on memory safety- dynamic memory allocation and recursion are usually avoided in embedded.

Some of the lessons I got from embedded have carried over to my place of work- I found a repo that used floating point for money and immediately knew why that was a bad idea, because my embedded systems professor had spent an almost an entire lesson explaining why you don't use floating point for money or time.

side note: Said professor (Phil Koopman) was an expert witness in the Toyota unexpected acceleration lawsuit, he has a talk on it that can be found at https://betterembsw.blogspot.com/2014/09/a-case-study-of-toy....
Projecting Total Project Scope in the Face of Uncertainty
Software prefetch can be a big win when doing a traversal that lets you predict random reads far enough in advance, which is generally not the case for linked list or tree traversals. (Since it's microarchitecture as well as data dependent, you'll need to do a lot of profiling)

A better trick for hiding memory latency in these cases is to interleave multiple searches (perhaps of different instances of the data structure). For example you can write binary_tree.find_both(key1, key2) that's almost as fast (on large trees) as finding a single key.
It's useful in linear algebra implementations (if not necessarily using __builtin_prefetch). You can study the (micro-)architecture-dependent uses in e.g. https://github.com/flame/blis https://github.com/xianyi/OpenBLAS and https://github.com/hfp/libxsmm and it may be discussed in the papers describing them. libxsmm provides a view of the complexity outside "large" dimension BLAS.
For the record, I use my Pixel 2 with the headphone adapter all the time and I've never had a problem with it.
It's an important term in computer science. There is a good explanation on StackOverflow which I found by searching for "define: idempotent":

https://stackoverflow.com/a/1077421/111327

> In computing, an idempotent operation is one that has no additional effect if it is called more than once with the same input parameters. For example, removing an item from a set can be considered an idempotent operation on the set.
Snap earnings: Spectacles were big money losers, but more are coming
I agree it is interesting, but I think as a whole we should not reward sites like that with traffic from our community. I'd bet $20 someone affliated with the site posted this to drive traffic, & it briefly rose into the top 30 before getting flagged. Any normal person would have linked to the main study or a repetubale source.
I might have this 100% backwards, but I've always thought the application state part of HATEOAS is entirely in the client. Does the server know anything about application state other than maybe implicitly through resource state?
California has 4x the population of Jersey and is home to the very businesses that are leading the charge against employee/contractor norms.
Salsify the PXM company comes from salsify the root vegetable and is pronounced the same way. Our logo is a stylized salsify flower.
Wait to see when Percona Server 8 comes out :)
The puns in this thread are a great example of why people hate puns. Also a lot of them are spoonerisms and not puns, which will get you ejected from a pun contest
Or slide a notification about one-third to the right, then adjust the settings that appear.
CORS is to _allow_ cross-origin requests, not to restrict them. Most such requests are restricted by default.
I wonder how articles like this fuel some kind of FOMO in the non-cabbies. Like, if someone decides to make it their mission to open up these spaces to all, just because.
Void Linux project leader has disappeared
There is a big case in the UK about the BBC forcing the "talent" to set up self employed companies - the tax man didn't like this and is fining people hundreds of thousands of pounds.

Though as presenters they have a better chance of beating ir35 as they can legitimetly work out side of the BBC in a way that a developer cant - eg pa's at events etc
I'm not sure what you're implying here but allowing somebody to connect to your site obviously doesn't qualify as providing goods/services. The actual legal text makes that pretty clear.

"Whereas the mere accessibility of the controller's, processor's or an intermediary's website in the Union, of an email address or of other contact details, [...], is insufficient to ascertain such intention, [...]" (https://eur-lex.europa.eu/legal-content/EN/TXT/HTML/?uri=CEL...)
We don't need high-rises to achieve a high supply of housing. We just need to allow six story buildings anywhere that someone wants to build one. These buildings are much cheaper per housing unit than high rises, but allow for much greater population density than the two to three stories that we allow in some of our most sought after locations.
I don't want to be presented with a confirmation box every time I change something. Nobody reads them - they just click the button that will make it go away.
Take My 30-Day Challenge to Earn $30K
What is a Rehab Nurse?
Right Cassandra uses bloom filters.

I think I may have misinterpreted your originalcomment.

Fractal Tree Indexes are interesting as well as they are optimized for hitting the disk:

https://www.percona.com/doc/percona-tokudb/ft-index.html
inb4 The Seasteading Institute builds "New San Francisco" off the coast
The Pixel 2 XL has had a lot of issues since it launched (I preordered one and ended up returning it).

However, I would say that the Pixel, Pixel XL, and Pixel 2 are equal to the iPhone in hardware quality.
Could you maybe add something about it being an IOCCC winner back in?
(I generally read the comments first to decide if I want to read the article, and I wasn't going to bother reading this until I saw it had something to do with the IOCCC)
People who pun for sport also have a very high probability of having a narrow view of comedy. It's as if comedy were simply an expression of the wit of the speaker.

That leaves the audience with little other than the facile verification of the speaker's wit. Yes, we confirm that word X has a double meaning. The groan is verbal confirmation that the speaker has essentially wasted their time.

Besides, there are other types of low-hanging comedic fruit-- crowd work, street jokes, musical parodies-- which don't get groans. Those typically involve skills other than wit-- like relating to other human beings, improvisation, vulnerability, etc.-- which I think is the reason why.
The one thing wrong with black cabs is that they rarely take cards - either don’t at all or they say the machine is broken. I don’t want the hassle of using paper money so I can’t use black cabs. If I could reliably use my card, as I can with Uber, I’d use black cabs again.
I agree with you. They shouldn't. I'm playing devils advocate to make a point. You can't expect websites to treat all opinions as equal. Even 4chan has moderators.

Youtube only differs from other websites in scale. They are moderating content as we see fit. We can disagree with their reasoning behind moderation. But it's silly to act like they didn't have this right all along

(And that's what I see in this comment section. Comments like "why should youtube say what I can and can't watch?" I'm pointing out that those arguments are a dead end.)
Remember physical presence in the EU can come from something as small as your airplane to Africa having to make an emergency landing in a EU country for some reason. That is you have to not travel at all in the direction of the EU.
It actually reminded me of the aftermath of an arc flash ( https://en.wikipedia.org/wiki/Arc_flash ) which while the original arc is visible (and may temporarily blind any that see it) the plasma that comes out after it is not and is extremely scary because it's potentially several times hotter than the surface of the sun. The linked article has a video in it that describes the results.
CVE-2018-1305 Apache Tomcat Security constraint annotations applied too late
You can search text messages through spotlight. The results aren't perfect, but usually serviceable.
See "Important Programming Concepts (Even on Embedded Systems) Part I: Idempotence"

https://www.embeddedrelated.com/showarticle/629.php
The eye is a pretty direct light-to-neural activity interface, so I can't see that being replaced for a long time.
Fedora 28 is now available for download
Congestion pricing
That's not been the case for some time. All licensed cabs must have a working card reader. See https://tfl.gov.uk/info-for/taxis-and-private-hire/accepting...

They can be sanctioned by TfL if they don't.
> what is personal data
> an Internet Protocol (IP) address;

Told ya suckers for months. Keep believing they aren't at your risk.

Previously: https://news.ycombinator.com/item?id=16910301
We won't know how to build machines that understand until we know what understanding actually is at a biological level. I'm not convinced that we do.
Where are you getting the physical or legal presence requirement from? I don't think that's correct.
Does Tile have any features on Android that is doesn't on iOS?
Have you tried MyTaxi (formerly known as Hailo)?
It also gives some non-eu based companies the same secure and trustworthy benefits. They just need to have an obvious presence in the EU, and not check if someone is in the EU when they are asked to apply GDPR.
Yeah, exactly. $20 doesn't even cover shipping costs. And doesn't solve the problem of having to bring it all the time.

I need to literally spend $50 to be seriously inconvenienced because the manufacturer wanted to save $0.2 ?

Also, no. We still have some to wait before anyone produces a $700 phone worth the money.
> When a user asks a question on X, it would be better to first assume that he knows what he’s freaking doing.

Yikes. SO is where I learned to program, and if this were the norm, I wouldn't have made it.

If I ask a question the premise of which suggests I'm _way_ off, I wanna know. I have to imagine this scenario is far more common than the one you outline, wherein the poster has arbitrary constraints on his/her problem that need to be respected.

Let the voting system decide which answers are useful for posterity & which aren't. But to the answerers who take the time to help askers tackle the spirit of a question--not just its text--I say: thanks.
I would expect something more substantial for my "several paragraphs with summary and references" response than "the HN guidelines say to not question whether another has read TFA" then...
Very cool; now all we need is a proof-of-work formalization to base a cryptocurrency on. Artcoin?
Avengers: Infinity War New Tab Page
Don't log ip addresses, or anonymise them.
International Workers' Day
If they are really nice, then the cord is removable, and you can buy the Lightning-to-headphone jack cord which is now available.

Boom. Solved.
Or dont your doors to the internet.
Many U.S. states have villages, towns, and cities legally defined. It varies by state.
https://www2.census.gov/geo/pdfs/reference/GARM/Ch9GARM.pdf
It does not matter what EU thinks. What matters if what can EU do and the answer is nothing unless your company operates in Europe

> Wouldn't this operate similarly to how extradition by the US of foreign hackers work?

It would not.
The article just mention a bunch of stuff that will enter the public domain. Does anybody have a better list of significant works? I believe there must be a lot of nice music.
Great read, but how to you get to the front page with 3 votes?
That wasn't the only reason they scrapped it. There is a good argument to be made that the 3.5mm was a redundant port because lightning/USB C are both capable of sending audio (with the assistance of an adapter until lightning/USB C headphones are more common).
To generalise this, there's a lot of misunderstanding in every HN thread on most every topic.
You can build more trains and use more buses, and use congestion pricing to keep down the number of cars instead of subsidizing their use.

This is a solved problem.
Pandora Learns the Cost of Ads, and of Subscriptions
I'm just answering the question you seem to want to shove down the author's throat. It wasn't meant to be a comparison in the sense of whether you should buy this specific model or that specific model. It's whether someone shopping for a phone could validly make a choice to switch ecosystems.

The actual author replied to your point in this thread, and rather than advancing the conversation you only repeated your original point, but more stridently. And now you're turning the conversation into some kind of free speech issue.

You've made your single point many times. Do you have anything interesting to say?
Go for it! https://news.ycombinator.com/item?id=16958797
It is something of a DSL, as the name suggests (Common Business Oriented Language).

I would also disagree with GP that COBOL's semantics are really very foreign. Variable declarations, assignments, expressions, loops, conditionals, etc. are not that different from other imperative languages. More verbose, certainly, but not foreign.

JCL on the other hand....
So that draws power and does that work with all phones? That's quite the "workaround".
"No doubt"? Um, I think that means you don't know what you're talking about. No, Apple does not invade your privacy with its apps. Please do your research next time before assuming.

Android security is a joke.
> But $50 or so in adapters later I have zero issue.

Yep, sounds like an Apple product.
I took two semesters of mainframe classes (COBOL, JCL, DB2, etc) as electives, in 2015-16. I wouldn't want to do that full time (though the jobs are there and it's an applicant's market), but it was a great experience.

So much different than all my other CS classes, and gave insight into an important part of IT that isn't really taught anymore.
Two hours is a looong drive outside of Kansas.

We happened to drive through Kansas on the way to a Colorado wedding, during prom season. It was interesting to see all these prom kids dressed up and meeting at truck stops to take pictures or carpool.
That's on the poster -- Safari calls it "Top Sites", with explicit options for "Empty Page", "Home Page", etc.