skysight-inc/HackerNews huggingface dataset:
Just to clarify:

var t = document.createTextNode(msg);
content.appendChild(t);

That code sanitises all possible content in msg. I don't need to list out HTML tags, script/style tags, do special case for unicode exploits, etc.

You need to list what variables are "unsafe", but you don't need to list out the ways they might be unsafe. If it's got the potential to be unsafe, assume it's completely unsafe in every conceivable way, and don't use it in any context apart from as an unsafe text string.

The rookie code is something like:

msg.replace("something I think is unsafe", "something safer");
content.innerHTML+=msg;

And agreed. InnerHTML should be removed from browsers.
The New Entrepreneur’s Guide to Financial Freedom
Ask HN: Is it me or ...?
Hi all,

I am a developer and I have worked at a few startups which I have subsequently quit.

Everytime I get hired by a company, I am 100% motivated and committed. I specifically choose companies whose business I find appealing. I am not an executant who can simply code anything for anyone. I like to work for projects I support. I care more about the project than about the salary and benefits. I suppose that's the case for most of us.

However, it seems after a year or two in the company, the honeymoon period ends and the only thing I can see is the bullshit coming out of management's mouth. Bogus business plans, inability to close deals, short-sighted decisions, petty management techniques, overly frequent pivots, you name it...

Am I
1/ Bad at choosing my jobs,
2/ Too demanding towards the companies that hire me,
3/ Mentally unstable,
4/ Unrealistic,
5/ Just a normal bullshit intolerant guy
?

Is there any way I can find a boss I respect beyond a couple of years?

Tell me about your experiences. Thank you.
Hm. So not a 1x4x9 flat black monolith on Europa...
But alas, we don't live in a world of simple logic.

It's important to remember that Schmidt was on Apple's Board of Directors at the time this occurred (he joined in the fall of 2006.) The Board was hand-picked in its entirety by Jobs.

These are power guys, and if Schmidt doesn't do something strongly, he will be perceived as weak. The implicitness in this email was a basic alpha-male locker-room challenge for Schmidt to show if he had any balls.

To me, this looks like a survivalist-move on the part of Schmidt to show Jobs he is "in charge" at Google. It's obvious Jobs knew how to push his buttons; otherwise, why would he (Schmidt) jump when the CEO of another company (Jobs) said "jump"?
Glad to see Paul Graham's pending comments machine is working so well here.
Even calling Minecraft finished is dubious, the official mod/plugin API has been in the works since 2010 and still isn't available.

A game that's so dependent on mods for long term appeal and server management shouldn't have to rely on decompiling the .jar and patching classes by hand.
Agreed. There's no question that the smiley face in response to the consequences makes the intent perfectly clear.
It's the Citrix killer.[0] I suspect the price is way lower than what Citrix charges and goes into a fairly untapped market of "non-biz" folk that might have use cases for it.

[0]- http://www.citrix.com/products/xendesktop/overview.html
Languages have a LOT of ecosystem demands that frameworks and libraries do not. DSLs (especially embedded ones) save on those demands and do get written all the time. That said, I'm of the belief that they should get written more, still.
ASP.NET MVC 4 and later is pretty decent, Rails is getting better but recently had a large series of problems, and django is one of the most secure by default web frameworks that I've ever used. Django really gets a lot of things (sessions, CSRF, XSS, etc..) right out of the box. Grails is pretty decent but I don't have a lot of in depth Java framework experience but it seems to vary based on the framework.
That is about how I took it too. I see much worse in what Google did here.
Agree. If you assumed the non-solicitation policy were legal and ethical, then the rest of the actions make sense. (Of course they're neither.)

Also, I think the article takes a lot of liberties with descriptions. I didn't see military glee. And Steve's response struck me as that of a guy who sends thousands of emails a day and got something he wanted resolved, not schadenfreude.
Any remarks on average number of rounds to get to 2048?
You can have anything with rings in space

Or better, anything can orbit gravitationally the lightest of objects (as long as things like electrostatic forces are not overwhelming it)

Anything with a velocity bigger than a certain velocity (not sure how this is called - orbital velocity) and smaller than the escape velocity can orbit something in space (in this case atmosphere is not a problem)
You are referring to a woman, as the person in question is female. I assumed you didn't know this and that's why I gave you the benefit of the doubt, but in that context the comment ends up being sexist.
You cannot have efficient free markets without rules, because of the presence of externalities and monopolies. That's Econ 101. Beyond that, I'd argue you can't have markets at all without rules. Markets do not generally develop in situations where killing your counter-party and taking his stuff is allowed.
Oh my, I just thought of an idea. Since Excel is composed of grids, and a web page underneath is also composed of grids. What if someone made an Excel for web pages? That would be cool!
https://zapier.com/zapbook/

Oh wow, that's what I needed to see. Impressive. Almost overwhelming! Thanks
Do what you love, love what you do
Calling me "unbelievably sexist" is giving me the benefit of the doubt - so what do you say if you really dont like some one then

And you made assumptions about my gender - Check Your privilege mate.
I tend to disagree. Facebook is worth billions and they created a business of sharing photos and status updates. WhatsApp allows you to do this as well, but on the mobile platform that has escaped Facebook's grasp. WhatsApp is a hugely successful piece of software that fits within Facebooks portfolio very nicely. It also doesn't come with huge overhead, something like 20 engineers keep WhatsApp running. You don't have to speculate that WhatsApp (and it's 1/2 billion user base) is worth money.

On the other hand you have a hardware startup with no customers and an unproven product. Sure they have sold a bunch of dev kit's, but those are far from being ready for the consumer market.
In addition to not having a customers, they have Sony building a similar product and remember that Sony already has hardware in millions of homes and therefore roll out would be much easier. Occulus might build a great product, but competition is going to be much harder given Sony's pursuit. I would argue that Occulus has proven to be an innovative and smart company, but in no means have they proven to be a successful business and therefore their "star has not risen" just yet. Speculation on future value is much harder with Occulus and has too many "ifs" and therefore, currently, Occulus is not worth anything close to the $19B paid for WhatsApp.
If a contract is breached, you terminate it, as in "We terminated your employment contract". It's not sadistic, it's professional language.

Firing and sacking are very much colloquial; fairly rare for anyone to actually say "You're fired" notwithstanding how difficult it is to simply get rid of someone.
There are many well funded companies taking advantage of the Kicstarter platform to run their product/market fit experiments and generating media buzz while they are it. If you think about it it's actually really smart on their part, but shady nonetheless. Reading some of their backer reactions on Kickstarter and all across the interwebz one gets the feeling that this will most certainly have a negative impact in the short term, but hopefully these same backers will start doing more research into the people unscrupulously soliciting money when in fact they don't really need it at all.
Facebook is an advertising company with a software edge. They make something like 90% of their money selling media space. The Facebook "product" is, now, nearly indistinguishable from a marketing gimmick. The real product is the users, access to which they sell for their profits.
First, Apple and Google haven't been getting "a pass" they've been called out as the primary perpetrators every single time this story has come up. Which has been many times, for several months now.

Second, you don't need your hypothetical: Oracle and MSFT were both involved. And, if anything, they're getting "a pass" because their involvement has always been a secondary data point under the headlines about Apple and Google.

In any case, if the board or geeks in general had any special reserve of outrage for those two companies, that should have surfaced by now, right?

So where is it?
>Do you make stuff? How is it fair that I make something in my garage, and some assmonkey drags my ass to the Eastern District of Texas to claim he deserves 15% of my revenue...

I am a software developer myself. Yes, there are an endless number of examples of clearly frivolous patents. This is not an argument against software patents in general. If you can only cite the obviously broken cases to make your argument, your argument isn't that strong.

Of course entrepreneurs are generally going to be against patents, they operate on the "market" side of society by definition. Ask that same question to inventors and you'll get different answers. Some people do not have the inclination to be entrepreneurs. Does that mean their contributions to society are worthless simply because they lack the particular skill of entrepreneurship? Would society be better off if inventors were likely to not reap the benefit of their efforts, or would otherwise have to keep the details of their invention secret? Is society better off with Watson's inner workings a trade secret?

>We don't make software to file patents. We never have. If you go to Meetups in SF, you'll never meet engineers that want to file patents either.

There is a subset of software development that would qualify as inventing. I see no reason why these cases should not be patentable. Just because the vast majority of developers are not inventors and thus see no benefit to patents is not a strong argument.
I've been thinking about this 'wage suppression cartel' as being the same basic idea as labor unions, only with the monopoly being on the side of business rather than labor.

But in a free market, contractual agreements would be upheld and enforced by an agreed upon arbiter.
I think you are vastly overstating things. You need an acceptable level of adoption. One where there are high quality libraries for common needs. One where you can hire experts. Beyond that level, increasing popularity doesn't really get you anything. Haskell is already beyond that level.
What Jaron Lanier Thinks of Virtual Reality Technology Now (2011)
Hmmm... My email must've ended up in the spam box...
I hope other providers will follow suit. Amazon's offers are great but outside the US, using Amazon services becomes more and more of a legal problem due to privacy concerns.
There's been next to no news about how Don Mattrick was going to rejuvenate Zynga, either.
Ask HN: How best to expand ACE Editor box on GitHub?
I like the ACE Editor mode on Github, but the space to work is so tiny in the vertical aspect. Is there some browser add-ons or some significantly better way to work in the browser on Github? The non-ACE editor allows for field expansion, but I miss the features of ACE this way.

Most of what I've been writing has been markdown on the Gist site. Perhaps we should petition for larger boxes to live in.

Thanks,
Joshua
The entire story is based on Winstons' struggle to resist the society he lived in. That struggle was constant, and he only 'won' the struggle at the end, when he indeed decided he loved Big Brother, and would no longer resist his authority.
I do agree, and it did provoke in me some genuinely interesting ideas for a car + rpi, I just got annoyed by the breathlessly impressed tone of the reporter!

It's like I showed my Mum what I could do with my rpi and she wanted to impress her friends with this strawberry pie computerjingo - not good tech journalism.
Assuming the remaining population is sufficient (which, for Haskell, for a smallish team, in a job that can be done remotely or is in a tech hot-spot, it probably is).
The only state that I can think of that is remotely comparable to North Korea is pre-1992 Albania [1] - isolated and repressive, with a kind of leader-worship cult going on. After that all fell apart in the mid-nineties things didn't work out too well economically and socially, though I'm not sure that was due to mass psychological problems in the population. Survivors of cults such as Scientology that encourage isolation and obedience to a leader figure might also provide some pointers.

The problem is that it is hard to be sure about the state of mind of the general population. They could be mostly completely brainwashed and controlled; or going along with the charade out of necessity while behind the scenes there is widespread shared disgust at the leadership; or they could be living terrified, isolated lives unable to speak about their private thoughts to anyone, even their families, out of fear of police informers. People do attempt to escape the country, though, so there is some dissent.

Overall I'd say NK is unique, and when it disintegrates the social effects probably won't be like anything we've seen before.

[1] http://en.wikipedia.org/wiki/Albania#Communist_Albania_.2819...
Sony and Panasonic announce Archival Disc : 1 TB of storage, in the size of a CD
Designer hooks up her heart beat to a website
This kind of policing of UI bothers me for same reason patens on things like "One-Click Shopping" bother me. Many properties of the iPhone are things motivated design students would've independently arrived at. I know this because I was in design school a few years before the iPhone and we did come up with many of iPhone's interface choices during phone design exercises.

Samsung precisely copying the visual styling of the iPhone is a different matter. But policing supposed copying of basic UI design choices rubs me the wrong way.
I removed the "Live demo" as it was making my server slow.
It's our monolith!
Flappy Thirds
If the universe is holographic, wouldn't it be kind of the same thing?
For sure, hopefully that's how this will go. I'm still mistrustful of them, but I do think Facebook will be smart enough not to get involved, since they do understand their markets.

To your point about success, it's true, the users don't seem to mind, but that makes it even more of an ethical issue. As someone else pointed out, Facebook probably wouldn't have been successful in the first place with self-hosting, and that's probably true. But now they're here, they have market position and the resources, so what are they waiting for?

But just for the sake of conversation, I'd like to make an even less reasonable point: if you can't succeed and do the right thing, then how important is your success?
Now I really want to go make a TwitchPlaysLinux stream. Would need a goal for them to accomplish...
Licensing, Licensing, Licensing.

Feel free to imagine Ballmer running around a stage yelling this.
Zuckerberg has complete control, with 57% of Facebook voting rights.

http://venturebeat.com/2012/02/01/zuck-power-play/
Take two random people, Bob and Sarah. The chance that each of them is going to start a company is equal.

Leave Bob to get on with his life. Maybe he'll start a company, maybe he won't.

Invite Sarah to a private event at a well-funded VC company and call it "Future Founders".

If either of them definitely wasn't going to start a company then they still won't. If either definitely was then they still will. Nothing has changed.

But if either of them had considered starting, and was wondering whether to or not, being labelled a "Future Founder" and being granted access to a group of 349 other people who rank highly on an entrepreneurial scale, plus direct contact with high profile VCs seems likely to influence their decision. That nudge could easily account for the difference between founders and non-founders.

Did MatterMark factor that in to their findings? Seems a bit self-fulfilling as prophetic judgements go to me.
Whats big deal here?
I assume here it's p for pivot, xs because the rest of the list is just items, not pivots (as ps would imply). I'm not sure I love the naming choice, but it has a logic to it.
Brand Name. Quickly search domains and usernames.
Does The Internet Need A United Nations When It Doesn't Have A First Amendment?
What @jw2013 said. I use Chrome, and I can't see anything except a few blue bars and a video.
Dude: think it through. Steve Job's unprecedented :) is overwhelming evidence of his intent.

When an animal trainer gives a dog a cookie for jumping through a hoop, it's beyond question that the trainer intended the dog to jump through the hoop. Even the dog understands that. That is exactly the situation here.
>Haskell's laziness makes slow code and code that use up a lot of memory hard to locate, and at times require significant refactoring, to correct

This is largely mythology built up around a misunderstanding of the grain of truth at the core of it. Lazyness can create pathological performance issues, just as strictness can. 90% of the time neither matters, 5% of the time you need strictness, 5% of the time you need laziness. Using strictness in haskell is very simple, and knowing when you need to is very easy to learn. The profiling tools make it incredibly obvious when laziness is causing a problem. And I can't even imagine a case where it requires significant refactoring. It is generally adding a couple of "!"s or importing Module.Strict instead of Module.Lazy.
Just like every other consumer device?

1) Loans
2) Personal cash (last I know, Carmack was loaded)
3) Investment (Kickstarter / preorders being one form of this)

Or some combination thereof. Surely you didn't think every single new device comes from a extremely large corporation.
RIP Oculus:

http://i.imgur.com/B4sNyLK.jpg
I'd go with a combination of 1/ and 2/. Most of us are like you.

In 14 years I learned to:

- low my expectancies

- do my job always at 100%, but not 110% (save rare occasions)

- live a life outside work (mine, btw, is a life of wife, side-projects, and mmorpg)
Can't say for sure, but I do know those Dilbert comics didn't used to be funny to me.
An Epic Ride with Dom Pérignon – Surprise Ending
If you hang out a lot on reddit, this particular site is written in python, so there might be a bias. Python is also often chosen for entry courses in CS, while PHP is probably more picked up by people who need to know it for work, so it is not necessarly well understood by many of its newly professional users.

My guess is that python is a more well rounded language, with a nicer syntax, which enforces indentation rules (that's a plus for teachers). PHP only shows its merits after a while, and through good practices.

However, looking at the charts over at langpop.com, I don't see how people would choose PHP over perl for its easiness, given the wide difference of popularity. They just don't sit in the same ballpark (except for maybe a few specific markets).
Basecamp network attack postmortem
Wow, way to live up to your name. There are many private lotteries, they're called raffles. Several times a year in SF there are billboard advertisements for the opportunity to buy lots in a raffling off of a house in the city or several million in cash.

Beside which, capital gains tax probably earns more for the state than either lottery or gambling income in many states.
From the op:
"But level=2 is enough to win 100% of all games!"

So I think it can win all games?
The IRC server I use at work is DDOS'd less than our website. ;)
Not arguing with you here, but I just wanted to say that the point of this rule is to prevent people from getting scammed in large numbers. Allowing equity crowdfunding would also have to come with a bunch of new rules to prevent a company from claiming all sorts of fantastical stuff and then folding after everyone's pitched in.

Just think how this would work - people can't even be bothered to read their ToS or Privacy Policy for Facebook. You think they're going to pour over an operating agreement to become an equity member for a company? This rule was enacted as a quick and simple way to prevent people from being fucked.
Perhaps the first assertion isn't true. Perhaps we don't need to watch people as much as or in the ways we think we do.
And IT departments that don't want company data to ever exist on the laptops. We're back to dumb terminals and mainframes.
I think many peoples' issue with Facebook is that they have proven themselves to be untrustworthy on numerous occassions. They're constantly moving the goal post on user privacy with and without consent and they don't treat business users much better.

It's not surprising that people who care personally about Oculus would not be happy with the Facebook acquisition. Especially since the gaming community has a very strong aversion to the toxic social gaming landscape that Facebook was/is host to.
ah that's what I was missing. it goes under clothes
In the case of a contracting shop, the contracted employee is a party to such an agreement. They can choose not to be. It's like an agency agreement.
Looks cool! Good luck with the development!
To me, he just looks like the next Giuliani. He has no chance in IA and may do ok in a few states in the NE. He will not win SC, and I don't think he has a chance at FL either. I don't think that presents a viable path to the nomination.
I have a test account on Slack, I really like it....but like so many Saas-only products, we'll never be able to use it here at work behind our firewall, with our protected source code and JIRA databases....
Started.in Atlanta
Interesting work. I'd be curious to see this algorithm applied to the original game. Since this is a re-implementation of the game in Java, it may be solving a completely different game.
> Romney wouldn't pick him to run as VP, because of concerns his staff had about the baggage he brought.

I would like a citation on that. I'm skeptical Christie was an interesting pick to anyone but the people that write headlines.

Both Christie and Romney are deep-blue state governors. Christie wouldn't have turned out the vote in any places Romney couldn't. And he wouldn't lend Romney any conservative credibility either.
I'm not entirely certain that's the motive... I mean, as a CEO it is your responsibility to do what is best for the _company_. If you can save the company a lot of money in wages and prevent top talent from leaving then it's your responsibility to do so.

Not that I think what they did is ethical or legal, but I'm not entirely sure that greed is the motive here.
Isn't it OK to change jobs every now and then?

Publicizing this kind of thing is usually bad, especially when you have had the same experience several times.
If your account is publicly identifiable as you I'd delete this post
The importance of failure: Tyler Price at TEDxAmmon
Why Facebook’s $2 Billion Oculus Buy Is a Bet Too Far
I agree.

Would like to note I've spent more time trying to optimize this[1] than writing code, however.

http://stackoverflow.com/questions/21654081/how-do-i-optimis...
It probably varies from jurisdiction to jurisdiction, but in many cases a non-compete agreement is between the employer and the employee. Meaning that you can't quit one company to go work for a competitor. Most of the time the reasoning is because you may know trade secrets that you then may share with the company's competitor, which may be why they hired you away. Sometimes these agreements hold up in court and sometimes not.

A non-compete agreement between your employer and another company without your consent or input will likely not hold up in court and could be illegal depending on local laws.