skysight-inc/HackerNews huggingface dataset:
Some of those are built-in to cmake you can google "cmake clang-tidy" to find some examples, for instance. The rest can be added as custom targets and/or custom configuration options.

The point is that you can write reusable cmake modules you can ship with your package manager or even git and a tweaked cmake search path. You can get there with make, but it's more work and a bit of a pain to replicate and maintain. In fact I often see teams with those setups put too many things in their repos to avoid build tool pain. Or, perhaps more often, they just give up on ever getting clang builds to work (for instance).
Show HN: Teach your friends to lock their computers
How do you pay for the robot if you're not working?
> Perhaps a less costly legal process that vehemently screens for reasons to not go to trial in non-violent crimes?

If you can't do any of the things I mentioned above, you will take the plea deal and there will be no trial, you will go to prison for at least several years, possibly decades, but either way you'll be a felon and unemployable for the rest of your life, also a sex offender for the rest of your life, and not for one of those debatable reasons either. But thanks for keeping the process quick, that was very considerate.

But change? Good question. Something broad that isn't about the topic and laws at hand, perhaps leaning on another country's system while being sensitive of our punishment culture. Yeah, I've got nothing, rehab perhaps? I do have to commend you for trying here, and I do hope less people are ignorant to the user experience problems in our justice system.
> And when I want to compose 2 data structures into my own higher-level one

Could you give a specific example please? I compose data structures in Rust all the time.
I'd be all for a standard language agnostic ABI. I'm not on the language design team anymore, but I suspect you wouldn't have any trouble convincing them to get on board with such a thing either. The ones you'd need to convince would be the C++ folks, I suspect :)
Duh, It bills itself as that. SF is the liberal strong hold on the other side of the conservative strong hold. I think if you want moderate that or of small middle town middle America.

It seems as if because the liberal cities do financially so much better than the small town America many of those conservative Americans want to move here and feel comfortable expressing and acting on their view. The problem is I don't want to welcome those ideas, and I don't want people comfortable saying those things around me. I have a good feeling there a reason why liberal places do better, and there no such thing as a conservative mega city in America. Those ideas don't work, they don't promote growth, and I think expressing those ideas would hamper the places where these liberal companies reside
Yeah. Inspectors use a 5-gallon container to test gas pumps:

https://www.youtube.com/watch?v=m9HG_3SIsEM

So, your gas pump has to be accurate for the first five gallons, but then you can cheat as much as you want.

The only saving grace is that the people who make the pumps and software wouldn't be the main benefiters from cheating at the pump. So probably we're actually okay for gas pumps. It's situations where the software creator also benefits from the sales using that software...

But maybe I'm wrong. Maybe independent gas station operators are buying bootleg software ROMs to flash their pumps... "Boost revenue by 10% with this one easy trick"

And, I see from another comment:

http://articles.latimes.com/1998/oct/09/business/fi-30669
Naysayers are a dime a dozen. What's valuable: someone who can see how to make it happen.
How unlikely is that, though?

The question is whether there could be reasonable doubt that, given there is CP on an account, it was put there by the account owner.

What we don't know is what proportion of Dropbox accounts that contain CP had that CP planted by a hacker. If a significant enough proportion of CP on Dropbox was not put there by the account owner, it's reasonable to at least consider the possibility.

It doesn't have to be an attempt to frame the account owner: somebody who wants to exchange CP with other people might well use a hacked Dropbox account to do that, in an attempt to cloak their identities.
> If someone doesn't feel they should work more than 40 hours, then by all means don't take that job, but please drop the damn sense of entitlement. This bubble will not last forever and one's ability to crank out an Uber-for-X clone in NodeJS won't always pay the bills.

It is possible to make a lot of money while working reasonable hours and solving problems that are a lot more interesting than "Uber for X" type shit. The fact that our industry values the latter while burning out inexperienced engineers who don't know better is definitely a problem though.
> Well that's not what Osama said

Osama bin Laden was upset because he tried to leverage the Iraq crisis to get the Kingdom to bring him and his fighters in to protect against Iraq as a way to magnify his own influence, and the Kingdom choose the US instead.

> Maybe you distrust him, maybe he had some other reason for turning the world upside-down that he didn't admit, maybe you have a better model of his decision process than the rest of us have...

I dunno who “the ready of you” are; plenty of people are familiar with the basic history of al-Qaeda. This isn't one of the deep mysteries of the universe.
This article is pretty bad. There's no reason that automous vehicles have to be linked to electric vehcules, it just happens to be the case that Tesla is pushing both. The Lexus cars that Waymo uses are not electric for example.

Automous also cars don't need communication with other cars to hit the market. It'd be nice for faster driving, but it's in no way a requirement.

Hacking is a real concern, but I don't think it will stop adoption. It's also essentially unsolvable, companies will just need to have sufficiently good security measures that it occurs rarely enough to make automous cars safer than non-automous.
Since i'm a programmer I work with computers all the time, duh. But hardly anyone leaves their computers locked when they get up to head to the toilet and so on. Time to teach them a lesson.

No one really cares if their background is a 'big black dick' that's obviously a hack and yeah whatever. But if their background is a cringey anime chick, specifically a NSFW anime chick, thats a bit more believable. More embarassing if you ask me.

I made this stupid module to both mess with a coworker and how to make a CLI Application. Then i wanted to learn NPM, specifically the way it works, so I kept it private, mentioned it on twitter once and slowly pushed releases with documentation updates and minor code changes.

How it got popular I genuinely have no idea, but check it out, file an issue if you have one, pretty cool learning experience and eventually it will be updated to scrape wallhaven's NSFW section. They have a dependencie for that so i might go elsewhere to make an actual scraper.
There have been cases where someone getting busted at airport because one of his wechat groups have images of potentially underage girls someone else posted from a country where that is legal.
I can appreciate that the features needed to be developed and matured over time, but I don't understand why Linux didn't invent an umbrella concept to tie everything together.

It seems to me a grab bag of things which Linux allows to be independently namespaced/isolated: Cgroups, networking, PIDs, VFS, etc. From a kernel point of view, this would be the perfect use case for an "object-oriented" design with some kind of abstract container concept that reflected the nesting of each container, but instead it seems very scattered and ad-hoc.

In particular, each mechanism is opt-in and must configured separately, very carefully; to approximate Zones you have to combine all of the mechanisms together and hope you didn't forget something, and also hope that the kernel's separation is perfect (which, given the vast amounts of "objects" it can address, is doubtful). To my untrained (in terms of kernel development) eye, this seems the opposite of future proof, because if the kernel invents some new namespacing feature, an application that uses all of the existing mechanisms won't automatically receive it, because there's no concept of a "container" as such.

opt-in seems like the wrong approach. The safer alternative would be that a new container process was completely isolated by default, and that whoever forked the process could explicitly specify the child's access (e.g. allow sharing the file system). This is, I believe, how BSD jails work.
"The nation claims that its ancestors fled for survival to a coastal area in Canada that never froze during the Ice Age."

I'm pretty sure the oral histories didn't mention the "ice age" (as in the most recent one ~13K years BP).

What I'm less sure about is that a living tribe are direct in situ descendants of the people who made these 13,000 year old archaeological remains. Nor do I see any evidence presented for that. Yes we know, people were in the new world earlier than 10,000 years ago. Nice to see it verified.
Seems it's just inspired. Last I checked, LOVE used Bitbucket, and LOVR uses Github. Would be kinda strange to spread out your projects over multiple sites like that.
> like the iTunes and Kindle ‘‘updates’’ that have removed features the products were sold with

Anyone know what iTunes update he's talking about? I don't remember anything that fits this description.
The same site has another page on divorce rate by age, and allows you to look at it by employment status, race and education level[1].

It's mostly as you'd expect, but the bit that I thought was most interesting was the "Not in Labor Force" breakdown. In that, women and men have almost identical rates until the age of 60 (retirement?) at which point the male divorce rate increases much more quickly than women.

At 60, both are 13%, at 70 it is 24% vs 28% and by 80 it is 31% vs 38%.

The causal analysis of this is difficult: male participation in the workforce is higher until retirement, so there it is hard to judge how much of it is because of retirement and how much is couples who would have divorced anyway and just happen to have employment status change.

[1] https://flowingdata.com/2016/03/30/divorce-rates-for-differe...
>I don't want to welcome those ideas, and I don't want people comfortable saying those things around me.

Would you support legislation to prevent people from expressing views that disagree with?
What has changed in the last few decades is the possibility of framing someone with little personal risk to the framer.
We wanted to focus on natively using Terraform and whilst kops can output Terraform and we've used kops in a couple of clusters, we didn't see the kops -> terraform output as a necessary step at this stage.

Having said that, it's a very fast moving environment and kops is an excellent project so we will likely do something in that space too.
FEMA Is Almost Out of Money and Hurricane Irma Is Approaching
Where does the parent claim that telemetry is the only factor you should be basing your decisions on?
I was in Hawaii this weekend and explaining this to my girlfriend who is not at all a "techy". I explained to her, how odd it is, that the internet works here because there's literally a giant cord from the island back to California laying on the ground in the ocean.

Seems rather primitive when you stop and think about it.
The standard problem is "define encryption".

I have no knowledge of Dropbox' internals, but I've been involved with several cloud backups solutions that "fully encrypt your data". Only to have a hard time convincing people that "Full Disk Encryption on a server" will do little to prevent an employee of that company accessing data.
Neat idea. Once you have enough content, I think it would be beneficial to have location as one of the key values.
People have said the exact thing about novels, comic books, television, and telephones.

Socrates even complained about writing.

Scientific American published a screed against the negative effects of chess in the 1850s.

The devices and distractions of every new generation are the harbingers of the apocalypse for the previous one.
Bullshit.

Donald Trump and Jeff Sessions are racists, and their decision to put the lives of 800,000 people at risk is indeed racist.

You can call it "immigration policy" if it makes you feel better.
More like 20 it seems ;)

> I need these two lower-level structures to expose unsafe stuff at the API boundary

Two thoughts: 1) I think you can always use unsafe to get access to a raw pointer (I honestly don't use unsafe often) 2) you need someway to express ownership between both data structures, this can be annoying, no doubt.

> C++, with these iterators and smart pointers

Does that make it safer than unsafe Rust? Maybe, but there's a lot less unsafe Rust even in these graphs...
I think the article helps to explain why C was able to leverage network effects so well. Neither C nor Unix came out of the gate in a dominating position. Indeed, it's arguably only in the past 20 years that it clearly dominated. Fortran, Pascal, and a bevy of other languages were at times much more widespread and influential. Even today C isn't the most used language. And yet it's influence continues to be outsized.

C isn't just a language, it's an entire ecosystem of toolchains and software that facilitate network effects. "Chance" is far too convenient an explanation. No doubt chance had a significant role, but if C were as useless, unsafe, and devoid of redeeming qualities as many people argue, then I don't see how C could have benefited so strongly from network effects.
Openshift give you a free container with no more id than an email address. So clearly it can be made secure.

Though I admit this would not be core docker stuff; more like selinux and other controls.
And a grandma in texas has been served thousands of warrants due to her address being closest to the geographical center of the US in Kansas, where IPs default to on a map.
I believe in hiring the very best employees that fit the culture of your company. If your culture is a boring one, then hire the best employees which would fit well into a boring culture. If your company culture is vibrant and outgoing, then hire the very best employees that will thrive in a vibrant, outgoing culture.
The entire idea of a gig economy is that you get random low paying clients. How could infrastructure ever make this any different from what it is?
I actually really like Vimscript. It has features that many popular languages lack or have only recently got, like destructuring

let [file, line, col] = split("hello.c:39:10", ":")

This is the sort of feature I just assumed it didn't have, because few enough real programming languages have it.

The main issue I think is that there are lots of different contexts where you can put vimscript, and different bits of vimscript are legal in those contexts, or at least seem to be.
Arguably political orientation is not a choice if your political choices are informed solely by facts. Unless you are arguing that facts can be whatever you want.
The idea you can have a safe c compiler or runtime seems totally absurd to me. Why is any of this even considered seriously?
Hi,

Endocrine patient here.

I've seen some research that suggests a phenomena of hypothalamic obesity due to decreased oxytocin secretion. Know much about this?

Could Inflamation of the hypothalamus decrease / increase sensitivity of the negative feedback mechanisms of the endocrine systems that are controlled via the hypothalamus / pituitary?

Thanks for your input doc.
petgraph is a lot of code because it has a lot of features. You could equally well criticize C++ because boost is so much code. A simple graph with indices is a lot smaller, and it doesn't need unsafe either.
Show HN: SpongeWise chrome extension to improve knowledge and memory
Most people don't care about computers. Most people spend maybe a couple hours a day in front of a computer and so they will buy the cheapest option they have available. That option will be Windows every time, because they cut corners and end up with shoddy products like this.

For the small minority of the population that spends a large amount of time in front of computers and makes their income from computers (programmers, digital artists) they almost all use Macs.
The governor has suspended all tolls in Florida as well to alleviate traffic onto toll roads and turnpikes and off interstate highways.
Written by the creator of ZeroMQ, for those who are unaware.
God that is torturous to think about.

Once again proves that "don't go to the US" is a viable legal strategy.
Amazon sued over eclipse glasses after couple cites blind spots
That may well have been the motivation for that 2034 date and the canning of most of the Solaris crew.
Thanks for the idea. I just created a list of built-in apps, set them to point to some deafults that do not depened on the network performance (for instance, Calendar only includes Holidays, and displays year view), rebooted and measured time to start them in a succession. Apps that depends on internet are excluded.

While this is not super accurate because OS and app updates could affect their startup time, it is still something measurable. It will be interesting to see if a year from now a set of same apps with basically same functionality will take more time to start on the same (or newer) hardware.
I know many people who started out with little money, then saved a percentage of not much for decades to build wealth.

There's power in time. Warren Buffet knows this and other things. It's why he makes 'Secret Millionaire Club' for kids.

Poverty can be overcome. Definitely.
And universal basic housing and universal basic education. Then everyone would really be free to be entrepreneurs, but they wouldn't have to fixate on profit seeking at the expense of all else.
I am a firm believer that saying what you are not can be more informative than saying what you are. So yes, the option to "negate" values is on the roadmap :)

Re: ambiguous "value tags", they're up for interpretation. I encourage you (and others) to read how different teams describe the same value and what it means to them. Also, there are several teams who didn't choose Creative + Innovative, Customer Comes First, and/or High Quality Codebase.

No company will "advertise" that they do not produce high quality, but we still learn something when high quality code isn't included in a team's top values. This is the beauty of limiting teams to 8 values :)
I even dislike that the URL bar on chrome mobile acts like this, even though I can't think of any good alternative.

> Old-school sticky sidebars (as in old frame layouts, for example) were totally fine on desktop, but are out of fashion now because they don't translate well to mobile.

What we need is the ability to focus on a div.
I don't know about Apple, but Sony is an excellent example.

They removed the ability to use Linux on the PS3. This is probably one reason they have been consistently targeted by hackers.
I was in the same boat as you until I broke my tibia rock climbing and had to lay in bed for 6 weeks. Shit happens in life and as you get older having no support network becomes less appealing. In your early 20's it is easy to be an island.
If you are indeed interested in coming out of retirement, Brendan Gregg does performance engineering at Netflix. It might be worth reaching out.

http://www.brendangregg.com/blog/2017-05-16/working-at-netfl...
> a fixed font size

Do you mean like using px values instead of ems? If so, don't most rendering engines convert internally to px anyway, rendering ems irrelevant for zooming these days? That was my understanding at least.
Almost any company is going to do the same thing. I'm certainly not going to donate to a group that openly tells people I'm an asshole, regardless of the truth of it.
Compilers are the New Frameworks
See https://en.wikipedia.org/wiki/Submarine_communications_cable... for a brief overview.

Early submarine cables were literally just wires. To overcome the electrical resistance of a long cable, they simply applied a large voltage on one end, and used sensitive instruments to pick up the tiny signal on the other end.

Interestingly, the early engineers didn't fully understand how the electromagnetic properties of a cable (capacitance and inductance) affect signal propagation over long distances. So they ended up seeing unexpected amounts of distortion that forced them to transmit much more slowly than desired. The theoretical breakthrough that enabled reliably sending signals from one side of an ocean to another was thanks to Oliver Heaviside, who was pretty much the archetype of a misunderstood crackpot/genius.

But yeah, later cables included in-line repeaters, once the technology was sufficiently well developed. Here's a description of some early vacuum-tube amplifiers that were designed for extreme reliability: http://www.ase-museoedelpro.org/Museo_Edelpro/Catalogo/tubes...
Sitting all day is bad for you? Huh..
Can you give me an enumerated list so I can be sure to not commit wrongthink?
That is such a sneaky move. It is entirely horrible but you have to admire the thought that went into it.
Can't do de-duplication if you're encrypting. No way Dropbox's storage back-end remains viable without de-dupe.
“8 Ways Government Can Improve Their Cyber Security”
> Neither party ever even tried to do anything about:
> - term limits

Term limits are a horrible non-solution, but Republicans did push a Constitutional Amendment for them them on Congress in 1995, securing a majority but not the supermajority required for a Constitutional Amendment.

> limits on money in politics

Bipartisan finance reform has passed several times, only for the most significant measures to be struck down by the courts.

A number of your other points are similarly ill-informed.
> those words really don’t damage children much

Wait, who is this? Can they verify this claim? What does "much" mean anyway? Why damage children at all by choice?
Environmental impact.

However, thus far only the programmer at VW has been prosecuted and sentenced to jail. His "following orders" defense did not work.

All the high-level executives will probably walk away with VW paying a fine.
I would assume it scales at K*T^4 where K is a constant < 1 and gets smaller as the band narrows.
> If it was, there wouldn't be new package managers popping up all the time; it's a non-trivial problem. They're not created for no reason.

Notice how all those package managers are for platforms or create platforms in their own right. Rust is meant to be a systems language, that means it's platform is the OS and it doesn't get to be a world unto itself like java.

> This isn't exactly true, or rather, you're comparing two different things. https://lifthrasiir.github.io/rustlog/why-is-a-rust-executab.... has the details.

So if you jump through a million hoops, limit yourself to c libraries you can produce small executables. At that point it's more complicated than just writing an app in c in the first place.

I'm not interested in what it can technically do though, I'm interested in what is practically happening. In practice most rust programmers seem to be writing apps for the cargo platform. In practice rust developers are producing huge executables. In practice rust has no stable ABI so all rust libraries get statically compiled. In practice this is incompatible with the LGPL. In practice a security vulnerability means every app using the library has to be recompiled to be secure.
Author's here https://github.com/joric/ts100tris/commit/5214f7ef9fbcdac8d0...
Prosperity gospel strikes again.