skysight-inc/HackerNews huggingface dataset:
You really shouldn't, or if you do it should be an extreme minority of tests and automated tests should do the heavy lifting.

Automated tests can do so much more than manual tests that shops still living by manual tests either have a damn good reason or are just as wrong as people who argued against Revision Control Systems (or people who argued for gotos instead of functions).

Automated tests will be executed identically each time, so no missing test cases because someone slacked off or made a typo. Automated test can serve as examples for how to use the code. Automated tests can aid in porting to new platforms, once it builds you can find all the bugs your care about swiftly. Automated test can be integrated with documentation, tools like doxyegn and mdbook make this easier.

Automated tests enable Continuous Integration. Are you familiar with Travis CI or Jenkins? If not, imagine a computer that a team commits their code to, instead of directly to the mainline Revision Control (Git master, svn head, etc...). That computer builds the software, runs all the tests, perhaps on every supported platform or in an environment very close to production, then only merges commits that appear to fully work. This doesn't completely eliminate bugs and broken builds, but the change is so large that teams without it are at a clear competitive disadvantage.

When integrated into process tests can be used to protect code from changes. If a test exercises an API and the team knows that is the purpose then when they change things in a way that break the test they shouldn't... This sounds vague or obvious, but consider this: At Facebook and Google they have a rule that if it is not tested new code doesn't have to care if it breaks. Both companies have team that make broad Sweeping changes. Facebook wrote a new std::string and Google use clangtools to make automated changes in thousands of places at once. Even if code breaks or APIs change as long as tests pass these people can be sure that they negatively impacted the product and are following their team's rules.

Automated Tests can... This list could go on for a very long time.
Why does she need to shadow a student to learn what it's like to be a student? Wasn't she a student once herself?

These things are pretty obvious. I always just assumed teachers didn't care.
See the forward to Neil Postman's "Amusing Ourselves to Death":

> "But we had forgotten that alongside Orwell's dark vision, there was another--slightly older, slightly less well known, equally chilling: Aldous Huxley's Brave New World. Contrary to common belief even among the educated, Huxley and Orwell did not prophesy the same thing. Orwell warns that we will be overcome by an externally imposed oppression. But in Huxley's vision, no Big Brother is required to deprive people of their autonomy, maturity and history. As he saw it, people will come to love their oppression, to adore the technologies that undo their capacities to think.

> "What Orwell feared were those who would ban books. What Huxley feared was that there would be no reason to ban a book, for there would be no one who wanted to read one. Orwell feared those who would deprive us of information. Huxley feared those who would give us so much that we would be reduced to passivity and egoism. Orwell feared that the truth would be concealed from us. Huxley feared the truth would be drowned in a sea of irrelevance. Orwell feared we would become a captive culture. Huxley feared we would become a trivial culture, preoccupied with some equivalent of the feelies, the orgy porgy, and the centrifugal bumblepuppy. As Huxley re marked in Brave New World Revisited, the civil libertarians and rationalists who are ever on the alert to oppose tyranny "failed to take into account man's almost infinite appetite for distractions." In 1984, Huxley added, people are controlled by inflicting pain. In Brave New World, they are controlled by inflicting pleasure. In short, Orwell feared that what we hate will ruin us. Huxley feared that what we love will ruin us."

https://quote.ucsd.edu/childhood/files/2013/05/postman-amusi...
> I guess things are not packed further to allow to just directly use the pointer instead of having to do some computation for each access.

There are C++ standard libraries that pack things further. I think clang has a 24 byte std::string, which can store strings of up to 22 bytes inline.
Ignoring the ridiculously insulting tone and just pointing out: using your method, what happens if I subsequently change the tempo in the file?
The Kaossilator 1 (KO-1) is available on ebay for under $100 and they are massive fun. Never a boring train/plane journey with a KO-1 and some headphones.
End of life care i not physician assisted suicide, and it's unhelpful to conflate the two.

Six US states have end of life care that can include doctors prescribing fatal doses of medication.

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

> The United States has authorized medical aid in dying in six states, which refers to a terminally ill person with 6 months or less to live taking a medication prescribed by a doctor
> I don't think it poses a risk, but the tone - excited?, self-important? doesn't sit well with the idea of a professional security bod soberly reporting a serious problem.

What a surprise! Self-importance in an security industry that relies on reputation for consulting gigs?[1] You might have missed the ominous, grandiose vulnerability names, fancy logos and the PR-blitz now associated with any vulnerability worth a damn.

I'm an outsider, but even I know NetSec twittersphere is that last place to expect 'sober' communication.

1. I don't agree with your assessment that there was self-service in Tavis' tweet. To my knowledge Google Zero doesn't consult for anyone, he was probably excited and very surprised by what he saw and he needed to get it off his chest.
One reason that comes to my mind is more control over resources. You can be sure the memory allocated for the two vectors in main is freed in add_first_element.
I don't want to be "that guy," but...

If it's a salaried position, you're presumably not filling in an hours sheet dishonestly.

Is it truly cheating if both companies are happy with your work and you're not breaking either company's rules? Even if you don't explicitly tell them you're doing it?
Kind of sad for you guys, but at the same time not so surprising - it is the fate of every useful platform add-on to be integrated into the platform over time. And calling people by name seems like a low-hanging fruit for Amazon.
There are more than a few stories of things like this happening (or my favorite, outsourcing the actual dev work to China or india) but why would you when it's a lawsuit waiting to happen? Freelancing on the side a little bit is one thing (Basecamp's handbook which was recently posted on HN even had a section on this https://github.com/basecamp/handbook/blob/master/moonlightin... ), but working a full on second job? If either found out they'd probably extremely concerned about IP theft either direction.

Plus, why have the stress of two jobs and two sets of potentially colliding meetings? Mrs Doubtfire for the corporate world sounds like a funny movie, terrible life.
I did a short term contract once at the same time as my main remote job. I never lied about my hours or got overpaid though. I won't ever do it again as it was a hellish amount of work for a few months. For me the cost of context switching on my productivity was higher than I anticipated.

Of course you could probably get away with having two remote jobs at once.... for a while. Unless you're monstrously productive, it seems like either it would get noticed eventually or you would get burned out. But everyone is different I guess. I'd rather have a life that isn't so stressful and complicated.
I predict plenty of knee-jerk "We've found the fountain of youth" reactions to this. I instead think doctors should tread carefully here. This enzyme is present for a reason. While eliminating it may "cure" certain ills it may cause others (like cancer).
None of this addresses the question. We have the highest standard of living in history because businesses relentlessly increased productivity, in both good and bad years, and this eliminated unneeded low value jobs. It also creates more valuable new jobs.

If they hadn't done so, 95% of Americans would still be doing brutal farm labor.
Why waiting so long? Move now and give yourself a smoother transition.
It was $99 for Prime members.
Perhaps the "baby cam" feature is a less grim way of indicating that caregivers can use this for surveillance of cognitively declining parents. "Telescreens, not just for the thought police anymore!"
Well can you tell us about that? You're the one who made the claim.
Yeah, the echo dot at it's price point is worth it just to get the weather. I also use it to read the news too.

I do see the Echo Show sitting on the kitchen island, but at $229, not so sure.
> Therefore if you want to avoid copying data to kernel buffers for the potential retransmission, the application needs to track which buffers are pending (and is notified when they can be released).

Not necessarily. The kernel could map the page into kernel space and mark it copy-on-write so the application can't modify the kernel page. Then the application doesn't have to care when the kernel is finished with it.

> Also, I was reading that zero-copy receive is also possible in some scenarios by changing virtual memory mappings.

You could do that regardless of IOCP too.
For those dying to know what it stands for: Bottleneck Bandwidth and Round-trip time
Ask HN: How to connect to ElastiCache cluster using Node.js
[Source](http://stackoverflow.com/q/43872852/2404470)

>We know that [ElastiCache is not recommended to be accessed outside Amazon instances](http://stackoverflow.com/a/21937214/2404470), so we're trying below stuff inside Amazon EC2 instances only.

We've got a [ElastiCache Redis Cluster](http://docs.aws.amazon.com/AmazonElastiCache/latest/UserGuide/Clusters.html) with 9 nodes. When we try to connect to it using [normal redis implementation](https://github.com/xameeramir/redisTest), it throws [some Moved errors](https://github.com/StackExchange/StackExchange.Redis/issues/179)

Have tried the [retry strategy method](https://github.com/xameeramir/redisClusterTest/blob/master/startRedisTest.js) as per [@Miller](http://stackoverflow.com/a/35044722/2404470). Have also tried [RedisCluster](https://www.npmjs.com/package/redis-cluster) with [unstable](https://github.com/xameeramir/redisClusterTest/blob/master/startRedisClusterTest.js) and [stable (poor man)](https://github.com/xameeramir/redisClusterTest/blob/master/startPoorMansClusterClient.js) implementations.

None of these implementations are working. Any suggestions please?
Cut and pasted:

Are paywalls ok?

It's ok to post stories from sites with paywalls that have workarounds.
In comments, it's ok to ask how to read an article and to help other users do so.

Now before you 'noob' me I did put in some effort. The old "google the title and click thru from google" doesn't work. Ghostery isn't helping. Adblock Plus isn't helping. Its a clickbait article and there's nothing wrong with that but it is a relevant issue in that I'm not switching browsers to read it.
It seems like the real problem here is that they spent too much time making their bot 'cute' and not enough time optimizing for real world use cases that could lead to profitability
its really amazing how much a difference 20 minutes of walking a day makes.

so instead, spend that time in a car, and that time again at a gym. what wealth!
Wow, this is super impressive. I fell in love after adding a few chords over drums. Amazing.
Isambard – The Future of High Performance Computing – EPSRC Website
Also, JWTs can be used with OAUTH2.
Those loops are still a number of beats. When I say arbitrary, I refer to things that may not be any integer value of beats.
Very few skills are just "natural ability". Music theory is an interesting and pretty important topic if you want to make music. Since people have been creating music for millennia, they have figured out many things that help composers.
صور+حب+رومانسية+جدا+مكتوب+عليها+كلام+حب+وغرام+رومانسية+جدا+للفيس+والواتس
History shows that efficient production always ultimately benefits consumers, even if a producer briefly captures excess profits.
It's possible, but really it's actually no different than holding an office job in which you're not being checked upon. More than one person has been selling things on the side, outsourcing work to their own devs, and schemes like that.

Not really a good idea as far as developing a reputation for trustworthiness.
This actually happens all the time. We've had a couple of remote employees I'm aware of who did this.

As a company we don't care. As long as they are getting all of our work done in a timely and effective manner what they fill their time gaps with is not our concern.

Note that our remote workers are not hourly workers. If they were, then we'd take a much different approach to time management and dedicated focus.
For the Police whisleblower I'm not sure if it's the same one, but Adrian Schoolcraft's[1] case was pretty awful. He was mostly documenting relatively mundane (but still nasty) things like being given targets for the amount of littering, jaywalking, open-container etc arrests by the superior officers. However things took a bit of a weird turn, and he ended up with some recordings of the Police harrassing him at his home (including them basically abducting him under false mental health issues, and destroying what they thought was the only mic recording them doing so) are pretty awful - This American Life did a piece on this [2].

[1] = https://www.nytimes.com/2015/09/30/nyregion/officer-who-disc...

[2] = https://www.thisamericanlife.org/radio-archives/episode/414/...
Seconded. Syntorial is an awesome way to learn to program synthesizer sounds. It plays a sound, then you replicate it with the synth controls. It starts easy and gradually ramps up the difficulty, adding more knobs to twiddle, explaining the concepts as it goes along. It's a million times better than staring at a full synth control board, moving knobs and hoping that you figure it out eventually.
NICE do this in the UK, and by and large do a good job. Don't let perfect be the enemy of good.
I support the current FCC Title II(2) Oversight! Leave our Internet Alone!
Trickle down economics is a political slur, not an economic principle.
IMO Amazon should focus on enabling and assisting the development of more skills and integrations for echo devices before pushing out newer models or adding features.
As a .net Developer this also doesn't make much sense to me. I do know that I can keep firing up Visual Studio and keep working on my existing applications without this stuff hurting me. Also switching between .net versions will be fairly painless since they're all really similar. The only hard thing is understanding if you can port legacy app x to new stack y.

Nothing that would stop me from using .net.

Microsoft is really good to keep developers dangling. Can / should I still use WPF? Did it secretly continue under a different name?
Containerize a Node.js Application That Communicates with Couchbase Server
Since when is working two jobs a bad thing? Plenty of people work two or three jobs to make ends meet. If you can make both work, and you aren't violating any contracts or NDAs, I don't see why you should feel bad about that.
Wait, so it's not my constant over-indulgence in free office snacks that did it?
I'd argue that current DAWs expect the user to understand at least something about music. Sounds like OP is working on some "syntax-aware" features for their DAW.
>The only difference is that Abelton Live and Bitwig (Runs on Linux) are designed for live performance.

Ableton, at least, also functions perfectly fine in the traditional piano-roll and timeline paradigm of DAW workflow too. Don't let the 'Live' part of the name mislead you into thinking it's only for live performers; it does everything the 'old DAWs' do, AND it's got great features to assist in live performance.

Also in terms of underlying concepts, if you know one DAW well, you can usually learn another one fairly quickly, as it becomes more a question of learning the interface more than anything else.
It's set up a bunch of middle men, but undercuts local businesses and leads to a lot of desperate and impoverished workers. When you create a just-in-time labor system, this creates a huge amount of stress for workers, as their hours and wages are unpredictable. This is fine if you don't need the money or are just supplementing a full-time income. But you can't live that existence if you have fixed bills and want to have a stable middle-class existence
You don't replace every map in your code with a distributed Key-Value store, in case it might need to store terabytes in the future. Most of the time you have a pretty good idea whether a map has to store a hundred, or a hundred thousand elements.
It's worse for me because I move from bed, to shower, then down to the office downstairs.

You'd be surprised how many steps you get from just walking around the office. Luckily, I don't have a problem exercising on a daily basis, whether it's just walking outside or hitting the gym.

Losing weight is an entirely separate issue for me though. After hard-core lifting sessions, I'm eating way too many calories.
Ignoring the fact that the FDA already says its recommendations are for an average person, it doesn't matter because people don't track calories anyway. Generally people eat WAY too much for their sedentary lifestyles.
> Took about an hour to hook up an Xbox360 controller so I got a few x-y inputs. Ableton makes it super easy to map them.

Fun tip: You can do this with an Xbox 360 (probably Xbox One) Rock Band drum kit for a cheap e-kit. The drumkit just sends gamepad input and there are programs to convert that to MIDI.
I would assume along the lines of using writing the core logic in Javascript, using NPM packages to help implement things, and using UI libraries like React, rather than building everything in C++/XPCOM/XUL.
I played around with this a while back and there are Vim plugins for it. My biggest problem was having to compile the thing from source which involved also compiling a custom version of LLVM, which took forever. It's possible this is no longer a problem.
As a teacher, I was hoping for a little more depth. The observations are reasonable, if a little obvious.

I suppose it's good to remind teachers about things they already know, but are not regularly implementing.
Please keep net neutrality rules strong under title 2!!!
Over time, lower prices always come.

Walmart is more efficient than its competitors. It's always had lower prices that directly benefited the poor and middle class.
I think they violate the standard. But I guess that is bound to happen when the standard is so complicated to implement correctly.
Those are some awesome takeaways. I think that by the time you're a teacher, you forget what it's like to be a student. One of my biggest complaints with class is that its entirely passive learning and I am a completely hands on person. Additionally, after reading pedagogy of the oppressed, it's very easy to get bitter with education in general.
I think the free nature of these services is what leads to this fragmentation.

Slack is an outlier because you don't actually need to communicate with everyone in the world on Slack.

But for others, it would be completely unreasonable to ask your acquaintances to pay to install Skype to talk to you. And you probably wouldn't pay for Skype if it didn't interop with whatever other people were paying for.

In a world where switching costs for consumers are so low, interop becomes less important because you can ask your contacts to install an app if it's useful enough.
I am curious if there is any good way to measure that amount of waste. I agree that waste from extra and useless tests exists, but I am not convinced that waste is entirely bad.

It seems to me that waste is unavoidable with teams newer to automated testing and may simply be part of the cost of using automated tests. If that is the case then it seems better to compare the cost of bugs with no automated to cost of superfluous tests. In that comparison extra tests definitely seems like the lesser of two evils, even without hard numbers. I would prefer hard numbers because my intuition could be wrong.
Someone with a broader view on the long term success of VC than I have needs to chime in, but although I agree with your earlier statements, you made me think twice about this one.

What if it IS a viable long term strategy? VC was always "moonshots", 9 out of 10 fail, 1 goes big. While Uber is having issues, I've been hearing the profitibility issue raised for years now. Other startups, while not doing necessarily unicorn-esque in the "real world", have still IPOd or sold off. I imagine the VC's aren't idiots, if they looked at their balance sheets and saw a trend of throwing money into a bonfire they would have stopped a long time back. Are we breaking even? (I honestly don't know.) If we are, then perhaps the consumer 'charities' are a new norm for userbase building, for one strata of company growth strategy. "want to grow faster, throw money at it" has always been a technique, and I see the charity as just a new way of spending that money to gain userbase. The relevant question is whether it's more or less effective than prior/future methods.
I knew of a guy who worked two jobs on-site - was about 3 months before he was caught. I think he worked as a contractor and billed through two different agencies. Started early on one job, late at the other on a different floor and lots of meetings away from desk inbetween. :)
I think that holds for pretty much all of their products, successful or not.

But if you want to argue that Amazon is a better product company than Apple, then have at it.
I'm sorry, I don't work on site - some bad apples ruined it for the whole bunch.

Somehow that sounds more reasonable to me.

I'd like to work on-site, but I don't want to abuse it...

This one too, actually; you have so little control of being distracted in open office compared to working at home, and you wouldn't want to bankrupt your boss drinking the copious amounts of coffee you need to compensate, right?
I support the current FCC Title 2 rules for net neutrality!!
#Gotanidea Challenge 2017 – It is time to explore startup SMEs
While the internet as such existed, at the heyday of AOL&Compuserve residental users were not able to get a connection to internet as such at reasonable prices.

By the 'open internet' I mean the arrival of ISPs who offered consumers direct connectivity with all the internet, competing with AOL who offered connectivity to, well, AOL.
> I've never seen a real case for excluding private methods as a testable unit.

Here's the reason:

We're not writing tests; we're writing SPECIFICATIONS.

Private methods are implementation details; they're not part of the specification.
First one is my Nexus 6. Plug it into a non-QC charger and it will go into a runaway discharge mode. Plug it into a QC charger and it charges up very fast.

On a similar note my Nexus 10 (not a QC device) will go into a similar runaway discharge if plugged into a 1-amp USB port instead of a 2-amp port.

Second one is a certain particular Anker battery pack.
A Full Stack GPS Receiver
Remote full-time employee here for a SF-based company.

I occasionally do 1099 work for friends, but always on evening or weekend hours. I always use my own time and computing resources for the work.
The 'web' link is supposed to take you to the "google the title and click through from google" trick.

When I clicked on the link directly I did not get a paywall. FWIW I do not have ABP.