skysight-inc/HackerNews huggingface dataset:
> The goal is to test for equality

If it helps, you should think of strcmp() as returning a difference. strcmp() means "string comparison", and to compare is to find differences. Thus the "not" means "no difference", just as the idiom "if(!p)" means "there is no (object pointed to by) p".

That is why I always write == 0 on comparison even if it is longer. It removes a negative and makes it clear.

Seeing "== 0" for that in C for me is actually like seeing the equivalent of "== false" in languages that have booleans: the extra comparison causes a bit of pondering at whether it was really what the programmer intended. The if(...) is already an implicit comparison with 0/nonzero. I've seen things like this too, presumably written by someone who wanted to make the comparison really explicit, but just ends up causing more confusion IMHO:

if ((strcmp(a, b) == 0) != false) {
/* does this code get executed when the strings are equal or different? */
}
Using the same file extension for non-lossy and lossy music... ugh. If they wanted to sell DRM protected lossless files I'd even cut them some slack, but they didn't. This was just poorly thought out. Likewise both formats are trivial to decode; I'm not buying the power argument. The smaller .flac file likely wins anyway.
Stanford’s social robot ‘Jackrabbot’ seeks to understand pedestrian behavior
Anyone offer advise on a good program for wiping the hard drive on an older PC - pentium / Duo core 2 ; 2009 for a fresh install of Ubuntu or some other Linux distro -install.
No, that's still a case where the government has agreed that you can sue them. Every government being sued has agreed to investor-state dispute resolution in one or more treaties that they've signed (to encourage foreign investment).

The ICSID does not hear cases against countries that have not agreed to abide by its rulings.. so if you invest in a country that has not signed, you're SOL... they're not going to help you.

https://en.wikipedia.org/wiki/Investor-state_dispute_settlem...

https://en.wikipedia.org/wiki/International_Centre_for_Settl...
In Defense of Erlang: Through Magic of Offence
yip. spot on
IIRC, those generally take a pointer to the buffer length, and return an error code and populate the parameter if it's too small.
Holy shit, I am constantly amazed that people like this know how to use computers. Can we bring the internet back to being a technocratic meritocracy with only people who share my biases and opinions, please?
Probably because there's no widely available encoder. Why hasn't this been folded into ffmpeg/sox/etc?
This is one of those HN 'anti-exemplar' posts where I can't tell if the people are serious and sincere or whether they are all involved in a satirical group troll or a self-promotion ring. Or both.

In broad strokes:

"Finally! After 20+ years now there's a way I can learn Linux!"

"If only a way I could 'save' this and revisit later... or a way to 'share' it with others... hmmmm..."

and someone just asked how to wipe a hard drive (?!)

etc

and 415 upvotes?

It is not April 1st, and I'm not on The Onion. If everyone is sincere, great, and good for you, but I'd love to know that.

Is it because school is out for the summer now? At least here in the US.

And I'm curious: did any one else have a similar reaction?
It also makes you check Snapchat more because you know that the stuff will be deleted - which results in using it more often and being addicted to it.

Social media novelty machine 2.0.
I am certain that this site is not in any way sponsored or endorsed by Microsoft Corporation.
I once needed FP64 in a GPU for physics calculations. One reason that impulse/constraint won out over spring/damper is that spring/damper has a total loss of precision problem with 32-bit floats.
LawnStarter | Austin, TX ONSITE | Full-Time

LawnStarter is the easiest way for homeowners to order and manage lawn service for their homes. We connect consumers with the area's top lawn service professionals. By doing so, we create a much more convenient experience for consumers, while increasing the efficiency of existing lawn care businesses. We raised a $6 million Series A awhile back and are based in downtown Austin, TX. Any other questions just google us or ask.

Position:
Senior Back End Engineer - Apply via https://lawnstarter.workable.com/jobs/71247

Interview Process - 2 x 30-60 minute phone calls with founders then a 3 hour on-site in Austin
Vista was the first Windows release I really felt was unsuitable for installing on most systems which were purchased before the OS was released. OEMs made the problem worse by pre-installing it on low-to-mid-range systems which had no business running it. Additionally, if you were running 64-bit Vista at release, there were significantly more driver issues than with the 32-bit version, though running the 32-bit version meant you could barely support enough RAM to let the system start performing well.

UAC issues cleared up once all of the software developers got around to releasing the next versions of their applications, but MS took most of the blame. I can't really blame the developers for not wanting to make significant changes to their software before the final release of Vista, given the chain of events leading from XP to Vista. Many are already hard pressed to remember how rocky the XP release was, and that MS did much more in XP to make 3rd party applications work with the system. In Vista they essentially took the extra step to warn the user that the application was misbehaving, rather than silently letting it happen. Some people got into the habit of disabling UAC by default and I had to convince one person who should have known better that he wasn't going to suffer from a deluge of support calls if he stopped disabling it in Windows 7 (and the handful of Vista systems still around).

In the end, 7 put very little in terms of functionality or stability on top of Vista SP1, though Microsoft did put significant work into making it possible to run 7 on systems that didn't have the horsepower for Vista. The marketing push brought a lot of people around. I look at it as an essential part of the strategy they're currently using with Windows 10 (vs. 8), though they took the extra step of changing the underlying version number this time around (something they didn't do when going from Vista to 7).

The biggest problems with continuing to run Vista are that the support window is rapidly closing and 7 will usually perform better on the same hardware (because they toned down the UI and put real effort into getting 7 to work on hardware that was previously running XP).
Most recent vulnerabilities in core utilities really don't have a lot to do with memory safety though - Shellshock & Imagemagick were input sanitization, other common ones though are still injection vulnerabilities or authentication weaknesses. Heartbleed excluded most major vulnerabilities these days aren't related to memory safety.
https://news.ycombinator.com/newsguidelines.html

> Please don't insinuate that someone hasn't read an article. "Did you even read the article? It mentions that" can be shortened to "The article mentions that."
Thanks. Moderators, can you help remove this post?
Nice subtle accusation of racism, person-who-literally-thinks-that-some-races-are-inferior-to-others.
Not sure what you mean. opusenc works just fine and is perfectly portable.

ffmpeg also supports it through libopus for quite some time.

See https://www.ffmpeg.org/ffmpeg-codecs.html#toc-libopus-1
Elegantly solving the wrong problem is not elegant, though.

strcmp is a comparison. Comparisons are intuitively boolean unless there's a clear reason to be otherwise, and "false=0, true=nonzero" is well-known. Therefore, "strcmp('foo', 'foo')" shouldn't return 0 any more than "5 == 5" should return 0.

If the function were called "strsub" or "strdiff" and was described as taking the difference of two strings, then this might be an elegant solution, but "comparison" means something specific in a programming context, and this isn't it.
Totally agreed on the points in your first paragraph. I try my best to help them out and stay as friendly as possible. For example, the Department of Finance senior FOIA officer and I are on a "hey man" basis now. :)

Thanks! This all started in November of 2014 and I doubt there'll be an end for a while.

Not to derail too much, but this sort of work is one of the main reasons why I'm in favor of a basic income. It sucks that it's impossible to live freely while doing this stuff, without being a journalist (bad at writing, so my reliance is on other journalists) or without having a stable job. Not having either right now makes me think to go to patreon for "basic income", but that just feels dirty.
Dude, I have a strong feeling this was me.
Show HN: Multi-Criteria Who Is Hiring Search for iOS Safari
This interactive iOS Safari bookmarklet lets you search for jobs on the HN Who is Hiring thread from an iOS device.

Go to the HN Who is Hiring thread, make a bookmark, change the title to "HN Job Searcher" and replace the address with the following (paste in):

javascript:void(function(){ var a=prompt('Enter keywords:').split(' ');var c=document.getElementsByClassName('athing');var r=[];for(var i=0;i<c.length;i++){ var m=0; for(var j=0;j<a.length;j++) { if (c[i].innerText.toLowerCase().indexOf(a[j].toLowerCase()) > -1) { m++; } } if (m==a.length) { r.push(c[i])} };var z=function(x, y) { x.onclick=function(){y.scrollIntoView();}}; for(var i=0;i<r.length;i++) {r[i].style.backgroundColor='orange';z(r[i], r[i+1])};r[0].scrollIntoView();}())

Then open the bookmark as you normally would while on the thread. In the popup that appears type your job criteria, e.g. "javascript remote", and the results are shown. Tap on a result to go to the next one. Reload the page and open the bookmark again to search again.

Gist: https://gist.github.com/guarani/5503612c621630898dde7c862adceb76
Let's not violate the laws of physics and go back to the fundamental laws of nature.

We know:

1. Entropy is always increasing.

2. Life is negative entropy gatherer. (It decreases it's own entropy by increasing the entropy of its surroundings, to live.)

3. If we plot all living organisms by their negative entropy, it corresponds roughly to their awareness. The more negative entropy, the more awareness, the more "conscious".

Hypothesis:

Grandparent commenter said Consciousness is the state of being awake, hence able to react normally to sensory stimulation.

Entropy is information, the more entropy the more information there is to process.

Awareness and consciousness is the ability to process information. The more negative entropy the bigger the ability to process information.

Entropy and consciousness are two sides of the same coin. Consciousness, awareness, is negative entropy.

As another commenter said[1]: "The universe splits itself into two parts - an observer and an observed."

[1] https://news.ycombinator.com/item?id=11827988
To my knowledge none of these groups who champion women in IT seem to talk about maternity leave. It mystifies me to be honest. The situation with maternal leave is very problematic because it is available to women only in most countries.

Women get about 10 years into their career and decide to have families. In high tech, my experience has been that maternity leave benefits are common. So women often take up to a year away from work. This puts them at a serious disadvantage. Even if their job waits for them, in the high tech industry, everybody moves on (not sure what the average attrition rate is, but I remember at one point people would change jobs every 2-3 years). So you get back to your job and everything is different. Essentially you are a new hire and you have to work your way back into the political spectrum.

Then imagine that you have a spouse who works in the IT industry. Not only did they not take the year off, but they are plugged into everything thing that's happened and have made relationships with all the new people who have shown up in the last year. It is just natural that those people will be better placed for promotion.

Also I have yet to meet a woman, after spending a year away from work to look after their new born child, who thinks, "I'm so happy to be able to hand my child over to childcare while I'm at work." Naturally you worry -- especially for your first child. Naturally you feel guilty. Naturally you don't want to give up what you have (looking after your child is an awesome job!). If you happen to have enough income coming in because your spouse works, is there really a serious argument for going back to work?

This is fixable. 6 months maternity leave followed by 6 moths paternity leave. Make it a law that spouses have the right to that 6 months. Limit the amount of maternity leave so as not to punish women in the work place. This allows the family to hand over the child to the non-childbearing spouse for 6 months so as to ease the transition of the mother. Then after those 6 months the mother has been back at work and it is the other spouse (very probably male) who has to make the hard decision of whether or not to go back to work. Also, each spouse has taken 6 months off from work and each suffers on the work side equally.

Not to mention that it really sucks that men in our society rarely get the opportunity to interact with their young children simply because they don't have the hardware to gestate a baby.

2 birds, one stone and all that.

P.S. I struggled to write in a way that would include all family styles, but if I unintentionally missed one that you care about, please accept my apologies and consider the idea anyway.
> Did you even read the first few paragraphs of the page?

I did. I also worked at Microsoft during the years in question.

edit in response to your edit: The project was restarted. Longhorn and its three pillars were essentially thrown out. Windows Vista was rebuilt from scratch on top of Windows Server 2003. I assume they chose to keep the same codename so as to reduce confusion. But that doesn't mean it was the same OS.

Hopefully this Wikipedia article answers the rest of your questions: https://en.wikipedia.org/wiki/Development_of_Windows_Vista#M...

edit 2: here's another article:

It was decided, at least for now, to drop or modify many of the
original objectives; no more using C#, abandon WinFS, and revise Avalon.

http://www.vanityfair.com/news/business/2012/08/microsoft-lo...
Easy. A "soul" is a collection of thoughts and narratives that define the core of your being, many of which are held in common with other human beings. I think this is a useful requirement for a soul, since this means that ensouled creatures must participate in a community of discourse/culture along with humans. If AI can't do this, it's worthless.
You're correct but that isn't the issue the author is bringing up.

The author is concerned with the 5 year "long term" study. Consider the following:

- You know you're going to get, say, $2,500 a month for the next 5 years.

- You know you're going to get, say, $2,500 a month for the next 15 years

- You know you're going to get, say, $2,500 a month for the rest of your life.

Do you plan each of those the same? Differently? You'll likely plan those completely differently because two of them have a maximum amount of payout whereas the last one, for the rest of your life and what real basic income would be, would not have a maximum.

Unfortunately this means the experiment is flawed from the start. You won't be able to apply effective controls so that people who know the maximum payout want act differently than someone who expects it forever.

Basic income is almost impossible to test with proper controls unless you want a valid but very, very long term study of probably several decades.
How come they can distribute binaries of an OS that belongs to a company?

I mean, even though it is a failed project, it still may have valuable stuff, patents, etc.

So how come they are able to distribute without issues? are they going to potentially get a C&D? should we start archiving these just in case?
How do you propose the mayor's office identify senders and recipients from e.g. that law firm without combing through every message? What if their email domain has changed? What if someone used their personal email address? If they left out any records, you could sue them.

The remaining reasons, mainly an inability to filter emails by department, sound normal. If you're designing a database, can you build an efficient index for every possible query? No. The mayor's office has not optimized their records for random people making FOIA requests. Nor should they. I'd rather my tax dollars go to potholes, rather than axe-grinders.

You'll have better luck with more legwork on your end.
It's decode only for some reason. For whatever reason sox and libsndfile won't touch it; ffmpeg won't encode it. And iOS and Android browsers won't play it. Shame because it's clearly the current winner.
I stopped using machines back in December. They are a complete lie.

I'm progressing at a rate of about 5 to 7 Kg per week, haven't hit the asymptotic portion of the gain curve yet.

I plan on re-incorporating swimming into my routine in a few months. For now I am focusing on lifting.
Steve Jobs said: if you buy 1000, I’ll do an extra run of the Newton for you
I'm not actually advocating for this change, but at least to me this would intuitively make sense if the function were named instead after "string contrast".
Indeed, I've read multiple articles about it, some of which seem to have been fed by the Apple PR machine:

http://www.zdnet.com/article/apple-cuts-aws-spending-signs-w...
> For one thing, we kind of need results sooner rather than later.

We need results for every experiment today. Unfortunately that's unrealistic and not how science works. You can't simply compromise your study to get results faster; you'll never know how valid your study's results really are in such a case.

It sucks that if you want a good study for basic income you pretty much have to do it, effectively, forever while aggregating and gathering results over time but you can't just shortcut science because "we kind of need results sooner".
Who are these people, and why are they desperately clinging to the history of what essentially amounted to a company killing project?

Is this a manifestation of some sort of post-traumatic stress?

I despised Vista, and recounting it's origins and history of such a thing, to me, is like recounting the childhood of your daughter's murderer.
That's the whole point. They need to learn the point contracts, SLAs and all that goes along with paying for mission critical software. The fact that they haven't been taken advantage of as I suggested is only due to the benevolence of the provider. If Messenger was bought by an entity that was not so benevolent, they'd learn the value of paying for their mission critical tools very quickly. Because what they're doing now is irresponsible given how much money is involved.
When looking at other temporary experiments such as the Stanford Prison experiment, the behaviors still reflected people in the prison mode. There are plenty of other experiments where the behaviors reflected the temporary experimental circumstances. I think it's safe to say that behaviors in this experiment will likely reflect real life.
As far as the "40% premium" goes:

> This price represents a premium of 40% to the Company’s unaffected 10 day average stock price prior to March 3, 2016 of $21.83

Basically they took at 10-day average around a (somewhat) arbitrary date to price the stock for that 40% number. "Somewhat" because that date was when Eliott Management, an activist investor fund, bought a giant chunk of Qlik. That signaled a likely upcoming acquisition (which, as you said, the market was betting on). Thoma probably argues that signal moved the stock above it's "true" price.

The counterargument would be a defense of the efficient markets hypothesis: that the true price isn't about signals and technicals, it's just what someone is willing to pay.
So someone doesn't unlink the main binary when they are cutting unused utils to save space.
What Poker Software To Build?
Love poker. Love programming. Gimme your ideas and I will give you awesome tools for free!

Also, curious how much of the HN community plays poker.
I always have GPS disabled, unless its more to do with where i live, GPS features of snapchat aren't worth using.

The infuriating thing i notice though is that since the android update was released where you no longer hold to view a picture or video, your phone will never go to sleep if snapchat is in the foreground.
This is the field of meta-cognition in cognitive psychology
Also pebble has a documented interface that people can build things that physically connect to the watch and add new features. Using this is Pagaré: https://www.pagare.me/

> Pagaré is the simplest, fastest and most secure way to add contactless payments to your Pebble smartwatch.

Things are converging around various standards now, which is good, although further progress on that kind of thing would be great. Whenever something needs to tie some information to me, it'd be nice if I could just present any device/card that conforms to a particular standard for NFC and register that (hotel entry, train tickets around the rest of the UK, work pass card, all loyalty cards, gym entry...)
Researchers unlock new CRISPR system for targeting RNA
Per the article, the ability to log chats for compliance purposes is one of the factors keeping the industry on Yahoo's 'legacy' platform.
...what? So you're saying consenting adults who are agreeing to be given money for X amount of years is "clearly unethical"?

I'm not convinced this is a good study but unethical seems to be a reach.

> Experiments on people like this will absolutely have dramatic changes that will last their entire lives.

What about all those focus groups and clinical trials that people partake in every single day? Are those somehow better than this case where we're giving people money and asking them some questions every so often?
I get 'command not found' so I'm assuming I have to install something? But I can't find anything when I search Google because of the generic name.
I think I almost had a seizure reading your post. So many buzzwords lol
Semis aside, I take issue with the name and the badge[0], making it seem like _the_ style of writing JS instead of just _a_ style. The contents of the project are fine, but this aspect is misleading for people new to JS.

[0]: https://camo.githubusercontent.com/e06d9d72eecca61c1ba39fdf1...