skysight-inc/HackerNews huggingface dataset:
I think ultimately it's a philosophical difference; the problem with very many large Rails deployments is that the ActiveRecord models are the core of the application, and DHH's conception of Rails seems to encourage this.

This tends to cause a lot of problems - it's hard to exercise a single model in tests without having a very large number of associated objects present. This also tends to require them to be in the database. This makes your tests very slow, and your application very tightly coupled and hard to refactor.

If you rethink your Rails application and make models responsible for only data validation & persistence, you tend to avoid these kinds of problems. You then need somewhere else for the "core" of your application logic to reside. We suggest these new concepts are Interactors, Policies (and Decorators - more to come in a new blog post).
If you are looking for an open-souce plot library that works from JS, python, scala (and potentially driven from any language) you should check out Bokeh. http://bokeh.pydata.org
And UI clutter
He's not going to find this, but someone would eventually tell him about what would be my internet-famous blog with all the dumb boss stories.
Warren Buffett Keeps His Billion
Fair objection.
this isnt the unwisdom of crowds, its the difficulty of noticing sampling bias
The customer is not the end-user of the GPL code; the consultant is. The customer is an end-user of the consultant. That relationship will be governed by a completely separate contract.

On a related note, the output of a GPL program is not GPLed. I can compile non-GPLed code with GCC. Myths like this keep getting used as FUD.

Licenses with a network-use clause, like AGPL and CPAL, define access over a network as distribution. This would cover an API, but would not cover going via a consultant, since the consultant isn't software. If you want to argue that people's minds are software, you may as well argue that our teachers hold the copyright to our thoughts.
The violent Turkish drama Afghan children love
I suspect most AirBnB rentals are illegal in NYC.

Home owners who reside in the home are allowed to sublet a room, but not for less than 30 days (ie most are illegal).

If the owner does not reside in the home, it's also illegal and/or zoning laws come into play.

Most leases do not allow subletting of rental apartments without approval by the owner or they may face (and have faced) eviction (ie under 30 days, most are illegal as well).

By the way, it's not 'just' hotel taxes/fees. Income taxes as well.

In NYC, hotel taxes in NYC are about 15%, plus there are all kinds of rules an regulations that hotels need to adhere to (safety, maximum stay of 21 days, etc etc)

Edit: here are the official rules - http://ny.curbed.com/archives/2013/03/25/an_introduction_to_...
Tell HN: My first hand experience with Healthcare.gov (a.k.a Obamacare)
I am a consultant/self employed. I have been on a COBRA plan for the last few months (my wife's ex employer). For a family of 3, we are paying $2100+ for a decent health insurance (vision included but no dental).

I looked at healthecare.gov just to get an idea. Got a plan that has cheaper premium than COBRA even though the benefits are not exactly the same. So I decide to "submit an application".

The worst decision ever. Guess what, if you don't get the subsidy because "you are too rich according to the govt", you are better off buying it directly from the insurance company. They offer same plan/same price but no middleman.

Anyway, too late for me since I have already submitted the application via Marketplace. So now I wait for a couple of days before calling Insurance company to confirm.

For background, I submitted this application on March 11th,2014 which means that my coverage should be active April 1st,2014 (according to healthcare.gov rules [0]). But guess what, the insurance company tells me that my coverage has been activated effective Feb 14,2014. So now I owe them for Feb and March while I am double paying COBRA premium as well.

Big software glitch on their part OR a badly designed logic of some sort.

Fellow HN'ers, if you are not qualifying for the subsidy (most of us don't anyway), please refrain from using healthcare.gov and go directly to the insurance company. There is no law that you have to buy using the exchange. I didn't know that and was too stupid. Now I am paying the price.

So I have been on the phone with healthcare.gov for 45 mins and they are trying to "correct" it using their IT systems. God knows whats next. I wanted to share this not just to rant but to warn anyone in my situation.

[0]: https://www.healthcare.gov/what-key-dates-do-i-need-to-know/#part=2
Engineer working on Hack here.

You can actually write you example a bit more concisely in Hack: "$y ==> $y + 1".
Plugin Visualizes Your Entire Browser History
They say it's scientifically proved, a lot. What are those journals / scientific studies, especially for the cardio part of the exercise? It seems too good to be true in a "this isn't actually good, but instead dangerous" sort of way, in my not-educated-in-fitness mind.
The benefits of dynamic typing come because you are not forced to convert all your code to the statically typed version. You can still keep some parts synamically typed if you want
> Personally, I'd have expected you to make something akin to CoffeeScript or ClojureScript that targets PHP, and can "link with" your existing PHP modules.

We took a similar approach to what you described. Then we called it Hack.

This is what we mean by seamless inter-operation: the HHVM runtime understands both syntaxes and runs both <?php and <?hh code in the same process. Whether Hack integrates into the runtime at the parsing (current) or bytecode (future?) layer is an implementation detail.
Hahaha thanks for the site, and thank you Wu-Tang Financials
I wonder if he just asked the students how much the bag weighed without giving a scale if you'd get a better answer.

http://phenomena.nationalgeographic.com/2013/01/31/the-real-...

This post is more "ask a bad question, get a bad answer".
Isn't that 4-minutes workout available on the web? How am I supposed to workout without an iPhone/Android?
Time for "exploits of a car".
http://gizmodo.com/5498412/sql-injection-license-plate-hopes...
https://xkcd.com/327/
This question is posted just about weekly. The most recent was 3 days ago at https://news.ycombinator.com/item?id=7415884

Use the search at the bottom of this page ("ask laptop") and read all the previous submissions. You get quicker answers and HN gets fewer duplicate discussions.
Drunk 2048 clone idea - as time goes on probability your move will be replaced with a random move grows.

For example:

after 2 seconds: [0, 1, 0, 0]* => [0.1, 0.8, 0.1, 0]

after 4 seconds: [0, 1, 0, 0] => [0.15, 0.6, 0.15, 0.05]

after 8 seconds: [0, 1, 0, 0] => [0.25, 0.25, 0.25, 0.25]

* Probability of [left, up, right, down] move.
Sorry we have a bug if more than 2 people join the game. Once the third person joins it messes up the game. Fixing this right now.

You can try making sure there's only one other person connected, and whoever is the guest (the person with the hash in the url) refresh the page to reconnect.
"the initial benefits of the dealer franchise system have long since given way to rent-seeking, inefficiency and unintended consequences"

This is by far the most interesting part of what is a rather short and fluffy piece with a strangely assertive headline.

How exactly does a government/regulator quantify when the benefits of a granted monopoly (i.e. power, telecom, etc) has outlives its well understood purpose?
cmd + space defaults to Spotlight.
I couldn't agree less.

Markdown is an abstraction that professional writers do not need. MacWrite et al solved the text-editing problem 30 years ago. Press the "paragraph" button (carriage-return); you get a new para in the content and on the screen. Press the universal shortcut for italic (cmd-I) and you get italics, in the content and on the screen. And so on.

Markdown is a hack that works around two inconvenient truths. First, in-browser editing has traditionally been shitty. Second, for those working in a coding milieu, you can't just type 'less someasciifile.txt' and have it display with the right italics, bold and breaks.

If you're a professional writer for print, none of this has bothered you since WordStar. You write in your tool of choice (most places I've worked it's been Word, though I use TextEdit). You save. The designer brings it into Quark or, latterly, InDesign, which preserves the formatting. End of. You don't need to think of "markup language" at any stage in the process, and nor should you.

Expecting the rest of the world to downgrade to a hack devised for the web is entirely backasswards. Scribe looks like a good attempt to bring in-browser editing up to the standard everyone else has enjoyed for 30 years, rather than dragging everyone down to the hack level of Markdown. Good luck to them.

(My background: former full-time consumer magazine editor, now freelance; semi-pro coder.)
In the VERY FIRST game to finish, 11 seed Dayton upsets 6 seed Ohio State. Nate Silver had given Dayton a 25% chance of winning, so just about everyone who used his numbers as a guide is out now. Buffett's odds just got MUCH better.
We're planning a family vaca to California for the first time this summer and planning on Muir park.

Also if you end up renting a car you may want to check out Yosemite (3-4 hr drive). That is on our list.
That video of the project's activity over time is pretty awesome and almost brought a tear to my eye :) https://www.youtube.com/watch?v=FCiS812oRU8 (link didn't work for me on iOS)
For those outside California, new California registrations are issued in small paper packets that are affixed inside the front windshield. There are no "temporary tags" like in many other states, so it's perfectly normal and legal for a new car to pull off Tesla's lot without any license plates.
You're right, it didn't. All of the trades data included internal User IDs. More recent data (as of April 2012) included User ID hashes, which Gox users have access to (from their password recovery emails for example).
> I'm wondering if it's legal to obscure your license plate

No, not only can you not act to conceal them, you have a positive obligation to actively keep them readable. See, California Vehicle Code Section 5201(a): "License plates [...] shall be maintained in a condition so as to be clearly legible. [...]"
they provide enough value to enough people that they would never have something like that happen to them, there would be a public uproar.

if they were doing something wrong in the eyes of the public, that's another case
This. There is an article by Michael Abrash that goes into good detail about this:

http://blogs.valvesoftware.com/abrash/when-it-comes-to-resol...

quoted:

"Given which, the obvious question is: how high does VR resolution need to go before it’s good enough? I don’t know what would be ideal, but getting to parity with monitors in terms of pixel density seems like a reasonable target. Given a 90-degree field of view in both directions, 4K-by-4K resolution would be close to achieving that, and 8K-by-8K would exceed it."
Looks great. Quick bug report - when working on an actual invoice I ran into issues on FireFox ESR 24. (I would imagine this happens any time a user restricts access to rendering PDFs on screen or in the browser as objects?) It pops up the "Open or Save" dialog each time a change is made and the object fails to load in the window below. Perhaps detecting the issue up front and then offering a "download" button when complete would be an alternative.
Locations of the London traffic cameras
Project Morpheus impressions: Sony proves it’s serious about virtual reality
How is this different from Dell or Apple?
You could keep the bag on your desk and have students come up and sample from it and weigh them at their own desks, thus ensuring that the bag never comes close to the scale.
There's a memory leak that only got fixed in 0.10.22 I believe. Erin Hammer and the whole Node Black Friday team really publicized it when it was biting them[1]. I'm not sure if the leak was present in 0.6 and given that you rely on older modules the cost/benefit of switching is probably too high.

You're the first person I've heard that was able to run vanilla Socket.io at such scale. I know Trello and some other shops use Socket.io, but they've forked & changed it to something that looks nothing like the original[2].

1 - http://www.joyent.com/blog/walmart-node-js-memory-leak

2 - http://nodeup.com/fortytwo
That reminds me of the book The Windup Girl - it's set in the 23rd century, and all of the natural resources we use today have been depleted, so energy storage is done by having genetically modified elephants manually wind up springs. Who knows, maybe your boss is just way ahead of his time. :D
Turkey threatens to shut down Twitter
Anyone could translate it please?
> This is wrong as you state it.

I'd have to think about this for a while, like weeks, so I'll move on to lower hanging fruit for now.

> So within the LIF, the two probes are not moving in "opposite directions".

Agreed.

> Why do you think I would disagree with this? I don't.

You do. The first probe moves toward infinity. The second probe toward the singularity. They each move toward destinations beyond opposite sides of the LIF. Then, as measured in that LIF, they recede from each other. But you disagreed here:

> The second probe will move closer to the first probe (while they are both within the LIF);

Again, you wouldn't be able to show that the probes approach each other in the skydiver's frame, given the first probe moving toward higher r-coordinates and the second probe moving toward lower r-coordinates. You should be able to do that if you are correct.

> You keep on making this mistake even though I've repeatedly explained why it's wrong, and even though you think you are not referring to r coordinates at all.

GR places additional conditions on what happens in a LIF, when it predicts that everything below a horizon falls toward the singularity. To be a falsifiable scientific theory we must be able to set up a thought experiment that accounts for that prediction within an LIF straddling the horizon. So what I do in that regard cannot be a mistake, as long as I'm careful that nothing is measured outside of the LIF. For example, it's okay to have an experiment in an LIF that says "fire a particle toward Vega", even though Vega is outside the LIF, as long as the measurements take place wholly within the LIF.
What was the rationale for being inconsistent in the type notation? Why not be consistent like most languages?

For example, in Java you'd write: int add(int x, int y) { ... }

And in Go you'd write: func add(x int, y int) int { ... }

But it looks like in Hack you'd write: function add(int x, int y): int { ... }

Both Java and Go are consistent, either the type comes before or after the name, no matter which context you're dealing with, be it return type or argument type. Hack seems to mix the two styles, which seems like it would make code harder to read as things get more complex, like when functions accept other functions as arguments.

Am I reading the documentation right? And, if so, can you shed any light on the decision making process that went into this decision?
Yeah but it's so much easier than making flappy birds clones!
Yeah, I should write a more detailed post with all of the horribleness that was involved...I didn't want to get that far into the weeds for this.

The worst of it was probably the environmental contamination that Bundler does -- you don't realize it when you're running it from the command line, but it has all sorts of little system-level side effects, from setting secret config variables to updating caches. And those side-effects change as you do different things. And they're not documented.

The result is that if you want to run Bundler (or even parts of Bundler) as part of other code, you need to be very careful to establish a strict sandbox (i.e. tmp directories and clean environment are the starting point) -- and even then, it's pretty easy to get hosed.

Just figuring that stuff out took the better part of a few days, not counting the time it took to figure out how it actually works, of course.
I'm appalled and little bit insulted that you group PHP in the same group with COBOL, C and C++ in terms of their foundation. COBOL and C were designed by some of the greatest pioneers of the field, and indeed PHP is built on C.
Right homepage for the right job
Probably because circles are easier to make in CSS than hexagons :)
And, in any case, isn't much different than automated radar + photo tickets that have been implemented in some places in the US.
PHP is a joke.
Little more dramatic than finding a $20 in an old pair of jeans...
Hey! I'm the creator of Chokoboard, I've never expected to see it on the first page of HN. Thanks for pointing that out I'll change that
relevant: https://www.youtube.com/watch?v=byEkJ3zRTcY
Why is that crazy? How many guests does Hyatt serve per year? How many does AirBnB serve today? How many could AirBnB serve with continued growth for the next five years?

And of course the elephant in the room, how many will AirBnB serve if regulations are enforced? Also an open question of will AirBnB be commoditized and have its value spread across dozens, if not hundreds or thousands, of competitors across the globe?
> depersonalization

I think you're maybe looking for bowlderization or anonymization or something similar?
The Odds of Every Possible NCAA Bracket
I believe Python might have worked. It's grown well as a web development language since then by itself. It may have forced several rewrites before WSGI came about. It is a relatively easy language to learn, to hire for, and has few massive warts. (Ruby is roughly in this category too, in my opinion.)

I believe Perl probably would not have worked. It hasn't grown much as a web development language since then (although it has some great web frameworks). The language itself has languished in both development and community growth, and it fairly esoteric and certainly harder to learn than Python and PHP, and would have been harder to hire for. It seems unlikely that pre-2010 Facebook to meaningfully have changed the trajectory of the language (ie, Perl 6 being a success).

I don't think Java, C++ (or C), Cold Fusion, ASP, Haskell, Ocaml, and many other languages would have worked, for a bunch of reasons. Harder to hire for, harder to iterate with, more costly in terms of infrastructure, harder to teach/learn, and so forth.

PHP isn't a totally insignificant part of Facebook being as successful as it has been. A good-enough language choice was necessary, at least, and PHP it seems was a good-enough choice.
I don't know what you mean by that... stuff like classes were already in the harmony proposal phase before Typescript implemented them. Stuff like type hints won't be in JS ever.
Absolutely not!!! This should be pretty obvious, but here's the law:

https://www.dmv.ca.gov/pubs/vctop/d03/vc5201.htm

5201. (a) License plates shall at all times be securely fastened to the vehicle for which they are issued so as to prevent the plates from swinging, shall be mounted in a position so as to be clearly visible, and so that the characters are upright and display from left to right, and shall be maintained in a condition so as to be clearly legible. The rear license plate shall be mounted not less than 12 inches nor more than 60 inches from the ground, and the front license plate shall be mounted not more than 60 inches from the ground...

and

(c) A casing, shield, frame, border, product, or other device that obstructs or impairs the reading or recognition of a license plate by an electronic device operated by state or local law enforcement, an electronic device operated in connection with a toll road, high-occupancy toll lane, toll bridge, or other toll facility, or a remote emission sensing device, as specified in Sections 44081 and 44081.6 of the Health and Safety Code, shall not be installed on, or affixed to, a vehicle.
I should have mentioned that the reason most people don't resist government isn't simply that resistance is futile (in the way a person likely won't resist a mugger with a gun), but rather that they don't feel like they are being wronged at all.
Who is innocent of all crimes?

You don't want omnipotent, omnipresent, omniscient mechanical enforcement of the law. You may think you do, but you really don't.
This is great and exactly what I need in my PHP. Glad to see types making sort of a come back (see also: TypeScript) as I think they're, in one way or another, necessity in a large scale applications.

One note though - the success of this depends on the success of HHVM. Hopefully FB guys understand that and will push even more to make HHVM the best platform to have for running PHP on.
The author is quite famous in the competitive programming world:

http://icpc.baylor.edu/community/icpc-challenge-champions

https://www.quora.com/Who-Is-Was-X/Who-is-Rudradev-Basak

http://blog.codechef.com/2011/02/01/programmer-of-the-month-...
Great podcast about using Websockets (including Socket.io) in Node: http://nodeup.com/fortytwo
> And how is that better for the world, duplicating functionality and reinventing the wheel?

Healthy competition. Fresh ideas. Something to turn to should there be an unfixable problem with the other thing.

Monocultures are dangerous and come with a high risk of stagnation.
Don't exchange one hyperbole for another. The government is in between being an impartial referee and being the capitalist bully.
It's a good thing that what is 'fun' is purely objective! Otherwise you wouldn't be able to make such claims and still be taken seriously.
This[0] is what Hacker News is becoming lately.

[0]: http://i.imgur.com/F0t5T21.png
My understanding is the issue is not in the protocols, but in the implementation of the libraries themselves.
A big thank you to shykes, the team and the community!
I'd like to see Google evangelize and hand out to their competitors, no strings as with SPDY, any technology they develop or contribute to that helps people communicate securely, and their competitors doing that as well.
In principle, the line is a gradient based on how much you're putting yourself in a position of power over your users.

The consultant doesn't serve so much of the market that there won't be tons of competitors. If he makes some changes to better meet his particular needs, that has a very small impact on my options as a client. I would prefer that he share it, if anyone else is interested in it, but it doesn't matter very much at all.

One API can potentially serve the entire market, and you wind up with just a few players all fighting for lock-in. Proprietary changes there matter quite a bit more.
I feel like this one is easier.
> Much of the world still runs on C

But these days, most interesting applications run on C++, which started from the arguably crumbling foundation (from C++'s point of view, not per se) of C, and grew organically over several major revisions into something hideously complex.

This trait of C++ is not a good thing, but the amount of successful software written in it seems to prove that it's not fatal either.

> You can still run applications from nearly 20 years ago on Windows today, in no small part because of Microsoft's persistent focus on compatibility and keeping the basics reliable over that time.

Layers of hacks on hacks to keep old software running correctly is exactly "building on a crumbling foundation", and probably the reason Microsoft is trying to get rid of Win32, having severely limited its availability on ARM in favor of the WinRT APIs. But I'd say the venerable success of Win32 demonstrates that the crumbling foundation works.
HomeAway is public and worth $4 billion today. I'm pretty skeptical AirBNB is worth more than twice that.
Good idea. OmniGraffle users now can use such free stencil collections. It should grow.
You can just give it to me.