skysight-inc/HackerNews huggingface dataset:
Semantic patches for use with Coccinelle
C interop is quite easy from .NET languages. Here's a simple example in F#:

https://msdn.microsoft.com/en-us/library/dd393785.aspx

That example is a bit Windows specific, but it works similarly with Mono on Linux and OS X:

http://www.mono-project.com/docs/advanced/pinvoke/

Those examples there are in C#, but PInvoke works almost identically in F#.
Sadly only personal experience and rumour.

I work in an office full of Mac users, and I'm among maybe three people who don't use Macs for work at the company.

All of the non-Apple monitors in the company are not correctly calibrated and lack colour profiles (and are by default not configured correctly either).

I recently bought a colorimeter, and calibrated all of my displays(including my external displays); after doing this I realized that the colour on my monitors most closely resembled the default colour response on the MacBook Pros in the office.

My colleagues(who admittedly didn't understand colour calibration at all, even the designers) are under the impression that Apple profiles and calibrates the panels at the factory(and presumably ships custom profiles for the factory state of the panel).

I think it's probably cruder than that. It's likely that they ship one profile for an entire family of panels, which gets it closer but doesn't account for time and manufacturing variances.
I see this videoclip as a great introduction to neural networks and genetic algorithms (something I didn't know existed in ML) rather than a simple "computer completes videogame level". You're probably right nonetheless (I can't remember the mechanics of this mario game) :)
Flight.js: An event-driven web framework, from Twitter
For Apple it's not exactly "groups", unless you want your friends having access to your credit card to buy apps on the store.
Red could potentially become a really good platform for popularizing lisp since it's cross-platform, have a logo-like syntax and is compiled fully to machine code. Someone should write a Go to Red transpiler as it would be a really a good way to increase the amount of libraries Red currently has since Go seems to be a really good language to target due to its consistency and simplicity. My only gripe with it is that it feels too "big".
It's my understanding that writable DVD technology is so marginal that even the best media, MAM-A Gold, isn't worth trusting your data to, although by now we ought to have long term info on how good or bad it is in practice.

Hmmm, and it looks like MAM-A Silver and Gold CD-Rs are what we're going to have to switch to. Previously they weren't judged as really needed given the quality of Taiyo Yuden CD-Rs, but if the latter aren't available....
This Should Be Fixed
Yes I know that Chinese and Indians do not have a civic sense and have a resistance to follow queues. This is again not some absolute thing, but a result of their upbringing. Given enough time in the new place, they will earn its social rules. The snap judgements made in such cases do more to harm the case than help it. For example, American waitpeople and airhostesses are often rude to me just because I am Indian. Forget rude, 3/4 times at a restaurant we have to ask for a new seat, because they seat us at the worst spot (near kitchen, toilets), I suppose because "Indians don't tip well". Guess what, if you put us in the worst seat in the restaurant because we don't tip well, we won't!

In any case the comment I replied to specifically talked of social graces mentioned in the article, ie. saying please and thank you.
I could not find a single example of "permissively licensed software" in there. Nor do in think one exists. Remember, this is the Microsoft that would not touch open source with a 10-foot pole.

MS did embrace and extend standards, but that is a very different thing from code.
Reimagining handwriting in a digital age
I was in Vietnam in May for about a month, so some anecdotes:

I was amazed by the amount of iPhones there. It seemed to dominate in usage over Android. I was expecting to see a lot of 80 USD ShenZhen Androids, but no... either you have a dumb phone or an iPhone in Vietnam.

And iPhones are not just for the rich kids. People having about a dollar or two of disposable income per day are using (second hand?) iPhone 5+ models. No laptop, just a phone. I was traveling with my brother who still uses his iPhone 4 with iOS6 which was drawing some laughs :)

Social media wise: the people I interacted with all used Facebook a lot. Both Gmail and Yahoo for email. Twitter/Instagram, not so much. Snapchat was unheard of. I expected WhatsApp to be popular, but not so much.
Ping was a complete failure but apart from that, what else? iTunes was their only other attempt in the "war" and it absolutely dominated.

Regarding reach, inventory and ecosystem - I think Spotify should be very worried by Apple. The iTunes library is one of the biggest and it seems that most of it is available for streaming. Apple Music will be coming preinstalled on all iOS devices (with three months of the service for free) and, to top it all off, it'll be available on Android too. I'd be very concerned if I were Spotify.

What's more, iOS users tend to be some of the more valuable customers, and I wouldn't be surprised to see a higher portion of Spotify Premium subscribers on iOS than other platforms. I suspect that Spotify Premium memberships will take a big hit after it launches. I know I'll be leaving for it.

To me, Spotify is a perfect example of the power of a good UI (or rather, how damaging a poor UI can be). I have subscribed to Spotify since pretty much the beginning - for years and years - and yet I am completely disloyal to them. I can't think of any other company, besides utility companies and such, where I haven't become somewhat fond of them having been a customer for so long. I can't stand Spotify. Whilst the service is great, the UI is awful and the apps are slow, don't feel native and are annoying to use. That's why, having only seen screenshots of Apple Music, I know I'll be switching to it from day one. A good user interface is king.

(In case anyone brings it up, I've tried many competitors to Spotify, including Rdio, and haven't been able to find anything better. Rdio looked promising but their Mac app is actually even worse.)
Wait, does it really give you invulnerability? In the video Mario never runs into a single enemy while spin jumping.
Just when the world is getting ready for IOT. Might have the potential to become the Javascript for IOT devices for it's low footprint and highly embeddable nature.
Yes. I happen to think Europe actually has somewhat better human capital than the US, though the US has a clear institutional advantage (more homogeneous market, different politics, etc.) which trumps everything else.

I was once a part of a medium sized European start-up that was bought by a large US company. Even though everyone got rich off the acquisition, we came to view this as a failure. If we didn't agree to be bought, we knew we would be out spent/marketed by the much larger (though much more clumsy) US company.

At the end of the day, the Europeans will not consign themselves to US dominance (and the Chinese certainly won't). The EU moves slowly, but there are clear signs the past few years that it is moving to curb US tech multinationals in order to nurture domestic alternatives. While I support free trade in principle, I think this is a good development for Europe.
It's a top 10 app, ahead of Spotify, Uber, and even Apple's Find my iPhone. I'm only one datapoint, but I almost never use Apple Maps. (I'd love to see if my behavior is an outlier) Many apps are hip to this, and will give the option when they integrate.
"ksalt - at least salt is a variable, surely it at least is randomly generated, right?"

> // Salt for Symmetric key derivation.

> const char kSalt[] = "saltysalt";
> You are missing the fact that there are other logical routes to the scenario.

No, you are missing the fact that there are lot of possible explanations outside of the scenario.

Even if the current attack was by US and/or Israel intelligence, penetrating Kaspersky may be useful for them just as it is, to keep eye on Kaspersky anti-virus technologies and find a way to to avoid them. Without any "revenge" for Iran.

Moreover, I've just checked https://en.wikipedia.org/wiki/Stuxnet#History , stuxnet wasn't detected by Kaspersky, it was another company. Also, "The reason for the discovery at this time is attributed to the virus accidentally spreading beyond its intended target (the Natanz plant) due to a programming error introduced in an update". So this whole episode doesn't present Kaspersky as an active enemy of US intelligence.

I doubt very very much Russia wants to help Iran to get nuclear weapons - no country will help another country to get nuclear weapons, even if they can win "brownie points".
I don't have premium so I can't test how good it is but I believe you can use a third party client like the free and open source Clementine [ https://www.clementine-player.org/ ] with a paid membership of spotify.
Opera browser used to have transparent BitTorrent built in to its 4MB binary (along with IRC, Newsgroups, email...). I miss the old, innovative Opera. Oh well, maybe we will learn one day when someone like Microsoft/Google shoves some kind of proprietary semi-peer-to-peer protocol in to IE/Chrome and runs all the tracking out of their respective cloud.
It really is a shame that modern academia has broken the promise of what it used to be, and what it still (often falsely) claims to be. With so many prospective academics and so few tenured positions, academia becomes a cutthroat fight to accumulate more publications at whatever cost in order to build up one's career. Lack of funding sources leads to many people fighting over a shrinking piece of the pie. Those who are funding give initial funding to multiple groups with the goal of continuing funding whoever is most impressive -- everyone wants a good return on their investment. As a result, there's a tendency to only focus on the next progress report, focusing on short term results that are visible and can get media attention. This leads to a focus on salesmanship and less on actually figuring things out.

Academia had a specific set of pros and cons that made it a distinct entity from industry. As time as passed, academia has been taking on more and more of the cons of industry (focus on short-term thinking) without taking on the pros of industry (higher pay).
To me the most promising approach would be entropy detection. Crawlers have less entropy than humans
This solution is brilliant. No interface is exposed. The observation is that locks themselves have addresses, and these addresses have an order. That gives the order that locking is to be done in to ensure no deadlocking.

Indeed, this extends quite naturally to locks that are not related from modules that are not aware of each other.

I repeat, just brilliant.
Reading this was like seeing a ray of hope being shot down by a minigun.

In seriousness, what gives!? Why are these so simple? Surely a development base as large as Chromium's could pick up on something like this.
RealDoll is working on AI and robotic heads for its next-gen sex dolls
Ask HN: Experience with setting up a dev environemt at a new company?
I'm wondering if anyone can share their experience with setting up a development environment after starting at a new company.

The reason for this is, that I'm trying to make it as easy as possible for new people starting at our company and am wondering how other people solved this problem.

Thanks!
Well without having a user-specified master password like firefox has, you're bound to use some "pseudosecret" keys.
For me I wouldn't say that you have to be blindly accepting of the good of what Snowden did to be critical of this article. It lacks anything beyond the claims of a single unnamed source with absolutely no back-up. That's not good journalism regardless of the story that's being run.

Also the timing of this story is odd, to me. Surely any changes to the operational procedures of the american and UK agencies in question would have happened immediately they realised they lost control of the documents (two years ago), and they wouldn't wait around till there was evidence that Russia/China had decrypted them?

So why a story now in June 2015 about this?

As to the harm/benefit of Snowdens actions, I think it very much depends on who you are and your role as to your perspective.

From the perspective of a non US citizen it has shone a light on what a "friendly" government considers an appropriate level of spying on its allies and clearly shows that all governments are engaging in "offensive" operations on IT systems, and the lengths that they'll go to to achieve that goal.
I think you're confounding the idea of a "dictionary" with the specific data structure of hash map/table. Not all dictionaries are hash maps. There's nothing in the spec that says the dictionary-like properties of an object must be implemented as a hash map. I'm fairly certain that in at least V8 they are not hash maps.
It is the Exhibit A when I have to discuss SJWs with people
Bizarre Court Case Puts Violinist and Leipzig String Quartet,in Unflattering Light
Related to this, great article of E.W.Dijkstra:
The strengths of the academic enterprise (https://www.cs.utexas.edu/users/EWD/transcriptions/EWD11xx/E...)
Building advanced tools like a static analyzer is much harder / partly impossible because you can't parse it without running it.
VMware Player – Thank you for lorem ipsum dolor
But that dump is now 2 years out of date. Turning a current NSA contractor, or (even safer) just attacking an insecure network from afar gives them the up to date information.
Do you have more handwriting styles available? It seems like there's an underlying fundamental 'template' with certain parameters getting randomized on each render.
I guess a lot of others are also wondering, "What's the point?"

If an attacker can read the file the cookies are stored in, you have already lost.

It even mentions "obfuscation" - which might be a slight obstacle if this was closed-source - but Chromium is open-source.
Microsoft used their own implementation of Kerberos. From the Kerberos Wikipedia entry:

> While Microsoft uses the Kerberos protocol, it does not use the MIT software.

The license of the original implementation is thus irrelevant. Pretty much the only thing that would have prevented MS would have been if there were patents on Kerberos.
YESSSSSS!!!!
The biggest problem with the "contractor economy" is that there is no form of insurance when you are sick.

At least in civilized countries (not sure about the US) the employer has to pay you even while sick and healthcare insurance will take over the payments after some time... but when you're self-employed, you get nothing.

Also (though this may only be relevant to Germany) health insurance for full-time contractors is private insurance with massively higher rates, instead of the "standard" insurance provided to employed people.
Comet Lander Philae Awakes from Hibernation
so? I mean nobody is paying him to develop PhantomJS right?
As the sibling points out this isn't quite like what you have in Perl. In this case the python code will be parsed the same way. The difference with Perl is that depending on previously defined symbols something might parse as a function call, an indirect method call etc.

This comment in the perl parser describes some of the beginnings of that rabbit hole: http://perl5.git.perl.org/perl.git/blob/70f63a4c7dba89e8e48b...
> Let's set aside the question of whether what Snowden did was right or wrong for a moment, and look at the situation objectively and logically, and taking into account the NSA's perspective.

By definition, if you take into account the NSA perspective, I don't think you're being objective (nor logical).

> However, let's set Snowden's trustworthiness aside for a moment

I think that's really a bit of an attack with a strong suggestion of untrustworthiness which you're pretending to not comment on whilst actually reinforcing a claim of the NSA/US/UK Government - for some reason the UK seems to be most strongly critical of Snowden from my experience.

> We know that at least one of the people involved was not particularly good at operational security

You refer to David Miranda but omit to mention that it was MI5 in the UK who put the pressure on. You were front and center will accusations against the Chinese and Russians but strangely it's Snowden's fault when it's the 'friendly' UK doing the pressuring.

From a strategic perspective, there was little 'lost' by giving MI5 the files since they would already have had access to the material (so it tells them nothing new) and would know from their own access logs that Snowden had them (so, again, nothing new gained). I understand Miranda handing them over as, in the UK, he has no prospect of protection by the courts (which, paradoxically, he possibly would have had in the US). The encryption alone would be sufficient to jail him for many years in the UK and it was value-less to resist.

If you didn't have a reasonable karma, I would think your comment was carefully placed propaganda/character assassination on behalf of a TLA.

I don't think it serves anyone to take such a biased position on Snowden and side with the governments who have created such a massive breach of privacy on the bogus claims of protecting us from terrorists (something which they have miserably failed in).

As other comments have already made clear, the information breaches as much more likely to have occurred through other security breaches and hacks - publicly disclosed - than through the Snowden files. At nation-state level, you can be pretty sure a large proportion of classified material is generally known. Effort is only made to keep the really sensitive stuff secure and, from breaches like the vetting records, we know that's probably little more than a hit-or-miss affair.
Obfuscation is still useful.

For example if a sysadmin is investigating a problem they're less likely to accidentally see a user's data in human-readable form, it also provides a level of defence against unsophisticated attackers.
Hello Ernest Voice. Nice to meet you. (For those that don't know Ernest Voice is an NSA bot that posts stuff like this on forums.)

EDIT I doubt that this particular poster is actually such a bot. I am suggesting that his post is based upon not actually reading any of the facts and merely taking an opinion.
MS extended the protocol, not the implementation.

How would the Oracle lawsuit change anything? Protocols are almost explicitly the things that are not protected by copyright. The problem is, people here are confusing interfaces in human-readable code (copyright-eligible) with interfaces for binary interoperability between systems (not eligible).
Hindsight always seems to be 20/20
It is so hard to know what these services are actually for when they start out as a replacement for physical media. Products like Spotify are just an iteration of technology that started with records and evolved into tapes, CDs, IPods etc. But is that actually what we want? Do we want our tape player to recommend music, and have a social network?

I have had accounts on at least a dozen different streaming/download services, but the place I go back to time and time again is YouTube. Not only does it have the "official" music but also live recordings and endless amateur stuff. I have offline media, but I only really use it when I have to suffer extended time without internet.
I was very excited to try Clementine after spotting this, but having done so, I'm afraid I'd recommend using the Spotify client over this. Unfortunately, the UI is dreadful and it misses integration with some more recent additions to Spotify (e.g. My Music).
I can invoke the red herring too: How many lives did the OPM leak endanger?

But nevertheless let's blame Snowden based on a word of an anonymous UK employee just to be sure.
I actually pay for a form of contractor insurance that covers my loss of income if I get sick.
Fair points. A few comments:

>a single unnamed source

Given the context (national/international security) is that really surprising? People who have their necks on the line aren't jumping out of the woodwork to comment? C'mon, think.

> changes to the operational procedures of the American [you had a typo] and UK agencies in question would have happened immediately

If you're an intelligent person (and I would like to assume you are) changing policies on a dime, esp. when it comes to govt. policy, doesn't happen in a day, or even a year. I think everyone reading this knows better than that. That is a weak argument.

>As to the harm/benefit of Snowdens actions, I think it very much depends on who you are and your role as to your perspective.

No shit. If you want to harm the US, its not a negative action. Else, its a goddamn negative action. I'm trying really hard to figure out why else you would make that argument.

> From the perspective of a non US citizen it has shone a light on what a "friendly" government considers an appropriate level of spying on its allies and clearly shows that all governments are engaging in "offensive" operations on IT systems, and the lengths that they'll go to to achieve that goal.

Imagine what non "friendly" governments are doing.
I remember helping out at my elementary school, where we had LocalTalk (RS422 with upstream and downstream cabling using special self-terminating adapters) and thinnet, with a Power Macintosh 5200 (or something similar) as a bridge in between. It ran fairly well, but troubleshooting issues on bus networks was tricky.
Well apparently it's easy to break encryption so I don't see what they're complaining about.
Lol, does he reply and say thing like, you're wrong?
I think the question is if Snowden recklessly (i.e. without careful consideration of consequences) endangered the lives of <insert arbitrary people group here>.

Information is power. Snowden leaked damaging information about corruption in one of the most powerful and important surveillance groups. The public <replace with Russian, Chinese, child pornographers for emotional poignancy> has access to said damaging information.

The OP and the Times article are evaluating whether certain groups have 'privileged' access to the Snowden archive and that considerable harm has been done to British intelligence operations.

I think it's more damaging to not critically evaluate claims made by the Sunday Times article than to dismiss the HN discussion because of reverb in the echo chamber.
You can use unique password stored in the protected system storage (like OS X Keychain) so at least user is protected from non-root users.
MOG was actually pretty fantastic until Beats made them totally re-engineer and add their idiotic "I am riding a Moose at a Roller derby and feeling childish" mad libd garbage. Now that Apple's gonna run that shop and probably toss out 90% of the ultra goofy garbage (playlists and favored artists were heavily de-emphasized), maybe I'll switch back.
Boosting Code Quality
Bostonianish person here: it hasn't changed Boston. My brother-in-law was running the Marathon that day, he finished about 30 minutes before the explosions.

Watertown residents' cars are no longer universally decorated with "W Strong" stickers. The feds had to strain mightily at the jury pool to get jurors willing to consider the death penalty -- sentiment in Massachusetts was 2:1 in favor of having Tsarnaev rot in prison.

Insofar as the Tsarnaevs had a political goal, I don't think they achieved it.
This graph is a couple years old but it shows China's incredible economic growth.

https://en.m.wikipedia.org/wiki/Economy_of_China#/media/File...

By one measure (PPP) China has already passed the U.S.

http://www.bbc.com/news/magazine-30483762