skysight-inc/HackerNews huggingface dataset:
Yes - even Typescript, when arrays are given types, doesn't fix it even though it could be done easily.

var x : number[] // should compile: x.sort(function(a,b) { return a - b; })

var y : string[] // should compile: y.sort()

The reason that this isn't done is due to a misplaced ideology about "typescript is just javascript" - or some similar nonsense.

The bigger problem here is that we are using tools that are designed by a committee, and we have almost no hope of getting this fixed.
Try looking for a refurbished unit. Amazon also sells them. I got an old Kindle refurbished 2 years ago and it works perfectly fine.
Video Games Boost Brain Connections in Multiple Sclerosis Patients
During their pledge drives they do mention unbias and when donors call in to say that they donate because of unbias the hosts of the drives underscore that take. So, while officially they make no claims, in practice those claims are made, specially during their pledge drives.
Assuming your strings are a lot larger than length 2, you might look at locality-sensitive hashing.

If you are using fixed length bit strings, let me know as there are other ways to get sublinear search time for NxM searches. Handwave: order your strings in M by popcount. If string n has popcount p then you only need to compare to the m in M which have between p-2 and p+2 bits set.

You can subdivide the search space even further. And with newer processors, the POPCNT instruction is your friend.
No ill will intended. I definitely have a hard time detecting sarcasm with my own friends in group chat. Very impressed by this project BTW.
Yep. But guess what? The police can and probably still will write you a ticket for it even though the evidence is shaky at best. Why? Because you'll still have to appear in court to fight it if you wish to fight it and they are banking that you will just pay the fine to make it go away. How many people can take a few days off of work to go to court to fight a ticket without employment repercussions? The State is indirectly using Business (employers) to enslave and indebt the population.
Calculating PI with bc
Anecdotal, but suspend has always been a huge frustration for me (T510). Between trying different video drivers and kernels and having them bork the machine I decided to see if any modern release of a distro would just work out of the box (hardware acceleration or no, whatever the OOTB Live experience gave).

My procedure was to boot the Live version, then standby and wake multiple times and see which would reliably work. I had been on Ubuntu for a while but it didn't work, neither did (maybe unsurprisingly) Mint, but Fedora just worked. I've stuck with Fedora for a while and have gone for good stretches where standby + resume would work for weeks... and then fail inexplicably.

But with Fedora it's the best it has been in the 6 years I've had this machine.
Is it time for another video hosting platform to use this strategy and become big? Sounds like a winning tactic
Also, I wish they would make adding invites to your calendar consistently work before making some other products. If your a calendar app, you need to work well at being a damn calendar, and then do other stuff.
time echo "scale=10000; 4*a(1)" | bc -l

3.141592...

real 2m33.930s
user 2m32.304s
sys	0m1.308s
This is super duper off-topic for HN...
Would you class all the automatic settings on my camera as AI? I often try setting them manually, but the automatic ones almost always seem to come out better.
1. Most people don't want to generate a static site.
2. Most people don't want to host a static site.
3. Most people don't know how to do either.
4. Most people do want others to read what they write.
5. More people will visit your curator / aggregator of choice than your website.

That being said it would be kind of neat if they took on more of a wordpress strategy:
1. The blogging engine gets open sourced and is made self-hostable (in addition to hosted option)
2. They host an opt-in disqus-like widget for comments / likes.
3. The medium website did recommendation and curation for all blogs that use the widget.
4. They ran an opt-in ad-network for hosted and self-hosted alike.
So no criticism of any Linux distro is ever acceptable. Got it.
Forgive my ignorance, but doesn't std::unique_ptr communicate the same restriction, and therefore enable the same optimisations?
>The side-mounted page flipping buttons are just about perfect

I completely agree. I've had a Kindle 3 keyboard with the physical page-turn buttons for nearly five years and although the new models might have sharper screens, the lack of physical buttons is an deal killer for me.

They also seem to have gone backwards with the form factor. The 3 screen is nearly flush with the bezel, which slopes away to the buttons at the edge and feels great in the hand. I've handled the newer versions and they're thicker and feel more clunky and cheap.

When you can replace the screen for $20 (replaced once) and the motherboard for $4 (replaced twice), it's kind of hard to justify upgrading, even after you break both by sitting on it.
Is it just me or are there others who think the only one who wins here is Facebook? They are literally sucking up all original content, everywhere. They want you to upload your entire IP library to them so they can check and see if its being used "for you".
It's not that it sometimes infers what you want to do. It's that it has defaults and if you want to do something besides the default, you need to specify what it is you want to do.
You know, I see these types of comments a lot. Where because someone hasn't done something equivalent, or the skills to do so. Means they have no right to criticize.

This software is released under the premise that it is free, and the assumption that it is an actual working operating system.

Unless you're the master of everything, then I'm assuming you've never been a critic of any movie or your favorite sports team. Right?
Taken to an extreme, everything is unhealthy.

If you're going to say no to funding, you might as well say no to knowledge, tech, etc. - that has been gained from such funding.

Are you prepared to stop washing your hands? It's theorized that the modern practice of washing hands came from battle field surgery.
This article conflates digital map and GPS shamelessly, making the argument very confusing.

First, even if I rely on GPS for turn by turn navigation, I still use the map to see the route and specially to locate myself when in a new area. Sometimes I look for a place to eat nearby and them I make the route just by looking at the map: walking is often a matter of choosing nicer streets, which the Google Maps route does not do well.

On the other hand, driving around always make me distant from the place I'm at. With or without turn by turn navigation. Without it, I just look at the map and make a route beforehand, never seeing anything around me in between - too worried on navigating for that,even if I am not the driver.

People traveling long distances by error was not unheard of before GPS. It was just less of a news item. Quite on the contrary, I bet they are less frequent today.

Also, a good share of the population always had problems reading maps. I guess they are the ones that depend the most on GPS.
What about the median wage of Verizon employees?
You may want to look into BarTab
Every year I try and switch over to a Linux desktop from Mac and every year I rage quit because of some stupid bug. On the surface things always work "flawlessly", but then I try something slightly out of the ordinary and I'm digging through logs and obscure message boards to figure out what is broken (adjusting the speed of my mouse off hyper drive... More than the slider allows).

In the end I think I'll probably end up using a chromebook for Linux if I want to escape from BSD Mac. Or just stick with Mac on the laptop and Linux on the server.
Well, imagine you're in a controlled environment (eg, China) and having your non-vpn IP leaked could compromise your identity. Having an easy way for a site to reveal you is therefore a security issue.
> Trying to force an employer that does not value you like they should to behave otherwise instead of finding one that does is masochistic.

I think that you overestimate the ability of workers to exert an influence by switching jobs, but also, and perhaps more seriously, assume that the only strategies for workers getting fucked over are individual strategies. Collective struggles are what can change things on a more fundamental level, and great gains have been won through the organised withdrawal of labour.
The app actually came into existence through harvesting data via the contacts permission. Pretty sure this is still how it works, or maybe they changed their strategy once they got big enough.
Pay Programmers 200k and you will get phenomenal software instead of nickle and diming them for 50k.
There are a couple of short films channels on youtube and we just dont want to be another shortfilm channel on the platform. We believe having a separate entity platform will make it easier for the world to find us with rigorious marketing in the long run.

The whoe idea is that youtube remains d site to go to to watch other video contents while Hubrif be the site to go to to watch African short films
I've been on HN for a very long time (3207 days) and have seen it ebb and flow over time, but recently I've seen the front page inundated by stories that feel like a dilution of the formerly start-up and technology focussed news stories that were here.

For example: this story, another about a Verizon strike, one about multinational corporations, one about NPR, one about The Guardian evolving, one about Blackwater.

Lots of us read HN from outside the US and do so to read about technology. Any chance we can get back to that?
The terrorists (who were only hypocritically Islamic) who did 9/11 were Saudis. America attacked Iraq in retaliation using massive military force.

What was your argument again? Don't bother, I'm not interested.
no (imho).
Reflecting your edit, correcting your statement, thanks. Perhaps you could also point out that your edit refutes your criticism of the OP?
Where is the issue comparing 1 and 11? 1 < 11 still returns true. [11,1].sort((a,b) => a -b) still returns [1, 11].
I'm on your side, but I think this is a bad example or poorly stated. Mothers feel all kinds of pressure (from many angles) to, for example, buy their kids the latest toys or coolest clothes as an expression of their love. Etc.
My biggest question is why does the author keep trying to use Ubuntu and Unity, and not just switch to a different distro.

My experience with Ubuntu has been really similar to his, 10.04 was the peak, I had a great setup with gnome 2, everything was fast and responsive, things worked, crashes happened very infrequently. Every release after it has seemed significantly worse than the previous ones. And I put the blame on Unity and Canonical forking every Gnome application to work with it.

Anecdotally, I play around with two VMs, a Debian one running Gnome, and an Ubuntu 14.04 one. The Debian VM has half the ram and processing power as the Ubuntu one, and still runs significantly faster. Gnome 3 is great, and if I were still running linux full time I'd use it as my DM.
True, but let's say it's in a class of problem of its own.
> Oh no, my desktop experience on a completely free operating system made by volunteers doesn't work as well as one made by thousands of well-paid employees

According to Wikipedia, Canonical has 700+ employees.
People usually claim that one thing is more productive than the other without any real evidence. I think it's mostly just so we can stick with something out of familiarity. Or sometimes it's so we can switch to something else because we're bored. The "it feels right to me" argument just seems unbeatable (you can't argue with it without seeming like a jerk).

For example, I might say that I'm super productive in IDE X, but I don't know for sure that I couldn't be more productive in IDE Y or Editor Z with various plugins. I haven't consulted any research in making my decision nor have I conducted any real research of my own.

I guess maybe it doesn't matter. If everyone is "happy", maybe that's good enough. But I see people struggling to do certain things in their environment of choice and that ends up having an effect on not just them but potentially their coworkers.
So even though this article is from early 2015, commenters here seem to confirm 14.04 is still bad. I've been feeling guilty lately for running 12.04 and am just waiting for a slow weekend to upgrade. I run Xubuntu and have no intention of adopting Unity. I have two monitors with an Nvidia video card. I like how in Ubuntu things "just work". Also I like running the same OS as many of my production servers. But maybe in spite of that it's time to try a new distro? Any recommendations?
Yet another reason why you shouldn't have read W3 schools.
Array#sort sorts all elements by their converted string value.

It may seem like a strange way to spec the language, but I'm not sure what would have been better. It wouldn't make sense for sort to have to run through the array checking types before it starts, or for it to dynamically change what kind of comparison it does depending on the types of each pair of elements being compared.
I purposely said $125k minimum since that is the lower bound of our Engineer IV salary band. What we pay for director-level is entirely based on experience (e.g. a master craftsman might make more base than I do as an SVP)

That said, it is possible that we still need to pay more.
AppleScript can do pretty complex GUI automation tasks.
OPM Seeks Social Media Tracking for Background Checks
Could it be the constant back-porting of patches that leads to problems? And in fact you are using and old, patched kernel? Perhaps a truly new kernel would surprise you.
It can easily be fixed by passing a sorting function...
Wow, where do you live?
Nice scroll hijacking /puke
Clinton emails: Past cases suggest Hillary won’t be indicted
Haven't looked at it yet, but a tip for the OP:

After clicking the download link, the page displays a message describing how to get around the Mac security check.

There's an easier way: Right-click on the Min app in Finder and select Open. This time the Mac security dialog will show an Open button, allowing you to override the security check. No need to go into System Preferences.
Your first sentence nails it; from AI is nothing short of the Borg to AI being smart factories that are XX% automated or Google searches... agreeing on the definition is problematic.

Some thoughts:

I think we have automated a great deal of our lives and automation is growing exponentially at present. Once we have achieved some critical breakover in automation, I believe we will start to see unification systems. These unification systems will bind the various forms of automation relegating human input to a bygone era. That is, the unification system will learn, optimize, and execute the "complete stack" of various industries... Think product distribution from factory to dock to end user.

I don't think this type of automation is that far off. Is that "AI"? To me it is and I suspect most people outside of HN will call it something along those lines. When some kind of AI like Varuna in the novel _Influx_ by Daniel Suarez hits the streets people will not give one shit if you call it AI or God... they will be very, very afraid of it.
Stop hijacking my scrollwheel.
Others have provided good answers but I'll add my 2 cents. Neovim was made to be fully(Mostly?) backwards compatible with all Vim specific features, and most Vi features. You may be wondering what is missing, some ed features and support for some more obscure Operating Systems. You shouldn't have to worry about the missing features as they are mostly legacy features that mostly all new/newish users of vim never will use. As for additional features they are mostly all under the hood, better embedablility, extensibility, and sensible defaults things you don't need when editing your Appache routes on the server.
Or hard-boil some eggs in the coffee pot. That has to be about the simplest meal that exists.
CSS games
> How can a consumer figure that out? I still hit problems on this thing. Weird random problems, basic things that should just work, and sometimes just fail. I frequently think "If I can't get this to work without an hour of work, there's no way this is ready to be widely used".

Though, to be fair, even as a Windows user and relatively firm fan of Windows, that happens for me routinely on Windows. Windows Update in particular is confusing with its many error messages that either magically resolve themselves if you retry enough times or require significant and arcane manual resolution. Managing home network file systems and printers with Windows in 2016 seems basically unchanged from 1998. Microsoft added "HomeGroups" to make this a bit easier for lay people, but they have more or less abandoned to its Windows 7 iteration, with virtually no evolution since. Now they channel their efforts toward integrating their cloud storage services.

Generally speaking, this is the trouble with general purpose computing and general purpose operating systems—there are rough edges and a huge number of corner cases that get ugly. In several decades of evolving these systems, we've not buffed those rough edges down as much as we'd like. It's similarly the reason mobile operating systems are popular for primary computing devices for a growing segment of the population. (Although, I will add that mobile operating systems are picking up the same rough edges as their capabilities expand to encompass more of the terrain typically associated with general purpose systems.)
Blockbuster Movies with Male Leads Earn More Than Those with Female Leads
I don't like that the page turners are only on the right side.
The more portable the device, the worse hardware support seems to be, unless we're talking about the one operating system it was sold with (and then only maybe). Laptop ACPI is often purposefully malignant, wifi cards still have their bugs (hard to fix with proprietary firmware blobs) and let's not even get started about specially built interfaces and connectors.

And that's true across most operating systems. I recently upgraded my Dell tablet to Windows 10. Oh the humanity. And with every OS X version, problems with my 2009 Macbook are increasing, especially in the first few iterations.

Apple's post-90s hardware selection scarcity is a boon for them, as you don't really need to check that many configurations. Similarly, running Linux on slightly older Thinkpads is usually a very good bet. Doubleplus that if the wifi card is either libre enough or is replaced with one that is.

But as I'm not doing the hyper-mobile thing (I don't work from a beach or cafe and don't even like conferences), a desktop is usually the best choice for me. Cheap, fast and you can build one with fewer faulty components.
While this is true, a change of scenery can always be a way to take a few days off and recharge your batteries. Most of the time when I realized I was hurtling towards a burnout, I would simply start interviewing, and once I landed a new gig, made it mandatory to have at least a week buffer between the end of one gig and the start of the other.

The important thing here is I didn't do ANYTHING AT ALL that week. Sure, I cleaned the house, went biking, and generally stopped to smell the roses, but I made sure not to write a line of code, look at code or even think about code that whole week. When you're burned out, your body and mind shut down. Being able to re-engage your brain and body properly and give them the break they deserve does wonders.

Even having a week just to shutdown and restart over does amazing things for your mind and body. you don't need a year to recoup and get going again.
Germany Could Charge Comic for Insulting Turkey’s President
Yes. I really wish there was a distro I could just recommend to people that Just Works, but there isn't. I've been using Arch Linux for a decade and it's fantastic, almost never breaks. But no way would I recommend it to someone who wasn't interested in editing config files by hand. But every other distro I've tried breaks horribly, especially during updates. And they make installing proprietary software (nvidia drivers, Steam) a huge pain. i understand the ideological bent, but I just want things to work. And, as a Wine developer and user, Arch is the only distro with a functional multiarch setup.

At the end of the day, I just don't recommend people switch to Linux.
> And as I watched my colleagues dealing with DARPA's demands for reports, PI meetings, bake-offs, delays and reductions in promised funding, and other hassles, I began to wonder whether I hadn't gotten the best side of the deal after all.

Applies to the startup world as well.

I've done startups in both Silicon Valley and Washington DC, and I have to say: The time commitment is not as recognized as it should be. Folks that build their companies around getting govt funding tend to get good at getting govt funding, which is different from getting good at building product.
Yes. This is very easy to install using PFsense inside a virtual machine.

Here's a guide that is recent and I can confirm that it works:

http://www.malwaretech.com/2015/08/creating-ultimate-tor-vir...
Are You Winning Micro-Moments?
I didn't intend to sound entitled. I'm just terrified that I won't find something. I haven't been unemployed since starting my career, and you must admit that the usual line we hear is that "We Can't Find Enough Engineers!" and "Become A Programmer And Never Worry About Finding A Job!". From the comments here I see now that it isn't exactly true.

I have tried to look through the online freelance marketplaces, but it seems the quality is awful and the pay worse. I know most quality contractors work through connections, but don't know how to open that conversation. I'm not a particularly good salesperson.
The system would need to be resilient to small amounts of fertiliser, otherwise it would trigger on anybody who's been on a farm or done gardening recently. Heck, I use fertiliser when watering plants in my flat. That's not a practical level of false positives.
Less industrial accidents. Not losing fingers to a hydraulic press is a big win for factory workers and even the dumbest machine intelligence.
My experience is the opposite, 12.04 used to crash(X) on me quite often. I did have some problems with 14.04 that would send a regular user go back to windows, but nothing I couldn't solve in a few minutes.

I tried to use arch, but I ended up fiddling with dwm and other stuff instead of working on what I should and I don't really like any of the linux DE's other than unity. So I don't really see any good alternatives for a distro to use with as little hassle/configuration as possible.
This prophylactic argument might be a reasonable one if there were an epidemic of transgender women (or, for that matter, cisgender men) harassing cisgender women in the bathroom. But, instead, it is virtually unheard of. The empirical evidence is that, today, the combination of informal social norms and retrospective laws against, e.g., lewd conduct and sexual assault are more than enough to discipline' people's bathroom behavior.
How is the computer science program at University of Alabama in Tuscaloosa? Does it have a growing emphasis? Historically C.S. hasn't been big at SEC schools but I've no idea if that's still the case.

(I grew up an hour west of Knoxville. And have family in B'ham/Tuscaloosa.)
While IANAL, yes, non-solicitation clauses are also not enforceable in California.
Yeah, I'm struggling to understand why that's an issue.