skysight-inc/HackerNews huggingface dataset:
It's not just old managers that dislike negative lines of code: Static analysis tools dislike them too, under the right bureaucracy.

At a certain huge company that sells seeds, they decided to start having both a base test coverage target, and a specific plugin that demanded that the coverage never went back more than half a percent from the high water mark on any given project. The engineering managers thought it was a good idea: As time goes by, we'd have better code coverage!

I joined a team that had an application full of repetitive code, because nobody had spent much time thinking about reuse. I decided it was bad for maintainability, and the team let me rewrite a big chunk of repetitive, well tested code. I shrunk the codebase by a good 10K LOC, and it still did the same thing. Teammates liked what I had written, and everyone was happy. But when I pushed it, the build refused to deploy, because now the code didn't meet coverage standards.

The manager was mad at me: you wrote all that code, but I guess your unit tests were sloppy! he said. But when I went and looked at the code changes, I had a 100% code coverage. Since I am not a football player, I just couldn't give 110%. So then we look at the reports, slowly, and saw that while I had full code coverage, the code I was replacing also had full code coverage, but mine was so much smaller, our total coverage percentage went down! 1000 lines of uncovered code, in a codebase with 30K lines, gave us better numbers than the same lines in our shinier 20K LOC codebase. And building tests for some really old, badly factored code just wasn't in our top list of priorities.

The people in charge of this system refused to change it, even though it was really not helping things in our case. So what did we do? Fool the tool, of course. Added a bunch of well tested dead code that was never going to get called in production, and wouldn't even get built into the binary, thanks to some packaging magic. We put it in a separate module, clearly marked as 'dead code to make Sonar happier', and we went our merry way.
An Artist Who Obsessed the FBI
It would be wholly unacceptable for a commercial ship to break a week after entering service.
Can they not put a magnetic stub on the oil drain plug like motorcycles? ;)

Or is the engine made from aluminum?
The market decides human beings are not worth shelter, and you're suggesting it needs more power? What the fuck?
That works for some professions/working environments. I did that when I was working in an office and my entire team was in one 2x6 cubicle row. Email becomes much less important. Chat was nearly nonexistent. Now as a consultant working from home, chat is my lifeline (sometimes we even use IM while we're on the phone with each other to exclude some phone participants from a side conversation) but email is everything.

I have clients who aren't on my company's chat system and can't call me because I'm on the phone all day. Chances are if they call I can't pick up. Then there are the client's vendors who will not call me for any circumstance, because that's not their place. They're not paying me, and I hold no control over their wrk. But we'll email back and forth.

Our email system has no "urgent" flag, it's up to you to read them all as they come in and prioritize properly. If you're lucky, you'll have a PM who will spot an urgent email before you do and ping you on chat if you're a few minutes late.
If you're in the market for a parser generator, you may want to look into the lemon parser distributed with sqlite3. I found it much nicer to play with.
Relcom and USENET indeed played a role in helping the people of Moscow and Leningrad to defeat that coup d'état: the mere fact, that it continued to operate was an indication of a weakened grip of the KGB.
Reddit down (or in read-only mode)
Former marine engineer here. Not really. Usually a tech rep sails with the ship to work out any kinks. In this instance, this isn't something you can work out at sea.

A ship I was on had its shafts pulled during a dry dock evolution. When we went out to sea, we discovered that one of the shafts was off-center and moving the line shaft bearing around causing cracks in its foundation. We had to lock that shaft in place and continue underway on just the other shaft.

Having to lock the shaft in place isn't a normal occurance, but it is a contingency that is prepared for.
Kholsa offers land swap over access rights
Well actual reality and Matt Cutt's words are contradictory.

Besides, "insignificant" != 0

What's "insignificant" for Matt Cutts and Google could be quite significant for someone's family.
Show HN: We just launched a game and a new way to innovate
Speaking of land use, Silicon Valley, and money...

The saga continues and Kholsa continues to portray himself as having a tin ear.
Reddit down
And when your batteries inevitably die out on the trail and you're stuck in some random gear, you'll bless the day you bought into this ~innovation~.
Or maybe the devices are "good enough" now to actually run these sorts of things?

But yes, it is a circle of life.
I'd argue that more democratic countries (say, Denmark) are more successful at dealing with climate change, poverty or education than less democratic countries (like Saudi Arabia or the United States).
I like how it is on top of Accumulo which was created by NSA: https://en.wikipedia.org/wiki/Apache_Accumulo

Great to see spy agencies cooperating in open source :P
At the moment, there is no other option other than human driving cars. Once automated cars are a realistic option, insurance companies can properly price insurance for human drivers much higher (comparatively speaking). A self-driving car should have almost 0 risk, meaning the vast majority of cars (if self driving) would carry no risk to the insurer.
OT to the article but following up on some other comments about van living. I don't think it will be long before one of the big tech companies opens a dorm. There's no way it hasn't been discussed somewhere already.
There was an article last month on "dorms for grownups" http://www.theatlantic.com/business/archive/2015/11/coliving.... and the big tech companies already offer so many perks would access to a company dorm actually hurt at this point?

Of course this is common place in China already for the factory workforce...
The claim is that high-quality private education undermines the quality of public education. If everybody with connections, power and money has their kids and grand kids in a private school, then there's little incentive for those who could affect change to actually fix the public school system.
True, but your internal solution isn't "large scale" until you are. The external solution is "large scale" when all users combined together are.
I still think I am not explaining myself clearly enough.

When I say gross force, I mean the sum total of all relevant force exerted by the object. So the gross gravitational force of the earth is strong enough to hold the moon in orbit, but clearly the magnet has no such ...strength.

Now obviously (I shouldn't use that word!) in the case of massive bodies like earths and moons, there's a more complex interaction going on than a one-sided force. But there's a total magnitude of force that just doesn't exist in the magnet.

A lit match burns paper more readily than the sun, but clearly the sun distributes a larger amount of gross energy over a wider area than does a match.

> Even a lightly charged object can accelerate another object at greater than what the earth can manage

Ack. Considering acceleration without mass is no way to properly reason about force! Surely I remember that much, at least.

Regardless, I will desist and defer. Though I do wish I felt that I now understood something more clearly than I did before. :(
Basement Waterproofing
We provide guaranteed basement waterproofing & crawl space waterproofing solutions in Toronto & Ontario. Basement leaks repair, basement mould removal.For more details Log on: http://wetbasementresolutions.ca/
You can read more about EF7 RC1 here: http://blogs.msdn.com/b/dotnet/archive/2015/11/18/entity-fra...

They currently have working providers for SQL server, SQLite, SQL Server Compact, and PostgreSQL
The market certainly decided that human beings ARE worth shelter and more shelter should be constructed. More supply will result in lower prices. However, cities are barely approving residential zoning and this artificial distortion is amplifying the homeless problem.

As we have seen here, regulation like rent control is much more harmful than helpful. Rather than needing to cough up an extra $50 per month for example, you wait until the market rent is double what you're paying now - and naturally, get kicked out for one reason or another.

If zoning was dramatically curtained and / or abolished, the housing problem would be solved almost overnight. The high property prices ARE a market signal saying, build more houses. Regulation is preventing efficient markets.
My wife is Chinese and was raised by academics. I have asked her over the years what pejorative words they used for white people or Americans, especially in propaganda. Unfortunately she is so sheltered and nerdy, and her parents so genteel, that the best she could come up with was "ghost" or "Yankee".
Got Back Up Benefits
At least his address is safe.
Its realistic now, most people do not want to be using Indexeddb directly and pretty much all IndexedDB wrappers will fallback to webSQL. That gets support back to ie9 which is unsupported by most of the web.
If there is some other context that is unavailable to low the level author, then that default should be provided by whatever higher level is providing said context. C++'s namespaces provide a super convenient mechanism to make that work smoothly.
Let me guess, you're stuck fighting yacc and shift-reduce conflicts?

I find writing your own parser to be much more instructive and a better way to understand why parser generators work the way they do.

Alternatively you can use a PEG generator such as peg/leg[1] and your grammar will more or less work (until it resolves an ambiguity in some way you didn't expect, anyway).

1: http://piumarta.com/software/peg/
It's true that Nintendo had a puritan attitude, but I would note Doom was ported to the SNES, with blood, gore and inverted crosses; the port was released in September 1995: http://doom.wikia.com/wiki/Super_NES
For a mature public company like Yahoo, the investors are actually more likely to know what's best for the company than management, whose interests are highly misaligned. In this case, putting yahoo into runoff mode probably offers the best ROI.
Even when your insurance is 'top of the line', if it's cheaper to hire lawyers than to treat you, then they might just hire lawyers. Insurance has a big incentive to not provide it's service when the cost is high.

And this can happen to anyone with the right kind of car accident.
Do you know if that is because up is generally "bad" for them, or because red means "good" and green means "bad"?
I think it would be more than right to say that investing does not inherently mean one has skin in the game. Or perhaps we have so diluted the concept of having skin in the game that, like free speech, we're going to say it equals spending money.
Going through top 4-5 pages, I noticed that slides after 80 randomly stop working (just blue background). Click next a few more times and 9X works again... (evernote did it for example)
Let me ask you another question: Does your 5 year old router use a SHA1 self-signed cert? If no, what's your problem?

I was legitimately curious how old OP's router was in addition to my statement. 5 years is a bit meh, but if you've got a router that doesn't support past 108.11b/g, then it's time to upgrade. Sorry.
Van living can waste time too. You need to repark to find parking, you need to go to a gym to have a shower, you need to go to a laundry service to do your laundry, etc, etc.
Ragel is great for replacing regex validation code ("Does this string look like a IP address, email address, or date?"), or for writing a lexer, but if you need to actually parse something (i.e. extract even a moderate amount of structured data) then you need something else.

It has a particularly sublime output mode for generating Graphviz dot files however.
The same incentive they have today: profit based on taking in more in then they have to pay out based on risk. If insurance companies arbitrarily bump up insurance for manually driven cars, then that opens up a market for someone to jump in and accurately charge based on risk.
I think the solution for platforms which use bad default_random_engine's is for said platforms to stop doing that. ;-)

Seriously, the whole point of platform defaults is that they make appropriate choices for the platform. Sure, you can define your own engine, but that's exactly what the original API gives you...
For me the bigger question is WRT the ongoing quest to marginalize human beings.

Once we automate everything, then what?
I'd be surprised if they didn't recharge it by pedaling. ;)
> He didn't compare anything.

No, he did:

>>> 1024 bit keys are endangered? .... You can't even break 256 bits

1024 bit key = most likely something like RSA

256 bit key = some symmetric algorithm or ECC

He's implying a 1024 bit RSA key should be safe because a 256 bit key from some other algorithm is.
I know it's only tangentially related to your comment, but you reminded me of something Walter Bright discussed about two years ago on the design of the 757:

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

Relevant portion applicable to your comment:

"The computer control systems were dual, meaning two independent computer boards. The boards were designed independently, had different CPU architectures on board, were programmed in different languages, were developed by different teams, the algorithms used were different, and a third group would check that there was no inadvertent similarity."

I realize that the liability fear of failure in commercial aircraft (or perhaps regulatory oversight) is probably a strong motivator, but you'd think that combat systems might be equally well-motivated toward redundancy given the nature of their purpose...
After searching around a bit it seems that you are right. Time to update our code then.
Is that algorithm documented anywhere?
> Ugh. s/learn/remember/ for your use case then.

Learning and remembering are very different processes.

I've had great success sharing cards and decks and haven't found my own cards any more valuable than the cards I've gotten from friends.
This is a pretty easy optimization problem and I think it's hilarious that SV can't seem to solve it. If this was a network you would just push the resources further out closer to the edge to alleviate the load in one place.

What you have is people from all over the world swarming SV because you can't get that job in Cork or Boise.

Everything doesn't need to be in silicon valley. If someone is willing to live in their car for a job, with all the social baggage, sneaking around and unhygienic side effects that entails, surely they would be willing to move to a less crowded place like Portland to do the same job.

If the nexus for every single tech company must remain in SV then these companies could set up satellite offices around the country or allow people to telecommute with robust teleconferencing setups that turn a monitor into a window. Then just hang it up on the wall in your office and turn it off when you're not working.

Seriously people. You don't have to live like animals. I have a decent software job where I live. I pay $700 rent and look what I get to do every weekend

http://imgur.com/a/d5BkF

http://imgur.com/a/iFN9Z

http://imgur.com/a/ow47m
It's time to index everything to an area's cost of living. $1 in SV is not the same as $1 in {somewhere else). It's time to stop pretending that you can set a federal poverty line, or set a federal social security pension.
Seattle gives Uber and Lyft drivers the right to unionize
> Maybe this is more of cultural issue but it is the height of uncouth behaviour to boast about your charity work. The first we hear about your charity work should be many years in the future when it is exposed that you have given billions to good causes. Deriving even the smallest credit for charity giving only diminishes the giving.

The Jobses donated anonymously to charity for years and all we ever heard about was how Steve Jobs was an asshole because, unlike Bill Gates, he wasn't a philanthropist.

Contrariwise, Bill Gates gave billions of dollars to charity, but only his own charity named the "Bill and Melinda Gates Foundation" of which he is the full time co-chair, and uses his celebrity to popularize their work.
I'd just call it "from_one_to_six".

I guess if it is really a mystery, you could just always do:

std::uniform_int_distribution<int>{1, 6}(e);

...and use some typedefs to avoid it being quite so verbose.

I'm not sure I grok the bunch of numbers in a row scenario. Usually in that case I'd imagine you'd want to create a bunch of numbers with a consistent distribution, which is exactly why you have the structure you want. If not, you can always create new distributions in an ad hoc fashion (exactly why it is good that the parameters for a distribution are NOT template parameters). Instantiating distributions isn't costing you anything here. It's just a transient struct with a handful of fields... though if you use it for more than one call, it might somehow be more efficient (doubtful, but conceivable).

In practice, you pretty much always end up with something that holds the engine inside it, and you can always decorate it with methods like:

int roll_die(){ return std::uniform_int_distribution<int>{1, 6}(e); }

...or alternatively:

template <typename T>
T uniform(const T begin, const T end) { return std::uniform_int_distribution<T>{begin, end}(e); }
> look at all the downvotes. Does it make the cognitive dissonance go away?

There are some folks on here who don't like hearing this kind of stuff but can't (or can't be bothered to) articulate why.

Is the idea that your comment is off topic?
What kind of software takes 1M lines of code and 105 project? Is it one of those Java enterprise software projects?
"Praise The Sun!" Nice!
That's brilliant.

I would love to know how he reacted and what happened next.
Ran a few random figures: It's actually 0.2% in Toronto (where I am), or ~5200 of 2.6 million. In NYC it's 59,568 or 0.7% of 8.4 million. In SF, it's 7539 compared to a population of 837442. That's 0.9%, or 4x higher than Toronto's, per capita, but only 28% higher than in NYC per capita. Perhaps because of the weather, Canada's homelessness per capita is quite low: http://homelesshub.ca/resource/which-city-canada-has-most-ho... It's harder to find a similar analysis by city for the U.S., perhaps because there are so many more cities to consider. I'm also not sure I would count "employed homeless" or perhaps "homeless by choice" the same way as I would those struggling to find work or have other issues.
"All channels were blacked-out except for one; Usenet, which is the grandfather of chat-rooms and is capable or [sic] surviving without the Internet."

Do they mean Usenet doesn't require IP to work? And did that matter here? Would actually be fascinating if some alternative federated server comms played a pivotal role, but more likely this is careless writing.
I still find it really, REALLY bizarre and totalitarian that there are corporations that sing The Company Song at morning meetings.

That kind of thing just disturbs the ever-living shit out of me, and seems beyond abnormal.

Does that kind of thing still happen? It feels like a certain, painful breed of brainwashing, or B.F. Skinner-style operant conditioning, is needed to command behavior like that.
Code is available on GitHub now :)
Unclear from the page, would it support SFTP, SMB protocols?
What are good Hue alternatives I should check out?
A few years after this demo, Jazz Jackrabbit [0] (1994) was a huge hit, I believe. Mario could have been successful as well.

Though by releasing Mario on the PC, might have cost Nintendo console marketshare. I do think people by Nintendo consoles often because of the games / game characters like Mario, Zelda, etc...

---

[0]: https://www.youtube.com/watch?v=b16upFloYak
Two things irritate me.
1. A food bank should never ask for a person's home address. If you need to use a food bank, chances are you're homeless.

2. Homeowners should not worry so much about their property value. It's all going to be destroyed by an earthquake. I wager that the homeless are better prepared, and more likely to survive the Big One.
Honestly this person could afford a place in San Francisco with that salary, they just choose not to.
with the bay area experiencing high regulatory restrictions, I'd say more regulation isn't going to help. Milton Freidman has some good stuff on this - check out Free to Choose, its a video series.
The SNES had a pretty bad history of censorship, eg. Mortal Kombat and Wolfenstein 3D, which were both playable but kind of pointless (no blood and censored fatalities in MK, no blood, dogs, or Nazi symbols in Wolfenstein). They relented somewhat after the introduction of ESRB ratings in 1994.
The way to go for Philips would be the way of Apple.

Build an ecosystem around Hue (Apple app store).

Have help pages but don't do any support (Apple app store).
Happy user here. Sandstorm works amazingly well.

Especially enjoy

- the usability of Sandstorm, -it just works.

- extensibility - you can adapt other apps, open source or commercial, to run on sandstorm. As far as I'm aware you can even upload them to the hosted version.

- security seems to be taken good care of by pragmatic and experienced people.

- the fact that I can pay a small amount monthly for it depending on my storage and computing needs, making sure incentives are aligned (although last time I checked I think Sandstorm hadn't even started the billing machine I think.)

Furthermore it seems to be completely, real, free software, -I ran the OS version at a maching at home for months before oasis became available to me, and I haven't noticed any juicy parts missing or filed under "Enterprise only". The only difference between the versions seems to be the storage and compute resources available. (OK, the billing system doesn't seem to be in the Open Source version, but that is OK to me. : )
That only covers half of the wireless equation.

...unless they ran a wire up the the controls to carry power :)
If the 35k figure is correct for SF, that means it's over 4% of the population.
Don't get me wrong, there is definitely such a thing as firmware crippleware, but being strict about compatibility with other devices isn't necessarily such a case, particularly in this case where random devices are disproportionately likely to cause all kinds of mischief.

In general, being more compatible increases the value of a device. When it doesn't, you've got some bad market forces at play.
I'm sure they could dump a bushel of hard drive magnets over a pipe somewhere but an modern marine engine already has some sort of magnetic filtration.

Also, you don't just turn this kind of thing off while you change the oil so a drain plug isn't a realistic option.
Yeah, I would be really interested in knowing what the statistics are like for IT related careers such as Software Development.
Huh, there's a Mormon church in Oakland. TIL.
Relevant—here are IRC logs from the 1991 Soviet coup d'état attempt: http://web.archive.org/web/20090628013626/http://www.ibiblio...
Red is considered good and prosperous. Hence the huge amount of red in Chinese culture.

https://en.m.wikipedia.org/wiki/Color_in_Chinese_culture#Red
Simply false. It contradicts statistical fact and scientific fact.

1) Average annual hours worked: https://en.wikipedia.org/wiki/Working_time#Average_annual_ho...

2) The vast majority of humans cannot survive with average sleep length of 4-5h per night on a consistent basis: We will literally, physically die. In reality, the Japanese sleep between 7 and 8 hours on average: http://www.nhk.or.jp/bunken/english/reports/summary/201104/0...