skysight-inc/HackerNews huggingface dataset:
> Tests do have a maintenance cost

Agreed, but...

> Sometimes they rely on interfaces other than the one being tested, and that code needs to be updated when those interfaces updated. Generally speaking, an interface will have 2x the consumers in a well tested codebase, which means 2x the refactoring.

Only when refactoring the public interface, and only when tooling isn't capable of automating the refactoring. In other words, only when you're doing something complex enough that there's a high chance you'll break things and cause tests to fail!

Hopefully one will catch said test failures before checking in - note that this will skew any CI metrics. Just because they didn't fail on your CI infrastructure within the past year, doesn't mean they didn't fail within the past year.

> Tests take time to run, which slows the development loop.

This is, perhaps, a good reason to make those tests run e.g. only for your overnight integration tests. But removal? Nervously auditing and reviewing changes (both your own, and other's in code reviews) for possible breaks because of reduced confidence that your unit testing will catch things also slows down the development loop. As does the debugging sessions when that isn't enough.

> Test can be used as documentation. The more tests in a specification, the less useful that spec is as documentation.

This is, perhaps, a good reason to relegate less informative tests to another directory. Perhaps the same directory that houses regression tests that your fuzzer found.

> When refactoring, the number of tests increases the amount of behavior that needs to be pulled along. If the test is no longer important to the business, that slows down refactoring unnecessarily.

The purist might cry that refactoring doesn't change (external) behavior. But I'll note that it's just as easy to delete unit tests when you're changing behavior, as it is to delete them ahead of time. Even easier! Bonus: Deferring their deletion until then makes the fact that you're actually changing behavior a lot more obvious and explicit.

Ahh, a fibbed a little: It might be harder to get those deletions approved by your code reviewer if it's not obvious that changing behavior is OK. In my work environments, this is a feature.
I chalk it up to Hollywood and ignorance, but there have been some spirited defenses of their policy that bordered on it.

for further reading:

https://news.ycombinator.com/item?id=7364933

search for my username, I'm still thinking ignorance
Why on my machine does your unshredded version come out flipped? Pretty reliably, actually.
Ask HN: Database schema with more than 100 tables – where can I find some?
I am looking for database schemas with many tables (>100 tables). Where can I find them ? I am currently using mysql and havent done serious database design. So interested in looking at samples with ER diagrams.

Although sportsdb.org has large number of tables - it has foreign key relation missing in its create scripts.

edit: Replaced '>' with more than in title.
> It's objectively better to have Uber and not regulate it than to regulate it and not have it

How is that "objectively better"? What's the limit on regulations that, in your opinion, should be removed if they threat Uber capacity to make money? Or there is no limit?
Are you objecting that infinite precision or irrational numbers do not physically exist?

That may be. Or it might not. Whether (physical) space is infinitely divisible or not is, I think, an open question. I think it is even plausible that the answer might be that it can be described equally well both ways? Not sure.

I don't mind thinking about abstract objects which do not physically exist. (Though, I generally consider abstract objects to exist in some sense, though you may disagree, and that's fine.)

If you don't care to think about them, that's fine also.

I believe that thinking about them is often useful. Treating pi as existing allows for reasoning about things more efficiently, even if it turns out that it results in inaccuracies in predictions about the physical world which are far smaller than our ability to measure/notice. (If we can't notice the results of the error, it doesn't seem to be much of a problem.)

That doesn't mean you have to accept pi as actually existing. I think it would be to your benefit to at least accept its use though. I do consider it to actually exist.
Good point.

I hate it when people write tests to cover every single function (to cover every line of code) but they pay almost no attention to the range of inputs/arguments passed to those functions.

I think that most bugs in production can be traced back to "An unexpected argument which was passed to a complicated function/method" - According to this, you should focus your testing efforts on methods/functions that have complicated logic and you should test them with a range of unusual arguments/inputs.

Writing tests for EVERY function/method using only obvious (common use-case) arguments is a waste of time.
The style makes it easier to see how the approach works, and wouldn't say it implies the OP came up with the technique.

It seems that explanatory articles of this sort often use this style, as it is a great way to get the idea across.
Reminds me of the video of Grace Hopper talking about nanoseconds:

https://www.youtube.com/watch?v=JEpsKnWZrJ8
Dang, I was kind of wondering what Google could do with all that data or what Disney had planned.
It's hard to say exactly at what point it would be an appropriate read, but perhaps Knuth's The Art of Computer Programming should be on the reading list.
How can I be strongly anonymous without having a personality. Isn't my personality a pattern that can be traced?
I suppose someone has to do the follow-on work, years later, reporting the actual consequences as they played out. Yet two things about this particular piece infuriate me: 1) Most of us probably could've foreseen, and did foresee, that there would be human consequences to this shitty evil program. Even those who didn't have a particularly vivid mental picture of that, could still tell it was a shitty evil program. So to have it reported as news now is like, "Wow, no shit?" 2) The ones doing the reporting in this case were complicit in supporting the Bush administration in these very efforts back then, so they're now deploring that in which they participated. When you do that, it is generally accompanied by an APOLOGY. Also see my very similar comment from 3 weeks ago on the Washington Post suddenly betraying Snowden: https://news.ycombinator.com/item?id=12527065
Yet another open-source scam?

This whole incident is an excellent illustration of how much scam or scam-like activity is going on within open source. OK, I just read what I wrote and it hurts to read what I just wrote, so then let me try to explain why I would inflict so much pain onto myself and likely others.

If RethinkDB ever was an open source project then now there would be no questions about need for new licensing nor its continuity as an open source project. All of that would have already been in place. There are too many "open source" projects [like this] that pretend to be open source but are first and foremost geared towards making a profit for those that have invested in it. There is nothing wrong with making a profit and since there has never been anything like a free lunch, profits must be made because someone must end up paying for it all.

However, the accompanying commercial business plans must be based on added service that are on top of a thriving open source community. Those add-on services must not be replacements for at least basic admin tools nor for poor documentation, which too often is lacking because of the add-on services. If those add-on services can not deliver added value, in form of better quality and/or compressed development timelines because more qualified experts would be doing the work then there is no add-on value to speak of.

I have been personally struggling (at 55+++) to learn and keep up, navigating through all of these web development mine fields and a web development toolbox whose contents are just about totally replaced every year or two. Nevertheless, even I feel that I could come up with multiple ways in which I could make a profit, only if these tools would settle down a bit. In fact, are we all not here because we feel that we can do the same thing? So, how is it that those who were running RethinkDB as a business, with all that inside info and those $12 MILLION raised, that they were unable to direct a tiny portion of all of those resources into ensuring a sustained self-existence?

Take care and shut the lights out behind you.
Any large drupal7 site.
"One interesting appraoch is to use old computers to compile newer compilers (possibly through emulation"

I strongly second this. It's what I came up with to deal with hardware, subversion risk post-Patriot Act. The older it is, the better as the oldest stuff predated wireless hardware and had hardware so scarce they didn't waste transistors.

I made a list for people here:

https://www.schneier.com/blog/archives/2013/09/surreptitious...

One can also use embedded boards made with MCU's from the old, process nodes. The 8- and 16-bitters will be slow, painful, and maybe not subverted. Alternative, Leon3 GPL CPU on diverse FPGA's. Or my brute-force approach: same compiler on one machine and ISA from each subversive, non-cooperative country comparing output. Lot cheaper to do that now with excellent FOSS support. :)
The author edited away his posts.
Skin+Changer+for+Agarlist+2.0
The idea isn't to reform the Despotic Regimes Club; the idea is to avoid JOINING the club. Or upon noticing you're in it, to leave it.
If you are interested in zooming into neural networks, at Coursera Hinton himself will teach you a great deal of things: https://www.coursera.org/learn/neural-networks
800/500 Mbits/s on speedtest here. (less if we pick a server on another continent).

Fiber is coming to the household. It's gonna bring the potential for DDoS to another order of magnitude. :D

Well. The IoT device will be limited by the bad Wifi or 100 Mbps Ethernet. Hopefully.
Why Social Media Is Just as Important as Any Other Digital Channel
Very cool. Also remarkably fast response.

Interestingly, it occasionally flips the picture horizontally (I only saw it with Blue Hour in Paris).
SVLUG's had three generous tentative offers of meeting space, thanks in part to the good folks here. The somewhat bigger problem is SVLUG's staffing, notably its absence. As a member of the Web Team, I've been holding the group together for years after active volunteers found other interests elsewhere and walked away, e.g., Yudhvir Singh Sidhu resigned as Meeting Coordinator after doing a terrific job for years, and nobody took his place. This past January, I gave the group a heads-up that the March 2nd speaker had cancelled but I was going to be on the Pacific Ocean for a month so someone else would have to fill the vacancy. I returned in late February and found nobody had even tried, and March's meeting had to be cancelled.

SVLUG hasn't had elected officers since 2009, when the last President and VP's terms expired. Nominations were open at the December 2nd, 2009 meeting, but nobody wished to be a candidate.

I'm certainly not faulting people for having other interests. These things happen. (I myself always stressed that I was unwilling to run SVLUG because I already run another LUG, CABAL.) I suspect that if speakers show an interest in giving talks, one of the kind offers will be accepted, but the basic institutional problem within the group is a real one.
If you want food bars with a better reputation, there's Calorie Mate Balanced Food Block, the lunch bar of Japanese salarymen. Manufactured by Otsuka Pharmaceutical Co., Toyko. Amazon sells them. The bars taste like shortbread, and their biggest component is wheat flour.
It would help if fewer people had foundational epistemic stances. Fallibilism is much more realistic than foundationalism, as I understand the terms.
what should I search for to get sample database - can you please provide links ?
"If you are looking for a job, and they tell you that you needn't apply because of your race/gender/..., but there are thousands more equivalent jobs in your market that don't have such restrictions, there's no substantial harm to you"

You have lost all credibility with that statement.
>In the past years there was an increasing number of non-voters in elections (typically people who are dissatisfied with the political system). Now in the last years a rather right-wing populist party (AfD) appeared that convinced many of these non-voters to vote for them.

Well, maybe the Left should try actually appealing to the interests of the working class instead of the SDP going quietly along with the austerity measures.

>Compare this a little bit to the fictional situation as if Donald Trump would bring many people who did not vote in the last presidential elections back to the ballot boxes to vote for him.

That's not fiction.
I have insurance strictly for the emergency room. year over year my deductible and monthly rate have gone up.

I'm more bothered by doctors refusing to charge without insurance. My pcp used to charge 120 a visit, then they went through my insurance. Because I hadn't met my deductible the payment was now 650. I've seen pretty much every facet of medical care go up.

I'm not the healthiest, several neurological issues. But I'm primarily treated by eastern medicine. None of which is covered by my insurance. The budget I allocated for my treatment is now allocated to an insurance I use.
It's also powerful to think of these numbers in the context of complexity. You might not worry about a nanosecond here or there in an O(N) algorithm, but at O(N^3), when N is 100 each nanosecond in the inner loop is a millisecond of wall clock. Blowing the cache in that inner loop is going to hurt
Truth on LA.

They drive hard, but there's a very clear & consistent code/system everyone abides by, drivers are attentive and bewilderingly polite: signal, and—more often than not—someone immediately makes room for you. Makes for stress-free, predictable driving despite being 20 over at all times.

… or maybe that's the norm, but I'm from Seattle where drivers are timid, indecisive, unpredictable, and passive-aggressive.
Bear in mind that it's only as good as the data in the LOD source.
I didn't downvote you, but I don't think your anecdotal experience advances the discussion (a criticism which applies to most of this thread).
That's good news...curious if he has any customers for the professional version. I'm sure it's a great product, I'm just not aware of too many people who would depend on something that niche' for production work. Maybe niche production work :)
This is fascinating stuff, and nicely polished work.

We would like to develop something similar, but a non map overlay version, using our transit data at Rome2rio. Basically code to auto generate something like this for all of our 4,000 transport operators: http://content.tfl.gov.uk/standard-tube-map.pdf

We've been talking about it for a while but don't have the constraint layout expertise to do it internally.

Anyone interested in working for us to tackle this problem?
In addition to the CS books already recommended by others, do not underestimate the value of flowcharts.

You can draw a program on paper and follow it with a finger to "run" it. With a bit of practise, it'll be possible to run such mental models without even writing them down. At that point you're thinking like a programmer.

This skill is transferrable to any programming language.
And its first version was developed on a Macintosh, too! Thanks for the link. Been some good history lessons on Microsoft recently that keep tripping me out.
FWIW, Transit on my iPhone, after using it in several large, dense cities (including San Francisco and the Bay Area), only uses up 42.5 MB.

So I doubt it would use very much on your device, especially if you only want to try it out once in your area to see how it works.
Amazon changes some users’ passwords following leak
I don't know for sure, but I kind of suspect that bats don't have any sort of analogous "consciousness program" in their brains like humans. They probably go through life very automatically, without a conception of self, without a reflection on their existence, very much like a person who sleepwalks is unconscious, but in a far dimmer way. The same probably goes for most animals, and certainly for insects and worms. Only advanced primates, dolphins, whales, elephants, and maybe some birds are likely to have "consciousness" programs that are in any way analogous to what you and I experience.

After all, think of it: you don't experience the regulation of your heartbeat or other autonomic functions, or the rods and cones detecting light in your eyes, or the individual variations in sound intensity that make up audio. Instead, you experience a very highly processed and organized show of sorts that is presented to your consciousness by many various brain subsystems. Studies have started to show that even the decisions we make are determined by the brain far before we are consciously aware. In some sense, consciousness is the story our brain tells itself while all the systems are off busy doing their things. Maybe bats just don't have that, so there is nothing that our consciousness can conceptualize that is similar to their very automatic behaviors.
JavaScript Leads to Browser Hijacking
Check out Mercury programming language if you haven't. It's like a better, faster Prolog. Been around quite a while.

https://mercurylang.org/
NeuroOn: a case of startup marketing versus open notebook science
I was in a bike crash a couple of months ago without health insurance. The total was ~$4500 for urgent care on a Sunday, or about 10 months of ACA coverage.
It works on my phone (in Chrome for Android) too!
Looks awesome! Can't wait. I wonder what PC specs I need to run these astonishing graphics.
Encapsulation is making the internal representation of abstract data types not visible to their clients. In other words, it's a discipline for writing programs. Some languages (e.g., ML) just happen to helpfully enforce that discipline for you. It has no runtime impact whatsoever.
Colonization of Mars – SpaceX’s Program
Germany's Bundesrat Resolves End of Internal Combustion Engine
If you don't have a statistical background (or haven't taken Stats 101), I would go with some Stats 101 class first
Why an unhackable mobile phone is a complete marketing myth
>Uber, in its most profitable market, currently makes an average of $.19 per ride[1].

If Uber can't pay real wages and benefits to their employees because they make a margin of $0.19/ride, their business model is pathetic and deserves to be replaced by something more productive and efficient.
There's really no way to preferentially differentiate between the image being flipped one way or the other once the one pixel wide columns have been shuffled. The order of the first pair that you put together determines which orientation you end up with and this is totally arbitrary. The reason that it flips sometimes is because the shuffling of the columns is random and the order of the initial pair of seed columns depends on their original order in the shuffled image.
Awesome, but please put the original energy somewhere. It's not clear whether the final configuration actually has a lower or higher energy that the original image, which would be interesting to know.
Start with learning symbolic logic. I'd then suggest learning something like 6502 assembler on a simple machine that existed (in order to attain predictable results and in order to have reference materials based on the programming results and tricks that real coders of that machine achieved).

I'd then suggest moving to something like SICP and/or NANDtoTetris.

If you learn the abstract fundamentals first, you will understand how they apply in every increasingly complex system you encounter... and none of that is syntax or frameworks but instead an ability to see and extract the underlying problem domain, which will then guide you in the solution.
One day I hope to have enough time to go through a majority of OCW!
I'm doing something similar, but with cigarettes and coffee.
Anyone knows if there is another C -> PS being Open Source?

P.S. Not strictly related to this, in addition to Ghostscript (GPL), I would like to see up to date MIT/BSD Postcript interpreters and renderers. Anyone knows of any, even if being an old implementation?
But it uses blockchains, and blockchains are magic. Distributed blockchains with VC funding, no less.
The main part of the order is base approximately in: votes/age^2

Some of the details are part of the secret sauce, but kens did a blackbox analysis to try to guess more details. It's an old post, so many details may have changed since it was published, but I guess the main ideas remain.

http://www.righto.com/2009/06/how-does-newsyc-ranking-work.h...

http://www.righto.com/2013/11/how-hacker-news-ranking-really...
WSL, SUA, AND YOU
Where there is divergence, it's usually due to bugs. The 'matching' is basically just a trip planner along OSM, so generally it finds some trips that travel along the shape points of the transit line.

If there's no trip found within a reasonable distance, then we generate errors and the data integrators will have to take a look.

We've fixed a couple of issues in OSM already, usually it was different rail stretches (ways) not being connected.
Neat tools. Have you seen any attempts to model HOL in FOL for verification in FOL? There's a FOL down to assembly verified prover and stack. It's ACL2-like. I also found a paper doing HOL-to-FOL conversion with that tool modeled and proven in HOL. Doing HOL in FOL or HOL-to-FOL converter in FOL seems like a short-cut to verified, proof stack.

If the shortcut is doable at all. The HOL-to-FOL gave me some excitement about this. It just wasn't done entirely in FOL itself.
> The U.S. may have ended the policy of openly torturing people, but they're still proudly assassinating people in foreign countries with drones.

That's a bit different. Arguably, that's taking place in a state of war. Also, what makes you think our complaining actually requires moral high ground? Complaints are made from a high ground made of power, not morality.
Russian Competition to Boston Dynamics and DARPA
Any idea how to do it?
You're not limited to "a machine that executes code" (even as simple as a Turing machine) and "reading your program in your head." Most 8-bit processors were easily comprehensible by people, and could be represented in a simple state machine. That state machine can be emulated by anyone with pencil and paper, albeit at a billionth the actual execution speed. But walking through assembler that you hand-compile to machine code, and then step through rigorously with a constant eye towards what the processor is doing and how it does it is probably far more valuable than any certificates.
I could not find a non-paywalled definition of strong anonymity. The closest I got was the abstract for a paper by Kawai et al (2009) that claimed it would define the term, but failed to do so in the abstract.

I've also done a search for strong anonymity and deniability and I don't see anything that indicates there is a link. I wonder if there is a problem with definitions here. Can you give a link to what you think of as strong anonymity?
I guess that depends on your definition of too picky? If you want to have a partner that shares similar life values to you and it's not that common amongst the population near you (or willing to come up and ask you out) just rolling the dice with random people can get old real quick.

Some things are worth being picky about and just dealing with up front. If you can choose from 100 people why not eliminate the ones who don't share your religion, for example.
>Even though I'm an atheist...

Interestingly enough, Buddhism does not entail a belief in God.
Gem in the Linux source code
A fun game I've been playing: http://www.microcorruption.com/

Gotta use those MSP430 assembly skills to bust through digital locks.