skysight-inc/HackerNews huggingface dataset:
> it doesn't track you or download 100 js files, but you can't score a site based on what it doesn't have.

Well judging by the positive reaction by a non-negligible number of people, the lack of javascript bloat may be something valued by many on this site.
A lot more effort needs to go into road design too though. The best merge is the one you never even need to do.

For instance, I’ve seen ridiculous things like roads that open up two new lanes, only to remove BOTH of the new lanes within a half mile or so. (There wasn’t even an exit in between, just space they decided to use.) Predictably, that creates an insane cluster of traffic every single day in rush hour that could have been 100% avoided by simply not offering either of the bait lanes to begin with!

I also do not understand why so many merges have one tiny sign as the ONLY indication of a merge, sometimes over a very short distance. What, you just spent a few million on a road and you can’t afford 2 or 3 signs per merge? Put them up! Give people every chance to move. Surely it can’t hurt.
As usually: it depends. Sometimes testing getters/setters is a good thing.
May the next Etsy learn its lessons
Because I'm familiar with both the games press and games PR. I understand how those interactions work well enough to be very, very skeptical. There is some minor possibility of good reviews in exchange for advertising--except that sales and content at any outlet significant enough to be called the "games press", from Kotaku to Giant Bomb, has a wall between sales and content and publishers (when they bother to notice the games press at all) know that bad scores are, occasionally, just part of the package. The last major break of that I can think of was Gamespot and Jeff Gerstmann, and the people involved in causing that were so roundly shredded that I don't even think most of them are in the industry anymore. So while vanishingly unlikely, sure, there's a possibility of payola there. But getting paid for bad reviews? Come on. Substantiate--with evidence--those wild claims or don't make them.

If he'd said "games YouTube"--now, that's a different thing, as the interactions between influencers and publishers (in ways that are deleterious to the public, to be honest) are pretty well-documented across the board in ways that are not "some rando with an anime avatar said so". But even they aren't incentivized in any way that I've ever, not once, seen substantiated to give bad reviews. So, again, that's a put-up-or-shut-up.
For dealing out the cards, it seems that the only thing that would stop you from drawing a straight via one card from each pile would be if any one pile had one card in all 4 suits, along with one of its adjacent cards in the straight; e.g. 4 of hearts, clubs, diamonds and spades, and any 5 or 3. (If you pluck off all the same-suited cards first, then you'll end up with two adjacent cards for the final draw in the same pile). Since the piles are constrained to have no more than 4 cards, this situation can't happen.
I really wish people would stop using this "bitcoins used for illegal activities" narrative. USD is used for illegal activities and on a much larger scale yet nobody talks about it.
But Facebook already "censors" algorithmically. You are not shown a democratic slice from a marketplace of opinions. You are given a curated echo chamber of voices algorithmically optimized to keep you engaged/enraged. The voices that rise to the top are either the ones with the deepest pockets or the ones that most activate the lizard part of our brains.
Stanislav Grof, really? The crank psychoanalyst whose therapeutic ideas are based on summoning and coming to terms with false memories of birth and whatnot?
Strange list to be honest.
The fundamental reason to choose Phoenix would be:
1) unparalleled capabilities for real time features
2) BEAM VM and all it's capabilities available via more conventional syntax than Erlang via Elixir
As an alternative, I've found a lot of non-technical people are very comfortable using http://prose.io/ to edit markdown files. Saves are GitHub commits.
Yeah, but Norway is north of the USA. It's not possible to have local tomatoes, so ones optimised for transport should be expected.

Many US states should be able to grow tomatoes like they do in Italy.
I agree with your point. There should be easier ways of doing some things in Unix. But since there are not (for some things, anyway, and I say this as a long-time Unix guy), sometimes, scripts can help. Here is one example by me:

m, a Unix shell utility to save cleaned-up man pages as text:

https://jugad2.blogspot.in/2017/03/m-unix-shell-utility-to-s...

This tiny script lets you generate man pages as cleaned-up text, saves them in a ~/man directory, and you can from then on, open them in your favorite text editor or even pager (less/more/pg/etc.) and view them. Created it out of real-life personal need some years ago, on a Unix system, but is still useful on Linux and other Unix-like systems today.
Ask HN: What are the viable reasons to Not to support net neutrality?
Please be serious.
Whenever I feel substantially undervalued. For my first few jobs, that was relatively often (1.5-2 years) since most companies will offer tiny raises, while your skill growth will be raising your value much more substantially. My first few raises were about 2-10% increases, while switching jobs was about 30-50% increases. Eventually the skill growth will slow on the critical path stuff (don't let it slow too much!!), and you might get to a level where promotions come with more substantial increases and then job hop less.
Show HN: Building a todo list with Dart and React
The Future of Retail in the Age of Amazon
1.75 years

0.83 years

0.5 years

1.41 years

Average of 1.1225 years I guess.

I plan on sticking with $current_job for either 3, 5 or 8+ years depending on career prospects at each of those checkpoints. Each time I switched it was because career prospects were not as bright as I would have liked.
Switching my resume to LaTeX was one of the best decision I've made.
New Ransomware Attacks: LockCrypt Emerges from Satan's Shadow
Happily, these kinds of studies aren't attempting to create a comprehensive statistical model of the human body, in any reasonable sense- they're just asking, "if we change X in modern human lifestyle, and leave every other factor within the range of typical variation, how does it change Y?" Thus, in almost every case, the millions of other factors influencing human wellbeing can be completely ignored for the purposes of the study, as long as they're reasonably well represented in the study population.

In terms of caffeine studies, yes- there are definitely thousands of other foods and so-forth that effect the risk of heart disease, cancer, and whatever else they're looking at. There's even things which interact with caffeine specifically to modulate or plausibly even reverse it's effects. All of these things work in egregiously complicated ways. But when I read the study and try to think what it tells me about my own situation, this doesn't matter since I can usually assume that my own exposure to these other factors will be typical compared to that of the study population- thus, I'll tend to respond similarly to caffeine as they did.

This approach is obviously has an abundance of limitations- it only tells me how I'm more likely to respond to caffeine or whatever else, but doesn't give any guarantees. And for someone who is different than the study population- a black woman living in Uganda versus a study done on white male freshmen at Yale, say- the results rapidly become less meaningful. But they do work.
I've used Rails for a long time, and Phoenix since early versions (0.6 or something like that?).

Phoenix is amazing but productivity wise I haven't seen it get near the productivity levels you can get with Rails. Other developers I've spoken to say the same thing. This is even more true with the more recent release of Phoenix 1.3 encouraging the use of contexts. I think it's a good pattern to extract to once you have more knowledge about your application but trying to think about it up-front has slowed development speed down and has been hit or miss on whether or not the context was "correct". https://hexdocs.pm/phoenix/contexts.html

I think Rails and Phoenix have a heavily overlapping place in web development but my personal tl;dr is that Rails is great for getting shit done and Phoenix is great for scaling, especially when it comes to websockets.
I think you didn't read my proposed methodology carefully.

Box Researcher | Owner of phone (outside room)
[ ]~ x | o

The researchers speaks about some subjects, but not others. The ~ represents that in some cases the researcher's conversations are being fed into the box, and in others they are not. The box is otherwise soundproof, and inside is the phone being tested.

We can pick subjects such as:

- #1 Adult incontinence
- #2 Cat food
- #3 Last-minute trip
- #4 ..
- ..
- #10

The test group is that the researchers' voices are being fed into the box. The control group is that researchers voices are NOT being fed into the box.

It is important in order to maintain double-blind environment that the researchers not hear whether they are being amplified into the box.

The results might potentially look like this:

https://imgur.com/a/y7852

Of course, I just made this up. (I imagine the subjective 1-5 scores being whether the given subject reports seeing such an advertisement, from 0 definitely not to 5 definitely yes.) I even made subject 3 unsure about topics 1 and 3 to mimic that humans are fallible. Likewise subject 2 does not really report any advertisements. (This is likely in the real world - for example subject 2 could be explicitly excluded by advertisers for some reason.)

The attached is the kind of graphs that I would expect based on dozens of scientifically-minded people trying them.

If these are the two graphs that we got, and if the test and control groups were truly randomized, what other explanation could you offer?

Of course, my proposed experiment is orders of magnitude more scientific than what people are doing with their n=1, unblinded personal experiments. But theirs has some validity also.
No calls to free() to match calloc(), no overflow checking in gettoken() and then I read this:

> a program with missing or unmatched parenthesis, unresolved symbols, etc will likely just result in something like a segmentation fault.

I understand this is just a fun thing to hack on, but this is an irresponsible way to write software. I hope no one here is reading this and thinking it's how they should be writing C.
>Will it be harder for newcomers to make it against Big Web Pipes Inc? Yes. >More regional 'net growth? Eh, the speed of electrons is basically the speed of light, so the reach may not be affected all that much.
> Well, to me that statement seems to be at least dubious. If the company is loosing money and goes bankrupt it is obviously not worth something in its entirety - at least in its current form. (And I highly doubt that simply restructuring Tesla would do something about that.)

Bankruptcy means the company has more debt obligations than assets, and has ran out of cash. It does not mean the company assets are worth nothing.

In a theoretical Chapter 11, Tesla Energy and the "battery factory" would still be worth many billions, even if they never sold another car.

Tesla is doing pretty good for a highly capital intensive and growing company.
Ask HN: How to become the first result of a Google search for a name?
A while ago, I decided to write a simple personal landing page. I went about it as any average HN reader would, I googled what the best free way to deploy static html was. I went with Github pages + Cloudflare, as using S3 + Cloudfront did not justify mulling around with paying AWS. The ssl certificate is shared between several site, but oh well, it'll do.

I reused an old domain (vv.mk), that I had previously used for a Blogger blog, spent some time playing with latencies, as my page loaded in a second and a half, and Cloudflare didn't seem to cache it. Lesson: Cloudflare does not edge-cache html, and you need a Page Rule to enable it via their interface.

I learnt a bit about webfonts, and finally decided to host the fonts myself (on Github pages), rather than do a roundtrip to google, as it added about 300ms on average to page load, using a setup that would work for most recent browsers (https://google-webfonts-helper.herokuapp.com).

I confirmed I had a blazingly fast site via http://www.webpagetest.org/ and https://tools.keycdn.com/, and then it was time to make Google return it when people searched for my full name.

To my chagrin, this does not seem to be easy. I added my name to the title and the description HTML meta tags. I added the domain to the Google Search Console in all its versions (www, no-www, http, https), asked the Google crawler to cralw it and update its index. I added links to it to my social networks profiles where they hadn't been already added.

A day after, the Google index is not updated, my site, along with the description of the content that it had up to a day ago, is buried well into the 4th Google results page. My google searches on SEO of personal websites have been completely unfruitful. The 1st Google results page is still populated with useful info (most of my social network profiles), but it seems logical that a personal website would be returned as the first result.

Any tips?

edit: Most of the comments suggest this is due to the lack of content. While I accept this might be a cause for the bad ranking, the lack of content is quite intentional, the page is meant to be a sort of a personal landing page with links to social networks profiles, workplaces, etc.
I love that this post is quantifying results over actual data—a huge improvement over the speculative/anecdotal pattern that a lot of these analyses have.

But the conclusion that complexity and LOC both are higher in codebases with much unit testing... seems very weak. The complexity graph in particular looks very level, with the trendline driven almost entirely by the very low datum for 0-10%, and the LOC graph looks almost as suspicious. That low datum definitely demands further explanation before any conclusions are drawn on those two.

To me, it also inspires two further questions about the LOC methodology:

1) how sensitive is the measure to different coding styles? Does it include the method header? Does it include the closing bracket for the whole function? Does it include open bracket for the function when on a line by itself? Does it include any bracket on a line by itself? With the average method length ranging from 2 to 5, coding conventions on brackets could make a substantial difference, and if coding conventions correlate with testing philosophy at all (for whatever reason), that's a possible threat to validity.

2) Could these averages be dominated by a few larger projects? That is, is the average computed as

average (length of all methods, all projects)

or

average ( for each project, (average (length of methods)))

? If the former, larger projects would dominate the average. (True of all the other questions that involve counts and averages too, actually.)
The answer is fairly simple if we look at the examples available to us - health metrics and spending per capita of of all other first world nations.

The answer seems to be universal single payer health care.
That is a real productivity booster. I also enjoy the clarity and explicitness present in the framework.
Well there is always question of $ if running on Phoenix would let you save $100/month it's one thing if it's 100k/month things might look a bit differently and when it
is 1 mil/ month things that will change equation even more.
(This is not going into areas were Ruby is not a usable option such as massive real time apps etc.)
It doesn't have password option in Firefox 57
Couldn't have said it better myself.

I've had a lot of times where no bugs were found with huge amounts of unit testing over trivial code. It would have been easier and of more use to just do manual inspection (code review) with a bunch of people instead of writing the tests at that level, and instead writing tests at a higher level of complexity which involved more code/components.

In a perfect world you'd test all the branches and possible values but out there in the real world, if you aren't finding bugs with your testing and there are still bugs in the code, you need to be spending your testing "dollars"
(time/effort/talent) more efficiently.
If people always wrote software responsibly we'd have a great deal fewer interesting projects on GitHub
When I was a teenager my friends and I took LSD one night and one of the group took twice as much as everyone else and had a full blown psychotic episode, running around the house breaking things and screaming that he was going to kill me. He got off easy; he didn't remember any of it. The rest of us had serious PTSD. For two years after that every time I heard someone yell my pulse would accelerate and my palms would sweat. I don't bring this up to say that LSD is inherently dangerous, just that it peels back all of the defensive layers of abstraction that you live in day to day, so anything that happens to you in that state can have serious and long lasting consequences (good and bad).
DevTools Performance Monitor, Available in Chrome Stable
I mean this as nicely as possible: armchair speculation like this doesn't make sense to me. You're insinuating you'd be a better decision maker than an entire team of lawyers, executives, and accountants at a fairly prestigious place to work. Describing things as "bad accounting" or suggesting they're trying to make a "quick buck" just makes it seem like you lack the awareness to realize that you probably don't have all the information and haven't spent the same amount of time and effort in decision making as the executives at Tesla. You're not some lost genius in a world full of idiots. People are generally rationale actors, and the people working at Tesla seem pretty smart to me.
Daddy's First Ever Gift to Me Came in a Fancy Box, Just Like Your Spouse Did
Head of china internet censorship fall
I've struggled with similar issues. From what I've read, it's all about getting other more established sites to link back to your page. I believe the easiest way to do this might be to start blogging or host original content in some form.
I visited this cave a few times growing up. The neatest thing about the cave is after the section where you can squeeze through (if dressed appropriately and you want to) a tiny opening, in the large cavern beyond there is a tree stump in the middle of the room. I don't know who moved it there or how they moved it there, but it always was amazing to me as a child. See the pictures of the people covered in red clay to get an idea of how tiny the opening is.

I grew up about 40 miles away from this cave.
Ask HN: Rails resources similar to Django's “Two Scoops” and cookiecutter-django?
I'm interested in making a transition from python/flask/django to ruby/rails and I'm hoping someone could point me to a book and/or open-source project that covers alot of the common setups/best practices for a modern rails project, similar to what the subject resources provide for python's django framework.

Even the best 'learn rails' resources stop short of any real production-quality boilerplate/setups. The django resouces listed I have found invaluable to getting to a truly intermediate level of understanding and I would really appreciate anything like this to reference how things "should be done" on the ruby/rails side. Thanks in advance!

Two Scoops of Django (scroll to Table of Contents for list of what I'm after) https://www.twoscoopspress.com/products/two-scoops-of-django-1-11

Cookiecutter-django ( https://github.com/pydanny/cookiecutter-django ), production-ready new project boilerplate that covers everything from

* 12-Factor settings, security
* registration
* grunt/gulp setup
* sending emails
* media storage
* heroku deployment checklist
* serving static files
* delayed tasks with celery
* error/performance monitoring
Doesn't work with quantum
Road diet listed in the article was on my preferred way to work. They literally removed a lane of traffic in each direction to put a bike lane in even though there's a paved bike trail less 100 feet away that runs along the beach and up Ballona creek. People complained and they reverted back. Millions of wasted of dollars.
i think it depends on what you mean by "meddle". you can find helicopter parents in all walks of life (although near the bottom end you may find that some parents simply dont have the time to be this overbearing), but there are good and bad ways to be involved.

bad: johnny complains that he got a 'C' on his freshman writing seminar term paper, so you go to the professor to argue his case for him. johnny is stressed out because he is finding it hard to concentrate on school and find an apartment for next semester at the same time, so you take over the apartment hunt for him.

good: johnny needs to find a job, so you capitalize on your extensive network of successful friends and colleagues to put him in contact with people who might give him an interview. once he gets the interview, it's on him to prove his worth. or, johnny just transferred to a new school and his transfer credits are not immediately accepted so he cant register for any useful classes that semester. the counseling people tell him it will take a few weeks to evaluate his transcript and registration will be closed by then, so he may as well give up and start planning for next semester. luckily you happen to know the dean, and the process is expedited so johnny can actually make some progress that semester.

the key is to distinguish between important challenges that the kid can figure out themselves (with some work) and structural obstacles that are simply insurmountable without the application parent's resources/experience. helping excessively with the first will result in you raising a manchild. helping with the second can actually give your kid a time advantage over their peers that doesn't hamstring their development.
I graduated at the end of 2005, 2006 was my first full year of employment. Since then I have had 8 full time jobs.

Shortest stint: 3 months, I left because what I was hired for never actually happened.

Longest stint: Almost 4 years.

My current job just clicked over 3 years.

Edit: Also I'm living and working in my third country now.
Yes it does. I wrote the terminal program. I know what it does with fonts.
Ask HN: Any Twitter engs in the house? We need help fighting bots in ZA
Hi,

I'm from South Africa, and we have bad propaganda and lots of malicious Twitter accounts making Twitter an unsafe place.

Are there any Twitter engineers that can fix Twitter's manual block list upload? It's been broken for months, at least when you upload a CSV with a large enough list.

We're using various techniques to spot 'Gupta' (accounts we believe are being sponsored by one of the families complicit in large-scale looting of our resources) Twitter accounts.

Some accounts are automated, we suspect being run from India (various mistakes by authors of tweets exposing their location), while some seem to be run by South Africans that are being paid by this family.

We've struggled to get Twitter Support to help us, with a friend of mine losing it a bit on the DM [https://twitter.com/Arfness/status/934850071367168000].

We're training a TF model to detect these accounts, and we tweet their activity under #GuptabotKPC, but all of this doesn't help if users are unable to block these accounts.

Please help
What if alcohol is legal at the moment, but society is making it less and less legal, possibly outlawing it in far future?