skysight-inc/HackerNews huggingface dataset:
I rarely try for 100% branch coverage. I find that the extra tests aren't worthwhile.

I don't even try for 100% statement coverage. I use coverage to help identify important missing test cases.

For example, some of my code will read/write a binary format of my own devising. The format is used in a "friendly" environment, so I don't have to worry about malicious users trying to cause failures. (The code is in Python, which eliminates a lot of the memory error that a malicious user could use.)

I could get 100% coverage by creating corrupted binary files in all of the different ways to fail. But why go through the work of testing unrealistic cases?

Instead, I use my experience and intuition to only test the realistic cases. I also know that my code is not mission critical, so if one of my users reports a failure, I'll send them a patch or point release.

I can't give you a breakdown of time because I don't track it. My usual estimate is 1/3 programming, 1/3 testing, and 1/3 documentation, for commercial-quality packages. I find that writing good documentation helps find bugs that users are likely to experience.

(Now that I think of it, that binary format took several months to write. The first two attempts didn't scale and I had to toss them. They had almost no tests, so think of them as spikes.)

For consulting, it depends on the project. In one two-week project I had no tests. The control flow was simple and most of the code was executed during normal use. Plus, the support staff was able to maintain the software in case of errors, and we did a thorough code review for knowledge transfer.

In another project, I was brought in to optimize some existing code, which didn't have tests but which had been extensively tested manually. It was presumed to be correct. The new code I wrote also didn't have unit tests. Instead, I cross-compared a few million inputs to check that they gave the same results, at about 10x performance.

In yet another project, I had unit tests for the user-facing parts, but not for the main algorithm. Rather than explain the program, I'll use an analogy. Consider a program to factor a number into its primes. This is difficult. On the other hand, it's easy to test that the result is correct. Multiply the numbers to see if they give the original number, and use a primality test to ensure all of the factors are prime.

In essence, I have a #define which enables verification. This also slows things down, so it's not enabled by default. I then (once again) processed a few million inputs. This sort of integration testing is much more complete than manual unit tests.

(I do have a simple unit test used as a burn test, so it's not completely untested.)

For an extreme case, see https://randomascii.wordpress.com/2014/01/27/theres-only-fou... . Why write unit tests when it's possible to examine all 2^32 possibilities in 90 seconds?
I've had burns from hot drill bits...
> That's exactly why you can run your own gitlab instance.

You're oversimplifying things there. It's not just about the physical instance - I could just run git "naked" without Gitlab's tooling if it were just an issue of installing Git. The complexities arise when you then need to have Git exposed to the internet to allow AWS pipelining to operate. We then have gateway into your internal network that needs to be PCI-compliant (for our retail sites), audited by the Gambling Commission (for our online games) and ISO nnnn (I forget what standard we meet off hand).

It's fair that most organisations might not have these hoops to jump through, but we do and hence why we migrated to hosted providers to remove some of our complexity.

> * The thing to do when you don't want dependencies is to reduce your dependencies, not complain about a third party service that offers their software for free so you can run it yourself.*

I think this is grossly unfair. For starters I'm not complaining about Gitlab, I was opening a discussion about them. You might disagree with my points and I welcome your opinion - otherwise it would be a dull and pointless discussion. :)

Secondly your point about "The thing to do when you don't want dependencies is to reduce your dependencies" is entirely the point I'm making. Perhaps you've missed some of the issues I've raised or perhaps I've explained myself badly. But I have explored a number of options and not just blindly talking out of my arse (which I appreciate there's no way for you to know this given the anonymous nature of the internet).

Lastly why would I be only interested in free solutions given the expectations I have? Currently we do pay for our Git hosting because of our requirements - and my expectations include paying a fee for a service if it solves a few problems. After all we are talking about enterprise systems - any reasonable costs are consolidated and billed back to the client.
Ok, let's set aside the object of this "mind-control", i.e. the whole theme around men's attitudes to women, because we're not going to agree on that I guess. This is to be expected. But what I don't understand is your unwillingness to accept that it's sometimes ok to feel shame or the need to self-censor when one has certain thoughts. Is "mind-control", as you put it, always bad? Is one not allowed sometimes (not always) to attempt to regulate one's thoughts according to the guidance of a sector of society one respects (whoever that may be)? Indeed (though this is extreme) can one not even sometimes hate oneself for one's involuntary thoughts (depending on what they are, of course)? I understand you're linking this to the case of finding women attractive, but your post also seems to suggest that any kind of self-regulation, second-thoughts, self-criticism, is "ideological possession". Surely you don't believe that.
There are kits available with the sterilization part done for you.
> Following which, in a world where nearly two-thirds of Britons believe that the empire was “something to be proud of”

59% of 1741 Brits questioned in a [poll] [pdf].

[poll]: https://yougov.co.uk/news/2014/07/26/britain-proud-its-empir...

[pdf]: http://cdn.yougov.com/cumulus_uploads/document/6quatmbimd/In...
I can understand why you find it annoying.

Instead of being annoyed, perhaps you can find joy in watching what your mind perceives as beauty, just like people look at cars or sunsets?

My grandmother always used to live up when she saw us and complimented us on our looks, although I'm sure they were nothing spectacular. After having children myself, I'm beginning to understand her - there's something satisfying watching other people. I think we should accept those joys we receive for free here in life.
8 retailers to watch during back-to-school
WebGL particle effects demo / tutorial
A lot of that is just time though. A pressure cooker isn't a difficult item to acquire and it's hardly suspicious. Even in America, it's mainly difficult in states like California and that's only because of the increased challenge to acquire spores. Most states in the USA have a weird loophole where you can purchase spores but the shrooms themselves are an illegal good. There are people who grow them in shoeboxes from kits. As long as you're willing to compromise quality in exchange for simply producing some amount of quantity you can get mushrooms with relatively little risk.
Afaik remember windows will parse additional dots beyond the two first as another level up? Cross-platform secure coding is hard... (Not sure about this code though, just making an observation).
Reading this bit:

During a competitive boat race in Navy SEALs BUDS training, six teams competed for victory. After the first five races, there was a clear split: Team A placed first after every single race, and Team F had finished dead last. Jocko and the other instructors wanted to try something: what would happen if they took the group leader from Team A and put him in Team F's boat?

Guess what? Team F won the next race. And the next. And the next. See, it wasn't because the crew weren't good enough. It's because the new leader in Team F's boat wouldn't tolerate anything but the best. He set a new performance standard through his action and lifted the achievements of those around him.

I was reminded of the Athenians in Sicily during the Peloponnesian War. The Sicilians were being badly beaten by the Athenians, and in desperation they appealed to Sparta for help. Sparta didn't send thousands of troops but one general, Gylippus (https://en.wikipedia.org/wiki/Gylippus). That pretty much did for Athens in Sicily.
Not in my experience, but that is anecdotal. If you have evidence beyond the anecdotal I'd be interested to see it, though of course there's no obligation for you to do research work for me.

EDIT: Just to add that your comment's two halves are not logically connected. Even if we do act in this way, it doesn't make it a "critical part of what we are", or if it does, there is no reason that "critical parts" cannot be altered if need be. In the early 19th century most people would have thought that a 10 hour working day was too liberal - an 8 hour working day would have been unthinkable; but that "critical part" of people's way of perceiving society was not set in stone, as it turned out.
That's not entirely true, the other substances in the drink also effect the intoxication.

[1] https://en.wikipedia.org/wiki/Congener_(alcohol)

[2] https://en.wikipedia.org/wiki/Tryptophol

I could go on listing other substances in alcoholic drinks, but ethanol is far from the only substance in alcoholic beverages with biological and psycholical impact.
> Steve Jobs returned to Apple after 10+ yrs

also the Steve that returned to Apple was a complete different person.
The bhyve hypervisor does support PCI-e passthrough.
Phone calls not preferred research
> Except it's not dangerous at all? What I specifically don't like about this article and your focus on outcome vs. opportunity is that it draws this bright line where none exists.

Apologies then, I am not trying to focus on a line. It is constant effort to seek, identify and pursue opportunities. I agree that "Outcome vs opportunity" is a nuanced topic and one that will take forever if we try to draw lines.

> It's never easy, we're never at "outcome", we're always at "opportunity", hire some damn women.

Agreed. But "hire some damn women" is the very thing she set out to do and then realized that it is much easier said than done when you don't have many women applying.
How to Integrate Sentry with Elixir in Docker?
I'll check the book out! Admittedly I do have trouble with remembering to practice my mindfulness exercises semi-often but it's from the reverse end of the spectrum. I was lucky enough to get diagnosed when I was young so I've been able to realiably maintain my prescription (I've heard adults who get diagnosed have trouble getting prescriptions in helpful doses) medication which is a great help but can cause me to tunnel vision tasks that don't require that level of attention if I'm not careful to monitor if I'm working productively.
i believe a pressure cooker is optional for sterlization, and by all accounts it is easy, much easier than growing cannabis, which can be a bit more labor intensive
Eistein apparently wrote that in 1931 - but in 1939 when faced with the appalling prospect of a nuclear armed Nazi Germany he co-authored a letter to FDR with Leo Szilard recommending that the US research atomic weapons.

I'm not disagreeing with your sentiment, war is literally hell and the people I know who feel this more strongly are combat veterans, but outright pacifism in the face of a relentless aggressor like the Nazis would have achieved nothing but utter disaster and a "sink into the abyss of a new Dark Age".

Edit: From my own perspective I think our potentially fatal weakness as a species is how easy we are to lead. With a powerful enough leader people will do anything - good or bad.
Not having read through completely: What is the difference to the original Linux from Scratch[0]?

0: http://www.linuxfromscratch.org/
"As for me, I enjoy drinking coffee and I enjoy drinking alcohol. They're small pleasures of life that contribute to my overall happiness."

Yeah - it's like the old saying "it's easy to live to 100 years old, just give up all the things that make you want to live until 100'.
Don't you think you're comparing Apples to Exxons?
By far the best tip I ever got from /r/LifeProTips was "drink two cups of water first thing in the morning". Makes a huge difference for my energy levels and likelihood of getting a headache.
Vitality (in the UK) link with a whole range of things - Health, Fitbit, Garmin, Polar, Moves, Nokia, etc.

Although you get rewards from them (Starbucks drinks, cinema tickets, etc.) rather than straight discounts on your insurance.
It isn't a horrible idea in the abstract but it seems likely sex would trigger data similar to most workouts. Also, there are people who eat healthy but don't have time for the gym. Conversely people who go to the gym everyday but mostly to try to burn up their Big Mac combo meal. From an insurance standpoint, I think HA1C is the only measure we could like use. Things like BMI, etc. are too varied based on genetics.
What I believe II
But why not. If you're sitting up all night drinking energy drinks and smoking cigarettes while Uber drops off more McDonalds while I'm out running, working out, stretching regularly...

Why should I subsidise your insurance?
Show HN: SQLCheck – Automatically identify anti-patterns in SQL queries
Hacker News discussion on part one: https://news.ycombinator.com/item?id=14966002
I have adhd. I had to go to a course to learn to meditate because I couldn't sit on my own.

I've even had Tibeten monks come up to be and say they notice I have problems sitting still.

I hate it, makes me want to jump of a cliff sometimes. But that's part of it - you learn to stay with the u comfortable and learn about yourself and the thoughts that make you run.

Man, the benefits of meditation for me now far outstrip medication. Like, I found it enhances my concentration like no medication has because I'm able to do the work.

It takes practice, we all zone out loads when we first start. It's not zoning out you're trying to stop, you're training yourself to come back.

When I stop practicing though, takes a few weeks(or a month or two if I've been on retreat) and my brain goes back to normal.

I have to practice around other people, else I won't do it.

Oh and yoga is insanely useful for me, moving meditation!!
Charlottesville: Race and Terror [video]
you might want to look at a book like "cracking the coding interview" or similar to identify the gaps in your skillset. If you're comfortable with everything in a book like that you shouldn't be having trouble finding work.
Accepting thoughts is key for me. If you ever try a meditation course, one concept you tackle is the idea of not fighting your own thoughts, you just let them be, watch them go through your head, and don't worry about them. You're free to analyse them later, but don't try and not think them, or get angry for thinking them.

This helps with all sorts of things (e.g. you can't sleep because your head is full of thoughts, but getting angry and frustrated at them makes it worse!), and also with parent's situation.

If you haven't tried a meditation/mindfulness course, I can recommend it. As a session at the gym helps keep your body fit and helps prevent injury, a little time spent meditation keeps your mind healthy, and can help you stay on top of your thoughts.
Guangzhou now has a fast track permanent residence setup for foreigners investing or working. Shenzhen is about to echo it. Sounds like Fuzhou has as well. I have friends with Chinese green cards in Yunnan and Beijing, too.

Sounds like Beijing is finally taking the back foot to provincial and local authorities on visa policy.

I've long considered myself a vanguard economic migrant of the grandparent's brain drain. It's just impossible to have an independent career in R&D in much of the west and have any sort of economic security, much less start multiple businesses. My native Sydney is a particularly bad case.
having used these programs for many years: the color casts caused by f.lux don't typically match surrounding light, even when everything switches roughly simultaneously (which is rare, because of all kinds of artificial sources that are on/off unpredictably to f.lux). I regularly set my night schedule well in advance of sunset, and it's not a problem; you always keep screen out of direct sunlight, and so far I've also managed to avoid direct sunlight in the visual vicinity simply because the contrast is too great. And that means that even in well-lit rooms, it's fine to have a screen slowly turn red. While it takes some getting used to - the same can be said of f.lux in general.

To each their own of course - if it bothers you, don't do that ;-). But from personal experience I can assure you that not everyone minds a reddish screen before sunset (honestly, many visitors don't even notice unless there's some other screen right next to it).
In both points you conflated, again, disdain towards software and disdain towards users.

> I take it you've never been on the receiving end of the "Oh, you use _Windoze_" comments

Actually I did. Clearly those were not insults meant against me as a user.
Just like stating "beer is disgusting" or "I hate Samsung" is not insulting me for my drink or monitor brand choices.
Yes, I think Eve will stand a good chance as they integrate with the ecosystem around them, ie: using Rest and javascript, so it will have a better chance of lasting
That depends on who heads up the military. And that could be a bit of a problem with the present day leader.
Are you suggesting that Apple is using Bluetooth out of spec?

Also, that headphone thing? Apple uses the same pinout as Sony, HTC, Nokia, the main players in the phone business before Samsung.
When compiling in 64 bits mode, the "long" type is 64 bits on gcc and 32 bits on msvc.

That's not true for MinGW, and for good reasons (deviating from the ABI followed by the OS and all libraries would be stupid).
I'm not working in machine learning so please cut me down to size if I'm just not getting it. But my big criticism of the article was that it just sort've glosses over the elephant in the room. China is going to have a massive data set... of Chinese citizens. With how much the ruling party exercises its authority over the nation and the nationalist nature of a lot of Chinese culture I don't see how this data will be broad enough to leverage against other nations in terms of making things like behavioral predictions. Everything I read about China makes these grand premonitions but really it seems like China is simply preparing to not need anybody except for China. Which is very Orwellian but a lot different from WORLD DOMINATION.
Lauku+pirts+Jūrkalnē
Your point is true for the smaller clients we work with but is an impossible ideology with the larger ones.

Without wanting to give away too much identifiable information, my clients include multiple major national publishers, a few international sports bodies, and one household console gaming brand.

They are businesses an order of magnitude larger than us and to compete for business you have to make some pretty serious pitches. Sadly uptime is usually one of their primary expectations. In fact one of our sports clients even demanded we have provisions in retain complete uptime during DDoS attacks! (though we did manage to negotiate a compromise on that requirement - thankfully)
Optimy.io: Optimise mathematical expressions
Bebidas e alimentos diet podem promover o ganho de peso
If your contention is true here doesn't it refute the forget argument entirely? If only males (the ones with penises) subjugate others then there must be strong sex related differences in people, no.

On the other hand of it was just as hominem ...
> I think this is grossly unfair.

No, I think you are grossly unfair. You write that you 'really, really want to like gitlab', harp on them having 'issues every few months' (as if there is any online service that does not have issues every few months, and which blows this particular issue up to a magnitude it does not deserve) and then present a use-case that gitlab offers the perfect solution for, which you reject for reasons all your own.

Sounds to me like you are making a problem rather than using tools in the ways they are intended. Whether the solution is paid or not is not the relevant bit, the relevant bit is that you have the option to self-host which you do not with gitlab's main competitors.

Your AWS complexities are not gitlab's problem, they are yours.
Works way better on windows. Doesn't have the issues on sleep /wake. Doesn't destroy performance on fullscreen windowed apps.

> Unlike f.lux, LightBulb is optimized to make as little WinAPI calls as possible to prevent FPS drops and hitches. It also allows way more customization, albeit the most intricate settings needs to be changed manually in the config file. LightBulb also offers an option to temporarily pause its gamma control routine when a fullscreen window (like a game) is in foreground.

A good summary can be found in this thread:
https://www.reddit.com/r/osugame/comments/5rpq1q/lightbulb_g...
Industry of Things World 2017
I think the argument you cite is a good example of the ideologically driven denial of reality.

Google does not have and has never had infinite headcount. Even at times when Google's revenue was way ahead of its ability to spend it, there was always a limit looming somewhere in the future.

What's more, the bar is not an objective thing. Companies that find themselves the belle of the ball can raise their bar until the numbers who are passing match the companies ability to absorb them. Google is notorious for this; lots of people there who are overqualified for the work they're doing.

So it isn't possible to tip the hiring pipeline towards women without causing men to lose out. It might not seem like that at the time when it's go go go, but eventually, headcount limits appear.
The problem is the difficulty of tying an arbitrary amount of addresses to a person.

Anyone can generate any amount of addresses instantly out of nowhere and be paid to them. Lets say you have x btc that you received as payment from some illegal activity. You can make any number of payments to any number of addresses of your choice, some of which are yours (new addresses, so they're not associated with you yet), some of which are not. You still have control over all your btc but nobody knows what is "you" and what is someone else. While it's everything there in the blockchain for anyone to explore, if properly managed the address system does provide a high level of anonymity by current standards.

edit: a btc address is effectively just calculating a hash, behind it you have good old public key cryptography so it's very easy to generate and can even be done offline.
> In fact, one of the things commonly stated about the rise of the National Socialists in Germany, is that not enough people stood up to stop it.

That's a good point, but then you have to be extra careful not to blackball the wrong people. Going about this half assed is a bigger problem than doing nothing at all.
I'm not sure what the point of partitioning would be if the data isn't distributed between nodes? I'm probably not understanding.

All I'm saying is I can go and read about the pain points in say Cassandra for this type of stuff because of where it comes from and it tries to protect you from doing things that are slow. With Postgres I think it's going to be harder to know when I can't use a feature that's suddenly going to kill my performance.

It would be great if there was a resource for how to avoid such issues in partitioned Postgres but it'd take a lot of work to write such a guide - I'm guessing things like JSONB queries, Geo, Transactions, Aggregations across partitions and many extensions are all going to cause pain points?
Could you post the code for that fib program I couldn't find it anywhere.