skysight-inc/HackerNews huggingface dataset:
The Stephen Hawking of the ghetto
100% Revenue Share for your App, Game or Blog.
For any project worth talking about Sinatra is too skinny. Basically you have to hack your routing in about the same way you do with Node's Express, enumerating the bindings between routes and methods. Obviously there are clever ways to do it but you end up reimplementing the resourceful routes of Rails.

Another problem is that you really want to use ActiveRecord to access the database. Anything else it too painful. So you end up creating AR models and you have to manually include them.

Finally there are views. I won't even enter into that.

Soon you end up with a worse engineered Rails. I've been using Sinatra only for serving API requests for small projects. I won't touch it for anything else.
...we will know if they know the material or not?

I don't think cheating on exams is that widespread, what are others experiences?
Cargo, Rust's Package Manager
Not so much Chess, poker would be more apt. We then veer into the territory of deciding what is and isn't a sport.
That's great feedback! We will definitely implement this.
If they do decide to staff the support for this service, instead of their usual "bot or FAQ/help-page only" annoyance... how long until all their OTHER services figure out that this is how you contact a human at Google? Youtube, in particular, comes to mind.
Scanadu, if they can make their vision of a tricorder a reality.
Scientific computing. For my work (in particle physics) I need something that is fast, has interoperability with decades worth of C, C++ and Fortran code, runs preferable close-to-metal, and has minimal overhead. Also, it has to be something physicists (not computer scientists) can/want to work with.

There are a lot of great libraries for Python, and it's much nicer and more productive. I use it whenever possible, esp. for making graphics, or when I can use optimized stuff like in numpy. However, most of the programs I write are of the type "loop over 10 million entries, perform a simple calculation, return a number". These are mostly IO bound, and one would think that this is a case where you could use a dynamic or interpreted language. But whenever I tried, the overhead for the large loop and the variable access in tight loops was too high, and the problem became CPU bound. So, in my experience, it has to be a compiled language (or at least something more performant then Python).

I'd love to be able to use something like Haskell, as a lot of my problems are functional in nature, and it'd be able to catch a lot of stupid bugs. But it is too esoteric to be realistically adopted by the community.

The ideal language for me would be "C+". A C++ lite, where you would ban most of the complications. You would still be able to write C++ libraries, but then use them from simple C+. A C+ user, as opposed to a library writer, would not have to know about the "safe bool idiom", traits, private destructors, default methods (which are utter maddness in C++11) and template metaprogramming.

I'd then augment this simplified C+ with a powerful static invariant checker. You could say something like "guarantee x < 10; x = f()" and it could complain "you demanded x be < 10, but f() only guarantees x < 100".
I think the trouble is now, if this was just released, is that you can easily google for c99.php and find vulnerable servers with this file hosted on it, from pre-existing backdoors/phishing hosts, or what have you, and this allows anyone and everyone to use it, not just the original person who placed the backdoor. Which, I suppose, kind of enhances the problem exponentially.

As far as I'm concerned though, Google and Firefox's malware checker engines should blacklist any domain that has the c99.php file located on it and block their webbrowsers from connecting to it in the first place.

Of course - correct me if I'm wrong here.
Dear Adobe: Support Haxe, save your Tools
Some Google Apps users got banned (allegedly for TOU violation, but no one cared to even tell wtf was wrong), a number of emails weren't delivered, no support whatsoever was provided for a paid product — long story short, it was pretty bad.
Neat, but they sure are protective of "their" data: The API does not allow access to historic data, and you are not allowed to retain data (even in aggregate) going back more than 10 days.
When the object of the game is to win, you can pretty much determine the better team by result. You might not always agree with how they achieve it, but you can't really argue results.

That said, I was specific to say 'On the day'. Typically, it's pretty poor sportsmanship that sees most of us arguing that the better team lost.
I can highly recommend books written by Nicholas Zakas.

http://www.amazon.com/Professional-JavaScript-Developers-Nic...

There is one shorter book that he wrote recently:
https://leanpub.com/oopinjavascript
Isn't it obvious?

Adoption of skills depends on the ecosystem of practitioners. Empirically, we are observing that women do not copy social behavior of the male part of the ecosystem and do not engage the subject of programming/coding/compsci.

We need to reach a threshold value, a tipping point where girls and women would see enough role models and would have enough support networks to progress in the technology industry. This may be achieved by reaching a critical mass and that is exactly what Google and others are doing.
Bah, no IPv6 :(
that's not true; the pre-interest cost of universities has outstripped inflation many many fold in the last 30 years. The pre-WW2 era colleges were almost certainly less expensive in real purchasing power terms than they are now.
Repository of Beautiful Quotes
Subscribe to get daily new quote to inbox !
Thanks for being so raw and honest about this - even the less glamorous parts. It isn't easy to talk honestly about issues like gendered expectations and approaching VC, black hat marketing, or emotional manipulation for Visa, and a lot of people would have chosen to gloss over those aspects, but it takes a lot of guts to be upfront about the darker sides of running your company.

Reading this, it confirmed an important lesson that I learned in a completely different setting (grad school). It's much, much better to do an impossible project with an excellent mentor and fantastic coworkers, than an easy project full of low hanging fruits with colleagues you can't stand.

People who were in the former condition all flourished, even if it meant pivoting to a completely different project after having invested 2 years in a dead end idea. People in the latter camp burnt out completely and almost uniformly dropped out of grad school. The few that stayed were basically running on spite the entire time.
List of boilerplate projects in many programming languages
+1, I would love to take a look at an example or two, as this sounds very interesting.
Really cool seeing a kickstarted project (LIFX) working better with others than Philips (Hue). It'll be really interesting seeing how LG and Samsung does.

I built this a while back:
http://comparesmartbulbs.com
It was released years ago: http://www.amazon.com/dp/0131103628
Given what I've seen here vs. in European countries with good driving test standards, I'm surprised it's not much higher. Maybe the distances in the US are larger? Or perhaps our roads are wider and so have more wiggle room, which compensates for the stunningly bad driver behavior I see every time I drive.
Cargo, Rust's Package Manager, reaches alpha
Can this be removed easily?
It looks like it would be a beacon for vandalism unless you spent your time in secure parking.
This is a much more interesting article than the clickbaity angle would suggest.
So it is now possible to give Google, who is solely responsible for a high percentage of your site's traffic, access to:

- Your traffic (Search)

- Your analytics (Analytics)

- Your income (AdSense)

- Your advertising (AdWords)

- Your hosting (App Engine)

- Your DNS (Cloud DNS)

- Your domains (this)

That gives their search algorithm a pretty full picture of who owns your website, where you get your content, how much customers like it, any other sites you own, how much traffic you get, how much money you make.

And they can delist you whenever they want.

No thanks. I'll keep my Google to a minimum.
especially if you're coming out of an overbuilding boom where too many housing units were built out of sheer speculative investment that destroyed a lot of equity.
"You couldn't pour water out of a boot with instructions printed on the heel."
The only reason you have C99 on your server is because you've already been hacked. Its' one of the oldest shells used for backdooring a hacked site - you rarely see it anymore because there are much better shells now.
This, like their experiment at hiding URLs in the browser, smells like an attempt at muddying the concept of "domain".

People need to be educated about this new literacy. Instead, we have the people in the best position to do that education possibly trying to maintain ignorance. sigh
when we find "y" deep in a function

There should be no such thing as deep in a function, or at least not as deep as you mean (i.e. so deep that you can't figure out what y is): that would in all likelyhood mean your function is too long, has too much responsabilities. Good functions are short and composed of other short functions, they should be short enough so that you can read them through without ever having to wonder 'wtf is this?' I know this might sound like textbook stuff without practical use but it's simply the truth, as I learned through the years. In those years my functions only became shorter, and hence better named, and more reusable, and all code simpler to read. So auto was a godsend that didn't hurt once.
Hey Vibhu, Marco on the Apps Team at Nest.
Study finds different vocabulary words are known to only men or women.
The demo video may have revealed a little bit about Nest's strategy here. The video showed Whirlpool relying on the Nest thermostat to be the smart hub and help control the energy usage.

Nest seems to be selling the user experience right now (Thermostat, API etc) - but they are also positioning themselves to be at the center of the "smart home"
We don't even know the full story (& probably never will), yet you're already advocating mob justice? That's about as bad, if not worse, than the political correctness you're railing against.
Extensive discussion: https://news.ycombinator.com/item?id=7924441
What's the progress like? Are you strapped for time? If you need help funding this specific aspect, I would be interested in fixed-rate contract work. Email in profile.
> It is still the dominant language for large-scale low-level systems.

He didn't say it wasn't the least dominant. He asked why it was to be considered the best. Dominance is a thing of legacy and you have to take into account a bunch of reasons that have nothing to do with how good a language is to assess why that's so.

Being the best tool is something completely different. I think the commenter has a good point and I think it's clear that a lot of the areas C++ has been used for have been taken over by better languages that offer more without conceding much. In that regard, he is spot on in saying that C++'s niche is indeed shrinking.

C++, like most other languages, is the best tool for some problems and areas, but those are growing smaller and smaller as we identify exactly what we need and create new languages to escape the rest of C++.
Don’t shoot the demonstrators
Ask HN: Choosing 5 Android handsets for QA purposes: Which 5?
Hey HN - if you were developing an Android app and had the opportunity to pick 5 Android handsets for QA purposes, which 5 would you choose?

I suppose you'd want to go with 5 Androids that represent some balance of covering as wide of a spectrum-representation as possible, while also representing the major families of Android (Galaxy S-series, Droid Razr?, etc...)

Thoughts? Which 5 do you go for?
Do note that I mentioned 6 companies in which I have personal knowledge, while this article only mentions 42 floors (ie I presented 500% more actual examples than the author). Even if you where to believe all 7 companies the author has worked at -- counting the mugs on the about page -- are such bad startups, we still have nearly equal datasets. And that's not counting other startups I know about because friends are founders.

So yes, this hasn't happened to me, and I presented much more or, at bare minimum, the same actual data points.
> So it is now possible to give Google
^^^^^^

I believe you misspelled "NSA"?

Jokes (sorta?) aside, this betrays a serious failure in the way many people use network services such as those in your list - they often lack a second source. Since when did it become ok to have only one supplier for your mission-critical needs?
And co-founder of Nest is ex-Apple guy. Now you know from where the growth comes.
And here is the announcement from Yehuda Katz:

https://mail.mozilla.org/pipermail/rust-dev/2014-June/010569...
You're absolutely right. I understand, and completely agree. But by virtue of said acquisition, Nest's design chops == Google's design chops.
I have some constructive criticism for the author, please take this in the manner that it is intended :)

1) Nothing I see here is restful at all. Please consider changing your documentation to specifically mention consuming JSON Web APIs rather than REST, because its simply misleading.

2) Personally I LOATH chained function/method calls. As per your example:

api.Res("users", resp).Id(1).Get()

What happens if the argument passed to api.Res is not "users"? Or "users" is incorrect? Or if Id 1 doesnt exist? Or you cant use the HTTP method Get on the selected resource? Or if I want to use a HTTP method you haven't got a function for?

I assume the code panics because you are using method chaining your methods must return a single type you can't use the neat feature of Go of returning multiple types, specifically for errors.

3) By not being restful you have now made any code I write that consumes an API brittle to the changes of the API supplier i.e. the JSON response may change structure and break my code (this is less a criticism of your package and more about JSON Web APIs that refuse to learn from the lessons of REST).

4) How in the hell is this safe in any sense of the word, especially in an example of the use of the library:

resource := api.Res("users").Id(123).Res("items", resp).Get(querystring)

if one of my developers wrote a line of code like that I would be having serious words with them regarding error checking. Encouraging this kind of foolhardy coding is irresponsible in my opinion, but that is just my opinion as I see an awful lot of this style of coding.

Sorry to be a debbie downer, but I think as a community of developers we should be promoting the best practices of our industry not constantly trying to explore shortcuts. For example, nothing I have seen in this package even acknowledges the existence of the network in the process. How does the developer using your package deal with network timeouts? 404s? 302s? 500s even?

Again, I hate seeing HN devolve into a bitching session just like the next person, so apologies to everyone, but this pushed a few of my personal insta-rage buttons.
Announcing Faster Transfers | Simple
> I need something that […] has interoperability with decades worth of C, C++ and Fortran code.

Assuming you meant more than having a good FFI…

When I judge the suitability of a language for a task in the abstract, I systematically ignore 2 very important factors: legacy code, and skill availability. I do as if everyone know every language, and we start from a mostly blank slate.

If I didn't ignore those factors, I wouldn't be judging the languages, I would be judging whole ecosystems, introducing a huge status-quo bias in the process.

---

The C+ you look for is probably possible. I bet it could be implemented a la CFront.
The problem is that other people's code might use the 'exotic' features. Unless you're the only one working on the code, or you have control over what subset of the language is used (including libraries), you have to deal with the whole language.
Nest Developer Program
Troubles. Bothers. Unnerves.
I use the betfair 'betting exchange' API +crude algos to place bets on the final results of soccer leagues. My main risk, I think, is betfair going bust with all my capital locked into season-long bets (I make many small bets on unrelated markets).

They charge 5% commission on net profits for a given event (would be reduced to 3% if I had very large volume). They are floated on the stock market, have a decent market cap and I think my funds are likely safe with them. That 5% is a lot, and really reduces my profit, BUT at least I am fairly sure my capital is safe. (Unlike e.g. intrade [0] who I really wanted to use (big arbs on US presidential election vs betfair) but did not trust (rightly so, as it turned out)).

The other positive thing is the market depth - many punters use betfair. This is self-reinforcing - people don't use eg betdaq because people don't use betdaq, even though their commission is currently 3%.

Another thing: I am happy having my capital tied up in bets because inflation and interest rates are low. That is not true of bitcoin. For bets on a given match, made and settled the same day, this might not be a big issue, but for longer-term bets ...

I'm interested to see how xbet does, good luck to them.

[0] https://en.wikipedia.org/wiki/Intrade
You'll need a recording gramophone like this one: http://www.thinkgeek.com/product/164f/
> there are simply many other market forces (... a good football team ...)

Not being an American, may I just take a slight space to admit that Mind == Blown
After measuring daily for about two months with such a scale (in the mornings after going to the toilet and before drinking anything, so I assume my hydration should be somewhat consistent) I see a clear downward trend (in line with my weight loss), but the actual values that are measured don’t seem to be very exact, probably about ±3% around the imaginary trend line.

Those measurements seem to be good for finding a trend, but not for finding the absolute value.
Somehow I get the feeling that this is primarily targeting people who, for whatever reason, don't have easy access to those better odds.
> It's not as if people can be prohibited from owning cars based on where they live.

In Japan to buy and register a car, you have to submit proof that you have access to a parking space for it, some cities have rules such as the parking space needs to be within, say, 3 km of your home.
> This time around I can apply all these lessons learned.

Good luck. :-)
Should web page look the same in all browsers?
Seems like a normal case of jet lag. 6000 miles east, +9 hour time difference between San Francisco and Cannes. When the sleep wall hits, it hits hard.
City pays only a fraction of what the analysts/traders/etc. get.
My primary concern is my house becoming part of Google's walled garden. "Oh, my garage door doesn't work anymore as it is controlled exclusively by 'Works with Nest.'"
Prabowo Tolak Pelukan Jokowi
debat capres,debat capres jokowi,debat capres prabowo,debat capres 2014,debat capres indonesia, tolakan pelukan prabowo,debat capres metro tv,kampanye capres,probowo bocor,kampaye hitam capres,debat capres,debat capres jokowi,debat capres prabowo,debat capres 2014,debat capres indonesia, tolakan pelukan prabowo,debat capres metro tv,kampanye capres,probowo bocor,kampaye hitam capres,debat capres,debat capres jokowi,debat capres prabowo,debat capres 2014,debat capres indonesia, tolakan pelukan prabowo,debat capres metro tv,kampanye capres,probowo bocor,kampaye hitam capres
How long did this take to write? How large is your team?
1. Apprentice in a good trade and you can earn more than the average professor. Seriously, my plumber makes more than than the prof who taught me quantum physics.

2. If you're at all cut out for college, you can get scholarships.

3. Even if you're not brilliant and just persistent, you can get loans.

University administrators and their associated bureaucracy have been expanding for quite some time now. It's actually rather sickening. I went to a conference and inadvertently lost the receipt for a $20 supper that sparked of a month-long shit-storm of gargantuan proportions when I tried to claim it as a travel expense. I think the University must have spent upwards of $2000 in man-hours lost. I honestly would have just paid the $20 had I only know what I was setting in motion! They weren't even coming down on me! They turned on each other like a starving pack of wolves, desperate to establish who was the alpha!

It's worth asking how we can step back into sanity from our current, ludicrous position. Recently, several University of Alberta professors organized a protest in which dozens of professors have applied, in groups, for the position of president of the University. They argued that any of the many groups applying for this position could do a superior job to any single person, and they'd each be getting a raise despite splitting the salary of the position! While the obvious message is that top administrators make far too much, I actually hope the UofA hires one of these groups. An absolute bloodbath for the administration of the UofA would likely ensue! Perhaps those claiming $20 for dinner at a conference will simply be given the $20 without touching off a grand inquisition that costs thousands!
3 or 4 stories is fine. Lots of the old parts of towns here in Italy are that high, and it's a nice compromise, because you can pack more people in, but buildings like that don't jut out from their surroundings when they're all about that high.
I was in the same situation. In my case the reason why the co-founders left wasn't told was because the reason was that they thought their partner was too naive and incompetent to work with. Not something so easy to say straight to the face. In hindsight, I think there was no wrong in feeling betrayed in my case, but at the same time the co-founders did no wrong either. We were too inexperienced to handle the situation gracefully. Break-ups can't be amicable all the time. Everyone has their side of story.
"Every woman can be beautiful in her own way" - Random top model
Not the poster, but I've written a few small sinatra-endpoints in my time.

For example I wrote a self-hosted comment-system, which is like a very basic disqus service. The back-end is a simple sinatra service that just allows "GET /comments" and "POST comments". (http://github.com/skx/e-comments/)

Last week I wrote a webhook-consumer, again using Sinatra. It receives a POST from github, parses the received JSON, and adds some details of the body into a queue for later processing.

Both services allow simple deployment and total may 50 lines of code each.
Also, here's the CWE (Common Weakness Enumeration) Top 25: http://cwe.mitre.org/top25/index.html
Nest To Share User Information With Google For First Time
The original Nest device is so popular among the general population because of its UX, display and colorful feedback.
"Works with Nest" is amazing for us techies, who know the technical feat behind all this interoperability, but to the average consumer transparent technology and complex automation is a really hard sell.
The mass market consumer still want to touch, feel and see the things they pay for. However as a 'shop hub' for great designed devices that play along, "Works with Nest" is great. Also I am sure "Works with Nest" is a great vehicle for corporate deals of Google, since it allows them to do co-promotions (such as Mercedes) as side-projects which are usually embedded in such agreements.
Frameworks tend to use it, to create variables in a view that were sent from a controller. For similar usecases it also makes sense (you want a bunch of variables created from an associative array).