skysight-inc/HackerNews huggingface dataset:
IIRC, Rust will panic and halt your program. This is one of a handful of errors that Rust can't catch at compile time, and so it inserts run-time checks.

The syntax "vec[i+1]" means "I expect this index to be in bounds, and if it's not, my program is so hopelessly broken it should be shut down immediately."

If you're really confident in your code and you need to wring out the last bit of performance, you could also use:

unsafe { vec.get_unchecked(i+1) }

...but in this case, your code would produce undefined behavior. If you want to detect this case and recover from it, you could also write:

if let Some(value) = vec.get(i+1) {
// Use value.
} else {
// Fail with an error.
}

...or you could immediately exit the current routine with an error if no value is available:

let value = try!(vec.get(i+1).ok_or(make_an_error()));

If you're writing a lot of parser code, your best bet might be to define a custom macro named that looks something like "try_get!(vec, i+1)" wrapping the final example above.
People are surprisingly bad at asking questions, which is why the help desk should always first ask "What are you trying to do?"

So why does "bureaucracy" have such a negative connotation? Like a lot of powerful tools, it is very easy to abuse. Unless you are very careful in design, you are likely to create a amplification attack of work. Most managers aren't careful, so few people have a positive experience.
What's so bad about openscad? I haven't really worked with it, so I'm kind of curious.
I would highly doubt that Wikileaks is serving malware.
Yeah, I'd love to have something like that for every phone. They aren't completely the same, but they are close enough for me. I don't think I've seen any other phone with a choice like that, though.
I don't think your reading this correctly.

1. Employee, Work is to pick up a specific person at a specific person and drop them off. Not working aka the app being off is irrelevant in the relationship. So, there is no choice in location, how work is carried out is no more informative than which side of the room a painter starts with.

2. Is iffy as you say and has minimal impact. Of note star ratings strongly suggest Employee.

3. Employee

4. Employee mostly due to background check.

5. Employee see background check.

6. Employee this manly relates to set end dates for a project.

7. Contractor, no set schedule. Note, this is the only time schedule is part of consideration and other questions are asking about something else.

8. (depends on judge), You can't do Uber and Lyft at the same time but you can work 4 hours a week.

9. (depends on judge) Employee, the specific job site can change but you need to go to the location specified by Uber. Counter argument, you can decide which city to work in.

10. Employee, work is highly directed and driver has no way to alter the schedule.

11. Employee, every single pickup and drop off is logged. Compare to an advertising agency which might go a week without talking to their client.

12. Contractor

13. Weak Contractor (depends on judge)

14. Employee, worker must install and use application written by Uber. If Uber could send text messages like many delivery companies, but instead requires specific software. Further, some count far more than others a strong Employee on 5 of these may be enough.

15. Employee, Application maintained by Uber and cars are typically maintained by workers. Note, office workers often uses their own cars to get places with mileage reimbursement being very common so this is a normal situation.

16. Weak Employee. Payment is fixed and unprofitable work can be declined. Accidents are normal for employees #15 and don't really fit.

17. Employee, Uber currently does not permit people to use both Uber an Lyfit apps at the same time without being dropped.

18. Employee, most Uber drivers don't/can't accept random rides outside the app unless working with another service.

19. Employee, Uber regularly dismisses people. If they could refuse payment if a driver gave a low star review that would suggest contractor. But, instead it's binary working vs. not.

20. Employee.

Also of note the default in Employee unless the relationship is clearly not. So a strong Employee on even just 5 of these may be enough.
I see where you're coming from, but this is an oversimplification. A lot of the early work on and thinking about computers was about the possibility of top-down social control. This features explicitly in Weiner's Cybernetics and at least implicitly in Von Neumann and Morgenstern's Theory of Games and Economic Behavior. (The Soviets latched onto the same idea and tried to build a central-planning computer network.) The "hacking" ethic was really part of the counterculture, and like the counterculture, it ultimately dissolved into the mainstream.
I can't wait until I can start downvoting stories on HN. Haven't we had this conversation here, over and over?

"Amazing New Battery will..."

Well actually...
How does prop 13 make housing more expensive for people not currently covered by prop 13? If the owner of the apartment pays fewer taxes, won't that keep prices down for the renter?
They're talking about changing it on the Windows version of Powershell too; I don't think it's something to be "ashamed" of, I thought it was a huge convenience - I knew that wget wasn't literally wget, but when I needed to fetch a webpage I knew the command to use without looking up Invoke-WebRequest or whatever it is and without having to go out and download the real wget.

I think taking the alias out is actually disappointing and a very slight change for the worse on Windows.
To make a profit bullying people that aren't public should not be considered a job.
A line has to be drawn. There is no right to not be insulted per se, but persistent abuse and harassment of an individual cannot be allowed.
I was referring to the password used to log in. You can store a hash in memory for comparison.
> without copyright, everything would be Free

Or no commercial entity would publish source.
UK: 1968 to somewhere around 1997 we had a 30+ year 'emergency' with various well-funded para-military organisations operating in Northern Ireland mainly but also the UK. We got through it. The chances of dying as a result of an 'ordinary' murder were always around 30 times higher than dying in a terrorist attack. And both were vanishingly rare.

General: house prices. Just build more ffs.

I've been reading Robert Caro's multi-volume biography of Johnson. He writes somewhere about the US political process eventually mirroring the desires of the population (I suspect in the third and fourth volume where Civil Rights feature). Just keep going for the politics you want.
thank you.

Looks like 1000 is not enough though. Next 'reminder' maybe place between <h2></h2>; 'blink' tag might not hurt either.
The taxes you are paying for out of state purchases in Florida are just basic sales taxes like you pay on almost anything else.
Much of what was in PEAR was decent, if not good, and was used by a lot of folks as the basis for their projects.

All judgements of quality are relative to the capabilities of the tech/lang/platform at that time.
http://www.frankieboyle.com/frankie/free-speech.html
This is cool, I'd not seen this before! Thank you for the link.
> Copyleft wouldn't be necessary if everything were in the public domain.

If everything were in the public domain, nothing would stop you from forking an open-source project and distributing only binaries of your modifications. The precise difference between the GPL and say the MIT/BSD licenses is that the GPL precludes that. Copyright is the only hook you can use to compel creators of derivative works to distribute user-readable source.
US Air Force wants to plasma bomb the sky using tiny satellites
Good job! Check this out and see if you want to add it to your toolbox for your homeless participants:

http://sandiegohomelesssurvivalguide.blogspot.com/
I could play this all day. fun.
I don't know the history here, but

https://github.com/TeXitoi/benchmarksgame-rs/blob/master/src...

https://github.com/TeXitoi/benchmarksgame-rs/issues/34 (though some things have changed since these comments...)
Welcome to HN. :)
In my experience, lunch with your colleagues is one of the indicators of a healthy work environment. When this doesn't happen, for whatever reason you may have, I have always found the team to be unhealthy. How is it for you?
And? Our cat-pic flippers do similarly without complaint from this community. Mind your blind spots
Yes, but the fact I don't like something doesn't necessarily mean it's constitutionally protected free speech. Every country in the world imposes limits on speech, because not all speech is harmless. If speech were powerless, it wouldn't be protected in the first place.
Maybe the most interesting part for me was the very last couple of sentences.

> There was a lot of work that came before id's most famous game, Doom. Wolfenstein was his 87th game; Doom was around his 90th, he said.
I upvoted you because you painted a great context for unwitting amount of entitlement of most Americans, but my assertion is completely orthogonal to this context.
> As a thought experiment, try the opposite direction: Math mirrors reality, not reality mirrors math.

If this was true, it would severely limit the usefulness of math. We'd see our predictability break down much sooner than we do actually. Read up on it here:

http://plato.stanford.edu/entries/mathphil-indis/
> As in, what is the "motive" to change the law? Is it completely altruistic? Is it capitalistic?

Well, the motive probably varies person by person, but in any case probably can't really be reasonably summarized in a single word.

> I'd like to think you'll grant me that the article is very one-sided, in that there's not a single mention of the arts industry's concerns with why they would fight so hard (almost psychotically hard) to establish and maintain the existence of DRM.

Why should it not be one-sided? It's not like they are or pretend to be a neutral reporter. People from the "art industry" haven't exactly been known for presenting the EFF's and FSF's (and many others') arguments against DRM, and in particular against laws criminalizing the bypassing of DRM, have they?

> Thus it felt, to me, extremely one-sided and, perhaps unwisely, I questioned the motive for such a framing.

Well, nothing wrong with questioning it, I guess. I just don't see how you could then end up with the conclusion that it has something to do with the FSF disliking profit (or something to that effect), which is evidently not true.

Also, one very good reason for framing things a certain way is to challenge the prevailing framing. It's not exactly like the framing that's been established by the "art industry" is somehow neutral, after all.
This is a CAD tool truly worthy of the association with scheme. And I'm not just saying that: It provides minimal primitives for maximum power and flexibility. That's scheme in a nutshell.

It's also, not by coincedence, really, really cool.
Why on earth is Google writing a new operating system from scratch?
Does it support the entire STL?
You do often need to live in the vicinity of a city. However, in most cases (the Bay area being something of an exception), there's plenty of reasonably priced housing within commuting distance of large cities. (And, in fact, many of the jobs are not even in the urban cores anyway.)

In the Boston area for example, most of the computer-related jobs are not actually in the city and there is plenty of reasonably priced housing within 45-60 minutes of the city.
Good article, but I don't see where it addresses how working fewer hours is good for your boss (though, you can try to read in to it). The article even says that it (working less hours) won't work at some companies.
I agree fully. We need a big, BIG revamp of copyright laws, but that's "The War", this is -a- battle in that war, and in order not to fully alienate the 'other side', we must be aware that large-scale commercial copyright infringement, with our current system, is really, really bad.

Getting the courts/legislators to make the anti-circumvention clause only apply to commercial efforts, instead of absolutely anyone and anything (including researchers, oftentimes), would be a great victory.
> They're the ones who mortgaged our future and blew up the global economy for short term gain.

No, that was the Boomers. The reason that you get all these Boomer vs. Millenial articles is that Gen-X was comparatively a baby bust between the Boomers and the Millenials, such that Gen-X never were the largest generation in the population, and never dominated (and likely never will dominate) political or social influence. Earlier this year, Millenials passed Boomers to take the top spot in sheer numbers, something Gen-X never had.
Tried Wine? Or Foxit?
Point 1: "How you get the passenger from point A to point B is entirely up to the driver."

No - it must be in the vehicle that you nominated to Uber, which must meet currency and cleanliness requirements as set by Uber, and must be in a manner that costs the customer the least amount of money (most direct route).

A contractor could choose the vehicle with freedom, could drive the route they chose.

Point 8: "Nothing is stopping an Uber driver from having the Lyft app going and taking the first ride that comes in. Contractor."

Not true. If you are online with both Uber and Lyft and accept a ride with one, you run the risk of being given a ride that you can't decline with the other. You technically can, but there is the potential for penalties including termination of your agreement.

Point 14: I thought Uber gave the driver an iPhone? Maybe that's changed recently.
IF there is a vulnerability, it might already be in use by hackers. People need to know about it immediately, so they can defend themselves (by closing a port, or switching to a different server or something). Companies need to be encouraged to find and fix this kind of thing without waiting for a embarrass them by finding it.
I don't know about "emerging", but at this point it's impossible not to mention AR/VR and machine learning. Developer Economics highlighted both in their latest report [1] - and that is also a partial answer to your second question, their free quarterly surveys are a good way to keep an eye on tech trends.

As an aside, I remain puzzled by HN's hit-and-miss deduplication. Sometimes I submit something and it's caught immediately. Then [2] happens.

[1] https://www.developereconomics.com/reports/developer-economi...

[2] https://news.ycombinator.com/item?id=12317342
What makes a price fair?
If this list has anything to it, Silicon Valley will be in business for a while.

Software is Eating the World

1. Nanosensors and the Internet of Nanothings

2. The Blockchain

3. Autonomous vehicles

4. Open AI ecosystem

Biology I Don't Understand

1. Organs-on-chips

2. Optogenetics

3. Systems metabolic engineering

Other Science I Don't Understand

1. Next-generation batteries

2. 2-D materials

3. Perovskite solar cells
any chance you are looking for fresh grads (in Canada) ?
How many pirates have made any effort to sponsor creators, or pay creators directly for original content?

Studies in Norway, the UK, Australia and the US have shown that pirates actually spend more than the general population on digital products like music and films. The idea that you're either a Buyer or a Pirate is not, and has never been true.

The fact is that a lot of people simply can't afford to buy all the content they enjoy, and while some may find that morally repugnant, cracking down on that piracy won't bring a cent more to authors.
Boycotts can work because you are able to excersize social influence and slowly change the morals of your society. What you eat is going to be something that people you interact with learn about you.

How you interact with DRM isn't something many people are going to learn about you unless you make an effort to share it.
Kind of noisy, isn't it?
> The 70's were seen as stable

No, they weren't.

Though much of what you say about the 70s might be accurate of much of the 80s in the US.
Boy, just like so many MP3 sharing services of yester-year. What a curious development!

Standard practice to poison the well of your enemies.

This is a phased approach by the way, and malware is a preliminary step. Next come reputation smearing forms of pornography, and hardware destroying payloads for the ones that have no reputation to smear.
They're not, they're serving email databases, which contain spam which contains malware:

> Bulgarian security expert Vesselin Bontchev ... figured that the average email database is likely to contain some harmful attachments, and that casual WikiLeaks visitors might now be endangered. His hunch was right, and he quickly uncovered a collection of malware...
> The idea that anyone can immediately demand synchronous communication from anyone else is really weird.

I think that a more apt description is that anyone can request synchronous communication, which doesn't sound so weird to me.
What separates this from Antimony? Would you use one over the other in certain contexts? Why?
Wine implements a set of API's.

curl and wget could be considered trademarks.
To be frank, the advice of my manager actually was "Go by your gut, we have 3 month probationary period anyway." But I don't really want to spend 3 months on-boarding somebody just to have him leave because he can't keep up.

I like the idea of the work-sample tests, but I don't know how to work them into the process yet, and I don't think I would manage to create good enough samples for this particular interview.

Standardizing the interview sounds like the best approach to try currently. Thanks for your suggestions!
Some frameworks are more composeable than others. Even some 'full-stack' ones like Symphony are becoming more component-ized
Intel announces high-performance 1.7GHz Joule module
A collection of recently disclosed Turkish emails contains malware, as described in the linked article.
So explain "broken". If you say "superdelegates" "ratifying temporary rules" or "DWS" or "Trump", I hate to break it to you: this is not what broken means.
Imagine swapping the entire HTML of Facebook.com when the user types a letter into a chat input box.
Yet another StackOverflow-in-your-terminal
It's a WSJ summary of https://www.weforum.org/agenda/2016/06/top-10-emerging-techn...

or the PDF http://www3.weforum.org/docs/GAC16_Top10_Emerging_Technologi...
> Unforeseen, sure, but evolution is practically incapable of wholesale changes to an organism at a fundamental level.

Oh, I see. I incorrectly read the emphasis of your post as being the unlikelihood of change occurring "in a few generations", rather than on the fundamental nature of the changes.
A story about DEA agents stealing from a drug dealer probably doesn't scare a lot of people who aren't drug dealers.
It seems you're suffering symptoms of Poettering Syndrome.

The key is to remove all applications he has touched (logind/systemd/NetworkManager/PulseAudio/Avahi), and you'll find yourself with a stable system.

Good distros, such as Calculate Linux or Gentoo, help a lot with this.

However, should you continue to use Red Hat-based distributions (of which Debian, Arch, and Ubuntu should be considered, post-systemd; package managers notwithstanding), you will constantly experience these pain points.
For the full cultural effect, read it while listening to angsty MIDI music. Nirvana's Heart-Shaped Box is a perfect soundtrack:

https://www.youtube.com/watch?v=lUscmM8e9lc
It really is on the manager and the top level. I've been at startups where 70hrs a week is the minimum "commitment" level because that's what the executives think will get them their product fastest. It doesn't translate to faster shipping - only a culture of no balance and turnover rates start to creep in.
My few impressions:

- WebAssembly and utter dominance of browsers and JavaScript as a development platform. I don't particularly like the latter very much, but it's hard for me to deny it is happening. People are writing desktop apps using Electron, mobile apps are being made as embedded browsers or replaced entirely by websites, and some folks are even making JavaScript (and node.js) work on microcontrollers.

- More and more languages seem to be getting REPLs, so maybe - in a few more decades - we'll see something resembling the good development environments of the Lisp Machines time.

- Who knows, maybe we will finally decentralize the cloud again? I don't fully understand the things like AWS Lambda, "compute services" and other related buzzwords, but I know the model I'd like to see - where the cloud provides only computing power, and code can be run on data as decided by users instead of users having to give away their data to the owners of the code. I'm not sure if this is how things turn out, but I feel like some components of that better future are being built now.

- We'll see an emergence of another job - of people who are something between a developer and a devops, people who "orchestrate" all that god-awful tooling mess of build systems, packaging systems, containers, balancers, fleets, forward-reverse-backward distributed scheduling proxies and whatnot. It's getting out of hand very fast.

EDIT: Cloud-to-Butt extension strikes again; I keep forgetting about it when editing posts...
I have never figured out either. Then only reliable datapoint are other employees (your possible future colleagues).

The not-so-crappy way I found to bring it up is discussion about hobbies and family. But not with management, specially during interviews. They can see right through it.
wget and curl aren't included with Windows. You have to go out and get them.

Powershell does come with Windows. If you don't know Powershell, having wget aliased to Invoke-WebRequest is hugely convenient, because it's the quickest way of getting stuff done; assuming your Linux knowledge is somewhat, sorta valid is a lot easier than reading a bunch of documentation or googling to see what the actual name of the command is (even though Powershell has pretty discoverable commands.)
> As someone in Europe I just don't understand the level of fear among Americans who are in the safest position probably of any population ever. Is it just media bias?

No. People really are that afraid.

I don't know why.
In civilized countries governments do not draw the line.

The legislature and the judiciary do.