skysight-inc/HackerNews huggingface dataset:
"Vibrant cultural life" is a function of more than just city size. Smallish towns I've lived in (5-10k people) have far more vibrant cultural life than the large suburbs I've lived in (because in the suburbs, people just go to the nearby larger city, but that's simply not an option in small towns). Just to pick one random example I'm familiar with, Burlington, VT (~40k people) has a great cultural scene largely because it's more than 100km from the next larger city.

Nitpicking aside, I agree with the general thrust of your argument, especially point #1.
Not really that relevant, but it always sort of bugs me when people use the `kill` command with numbers instead of symbol names. I think it’s the programmer in me getting scared of “magic numbers”, but I find it much nicer to be able to write `kill -KILL <pid>` or `kill -HUP <pid>` than remembering all of the numbers.
Lots of good advice in here. My 2 cents:

1) Don't worry about the future. Unless your city is really, really small, there will be other work for data science people.

2) Don't worry about your record or questions about why you were let go. You can always plead politics. It's a big firm, and people know there's politics in there.

3) Don't focus on the boss. Your new boss doesn't want to hear that you're uncooperative. Just stick to the politics line (boss couldn't get the budget for our group, blah blah).

4) Why on earth would you be blackballed? People do not generally use their networks like this, save for the closest friends. Have you ever looked at LinkedIn? Every post is happy happy. Or anti corporate politics.

5) Definitely start looking for a new job. It won't be strange why you've suddenly got a lot of half days or sickies.

6) Get a lawyer. The angle with the boss violating policy could help you. Also lawyers are generally useful in confrontations.
I agree. Having a scrollbar as a percentage completion indicator is a very nice thing. I can also highlight the text on the page where I was at in the likely event I get distracted and have to move on to something else. At this point, I do this out of habit on any article longer than a few paragraphs.

Side note, if your site pops up a stupid SHARE THIS ON FACEBOOK AND TWITTER when someone highlights text, I most likely won't read your articles. I didn't read this one because Medium does this; SBNation articles do this, too and my browser now loads custom Javascript on their pages to remove it. It's distracting and serves no real purpose, except to take me out of my flow of reading.
This is an amazing article, if you get to the heart of it (though be warned, that requires actually reading it).

One of the amazing insights: new information is a drug. It causes a dopamine rush. The influx of all this new information, alerts, everything tugging at us every day is the new legal high, and we're all addicted, with thousands of external entities profiting off the act, dealing out notifications.

I highly recommend reading it fully!
Most of these implementations actually kill all processes in the namespace, not just init. First, there may not be an init (the root process could be the service, which is actually a best practice with respect to containers); and second, the signal may not be propagated to its children, especially if a non-trappable signal (e.g. SIGKILL) is sent.
They also know the laws and the politics of the company much better than you so you are playing on their turf.
I don't understand your comment. Sorry. Could you explain?
The X Window System architecture solves a specific problem - allowing clients to use graphical applications no matter where the app actually runs. This was important in the 1980s and is still worthwhile today - no matter how much compute power you can stash under your desk or wear on your wrist, you can cram orders of magnitudes more into a data center. Having a uniform interface that's independent of where the heavy lifting actually happens is a crucial accomplishment for X, and throwing that away with the focus on Direct X is ultimately a mistake.
Does anyone have any recommendations of books that might pair well with this one in the math/data/statistics space? Thought I might pick up a few books and score some free shipping.
Yeah, I second that.

I used to think it was important to "tell the truth" by which I meant saying the things I thought were important to say. In the end, I recognized that was more about me and my feelings than anything.

Now my goal in bringing up some unpleasant but important thing is to make a difference. If I'm going to make a difference, saying the truth isn't the important thing. It's getting somebody to listen to the truth. That is definitely an art.
But why? What does this get him?

In two years (say) he will be interviewing somewhere, and sitting across from him will be the person that had to deal with the aftermath of that 5 minute patch. Or, it could be the person that had the pleasure of working with his refactored code. Which situation is better for him?

Not to mention that this situation is not the fault of the company or his coworkers. Why should they suffer?

I don't see a single thing that this attitude will accomplish other than "vengence", which in my book is something to avoid, as appealing as it may seem at dark moments.
I haven't yet read the book but I did try installing the Mozart system in my system and I had a bad experience about it. I remember seeing some segmentation fault error before giving it up.
Easier (and bending the rules a bit):

#include <iostream>

constexpr int f(int line)
{
return line;
}

#define f() f(__LINE__)

int main(int argc, const char * argv[]) {
constexpr int x = f();
constexpr int y = f();

std::cout << "x = " << x << "; y = " << y;
return EXIT_SUCCESS;
}

Also, I don't think the language designers required

"This lack of dependency must inherently mean that it will yield the same value upon each invocation having the same set of arguments"

to be true. http://en.cppreference.com/w/cpp/language/constexpr only states:

"The constexpr specifier declares that it is possible to evaluate the value of the function or variable at compile time."

The draft of the C++ standard on my system states that as follows:

"Certain contexts require expressions that satisfy additional requirements as detailed in this sub-clause. Such expressions are called constant expressions. [ Note: Those expressions can be evaluated during translation. — end note ]"
Human landscape Christopher Alexander describes looks disturbingly like earth society in "The Status Civilization" by Sheckley, and that's a dystopia.
I had been using Debian-based distros since 2010 -- Debian itself and the Ubuntu. Switched to Arch a few weeks ago and it's been a quite nice experience. While installing, I wrote a brief installation outline (based off of Arch Wiki); if someone is interested, it's available at [1].

[1] https://drive.google.com/file/d/0ByEPyxMys7A6T19Qc25JWTNKRE0...
If they make a worse product, then in the long run, they get more customers...
and the author seems to be a student - id take that criticism more seriously if it was from some one with experience of big data.

BTW I used MR back in the 80's on the then largest prime computer cluster for BT
RactiveJS – theguardian.com's blueprint generating template-driven UI library
Google is indexing apps and prompting an install from the SERP when they return in-app results. I doubt that it's as effective from an SEO perspective as having a good mobile website, but it is supported.
What would be your ideal programming language?
I find it very difficult to read Java code because it tends to be so long-winded and many-layered.
"There is no room to expand without replacing something that’s already there. Since few of the Victorian residences that give the city its character are taller than three stories, housing is perpetually in short supply."

The problem isn't yuppies, it's zoning.

San Francisco residents and municipal government are more interested in preserving old buildings than increasing housing supply, then complain that prices are going up? Well yeah, Supply < Demand.

In Miami, we had a similar problem: the booming financial industry brought in yuppies that threatened to displace the Cuban immigrants that give the city character. So the city simply turned the area around the financial firms (Brickell) into a bunch of fancy high-rises.

I'm sure there were plenty of cool old buildings in Brickell. But the municipal government compromised and Miami is better for it.

[1] http://marketurbanism.com/2015/04/20/travel-update-a-tale-of...
It's hard to say what is better - oftentimes when you see a large stack trace for an error, it can be difficult to determine where the offending line is, especially on first glance. Personally, I think I agree with the author, but PHP 7 does look to give more information, which can be better in some situations.
2,500 dead so far, that's bad. http://www.theguardian.com/world/2015/apr/26/aftershocks-hin...
There's no chance of too much contrast on an LCD displaying dark text on a light background. People have no trouble reading high quality print in sunlight, and that has much higher contrast. Grey text is harder to read, as demonstrated by the studies cited. Eg. this one finds pure 100% black on 100% white is most legible:
http://www.laurenscharff.com/research/agecontrast.html

Black text is the default, and changing it to grey only makes things worse. This is superior web design to the vast majority of sites out there:
http://motherfuckingwebsite.com/

But note that excessive contrast can harm legibility of light text on dark background (although that color scheme is less legible, so it should be reserved for cases where it has real benefits, eg. photo editing software, where it makes it easier to see shadow detail).
I've never used Flipkart as I'm not in India, but just browsing to their website seems to work on Firefox on Android. I just check the "Request Desktop Site". It's a bit janky but doesn't seem unusable.

Though I agree, taking business elsewhere is a better response to this kind of privacy-invasion. (And Google should shoulder a ton of the blame here, as they not only allow but encourage this kind of shit.)
Perhaps you could share your experience? Rather than, say, implying without evidence that everybody but you is an idiot.
Can this be ran in an emulator on a PC?
Doing the right day made me code 10 hour days for two months just to keep up.

The trick is to figure out if its worth it or not, that usually boils down to the the employer.

It wasn't worth it.
Only the true Little Schemer fans will understand my comment.
Nice way to configure projects in Java
That's impressive! I'm skilled in math but a novice programmer, so I've not gotten far (yet! still hopeful).
Whenever I real long-form books, my mind will occasionally wander into other areas, while my eyes keep reading on. I'll have to continually go back and re-read what I feel like I've just read. This isn't just an internet-fueled lack of attention, it's how I've always read, and how I image most people read most of the time.

The difference is with a website, you can go investigate your immediate thoughts rather than committing to the re-read. It is lazier, maybe. It's probably not great if you want to learn something in depth and stay focused on it for long periods of time.
Ask HN: Companies still offering summer internships?
It's a bit late in the season, but I was wondering if there are any companies still looking for interns for the summer. Personally, I'm in southern California, but I can travel. Anyway, I figure I'm not the only one looking, so this can be an international question.

Also, what are some good places to look for summer work in programming? I've used internmatch.com, but I'm sure there are good opportunities that aren't there.
I couldn't find the paper, either. But I did find a different paper, which is on much the same topic, and which has multiple authors in common with the paper mentioned in this post:

"Mindfulness-Based Cognitive Therapy to Prevent Relapse in Recurrent Depression", Journal of Consulting and Clinical Psychology, v. 76 (6) (2008), pp. 966-978.

Link to PDF: https://www.radboudcentrumvoormindfulness.nl/media/Artikelen...
> how many of you actually read through the entire article, WITHOUT checking your email, or flipping to twitter/fb to tell the world about this good article you just found?

Err, I don't know, but I was very surprised by reading all the comments (and original blogpost) implying you can't handle reading a 3000ish signs post without any interruption.

Of course, I see that we are "jumping" frequently, like every ten minutes or so, to find "brain fresh-air"; but if you have that much trouble to focus on a so simple thing like reading a simple article, maybe there is something more serious that you have to check without waiting.

(…honestly, I don't know how you can work in any environment with such an extreme rythm of "brain jumping".)
For your example bug I think you're wrong that static types would have made the bug impossible. What you need is strong type checking and a lack of auto-conversion. For example, in Java, this compiles:

int[] bodies = {1, 2, 3};
for (int body : bodies) {
String formatted_body = "<p>" + body + "</p>";
callMethodWithStrArg(formatted_body);
}

And if in this hypothetical case it was previously a `String[] bodies` and a `String body`, I bet a lot of programmers would use an auto-refactoring tool because "static types and auto-refactoring go together for being confident in changes like apples and pie" and I bet the error wouldn't have been noticed even at review time. God help you if you're using a static language without generics that has implicit type conversions. In Python, though, this raises an error:

bodies = [1, 2, 3]
for body in bodies:
formatted_body = '<p>' + body + '</p>'

The error is: "TypeError: cannot concatenate 'str' and 'int' objects".

Dynamically typed languages still have types.
Graphene-based materials about to make Holograms a reality
How Apple Is Building an Ecosystem for the Body
Drones and Outdoor Sports Converge in Santa Cruz
The more I think about this, the less sense it makes. Defenders do not "think in lists" as if the lists represent their network connectivity, defenders keep lists because, like TODO lists, having a "list" of all their priorities helps them enforce them. Odds are that in a competent organization, the list's ordering will be based on the connectivity of the graph, with the critical nodes coming first. Or, at the very least, everyone's going to know which nodes are the critical ones, and given a power-scale graph distribution that's the vast bulk of what there is to know, because there are generally very few critical nodes unless you've gone way out of your way to somehow super-decentralize your network.

Assuming basic competence (i.e., neither blithering ignorance nor any sort of extreme skill), both sides are well aware that it's a graph. If the defenders have a list, well, it's because they have responsibility over all the things and the list is useful, because nobody is going to do something like "apply a patch" based on literally doing a depth-first traversal of the graph or something.
dark background, Light Background!, dark background, Light Background!

Scrolling trough this page made my eyes hurt, did nobody test the transitions when they set really dark and light backgrounds right after each other?
However in this case line 6 is not the problem in any way (as the grandparent is saying). Looks like a bug in the error reporting?
Does https://github.com/neovim/neovim not?
Ask HN: What's the most elegant way to add Redis to /etc/services?
I've already posted the question itself at #SO but maybe the hackers here can help in my quest for elegance - would appreciate responses either there or here.

Original StackOverflow thread: http://stackoverflow.com/questions/29833041/whats-the-most-elegant-way-to-add-redis-to-etc-services
In the basement with transhumanism’s DIY cyberpunks
It's pretty weak that they both don't fit on a standard duplex outlet without touching and canting each other.
Isn't Lynx 175,000 lines of code?
The dead Google employee should be the last person honored here. Sorry folks.
That's the classic joke from this book. End of first chapter, p. 13.
hahaha, awesome m8. your comment made my day. :)

the odds of seeing a thread like this on HN seem slim, and the odds someone here is familiar with one of my bands even slimmer.

i stopped playing with them in 2009 when i landed a gig in the startup world that was too hard to pass up, so unfortunately i wasn't actually at the show in the video. but it still means a lot to me to see it posted here. :)
Why should people suffer because of bad designers?
> .... NSA leaks info to your opponent(s) and/or media(loves destructive info already)... and suddenly your opponent comes by with it. In shock you go, "How did you get this info?!!!" Opponent says "...I have my sources..."

They already do something similar: it's called parallel construction. http://en.wikipedia.org/wiki/Parallel_construction
Legal counsel is for legal advice. They will also give you other advice if you ask for it, but that's not what they're trained in. I have a lawyer who is awesome, and who I've used for coming up on 15 years. But he only knows what he knows. I certainly get his opinion on business matters, because he has seen a lot of stuff happen. But I get opinions from other people, too. And in the end I go with my opinion, because it's my life, not his.
>Why would anyone, that has a choice in the matter, prefer a mobile app for shopping.

That's the clincher. No desktop, no choice.
One trend I don't like very much (in my very personal experience[0]), is that over the past few years I've seen a trend with not-quite-so-young children (ages 8-12) having more trouble navigating a basic desktop environment like Windows 7.

For an 8 or 9 year-old, that is fine. And navigating a file/folder system can be quite an adventure. But some of the older ones (10-12) lately are having trouble with finding the proper X (close) button when there's multiple windows (and sub-windows) on the screen. Or what minimizing does (the window is gone but it's not really gone? how will you figure out the restore button?). Definitely a tricky one is what the taskbar is for (most tablets / phones don't have that).

They do love it when I teach them "special tricks" like copy-paste with shortcuts, moving by word with ctrl-arrow. What NumLock does. And for some reason they all know "backspace", but do not discover the "delete" key. One kid, upon explaining it's like backspace but deletes the other way: "oh my god, this is so cool I'm going to use this EVERYWHERE!!!" (and I smiled and thought, yes, DELETE ALL THE THIGNS)

:-)

[0] I teach children at a volunteer's centre to do interesting/creative/technical/cool stuff with computers--anything that gets them enthusiastic that isn't YouTube or Minecraft--yes yes Minecraft is a very creative environment in a sense, but it's quite easy for them to revert to "consuming" all day long instead of "building/crafting". However I'm also aware that this is my own lack of knowledge, meaning I can't properly stimulate them to take on creative challenges. Plus they can't play (properly) without their own paid account (right?), making it a bit unfair towards kids whose parents can't or won't buy them an account (the volunteer centre itself aims to be almost-absurdly cheap, €20/year, attracting children from all strata of society).
No, the justification for HTTP/HTML is that the client required to use these platforms covers almost your entire addressable market.
> I support the NSA in siphoning off all the data, ...

... says the guy hiding behind a "stealth" startup.
http://magentary.com/kb/apply-supee-5344-and-supee-1533-with...
"Squirrel is difficult to skin."

You're doing it wrong (I was lucky enough to have someone show me this when I was young [a long, long time ago]).

https://www.youtube.com/watch?v=4c8OyexZ10E

I haven't hunted in years. When I was young a friend's mom would fix our squirrels with home-made biscuits and gravy .. good times.
Yeah. Back when I started as a sysadmin chroot jails with bind, qmail etc were all the rage.

I've seen them used in good and bad ways, but mostly the former. It's good to see something that actually solves real problems coming back in to use again. Added bonus, it's an extremely mature (from a tech perspective) way of doing things. Chroot jails have been around for decades.
I agree. In addition it might even save his job. If the 30 day period is a chance for employees to improve the manager might not find any reason for firing him if he performs really well.

You also show your evil manager and everyone else what a professional you are, even if he isn't.

I got fired once after 3 months at a company, without any warning or hints of my boss not being satisfied with my performance. I was completely devastated but decided to double down on my efforts for the period I had left. A week later my boss called me to his office and said that he had made a mistake firing me and offered me my job back.
(I didn't accept)
Well, the choice is to use a competing service that offers a (likely superior) desktop experience.
I don't think the author is arguing that that books are more accurate or more credible than other forms of writing. What the author is arguing is that books provide a different sort of experience than those other forms of writing.
There are such things as inexpensive data analysis systems.
I'd offer the example of the intern dataminer at the Potti lab which was found to have committed a particularly egregious form of model fitting and led to its erroneous use in actual cancer patient treatment: by splitting obs from the total study into fit and test sets to give perfect agreement with the already trained model. Here the impact on ethical issues - life or death medicine - was pretty high. The guy who quit personally sacrificed his medical-school career to draw his foot in the sand, and received empty thanks only years later from Duke [1].

In data science, ethical issues seem to be present in all the interesting applications. But the life or death impact is often much less, like Netflix movie ratings - where a public datamining competition was cancelled due to a compliance-based class action lawsuit for the potential to de-identify anonymized account data [2].

It's hard to where on this ethical spectrum your particular case lies. If it's something that effects others, quit and try to make things right. If it effects lawyers v lawyers let your boss take accountability for that decision and the freedom to make it.

[1] http://www.cancerletter.com/articles/20150109_1
[2] http://www.forbes.com/sites/firewall/2010/03/12/netflix-sett...
> I'm assuming parallelizing doesn't help enough :) Which it hasn't so far. So let me rephrase "so far, it makes no sense".

Not according to my numbers. And yes, we have measured the impact of parallel rendering specifically on power consumption on mobile. On real-world Web sites, not random microbenchmarks.
Ask HN: One large portfolio project; or multiple, smaller projects?
Currently transitioning from a Civil Engineering position into (hopefully) a front-end developer position. I currently know the basics of HTML, CSS, JS, JQuery, and a bit of Angular.

I was wondering, with regards to developing a portfolio, is it more impressive to have one larger project; or multiple, smaller projects?
If your results are highly counterintuitive
They just tweeted out that the decision is not final.
https://twitter.com/flipkartsupport/status/59245692561208524...