skysight-inc/HackerNews huggingface dataset:
The vector is initialized with 500000 widget objects. The size and capacity of the vector are equal. The following while loop is never executed.

>> while (vw.size() < vw.capacity())
>> vw.push_back(Widget());

In the situation that the vector is not initialized with elements and populated in a loop the time for a single push_back is equal. I think this is because there is no need for a resize.

>> vector<Widget> vw;
>> for(int i = 0; i < 500000; i++) {
>> vw.push_back(Widget());
>> }

Does this illustrate how fast a vector of objects can be copied/resized using move semantics?
I must be missing something, given the "reverence" SO seems to get.

You have bit of experience, Stack Overflow's usefulness applies mostly for novices. See the people who said they learned to program with SO in this thread, or otherwise find the material there useful. They're the target userbase, not you.

I suspect the audience is not limited on purpose. The work required to answer questions, and incentive system seems to select for questions that are already google-able but the person asking just doesn't have enough domain knowledge to productively google for that answer.

The only time I get a useful stack overflow google result is when I've jumped headfirst into an area outside my skillset and need to do a common operation but the toolset doesn't make obvious. The kind of questions where I'd be desperate enough to ask SO are either complicated and - at best - get "don't do it like that" answers. Or I'm looking to better understand the technical considerations going into a design decision, which is too opinion-based (or whatever SO calls it) to be asked.
Probably because it's still irrelevant to CICO. CICO doesn't tell you how much calories go in or out, rather it tells you to measure them wherever possible and make adjustments based on your weight changes.
>It allows enterprises to use their current iOS and macOS developers to do Web Application and server side applications.

That's what they said about front-end web developers and now we have nodeJS.
Nope. I've had one of the above (or both) happen for all 5 of my most recent Manhattan UberX rides.

To be clear, I'm not talking about someone joining your UberPool ride. I'm cool with that, I chose Pool after all. I'm talking about how now, Uber will assign your current driver to his next rider before your ride has ended. As in, he will drop you off and he will already have been assigned the next rider to pick up.

I like the optimization, I don't like the fact that then the next rider will start calling the driver asking where he is/why he's going this direction/why he's taking so long etc.
How much work would be required to allow network access from one of these emulated machines? Could it be done over websockets (via a proxy)?

EDIT: After reading the docs, it seems that this is already implemented (via websockets, too!): https://github.com/copy/v86/blob/master/docs/networking.md
A friend of mine who lives in Tokyo told me that in Japan it's near impossible to transfer money from one bank to another

Go to any of your bank's ATMs with your ATM card and/or passbook. Select 振込. Input amount. You will be asked the bank, bank branch, and 7 digit account number of the person you are sending it to. You will then be (typically) shown a screen which shows you the fee (100 to about 500 yen depending on bank and size of transaction) and lets you adjust your telephone number or name if required for the convenience of the firm receiving your payment. Hit OK. If done within banking hours, the payment is effectively instantaneous. If you cannot follow these instructions, you can ask a teller to assist.

If you're doing the transfers between your own accounts and they're at different institutions then one will occasionally see people withdraw to cash and then immediately redeposit in a second account, to save the ~300 yen or whatever.

In related news, Japan is a major Western country and banks do not communicate via couriers and smoke signals, contrary to impressions your friend may have.
This is especially true in Swift 3, which has many improvements around this type of programming.
In-Depth Technical Explanation of Why the Minus World Glitch Happens in SMB
It would be great when we can run Exchange and other internal tools we have as containers.
Couldn't he also get his employment terminated at Apple? Because I'm pretty sure any company wouldn't let you work with the media whilst working with them under a standard NDA.
React-animations: A collection of animations for inline style libraries
GUI apps (and remote desktop use cases) is not supported for Docker Windows containers, at least not yet.
Probably because that one skinny person eats jack-all outside of the times you are observing them.
It is: "His Grace, His Excellency, The Duke of Ankh; Commander Sir Samuel Vimes", if you please.
Uber just have to survive until self-driving cars are a reality.
While that's true, the hypothesis in the paper is consistent with feeding antibiotics to livestock to improve their feed conversion ratio by decreasing the diversity of bacteria in their microbiomes [0, 1].

[0] https://www.ncbi.nlm.nih.gov/pmc/articles/PMC1804117/

[1] https://en.wikipedia.org/wiki/Antibiotic_use_in_livestock
I am just being dismissive. I just tend to be triggered by comments like "Most of the world lives in countries that censor the internet" that assume that USA does not do that. Wikileaks is the most blatant example, but sci-hub and Pirate Bay are other examples of US influences censoring the net.
Perhaps.. but lets say in 10 years efficiency goes up another 30%. So yes even if your current fridge COULD last 20 more years, with efficiency gains the best thing for the environment COULD be to melt it down for scrap and get a newer model.

To me this is the really interesting part in all of this. If there was no efficiency gains generation to generation.. say a piece of clothing.. seems pretty obvious to make slightly better if it can last 100% longer for 20% more material/energy/cost.

Things like cars/ fridges / AC units? The math is complex. Think of all the cars on the road right now where 30 year old cars. The air in LA and SF would be like the air in Beijing or Mexico City. It is in fact both good AND bad for the environment at the same time that things are slowly retired and replaced with newer models.

But for example gas furnaces have slowly improved from 50%??? efficient to 99.9% efficient. Clearly they can't get better. But for example, heat pumps can get > 100% efficient.
It's fine to resubmit the same URL after a while if it didn't get any upvotes. I think the old title and description was fine. There's no need to create a new fake account or click-bait headline. Adding 'Show HN' https://news.ycombinator.com/showhn.html has a higher chance to get comments.
No, as U2F prevents nearly all phishing attacks. See this post on FastMail's blog (the last section): https://blog.fastmail.com/2016/07/23/how-u2f-security-keys-w...
Exactly what I do. Exactly what happens to me. I am a serious Necromancer.
Why is a comment offering help for someone else battling massive student loan debt getting down-voted?
> Swift can't do realtime. It has automatic memory management. How do you replace C or C++ with Swift for that?

Of course it can, it is just a matter of OS vendors caring to push it down developers throats.

There are ways to manually manage memory if required to do so, but then you suffer the consequences of dealing with Unsafe*.
Why Do Obese Patients Get Worse Care? Many Doctors Don't See Past the Fat
Thanks for the reply.

So it seems people have switched because of:

* Process Isolation

* Dev Tools

* Bookmark and History Syncing

* Chromecast

Also some people have mentioned performance, but this is unclear.
I run a number of 1%-write, 99%-read web apps with decent traffic on SQLite. Works like a charm. It is low maintenance and creating a "backup" is simply copying the file.
I interviewed at IBM for a position making Enterprise template apps for iPad working directly with Apple, and the main reason they said they passed on me was while I had a good amount of Objective-C experience, I had only dabbled with Swift on my spare time and had difficulty answering a couple of the questions they grilled me on in Swift.

They specifically said I should have had more professional Swift experience when they rejected me. Of course all the companies I worked for were being more conservative and hadn't yet made the leap to Swift yet, so getting that professional experience was pretty much impossible. But I guess if anyone can afford to be picky, it's IBM on a project working directly with Apple.

So yeah, IBM is definitely gung-ho about Swift. Apple itself, possibly less so.
Moon in Vedic Astrology
So DNA is mutating... and we believe its evolution ? Then why are certain groups seemingly evolving at different rates ?

https://en.wikipedia.org/wiki/Amish_anomaly

Food ? Environment ?
Windows Defender Application Guard to make Edge the most secure browser
Google is planning a Pixel 3 laptop running the Andromeda OS for Q3 2017
As someone who lived in Manhattan and just moved to Brooklyn, I can totally see why Uber is more popular than taxis.

For one it usually costs less. And two, depending on where you live there is no guarantee a taxi is around the corner. Uber is more convenient.
And insurance policies + regulations (even if said regulations go unenforced more than they should).
As a former SF resident, SF isn't that great and there are plenty of areas that offer a lot more for a lot less.
And I completely agree. I don't agree with censoring journalists and when I find sites I use doing it I make a personal dicision if I want to keep using that site.

I would hate to be in this position. Do you comply and block accounts and those with a loud enough voice will shout loudly enough that they can get back in or run the risk of upsetting the people that hold the keys to your market?
No, this is one small piece of the partnership. The companies have been partnering on iOS apps for specific industries since the announcement.
> More than with Swift. I routinely see 100x - 1000x and more performance difference between -O0 and -O in Swift. Considering that the optimiser doesn't give warnings or errors if it can't apply optimisations, that's out of bounds for me for a systems programming language. YMMV.

Improvements required for the toolchain in a young language, than Apple, IBM and others will certainly improve.
One other downside is XCode. No refactoring support, and lots of errors that give you little help. For instance, if you're trying to implement a protocol which is itself a few layers of nested protocols, XCode will just tell you it doesn't conform and not what method you're missing, so you have to dig through and check every signature of every method carefully.

The swift 2 to 3 migration was absolutely insane, I'd estimate Xcode did maybe 25% of the work automatically and left me with hundreds of different errors to convert manually (and often they were red herrings where the actual error was not where Xcode said it was). And you have to rebuild all dependency frameworks on swift 3 as well since the binaries are incompatible. If you use Swift make sure you have 2-3 whole developer days per year to devote to just migrating to the next version in a medium sized project.
It's probably just IBM luring attention for its cloud service. I can't read anything other than that from this piece.

The real sign would be one day Apple telling us they are writing iCloud service or at least some significant part of it in Swift for Linux.
Lots of companies prohibit the use of gmail. Even sending to gmail addresses is sometimes prohibited.
If it's really a order of magnitude I'd expect it to be 1 gig.
That is surprising data in a good way.

President I think is a tougher nut to crack, because you need to cross all the different states.. some being more liberal, and some more conservative.
Don't worry, the rest of us get it.
The only way I would live in SF again is in a van.

There is no reason to throw your money away on that housing market, just bank your salary and count the days until you leave.
Is it the case that 'Docker for Windows Server 2016' can only run Windows containers and 'Docker for Windows' can only run Linux containers? If so, is there any plan for a solution that can run both side by side?

The reason I ask is because it would be useful, especially on dev machines, to be able to run existing full .NET apps in containers alongside linux containers with Postgres, Redis, etc.
They also have a free plan where you get basic containers (from AWS, I think) that sleep after 30 minutes of idle time. I've used these in the past to code on Chromebooks and tablets.
nice trick to make it appear in front page
Yeah Chrome is starting to snowball, it is easier to tell users to use Chrome instead of fixing Firefox quirks.
Doesn't work on Ubuntu 12.04's Chromium. (Chromium	37.0.2062.120 (Developer Build 281580) Ubuntu 12.04)
Is applying precedence of taking care of the unemployed citizens of the country (who used to pay a lot of taxes when employed)- racist?
Jigsaw is run by a veteran of the US State Department
I pulled 150k to 225k from 2009 to 2014.
Looking at projects like this, it almost looks like Google is actively seeking to become some kind of additional branch or agency of the government -- one with powers to do what the Fed can't, so they sell their services to those same Feds. Furthermore, the revolving door around tech giants and the government atop the Snowden leaks and Google's complete dismissal of them make me think the only "transparency" Google works toward is transparency of the citizen, never the state. That kind of transparency, which we call the surveillance state, or the Panopticon to illustrate the psychological effect, produces an enormous power imbalance against whomever has less information (the citizenry). These aren't benevolent acts. They are state power plays, and Google plays along with them.

http://www.theguardian.com/world/2013/sep/13/eric-schmidt-go...

https://wikileaks.org/google-is-not-what-it-seems/
Are you really trying to entrap me into turning my observation about the present into a prediction about the future that will be wrong?

Automation of personal trainers is already ongoing. People have been more successful on automating the "motivational" aspect of the job (probably because this one isn't regulated). But there are lots tentative initiatives to automate the "teaching and correcting" aspect too, from video games to in-lab research.
I'm the defacto accessibility guy at work, and I'm trying to think of a good way to present this type of data in an accessible way, but I'm having trouble. When the gauges are fixed, it would be pretty straight forward, but as the gauges change, I'm not sure of a good way to present that, especially when the gauges are moving quickly.
Yep, and as a result of this, the JDK ecosystem is healthy as ever. N.b to those who have only written web or phone apps for a living -- GC latency isn't 'bad' in most cases - unpredictable latency is what's bad. Having a deterministic upper-bound is what is important in the enterprise, on your aviation component regulating cabin pressure, on your SWIFT bank transfer.

Also, see the top comment here: https://news.ycombinator.com/item?id=11759762 for a JDK discussion against ref-counting, along with this [now incredibly old] paper https://www.cs.purdue.edu/homes/hosking/690M/urc-oopsla-2003...

(N.b. around the time that paper was published, I was in HFT. We used Azul C4 and it just fine to crush even with management taking their typical 30/3 fees. Though to be fair, this was when the easy pickin's were still there to be plucked. Don't underestimate how well good-ol' free Hotspot is now; we're not talking 1996 Jakarta days with Swing)
I wonder if you could use this to do extremely low bandwidth video conferencing. Send a network configuration at connect time (relatively expensive) but for each frame, send the convolution network parameters, and deconvolve at the receiving side. Presumably this would result in far less data over time than sending the whole image. Sort of face-specific compression.
Thank you for this. I went through something similar and therapists told me it was simply depression, but this is a better and more thorough explanation by far.
Why Your Keyboard Is Bad for Your Body
On my machine there is no hardware acceleration, there is a noticeable lag with rendering and input response in Firefox. Pages load slower, scrolling is not smooth.
It is cute that you think we live in a free market.
What Do You Need to Create Something Like Bitcoin?
I do agree with you. It's difficult to convince anyone with those kind of arguments. As I've written on The Unshut, I'd say the problem is the perception of value:

http://theunshut.com/2016/09/26/firefox-chrome-and-the-perce...

When I switched to Chrome I did because it felt better. The decision would be tougher today because Firefox, Chrome and Opera (Edge has to mature) are great options and not that different in performance and features. Change is tougher now because the perceived value isn't really there in most cases.
I'm not "too busy defending the system", all I offer is my experience, where false duplicates has never been an issue. Maybe in the particular technologies you use there are some below par mods.
There is something fishy in this whole story.

- You wouldn't risk your new position by not quitting your old one.

- Apple would not want you to keep your old job since they want your focus on your new position.

- Getting double salaries is not worth the paperwork headache of tricking the system.

The only reason I can think of is, he would get some sort of extra pay from his old job if he would fulfil a time written on his old contract.
Connection tracking critical for high performance network policy for Kubernetes
Something like whereami [https://github.com/victor/whereami] would give better results I think.
Will this work on Windows Home editions (that ship on almost every laptop you buy at MicroCenter / Best Buy / etc) or will it require Pro versions because it has some underlying dependency on Hyper-V?
Quite simply: brilliant.
Accessible Floating Labels
Any plans for allowing to dockerize GUI/RDP apps?

I was excited about the possibilities, until I came to this:

> The Windows Server Core image comes with a mostly complete userland with the processes and DLLs found on a standard Windows Server Core install. With the exception of GUI apps and apps requiring Windows Remote Desktop, most apps that run on Windows Server can be dockerized to run in an image based on microsoft/windowsservercore with minimal effort.
>This idea seems so sensible it's a no-brainer.

I have not heard any "cut VAT" scheme that doesn't sound really sensible.

My suggestion would be to cut VAT alltogether so we can save our souls from endless tax cut jungle. But that's not going to happen, because VAT is effectively barrier against foreign goods, important source of government income and can't go progressive. As a result conservatives love it to death.
It is much easier than in either C++ or Rust.
Here's hoping somebody locates him, interviews him, and reports back with the full story.
Is this a surprise?

I feel like there has been a post like this on the front page of HN every day for the past couple years.
I don't quite buy that autism will be shown to be genetic. I think it's an environmental factor. The rate of increase in autism is pretty much exponential:

http://www.nature.com/news/2011/111102/full/479022a/box/1.ht...

Now that's a very scary chart if you start to project that curve into the future.

Here's another one. Not saying this is the cause, but it is a cause for concern. We have many similar patterns of environmental factors increasing with autism prevalence, which makes the likelihood of it being environmental stronger than something else.

http://images.medicaldaily.com/sites/medicaldaily.com/files/...

For example it took a long time to figure out that lead in gasoline could lead to cognitive decline. BPA and phtalates is another recent discovery, which cause hormone distruption.

What else do we have today that is yet to be figured out, and what is the likelihood that we have something similar brewing that we do not yet know about.
I got between 1-4% over spot while getting paid in USD and transferring to THB through bitcoin exchanges.

It was a difference of hundreds of dollars; well worth the effort.
That's the part I took least issue with.

>while google is the master of spreading consumer propaganda and spying on people.

Equating automated behavioral analysis or ad targeting with willful communications-spying, like NSA does, is retarded. Yes, Google has been guilty of many invasive tactics and holds too much power right now, but claims that they're doing that to "suppress dissent and unpopular opinion" or "spread propaganda" will need a lot of evidence.

>The commercialization of news is the best form of censorship. You don't need to censor much when the vast majority of news is meaningless bullshit stuffed with ads and promotions, and is already controlled by organizations like Google.

How is this Google's fault in any way? Google owns a lot of those ad networks, but beyond that they're not responsible for news quality.

>Google is one of these organizations that operate without scrutiny and transparency alongside organizations such as the NSA.

Aka every other private corporation in the US? You really seem to be grasping at straws trying to make them out to be as bad as intelligence agencies.

>If you think Google will help you with anonymity, free speech, or 'unfiltered' news, you are retarded.

They're dedicating their network resources to preventing independent news websites from being censored by oppressive governments or DDoS'd by hostile entities, pro bono, and it appears to be working quite well. You've cited no specific examples of them doing the opposite, while there are many examples of them doing as they say.

I am no Google fanboy. I hate advertising and ad networks and think (or at least hope) they'll mostly die within a decade or two. I use ad blockers on all my devices and have never put a single ad on any website I've operated due to the ethical concerns.

But come on.
Are there any faster alternative cryptocurrencies on the horizon?
There's nothing wrong with securitizing interest streams in general. There was only a problem with bundles of residential mortgages because the issuers and underwriters committed fraud. Fraud is extremely rare in municipal bonds.
I live in Manhattan and use uber ~10 times weekly. I've never observed the behavior you describe with uberX, only uberPOOL.

The UI does show you if the driver is finishing a ride near you, but it doesn't tell you to meet him at their dropoff point. It also tries to recommend known "visible" pickup locations along the street where you're calling from, but you can always specify your own location.

Do either of these things sound like what you're thinking of...?
It is relevant. You might have thought I meant it debunks it (or supports it), what I meant was it adds color to it. Conversion ratio allows you to quantify the difference from one person to another (the "adjustments based on weight change" you refer to)
It's 800MB.
> Even sending to gmail addresses is sometimes prohibited.

How do you know it's not a Google hosted email address if they use a custom domain (with a Google Apps plan one can use a custom domain on top of Gmail)?
Just noticed my uber in Chicago this weekend was roughly $2.50 more than normal. (I take the same uber ride every weekend) I'm not sure if prices have gone up but it is frustrating.
Dependency Injector 2.2.0 has been released – inject decorator is deprecated
Schmidt's behavior as described by Assange is extremely concerning and bordering on frightening, but, so far, no evidence has been produced that he's dedicated any of Google's resources to his personal goals. Just because the CEO of a company has an agenda (bordering on conflict of interest) doesn't necessarily mean Google itself shares that agenda.