skysight-inc/HackerNews huggingface dataset:
I suspect rdtsc meant free as in freedom. There are several companies successfully founded and running on free software. An example I saw recently is the French telecommunications provider Free. Much of the software running on their set-top-boxes is licensed under GPL and they provide the source code as required by the licence. They have dealt serious damage to more traditionally minded companies.

Invasion of privacy is not a requisite for company viability.
I've been looking for an in depth guide to Docker. Thus looks perfect.
Probably will help the site if you do this quickly...

https://www.digitalocean.com/community/tutorials/how-to-inst...
With 112 mentions of Facebook I'd say this is a great ad.
> I couldn't find any function that returns 0 on failure. Or do you mean a null pointer?

server_socket_getport

An unknown address family will return a '0'.

> You want to see a zero tolerance policy for them?

No, but if you use that mechanism then it is preferable to have all the functions hitting that buffer to be visible from the scope of the declaration of the buffer. Passing it on to other libraries can cause problems when/if those libraries' maintainers mess up. So if you're defensive about this then you can't be hurt that way.

> I don't think so,

Agreed, looking still longer it looks like it will always end up with a NULL in it after the while, but that's very ugly to put it mildly.

> Also, `ptr != NULL` is unnecessary (just mentioning since OpenBSD/LibreSSL developers like to mention that too).

Yep. And there are plenty of other nitpicks like that but I don't even care that much about any of those, I mostly care about the way that the code is laid out making it an excellent place to hide some really nasty bugs.
That point is one of the few that I agree with.

I perceived the emphasis as being on the how to work. I once worked for a company that "believed" in "the one" PHP framework (developed in-house; terrible), "the one" cache (memcached - had to fight to get redis for the richer structures that we really needed; lost), "the one" DB (MySQL 5.0?), no staging environments for devs (we won a battle and allowed ourselves to run vagrant! woo), etc.

In your car mechanic analogy: you don't get to pick what cars to work on, and this is completely reasonable. But, it should be up to you & your team to pick the tools. If some idiot in the company once managed to undo a bolt with chopsticks and liekd it so much that he made it a company mandate, you'll soon be looking for another garage.

Long story short: I've seen the extreme of non-techies micro-managing technical decisions, and it is extremely frustrating. <lablab.png>
Yes, you are right. It should not take such close reading of the code though to make sure that this condition can not occur.
That is the simplest definition of ex-pat, but there are other types of ex-pats.

Gertrude Stein and Ernest Hemingway are two of the most famous of the American expat community in inter-war Europe. In https://news.ycombinator.com/item?id=9202317 I listed a couple examples of modern ex-pat artists.

As perhaps an extreme counter-example, take a look at Wikipedia's list of American expats in Cuba http://en.wikipedia.org/wiki/Category:American_expatriates_i... . It includes Assata Shakur, who "escaped from prison in 1979 and has been living in Cuba, in political asylum, since 1984". She did not go there to work for an international company, and she is there for an indefinite amount of time.
Richard Stallman does have a cult of personality around him who seem willing to defend his prescience and infallibility to the detriment of critical thinking and common sense.

However, while I think he is off base on a couple of points here (the "Psychological Harm" argument, in particular, seems like a cricitism of the vanity of youth and gamification, the latter of which is worth criticizing,) one doesn't need to be paranoid to see that much of what he mentions is at least worth considering.

And he doesn't mention much, it's basically a list of links about Facebook's business practices, and many of the issues he presents apply to social media in general since so many sites want desperately to be as Facebook-ish as possible (see: G+ and anyone who found their real name, profile and G+ comments forced on to Youtube.)

Not taking as gospel because he's RMS, but at least considering. Most of what he points out are true, and not that controversial.
> I'm still against legalizing the worst of drugs like meth and heroin.

It's funny you're against legalizing those two drugs. I take it you're not aware that both of the "worst" (whatever that is supposed to mean) drugs are actually legal in one form or another. Methamphetamine is available with a prescription and heroin/opioids are generally available with a prescription as well.
Divorce Lawyer Fairfax, VA
ok I finally can read your article. And sorry you are missing the main point.

Rendering static content client side using JavaScript is a bad idea, even if you have fast network in terms of latency and speed.

The main problem with this AJAX antipattern is, that it blocks all spiders and search engines. So you should not do that, if you are not Google docs, who can inject the content into their own search engine, and wants its content not to appear on other search engines.

As a rule of thump: Do not use JavaScript for anything that should be indexed by a search engine. Instead use JS only when interacting with humans, e.g. for blog comments, checkout and payment. Hiding comments by making the comment system AJAX might be a good policy for a blog, if you do not want the comments to appear in search. But the blog posting itself should be static content.
And no software has ever been ported over to other operating systems or flavours of similar operating systems...
Thanks! Let us know what you want covered.
Stallman's work has enabled a vision almost exactly the opposite of what he wanted - the gratis nature of free software has been a far greater impact than the libre. It's enabled cloud computing by making OS and software licenses scale out affordably, letting everyone leverage low-cost commodity hardware in the place of big iron. In terms of libre, though, the closed-source PCs that ran Windows that Stallman still wars so vigorously against are far more free-as-in-freedom than the cloud computers running mostly "free software." Same with all the Android phones that run a GPL'd kernel but are far more locked down than Windows. The Affero license and the anti-Tivoization clauses have been shutting the barn door after the horses have left. The free-software movement has been pivotal in providing lots of free software in the gratis sense, and that free software has enabled a far less libre computing paradigm than what came before. So you'll excuse me if I am unsure what his remarkable history of being right has been.
Some trivia from Wikipedia [0]:

The movie Tron: Legacy, which revolves around a world inside a computer system,
features a character named Zuse [1], presumably in honour of Konrad Zuse.

[0] https://en.wikipedia.org/wiki/Konrad_Zuse#Zuse_Year_2010

[1] http://www.imdb.com/character/ch0209988/?ref_=tt_cl_t7
Build ios apps from command line
It's useful, as Angular is - but only when you write web applications that don't make sense without JavaScript anyway.

If it's not the case, you shouldn't use Angular at all.
A happy compromise is using a bar phone. I use a nokia; it doesn't distract me plus people can still call me in case of disaster.
Why study history when you can create it? [video]
Google executes JavaScript for indexing these days.
What is wrong with compressing static files?
Looks like you shouldn't depend on a server or TCP/IP either to render a page given the website is down ;)

http://www.downforeveryoneorjustme.com/http://blog.donnywals...
I haven't actually tried using both RxJS and Knockout together, but it's something I'm thinking about doing. It might seem strange to merge these two different approaches, but I'm a fan of MVVM (which KO espouses) and of KO's templating and component functionality. To get it working, the callback in an RxJS subscribe method would set a KO observable, which would then be bound to the view.

IIRC KO's author is familiar with RxJS; he made KO and reduced the concepts to observables (of which there are similar objects in RxJS) and computed properties as he felt it was more straightforward for the typical dev in not requiring one to make the paradigm shift to stream composition.

I think that KO, especially when using components for encapsulation and reuse, can be a very powerful tool. But once I started combining KO with Bluebird for promise combinators, I started to understand the benefits of the stream-based approach better (in RxJS promises are just another source of events, which is a very powerful tool that I should have mentioned in the original post).
what new technological advances in back end web development have occurred in the last five years? why should senior developers spend their spare time learning new ways of doing exactly the same thing?
I am sure by 'worst' he meant the relation between active dose and lethal dose, which IIRC are not so far apart.
>I have no idea how web-developers think they can get away with adding so much overhead to something as simple as rendering a page.

Probably because it's thought to maximize profit. Typically developers are expensive, but web site viewers have relatively fast computers. In addition, this decision to maximize profit over optimization is often decided by not the developers but for example the product owner.
As someone who is considering using a JavaScript framework for client-side rendering on a new application, this strikes me as an anecdotal over-simplification. We can find terrible uses of any technology. I'm not sure that is a reason not to use that technology.

I believe the theory is that your application may take a little longer to load initially, but subsequent interactions should be much faster, since all rendering is happening on the client, and the server is only delivering API interaction. There is also the potential for even the initial render to be faster depending on what server-side rendering logic is being transferred to the client.
I'm amazed at how fast sites load when javascript is disabled. It reminds me of the early days of broadband. Like the first time I sat at a college campus computer that had a 100mb connection -- my face melted off.

I actually have javascript disabled on one of my mobile phone browsers simply for speed reasons.
Thanks for your reply. Ubuntu Firefox, Android Chrome... scary warnings pretty much everywhere. It'd be surprising if all these clients didn't have StartCom's root certificate. If you don't mind, how did you set up your /etc/ssl/server.crt file?
Twitter Starts Breaking Meerkat Features by Limiting Social Graph Access
*Interpreter JavaScript to extract linked resources.
It's possible the person didn't say anything about Chrome, or since all of the direct responses reference Chrome, it's also possible the parent comment was edited.
yeah... i was not at all prepared for this many people to visit this article
I mean I am trying to compile a project I am debuggging at the same time and get a locked file error message. I do not get how that is either desktop or server ready. It is more a kind of joke actually in 2015.
What was wrong with mailing lists?

> It's the easiest way to keep up to date with my gym group, motorcycle group etc.

Of course it is the easiest if they use a Facebook group in the first place. They could use a mailing list (or Google group) and you could keep track of it with any mail service (even your own) of choice.
TiVo to acquire trademarks, customer lists from bankrupt Aereo
I always love the concept, but it I rarely hear about the winners, plus there is no way to browse the entrants.

Update: Oh cool, this year they finally made a list of everyone who one in the past. https://github.com/showcases/game-off-winners

I wish they put together a blog post on why they won.
Unless I missed it, nowhere on the page does it say the backer is also the recipient. There is no donation level where you get MDMA or Psilocybin for yourself, it's all produced and distributed for free (through unspecified channels, but assumedly with some more due diligence and responsibility than just mailing it out indiscriminately to everyone who backs the project.)

Looks like you can get a box "from the future" which indicates to me it's concept packaging so you can show you support the cause, not an actual box of drugs.
It seems like you'd have to avoid having async code inside of an autorun, otherwise when it resumes `Tracker.currentComputation` could be different?
> The world isn't black and white and he obviously fails to understand the entire point behind many of these companies.

Yeah, the world is all grey. We all know that. What you should keep in mind however, is that there are shades of grey.

And those companies are darker than they need to be.
Legalize drugs in group A but keep group B illegal is subjective and counterproductive to the drug legalisation movement.

You have to realize the big picture, which is that there will always be a fringe of society doing the worst drugs available. Accepting that and coming up with alternative solutions like just giving them their drugs in controlled environments can be far cheaper for society.

It's the same as prostitution, it will always exist. Either underground or above ground.
> it's a business that needs to make money, how else is that supposed to happen?

That's their problem, not ours. We're not the ones in charge of deciding how exactly they're supposed to make money. If they can't, so be it.
Honestly, if you are taking that long for your handle bars to be loaded, then you have a bigger issues. For example, perhaps the website is waiting for a huge response from across the world to resolve, and there is no way for any JS framework to render that without the proper data.
Don't forget to thank nazis, who taught you how to build rockets and soviets who showed you that space travel is possible.
Comparative religion disagrees with you. And you'll struggle to prove that the differences fit a random distribution or anywhere like it.
The folks involved did an AMA recently: http://www.reddit.com/r/science/comments/2ywf4a/science_ama_...
My setup is a bit similiar, except that I don't use paper. I just write or draw directly on my desk with a pencil. Most of my notes are only needed for a few minutes and they can be easily erased without any tools.
For Tech Titans, Sharing Has Its Limits
>> Keeping drugs under ground and in the shadows funds Mexican drug cartels and puts the lives of millions at risk

>> I'm still against legalizing the worst drugs like meth and heroin...

These statements are incompatible. The "worst" drugs are all sold in massive quantity by drug dealers. Psychedelics afaik have never been a big money maker. If you want to essentially defund businesses that settle disputes with chainsaws, vats of acid, and the taped torture deaths of your friends and family, you'll need to legalize the use and sale of all the drugs.
Intellectual character of conspiracy theorists
Would also love to hear about this
>server_socket_getport

I found this interesting article: http://daniel.haxx.se/blog/2014/10/25/pretending-port-zero-i...

So since 0 can be okay and (in_port_t)-1 (=65535) is okay, it has to be changed to return int and take a in_port_t* to be acceptable for you. The return value may not even matter if only AF_INET/AF_INET6 as family is possible - a comment could be of help here.
thanks, I'll look into that as soon as my server is back up :)
The irony is that had you used javascript to render the page taking advantage of everyone's CPU you may have lightened the load on your server.

History seems to repeat itself. First there where dumb terminals where the mainframe did all the work. Then the age of the PC with heavy clients. Then the age of dumb browsers where the server did all the work again. Now the age of heavy browsers running javacsript.

The thing is, you have a capable programming language able to utilize distributed CPU resources in a safe manner, why would you not want to take advantage of it? Because a dumb spider can't crawl it? Simple fact is this is happening because it's obvious and it would be like fighting the rising tide to deny it, IMO.
I think parent meant the many different ways to be non-zero.
I have several problems with this:

First of all, creating an account just to submit a commercial link? That should be a bannable offense, unless we are cool with marketers selling their stuff here.

Second, I'm fairly sure this campaign goes against Indiegogo's term of use. I would expect an actual ban there.

Third, and more to the point: I could get behind such a campaign if the money went first towards legal access and second to production. The campaign may use as many nice words as they want, but ultimately, they are not putting their money where their mouth is. They "will support EmmaSofia's work to legalize recreational use"... after collecting a nice 300-600K, and only if people pay 400K extra for it. Call me skeptic.

And all of that without getting into the legal aspect of it, which I don't like either.
Saw this on CBS This Morning today. This is a great example to counter the many naysayers who think that there is a certain percentage of our population who will never get or learn technology, and therefore we need to take drastic steps to help these people. Given the right learning environment, I strongly believe you can teach anyone virtually any skill. There is going to be variance in how quickly people can adopt those skills and how well they can be applied, but at the end of the day having those skills is better than not having them.
I think Knuth cleaned up the definition of 0^0, and showed that it should be 1 for consistency with a whole lot of other series' and function definitions
It's a slippery slope to pick one drug as OK and another as not. Putting substances into your own body should not be illegal, regardless of the substance. We would do a lot better if we focused on education, addiction, and rehab than focusing on prohibition.
Though in this case rendering the page with JavaScript probably would have taken the load off your sever and prevented it from denying requests.
> while overt bigotry in general is not toxic IMO.

It's baffling to me how white men say stuff like this.
If a business model is not viable without mass surveillance and unprecedented amount of privacy invasion, maybe one should try to come up with better alternatives. Luckily Facebook is already being unbundled and I'm sure with changing technology the need for a centralized hub for social interaction over the internet will fade away. One way could be via the development of new protocols, like an improvement of Email, that could be implemented by many different servers and clients. Another the advent of IPv6 and the fact that it makes p2p protocols more viable.
except HN? ;)
Fans have now given artists $100 million USD through Bandcamp
The thing about typechecking, though, is that you're essentially specifying your program's behavior twice: Once very detailed in the actual code and once at usually some lesser detail in the types. All the compiler does is checking that these two specifications are consistent with each other. Your types can have bugs too, in which case nothing will help you. What frustrates me about detailed type systems is that as detail increases, difficulty of writing the types will increase and type bugs will become more common. Now, assuming the bugs in your code and types are statistically independent that would still save you a lot of bugs, but I suspect they are not.
If that is the measure of "worst" then alcohol, tylenol, nutmeg, and dextromethorphan containing cough medicine should be demonized too.
> i don't see how accepting that people can fight and decide on rules, means that i think there's any meaning in it and why that means i agree, disagree or care about the conclusion.

"Fight" is probably the misleading point. People can and will fight about meaningless things, yes. Perhaps "debate" would be better, because that implies meaning in the discussion.

I think you can reasonably debate, compare and judge coding styles -- "which is more readable?", "which aids understanding better?", etc -- in a way you can't reasonably debate "which is the best colour?".
President Grover Cleveland Grave – Princeton Cemetery
> overt bigotry

> white men

Baffling?
I love these guys:

https://github.com/reyk/httpd/blob/master/httpd/server_http....
Why bother with FastCGI? Why not just use reverse proxy HTTP instead? Why introduce yet another protocol when HTTP works fine?

I didn't write this, but I agree with it - https://ef.gy/fastcgi-is-pointless
see this Quora article
http://www.quora.com/What-is-0-0-the-zeroth-power-of-zero
High end mice still don't come in plain-bluetooth version. I've a couple of Logitech Performance MX and there's still no succesor (either from Logitech or an alternative from another company) that's just plain bluetooth with no dongle.

> [...] wireless mice are so common now)

I never made any mention of a non-wireless mouse. All highend mice come with USB dongles, regrettably.
I think a main point is about indirect effects of privacy loss that are hard to see and reason about directly.

Example #1: You visit a website completely unrelated to facebook. The site has a "like" button on the page enabling them to access Facebook's data about you (depending on cookies etc). You observe advertisements or content tailored based on your personal information or things you like. Maybe you are offered different prices for the same product depending on your age, gender, location, etc.

Example #2: A potential employer accesses, perhaps indirectly, information about you that would be illegal to ask you directly (marital status, etc).

Example #3: One of your facebook "friends" signs up for some arbitrary service enabling that service to access your contact and personal information and connect it with e.g. the photos you mentioned. Arbitrary things happen, e.g. your photos are used to advertise some product you find distasteful, your contact and personal information is sold to telemarketers or spammers, and so on.
Have to disagree on all points there.

Spark on YARN has been very stable and zero hassle for us. Run one command and it is deployed around the cluster and up and running. For performance Spark absolutely destroys stock MapReduce/Tez especially if like us you have a cluster with lots of basically unused RAM.

And Spark SQL, Spark Shell are both fantastic additions to the Hadoop ecosystem.
I really tried, I swear.
Show HN: Music Playlist from your Facebook likes and shares
I spend ~1.5USD per meal (for two people). We don't all live in first world economies with high-paying jobs.
As I saw the other day, whatever Google does is far from sufficient.
Since you have such valuable insights, perhaps you should discuss them on openbsd-tech.
The mathematics in beer [pdf]
Google has been able to read js / ajax for years
You should aim to have a page that will degrade gracefully without JavaScript. So in what way would using JavaScript help?
Not sure. I neither provided Facebook with my phone number, nor use Android, so I can't say whether it could verify for your phone number like that or not. But reading SMS codes seems like something an app could do instead of making the user enter it by hand.
Would the performance difference between the server sending javascript
with the logic for rendering vs the server just rendering be so significant as to have saved his website from a hacker news hug?
I just want to clarify that I'm not affiliated with this project what so ever, I just found it interesting and worth posting here. And yes, it's my first submission.