skysight-inc/HackerNews huggingface dataset:
Yea, it used to be generally true that "if you can connect them with a cable, they will be compatible." Ports were single-use, and if two ports weren't compatible, then they would be physically incompatible. If you could get a cable to connect two different ports, they would probably be compatible because who would make the cable otherwise, right?

Now we have something like your "omnibus" port in USB-C, so you have potential incompatibility at the port level and at the cable level, and no good way to tell what will work and what won't. The good news is you only have one port, but the bad news is you don't really only have one port.
Stopped reading this comment after "Gladwell".
Of course but if you're writing a web app who's only purpose, for example, is to talk to support staff for your company then having an offline mode is not really useful. If you're offline you can't talk to the staff, so all the app needs to do is fail gracefully. Designing it "offline first" would be silly.

I actually believe that >50% of web apps probably fall into this category, where they really cannot function properly offline because the online-ness s core to their functionality. That's why they are web apps in the first place.

Now if you are designing a web app that is a web version of a more traditional native app like Google Docs or something, then sure offline first makes sense. But I don't think that's the majority of web apps.
Bummer to see Razer and Dell go with the half-height arrow keys.
picking a benchmark is actually quite hard

adjusting for net and gross exposures and volatility is makes things more complicated
One way to think about this is the objective is to win a bunch of upcoming state elections and retain power in the next national elections.

NO ONE has ever before in Indian politics made such a bold move. The Modi government made this move a couple of months before elections in the biggest states and suddenly the gossip amongst common folks in the street is all about the attempts by the corrupt rich to desperately get rid of old banknotes, how bankers are being arrested etc. etc. and not about the political stance of the party which some castes and the minority community have historically found alienating.

From what I observe the corrupt in a soup appears to give most common folk much more satisfaction from schadenfreude than the inconvenience they are bearing
Wow, cool to see this resurface again! I wrote this ~4 years ago and the web has come on along way in that time. New features such as service workers are definitely making offline a lot easier.

On the subject of progressive enhancement, I'm a huge advocate and believe it is in general the way todo content sites. As has been pointed out above though, some use cases do require a different approach. For context this was post was written after working on a number of HTML5 apps that were wrapped in Cordova/PhoneGap.
I understand, I simply wanted to add a little clarification on the right to anonymity and how it could apply in the case of the OP.

I agree that anonymity has been a key part of the US political tradition since before the formation of the Union but it's important that it is codified into law and the judicial branch is allowed to review it.
صور+مساء+الخير
I would love it. Unfortunately, when I talked to Apple about it at the Apple Store they said "be careful, it can void your warranty and there are a lot of poorly made batteries out there."
Is this for any company or just Uber?
Environmental Understanding for Augmented Reality
Yeah, heavy transactions like purchases need special care, but that's true in general. At least you'd want a confirmation from the user.

In our case, a simple command queue solved the vast majority of use cases, and the corner cases were not disasters but at worst somewhat confusing.
Quick question! If we step back from the thunderbolt/displayport/displayport++/usb-c, distinction, which you use on the left-hand side of your arrow... when you wrote:

>"As far as I'm aware there is no reliable USB-C -> HDMI adapter on the market that works with the MBP 2016"

, do you exactly mean the broader statement (I've reworded what I thought you mean) :

>"As far as I am aware there is nothing that plugs into a MBP 2016 that gives a reliable HDMI port that I can connect with a simple HDMI cable to any output device that takes HDMI (screens/projectors/TV's/etc)"?

Is that what you meant? In other words, there is nothing you can carry around, together with an HDMI cable, that let's you plug the MBP 2016 into anything from a TV to a screen to a projector etc (as long as they take an HDMI input) without a chance that it won't work?
Can you name specific areas you think are better? (I'm not challenging your statement; I'm just curious.)
To what extent have others outside Crowdstrike confirmed their findings? They seem mainly based around commonalities in what is understood to be a propriety malware platform/toolset attributed to the Russians. Like a Metasploit-Stuxnet combo? I find these two statements from this vs. the DNC press release to be odd:

"X-Agent is a cross platform remote access toolkit, variants have been identified for various Windows operating systems, Apple’s iOS, and likely the MacOS. Also known as Sofacy, X-Agent has been tracked ..." [1]

"FANCY BEAR (also known as Sofacy or APT 28) ... This adversary has a wide range of implants at their disposal, which have been developed over the course of many years and include Sofacy, X-Agent ... and even malware for Linux, OSX, IOS, Android and Windows Phones." [2]

So, is Sofacy the name of the group or their malware platform? Are Sofacy and X-Agent the same tool, or separate? Is X-Agent a metasploit-type tool or a platform-specific malware for various operating systems? Has the security community in general seen this evidence and agreed on these findings, or is this primarily Crowdstrike's own little expedition?

[1]: https://www.crowdstrike.com/blog/danger-close-fancy-bear-tra...

[2]: https://www.crowdstrike.com/blog/bears-midst-intrusion-democ...
Sweetgreen will stop accepting cash payments in 2017
Cool.
string.Template might be what you are looking for.
Maybe so, but this is the wrongest way to post about that here. It's all of uncivil, unsubstantive, and name-calling.

Instead, please make your point thoughtfully and substantively, or—if you don't want to do that or don't have time—just don't post anything. That has the desirable property of taking even less time.
Note that it doesn't say that containers are secure. It just implies that they can be used to help with security practices like principle of least privilege for processes.

In other words, containers are better than running normal processes for security. Not better than running a VM.
Relying on fertility to prop up the welfare state was never a sustainable model to begin with. The adjustment will not be pleasant whoever is left in 200 or so years will be a lot better off because of it. To say nothing of all the non-human species with whom we share the world.
Yes I don't understand why more people aren't talking about this.

Because it's a subjective matter of personal opinion and not all people everywhere have identical opinions. Yet it is often presented, especially in places like HN, as an objective opinion that the new MBP is 100% completely, totally, permanently and irrevocably unusable for any person, for any use case, in any logically-possible universe.

Perhaps that is not the case, and instead it is the case that there are things you dislike which other people like.
The idea of tracking people by phone was definitely out there in 2007; Heck I'm surprised people were surprised about "stingray" type devices in Cop cars which have been depicted in movies since the late 90's, especially since 'Training Day' they actually used a branded Stingray one....
It's not my version; and I find more often than not is that people hear what they want to hear.
I definitely concur re: Spinoza whose work is still controversial and fundamental to what is regarded as "modern" thought. HN readers are likely to appreciate the logic of his work in its geometric proof form, though a number of translations are freely available on the web. Spinoza's Ethics was highly influential on philosophers and scientists of the subsequent centuries, Einstein among them as he openly acknowledged.
Agreed. But, seems odd to mention "principle of least privilege" when unprivileged containers aren't the default :)

(yes, I get those are two different scopes of the word privilege)
I've strongly believed for a while that a very large percentage of youtube views are children, say under the age of 6.

I've observed children on tablets ... they will watch the same video north of 100 times ... it's what kids do.

Then you look at the successful youtubers; people who do things like unwrap gifts or who make things I perplexingly am not entertained by. When I put it in the context of "this is watched by 5 year olds" everything makes sense.

I was talking to someone at a company that tracks these things, she said "no, it's actually women in their late 30s and 40s". This is even more evidence. They are on their mothers devices. It's not like women in their 40s are watching 60 variations of '5 little monkeys jumping on the bed'.

Multiple variations of this nursery rhyme have viewcounts over 100 million. (https://www.youtube.com/results?sp=CAM%253D&q=monkeys+on+the...).

I'm waiting for the commercials to be kids cereal and action figures, but somehow that hasn't happened yet. I get a Capital One credit card ad, logged out, in private mode, watching a nursery rhyme video. (hint hint, million dollar business right there).
he means got big ;)
Stdout Buffering
Sorry, you're wrong. First, it's asterisk asterisk locals(), they don't show here for some reason.

Second, the parser at compile time pulls out the actual expressions and fills them in to a .format call. It _does not_ use locals!

... and your worries about security are not useful, you could make the same statements about an entire code base.
Me too. Worse, at least for as recent of clang and GCC that I've tested, it doesn't warn when you do things that -ffinite-math-only makes tautological. So "if (x!=x)" happily compiles to nothing without warning when x is a float. (You get a warning if using integers)
I have yet to use this for anything, so I can't vouch for it's quality, but it seems to be exactly what you are looking for.

http://www.keycloak.org/

Website blurb:

Add authentication to applications and secure services with minimum fuss. No need to deal with storing users or authenticating users. It's all available out of the box.

You'll even get advanced features such as User Federation, Identity Brokering and Social Login.
some historical context...the problem is that the 2 in the 2 and 20 hasn't come down as asset gathering exploded.

When hedge funds first started the pools of capital were much smaller, and the management fee was there to keep the lights on, and provide the cash flow stability to pay top people etc. (essentially cover overhead). As AUM exploded, especially at the largest funds, management fees became a profit center...this has changed a lot of incentives...
By itself there's no interpolation, which simply means it's not an expression.

But when you do: "{foo} {bar}" % {"foo": "blah", "bar": "blooh"}, this is string interpolation.

Is there a definition, anywhere(even a book would suffice), where it has your strict definition of what interpolation is?

I'm not trying to undermine the usefulness of the interpolated expressions and what you said. I just really want to know if the definition is so strict.

UPDATE:
http://rosettacode.org/wiki/String_interpolation_(included)

I think that you are the one who's making the definition so specific and strict. I can't find a single source on the Internet that agrees with your definition.
As far as I can tell there are no great options with all the necessary features - extensible API and GPU support especially. My team is Node based but went with Lua for the ML parts because of this.
> it is hard to control the amount of money the three receive

Since it's very hard to know how much that should be, we just inject some cash into the bottom of the market, and let the market distribute the cash.

The debate about giving cash vs. medicine is that cash moves around the target community and stimulates lots of things, rather than going direct to a multinational pharma corp's Swiss bank. The risk is that too much of the cash is absorbed by bad actors.

As usual, it's a complex trade off and maybe a bit of both would give best results.
One compiler I've encountered is SDCC. But think about new compilers - they shouldn't have to implement non-standard features to compile portable C. #pragma is non-portable.
It depends on what you mean by "rich". If your goal is to be a billionaire, then yes, luck plays a major role. But if you simply want to get to the 99th percentile of income/wealth, that can be achieved in a pretty replicable manner. Study hard in HS -> Go to a good college -> Work your ass off for a good GPA -> go do a MBA/JD/MD/CS degree at an elite university -> get a six figure job and work your ass off. Not much luck involved there.

Interestingly, you don't need to have mensa-level IQ to achieve the above either. Hard work and grit is far more important, which is what the article is saying as well.
Show HN: Write ajax requests with template literals
I just got my new Macbook Pro 15" a few days ago. Keyboard will take some time getting used to, but I'm still able to average 130 WPM on 10fastfingers.com.

The trackpad is probably going to take the longest for me to adapt to. Not the palm rejection, that works fine for me. Rather the tactile feedback of it is so different from my 2012 Macbook Pro. It's very shallow and I feel like it should be used more like a touchscreen click (single tap to left click) rather than placing my finger on it and pressing into it, as the shallowness is weird to me. I have it on medium-depth click right.

Battery life isn't too concerning to me since I'm mostly plugged in, but I will test it this weekend when I'm on the road and hope it's at least 6 hours.

Also, why are all media outlets reporting on what Consumer Reports has to say? Why is Consumer Reports regarded so highly? Media outlets don't report on what CNET or ArsTechnica have to say about the new MacBook Pro. It reminds me of media outlets reporting on what the BBB.org has to say.
The Resolution of the Human Eye Tested Is 10MP
While I use chrome for debugging most of the time, I've had a good experience with Safari as my "general use" browser, and found that battery life does tend to be better on MacOS compared to Chrome, this particular issue notwithstanding.

Also, I believe that by default Chrome now sends your browsing activity to Google for ad targeting (https://mobile.twitter.com/phlsa/status/754337623964053504/p...).
A very detailed survey regarding the demonetisation though slightly judgemental.

https://decipherdemon.blogspot.in/2016/12/a-monumental-disat...
Well, first it's not a "suite" - it's just an app. In the industry we call it a Rich Media Editor. If "rich media" seems too old school, you can call it an HTML5 Media Toolkit.
> I find it completely unbelievable that anyone who read Superintelligence could possibly assert "The Argument From My Roommate" with a straight face

Pretty sure that was a joke, and zeroing in on it is a pretty bad violation of the principle of charity. A lot of the other items in the talk (e.g. "like the alchemists, we don't even understand this well enough to have realistic goals" and "counting up all future human lives to justify your budget is a bullshit tactic" and "there's no reason to think an AI that qualifies as superintelligent by some metric will have those sorts of motives anymore") seem to me to be fair and rather important critiques of Bostrom's book. (although I was admittedly already a skeptic on this)
Every one knows this, its not news...

As to the boasting about performance, hedge funds are not allowed to disclose their performance to the general public

Additionally, while some hedge funds might not be very different from a mutual fund, there are huge differences in what you can do in a regulated vs unregulated vehicle
Not complete without mention of Terry Pratchett:

> The UU Professor of Anthropics had developed the Special and Inevitable Anthropic Principle, which was that the entire reason for the existence of the universe was the eventual evolution of the UU Professor of Anthropics.

> But this was only a fomal statement of the theory which absolutely everyone, with only some minor details of a `Fill in name here’ nature, secretly believes to be true.
Catacombs: 3D reconstructions from YouTube videos of abandoned malls
How about we fix IoT before it blows up the goddamn internet before we come up with solutions to non-problems? /rant
Morocco’s NOOR I Powerplant a Beacon of Hope for African Energy
Haven't met many libertarians who complain about regulatory capture.

My complaint is that this article is a distraction.

People who deal with hedge funds (especially public pensions) are loaded with consultants, attorneys, and analysts. If they get hoodwinked, it is probably due to their own lack of due-dilligence.

I think the effort would be better spent covering one of the many cases where ordinary people without consultants, attorneys, and analysts are in a "Heads We Win, Tails You Lose" situation.
Institutions who deal with hedge funds (especially public pensions) are loaded with consultants, attorneys, and analysts. If they get hoodwinked, it is probably due to their own lack of due-dilligence.

I think the effort would be better spent covering one of the many cases where ordinary people without consultants, attorneys, and analysts are in a "Heads We Win, Tails You Lose" situation.
Decipher the (Indian 2016) Demonetisation
"objects are sent and received as one big list keyed by guids, not as a tree"

That's an interesting pattern I've not heard of before - any links you could recommend for more details on it? It sounds really useful for moderate sized data sets.
I would throw in some guidance that says "don't trust anything the client side sends to you". Developers used to server side MVC could expose themselves to client-side manipulation that open up some security issues.

I remember some early ecom cart implementations where you could "name your own price" as an unintended feature.
SF/Oakland tops the list in worst roads in metros over 500k pop:

http://www.businessinsider.com/the-worst-roads-in-america-20...

That there are bad roads elsewhere? I believe that too :).

The thing is it shouldn't be topping any list like this, with the amount of money and lack of north eastern weather.
Creation Suite is the Adobe brand for their suite of creative software tools.
It's coded language.

See: 'illegal immigrant'. The phrase could, and in a literal reading does, mean anyone entering the US illegally. When politicians talking about deporting 'illegal immigrants', it's understood that they mean illegal Mexican immigrants.

In the same way, 'gibs' could, in theory, mean any government handout. However, if you examine its specific usage you'll see a clear pattern.
In addition to being UB, the example doesn't illustrate the issue: arrays in C are not first class as they can't be passed by value and can't be assigned. The decay-to-pointer thing that prevent this regularity has nothing to do with asm.
It's amazing both:
1. How much about the Native American history we still don't know/understand.
2. How little of what we do know is taught in schools in the USA. I don't think I any of my HS classes went into any detail about pre-contact North American history.
Please comment civilly and substantively—without personal attacks—or not at all.

https://news.ycombinator.com/newswelcome.html

https://news.ycombinator.com/newsguidelines.html
I read that apparently it is impossible to add a true lambda functionality to Python because of the whitespace blocks thing. There's intentionally no way to block multiple statements together except to have them on multiple lines sharing an indent level, which means there's no way to write a lambda longer than a single expression and have a syntax for it that makes sense.
A lot of this is simple scheduling pattern differences.

As an example, my no-kids friends typically schedule things like dinner parties starting at 8:30pm or so. The ones with kids would aim for 5:30 or 6 instead.
I get that. I'm just saying that it wouldn't look as bad if they just didn't ask for the permissions upfront.

If I'm about to take a picture for the first time using it then I'll understand it asking for camera access.
The hedge fund still needs to be compensated for their time and skillset. In my life, time is the most precious resource I have. This investor's rant has a paradoxical comical impact for a rich man's tragedy.
I'm a big fan of command queues, but if there is a chance of a server-side failure that can't be realized immediately on the client (e.g. an edit conflict with a different user editing a same piece of information), then I find that surfacing those errors in a meaningful way can be difficult and frustrating for the user.

By the time the client has synced with the server, the client could be doing something completely unrelated in an entirely different part of the app. Explaining to them that "the thing you were editing two hours ago has an issue, go here to resolve it" can be tricky.
Show HN: AnyChart Integration Template for Golang and MySQL – Data Visualization
An Introduction to Recursion: Part 1
There's always been multiple ways to do something in Python, just one best way, and the best way has been known to change between versions.

See: list comprehensions obsoleting most uses of map() and filter(), then generator expressions obsoleting any uses of list comprehensions that don't need a list object

Here's four ways to do the same thing.

Naïve way:

foo = []
for x in bar:
if meets_some_condition(x):
foo.append(transform(x))
do_something_with(foo)

With map/filter:

do_something_with(map(transform, filter(meets_some_condition, bar)))

With list comprehensions:

do_something_with([transform(x) for x in bar if meets_some_condition(x)])

With generator expressions:

do_something_with(transform(x) for x in bar if meets_some_condition(x))

All four of those are valid in modern Python, but the latter and only the latter is the right way to do it.

Before Python 2.0, either map/filter or the naïve way was the right way (TBH, I'm not familiar with what was considered right in the old days). When Python 2.0 came out, list comprehensions became the right way. When Python 2.4 came out, generator expressions became the right way. The right way depends on your version of Python.

Or for that matter, look at old-style classes vs. new-style classes. When new-style classes came out, they immediately became the one and only right way to do classes, but old style classes still stuck around for the rest of the 2.x series.
> so just do nothing with your life? never try anything?

That's not the point. The point is that many fail, the success / failure ratio is low. Period. No need to be judgmental past that. Or resort to namecalling.

If you think someone is trolling. Don't reply. Ignore them. Heck, report them.
PSA: Don't get this from the linked landing page, and don't trust the hash. It's an insecure page. Luckily looks like they do have a valid Let's Encrypt on https://eijah.com/.
I remember overhearing a Best Buy employee describe the FireWire port on the back of an iMac as a Sony proprietary camera connector. Not sure why I didn't correct him.

Apple rarely goes proprietary with their ports. The original 30-pin iPod port. Lightning. ADB in the mists of time.

All of which were I believe better than what was available.