skysight-inc/HackerNews huggingface dataset:
I'm requesting the exact syntax I just wrote.

EDIT: the replies to this don't get how feature requests work. yes, I could write this basic feature myself. thanks.
That's what the Ministry of Environment is claiming. This does not automatically make it true, but at least for me, it is a more reputable source than Guardian and European Commission which both attacked Polish government on numerous other occasions.
Here's the problem: Ctrl-C isn't quit. It's keyboard interrupt, and that does not necessarily mean "quit".
How many interactive programs actually close immediately if you hit CTRL+C? Why would you expect that of vim?

If nano were the editor you end up in, you would have the same problem.
It takes wisdom to realize that the genesis of universe lies within parenthesis.
‘Silicon Valley’ Fact Check: Are ‘Blood Boys’ a Thing?
I think it's easy to resolve this by being specific. Moral rights exist regardless of legal rights.
Yup, we see that issue too. But in that case, I think it's python specific (how python handles default values). Ruby, for example, does not have that behavior.
Thanks. The main landing page is much better. Still a little unclear on whether 16 touch points is spread across all remote locations. So if there's 5 jam boards and three stylus/eraser sets at each, that sounds perfect. Glad to see someone finally built this, nice!
Also, strictly speaking, Python is not "pass by reference" as the term is used for other languages. It's more accurately "pass by object" or "pass by object reference." Somewhat of a pedantic distinction, and the quiz question is clear regardless.

[1] http://robertheaton.com/2014/02/09/pythons-pass-by-object-re...

[2] http://foobarnbaz.com/2012/07/08/understanding-python-variab...

[3] https://jeffknupp.com/blog/2012/11/13/is-python-callbyvalue-...
Ask HN: How often do you write comments in your code?
I recently had a discussion with a new colleague about how extensively code should be commented. Now, I'd like to hear the opinion of the HN community.
Troll, don't feed it.
I think you are just channeling the tensions that exist in the market. And that is to be expected.

It is really fascinating to look at laptop and tablet and phone evolution from a distance.

Computers became "personal", and then "luggable", and then "portable", and then "laptop", and then "handheld", and then "phones." As they walked that transition computers were getting more and more powerful, but they were still shedding features as the evolved.

And then at the 'phone' endpoint of evolution they sort of 'bounced backward'. The key to that bounce was screens. First they got to be higher resolution, and then they got to be bigger (clearly testing what was more desirable). And as boundaries along size have started to settle out they have been getting back peripherals (pens, styli, and keyboards).

I feel like the current hardware has re-affirmed a couple of truths. One is that keyboards remain an accelerator for input much like bicycles accelerate walking. Very difficult to improve upon. Styli only make sense if they are at least as good as the instruments most people use and that measure of 'goodness' is sensitivity and lag. The last is that command entry is often gesture based, and while you can do it with keyboards or styli there is a certain "grace" associated with turning the page by flicking your finger rather than pressing the 'down arrow' key or the 'next' button.

The tension is that all of them, the laptop, the tablet, the phone are the "same" thing but tuned in slightly different ways.
Actually it's exiting when you have unsaved changes which is confusing, the second prompt that comes up makes no sense to me. Also it shows a caret ^ character to represent the ctrl key which is confusing.
Vampire bats use modified capsaicin (chili pepper) receptors in their nose to detect infrared light:

https://www.nature.com/nature/journal/v476/n7358/full/nature...

They use this to find their warm-bodied prey, but of course it's only detection, not vision.

I learned this today, and now I'm happy I did.
Chinese hacking against U.S. companies is 'ongoing' but 'significantly reduced'
That looks more like emacs behavior though, vim rarely (never?) prompts the user for anything. You enter a command, you get a reaction (either an action like quits vim, or a message indicating something happened) -- which I personally prefer much more than getting annoying prompts.
I am currently homeless. I have, in fact, eaten at soup kitchens. I do everything in my fucking power to stay away from the free meal sites. They are so uniformly shitty and expose me to crazy people who are dirty and germy and a threat to my health and welfare to stand next to. Any dive eatery is vastly better for my health and welfare than the soup kitchens.

I desperately want to figure out how to establish an adequate earned income. I am not pro Basic Income. You can keep your charity. It is almost never anywhere near even the very average, middle of the road quality of the cheapest fast food places.

When free food is as good as what you relatively rich people are eating, then you can talk to me about how wonderful this impetus is. Until then, I would like a fucking adequate earned income, thanks. And I would like to see that standard applied more generally.

People who imagine they are generous, good people are very, very often just justifying incredibly bad treatment of other people that they don't really believe deserve a real life, like they have. If they believed that, instead of giving charity, they would create jobs and build affordable housing. But, no, we can't do that. And fuck you all to hell to the poor schmucks ending up homeless because of the incredibly shortage of affordable housing. Y'all all must just be losers. It couldn't possibly be that society as a whole is all kinds of fucked up and you just happened to draw one of the excessive number of short straws.
yea i agree about candidate. but maybe after this last cycle people's thoughts have started to change.

a president understanding software would make things like the botched heathcare.gov rollout less likely, and would help set the agenda for which things to work on. it also means that when you delegate, you are better able to decide who to delegate to. there are so many shitty contracting companies that you wouldn't know to avoid unless you understood the industry i think.
This is a neat tool! I had too much fun identifying minimal titles, particularly my coming post "(YC S0000009)" with 99.3% probability of success and a 0% flag probability.
It does seem like those limitations are brought up as competitive advantages, so I'm not sure I'd consider it candor.
I am willing to bet you're still going to see USB 2.0 ports on desktop PCs in 2025. (Most come with at least a pair of non-3.0 ports today.) Some computers still ship with DB9 and DB25 ports today. VGA is still one of the most common video ports, and a lot of brand new PCs and monitors come with them to ensure people have compatibility with whatever PCs and monitors they already own.

USB Type-C is nice in theory, but even if you assume they get all the compatibility issues with it worked out, we're gonna be using USB Type-A for many years to come. Type-C only accessories being common is a really long way away, and you'll have replaced your Surface Pro by then.

This is an excellent explanation of USB Type-C: https://xkcd.com/927/ (That isn't to say that USB Type-C is bad, but pretending we're all moving over to it in 2017 is silly.)
I would turn the question around and ask why other brokers and finance companies are percieved to occupy the moral cesspool and whether or not that's a fair assessment.

My personal take is that if Vanguard can build a strong following and product by relentlessly focusing on minimizing expenses being passed on that's a net good thing (Amazon may be an apt analogy). There are more than enough opportunities for an active firm to prove that high expense fees are worth it (don't forget the survivorship bias) and to date they are failing to do so consistently.
The test, of course, is to imagine a similar multi-person touchscreen product coming from Apple. Or HP. Or Google. Or Microsoft.

Think about how each of those 4 companies' reputations prejudices the emotional idea for this product.

It's not just a thought experiment; Apple has the big iPad which is still pretty small for people to crowd around, but its bigger than the other iPads, and there have been multi-player single-iPad games since pretty early on. HP has the HP Sprout, which has a slightly larger area compared to the big iPad but isn't really targeting multiple users, though it does feature a camera + projector combo that the Xperia Touch also uses. Google has the Jamboard, which is based on a 55" TV, and was recently announced as being $5000 for the TV, plus $1200 for the matching stand. The Microsoft Surface Hub is probably the oldest product after the iPad, and that goes for around $10k.

Any attempts to go beyond the individual/single-person experience of the iPad have not yet broadly succeeded. Price is an issue, but also portability - smart whiteboards exist, but beyond installed systems, there has been no wider adoption. If this product is able to drive wider awareness of the concept, I will be happy to kill pen and paper, chalk and chalkboard, dry erase marker and whiteboard.
How does one view the top viewed questions on stack overflow?
Best site to download audiobooks for free
ah yes, let's assume the customer was just trying to dodge taxes, even better!

it's crazy, even if common, to treat your customers like shit.

it's not MS's problem of people are dodging taxes, and it should be (if they want customers) their aim to help their customers.
iirc a bulk of these workers find themselves in Russia or China so hardly on democratic lands.

If you know of other instances of this that'd be a fascinating topic to read up on.
Indeed, I find it mildly painful to look at IR emitters, for example, on a "night vision" security camera. I don't believe it is dangerous or will blind anyone, or anything, but it is plausible to me that there could be an unanticipated effect.

EDIT: It appears that this is given a passing mention in the article:

. . . it can receive at a wavelength of 1550 nanometers, deep in the infrared part of the spectrum. That makes this wavelength much safer for human eyes than today’s standard wavelength, 905 nm.
I only have the sp4, and apparently Linux support is getting there. On my first attempt (almost a year ago) there were a number of issues - but now a recent distro/kernel should work out of the box (on the sp4).

But I haven't gotten around to trying yet, as with the Linux subsystem and hyper-v - I have enough Linux for my current needs.

I do plan to try and move to Linux (again) now - for better window management and better package management (scoop.sh and chocolatey notwithstanding) - and because I strongly believe in FOSS.
> you can fool some of the people all of the time, and all of the people some of the time, but you can't fool all of the people all of the time

This saying needs a caveat - sometimes, you can fool all of the people for enough time to complete your evil scheme.
Exclusively used by

Middle

Aged

Computer

Scientists.

E.M.A.C.S.
15/15. Some questions felt like they were trying to trap me. Or maybe I'm just tired, I've had a long day of work.

Congratulations on making this! It's less fun for me than algorithm puzzles, but I can see it working well for hiring purposes. I'd love to see some software company use it and report the results.
I never ended up in vim by accident until I installed git. vim doesn't come with my distro. (windows 10)
do i think tech scions and the like make the best presidents? no. but what you are proposing is neither possible to implement, nor defensible. im sure you have some thoughts on why you dont want those people running for office, why not share those.
Spectre.css is pretty amazing: https://picturepan2.github.io/spectre/
they're not all the same but s/he is correct to note that every president capitulates to the demands of the military-industrial complex and the finance-capitalist agenda.
They were ordered to censor the video livestream (only allowing text) just ~1d before the event though.[0] Rumor has that the censorship order explicitly called for avoiding mentioning Google in the text streams. A YouTube mirror video livestream on Bilibili has been taken down for unknown reasons.

[0] http://archive.is/tTgsx (original page already gone)

It might not be the gov't intending to act evil in this case -- it can be some random "old red army" hearing about Google's involvement in this thing and protesting. But no matter what the underlying reason is, they are defly trying to hide something they are not supposed to in order to make stuff look good. (They ain't no White Lotus.[1]) You don't need an evil overlord to do this; a narcissist will suffice.

[1] https://baike.baidu.com/item/白莲花/17505528
I don't know the exact number; about half of those 100 birds are new this spring and haven't started laying en mass yet. My wife tells me we're currently getting about 3 dozen per day. I sell quite a few at work and my daughter, a vet tech, also sells at her work. If we get too many we hand them out as gifts for the FedEx guy, our Doctor, etc. The gifts usually guarantee repeat business after folks get a taste of fresh eggs.

We recently just got a few puppies from a local animal shelter that we're acclimating to the chickens. We hope that'll cut down on predator loss.
Wow, did not know that. The idea that the Mediterranean was a huge valley with some areas more than a mile below sea level is crazy.

https://en.m.wikipedia.org/wiki/Messinian_salinity_crisis
>Java is a great and extremely well designed language. All you mentioned are nothing but natural expansion of the language's use cases

I'm mostly seeing Java treated like a legacy or a conservative choice - not something I would describe as great. JVM has a lot of quality engineering but there are better languages to leverage that ecosystem.
If vim opens and that's the first thing you try, then it'll work, yeah.

But if you've typed anything, this won't quite work. <ctrl> c will take you out of insert mode, but won't offer any prompt. <ctrl> c again will bring up the quit prompt, but that's not intuitive the way doing it the first time is. And if you type the wrong thing after the first <ctrl> c, you'll break back into insert mode and have to take another run at it.

I remember getting stuck in vim because git bash uses it as a default editor. It happened when I forgot to enter a commit message, which meant that I started typing a commit message and thereby lost the useful prompt when I went to quit.

edit: per another thread, this gets far worse if you don't realize the ':' is active and not a prompt to "type: quit". That error sets off a maze that will never show you the prompt again to find your mistake.
Failed two questions in the first part because I don't understand Python tree syntax and don't know what does it pass by reference and what by value.

Would be great if authors translated it to at least a couple of other languages.
Nature is not crushing rock into gravel and sand as quickly as humans are using it. But it is straightforward for humans to crush bulk rock. The New Yorker article actually mentions crushing quarried material toward the middle of the piece. Here is a study from 2008 about replacing sand with crushed stone in concrete (from India, where natural sand shortages are acute), "Experimental Study of Artificial Sand Concrete":

http://ieeexplore.ieee.org/document/4580058/

EDIT: probably shouldn't link directly to sci-hub copy.

The short version: crushed stone is a fine substitute for natural sand in concrete. It actually improves strength modestly compared to concrete made with natural sand. ("Concrete with stone crusher dust was reported to show 17%, 7%, 20% higher compressive, tensile, flexural strengths respectively than those of conventional concrete.")

Of course it takes energy to quarry and crush bulk rock. But the energy input is manageable. The Bond Work Index for granite is 10-15 kWh/ton; for quartz/quartzite it's also up to 15 kWh/ton. That means energy cost up to $1.50/ton at 10 cents/kWh for an electrically driven crusher.

https://www.911metallurgist.com/blog/table-of-bond-work-inde...

For comparison, current concrete sand seems to run about $45/ton:

http://www.earthmaterials.com/1_concrete.htm
Submissions about the AlphaGo vs. Ke Jie
There have been a few submissions, each with their own flavor, and some with discussion. So I thought I'd collect them for my own reference.
5 myths about product launch that was preventing us from launching earlier
> Not to mention your OS is full of modal interfaces. "Why can't I type?" "You have a menu open." "Why can't I type when my cursor is over this window?" "You have a different window as your focus." "Why doesn't space pause this YouTube video?" "Because play wasn't the last button clicked."

None of these are examples of modes, at least not as the term is used in the context of user interfaces. (See https://en.wikipedia.org/wiki/Mode_(computer_interface)#Defi... for more information.) Modes hijack the entire behavior of the application until the user switches out of them. Windows and menus aren't modal unless they block all other input until the user deals with them.

On the other hand your last example, the CAPS LOCK key, actually is modal; once it's engaged, everything you input is going to be capitalized until you disengage it. You will also notice that the CAPS LOCK key is a common source of user problems in tasks where capitalization is significant, like entering passwords; and that for this reason there are frequent calls to remove it from the standard keyboard layout.
Tpu is what Nvidia and Google both call their low precision matrix multiply hardware. Your assessment of how the hardware can better be used is just your assessment. The reason they did this is because they realized that a large share of their professional users want this, and they're willing to pay. They'll likely have other versions of the card where the tpus aren't there, so you'll have that option as well. It's not a new paradigm, but it's absolutely new to have this type of computation in a single cycle at these clock rates.
How ready is this now to write real beta quality contracts in? I'm just starting, should i pick this over solidity ?
And you seem to miss the fact that with UBI you have no incentive to live and stay in an expensive area.

I am homeless. I also have portable income. I have already used that fact to move someplace cheaper. That failed to get me back into housing. I plan to move again in the near future to move someplace even cheaper.

So, no, I am not missing anything. You are just LA LA LA not listening to the fact that if you cannot find housing cheap enough that your pathetic low income will cover rent, fuck you. So, I stand by my statement that UBI won't really do shit all if we don't solve the affordable housing issue.
Is going from recording to playback a trivial step? The article doesn't make this clear, but if this step is nontrivial, then Edison's contribution still seems like a big deal. The article even seems to imply that the format he recorded the sound in was not amenable to playback.
when you find a pair you like, buy as many as you can.
Also: Emacs is rarely if ever used in the terminal today, and exiting it through the standard desktop protocol ([X], Ctrl-[Shift]-Q, Alt+F4, ...) always works.
I think the real problem is that vim is the default editor or people are writing tutorials and using vim. Asking vim devs to break the whole raison d'etre (modality) is kind of ridiculous.
It's not a good idea to have just one backup system. I like to have 2 completely independent backups.
this is a legitimate threat and its one of my biggest misgivings with him. and i dont think its realistic to think that any kind of blind trust / divestment / change in ownership would sufficiently address it. its actually almost disqualifying to me. he doesn't strike me as someone who would use it nefariously, but its stupid not to protect against that.
I'm guessing the multitasking capabilities of the shell are not well known to those who don't know vim.

Nor how to open a separate tab session, do a `ps`, and kill that.

It should be shell 101, but it's not.
Show HN: A resume creator built on Material Angular and ServiceWorker
The alternative is to be a problem solver.

There are many cases where there's a real need to create a solution either without any established framework or where previous attempts have failed. That means you're either a founding engineer or some skunk-works employee where you are given great autonomy but also bear most of the responsibility for the failed project. And, AFAIK, these positions are usually not advertised, you need good connections and luck to arrive at such opportunities.
not on my browser. probably ad-block related, i.e. I'm using ad-block and the page doesn't eat all my CPU.
Long, long ago in my programming infancy, I memorized a three-word ritual that has saved me countless hours over the years. It should be taught to freshmen CS students everywhere: Colon Queue Bang.
Have you actually worked for any of those companies ? I have.

And I can assure they absolutely fall under the definition of an enterprise. Sure they develop a lot of technology in house but they still have significant amounts of classic, enterprise technologies. Especially in the "business" side.
YC S17 invites/rejections today
For the second time this year here we are again! Today 10PM PST we'll know if we got invited or not. Good luck!!!
The last graph shows, of people who get stuck in vim what language they use the most. This means this could just be a graph of the most used programming languages. eg if there is a uniform 10% probability that anyone will get stuck in vim. I would find it interesting to see a graph that show what percent of each language's users get stuck in vim.
The Real Future of Self-Driving Cars- SXSW 2017 by SXSW
Is it another Silicon Valley promo just like that machine learning compression a couple of days ago?
You don't have to hit escape, ctrl-c puts you in normal mode.
Counting exactly the number of distinct elements: sorted arrays vs. hash sets?
Cleaning Up Your Rails Views with View Objects
For the modern version of this, see CLIM or McCLIM
Don't know about $EDITOR, but if you issue a git commit in Windows, and forget to specify -m, then you end up in vim.
He talks about why it won't be cheap as well, demos raw data from the sensor, etc.
If you want extrinsic rewards, you need to provide extrinsic value.
>A far as male pants/trousers go, your choices are basically jeans, corduroys, or khakis (chinos)

Why, what happened to cotton lycra, herringbone, linen, traditional business suit trousers etc?
No, the question is "why is it important that the Surface, or other laptop, ship with a USB-C port today. Asking 2, 5, and 10 was to illustrate that over most of the life of the Surface, USB-C will be preferred.

A $2000 device should have the new port.
Yes, please do chmod your SSH key, netrc, and other sensitive files as world readable!

Sincerely, that other guy on your multi-user OS.
I'm an IT professional and this is a work machine for me. Looking at it that way, for what it does, it's worth every penny.

For a casual home user? No, I would never recommend a Surface Pro.
I don't particularly like vi, but as a intermittent user for 20 years, I don't like it to be changed just because a few junior front end developers (ok a million) think it's hard to use.

The default editor in distros could be set to nano or some other reasonably 'windowsy' editor instead. Those who want vi or emacs know how to fix it anyway...
I didn't realize that the Maine constitution went into such detail about how to count votes and how to resolve ties etc. Looks like this really should be an amendment. I wouldn't be pessimistic about the chances of such an amendment passing though. The people seem to be in favor of changing their voting system.