skysight-inc/HackerNews huggingface dataset:
If there's enough Airbnb demand to drive up residential rents, then you'd also have to factor in some or all of...

• Hotel rates go down from the competition; some hotel space/development at the margin is shifted into residential/Airbnb units

• Those renters who take vacations to other cities pay less when on vacation (in either Airbnb units or competed-lower Hotel rates)

• Some renters make up some or all of the raised rents through occasional re-renting via Airbnb (as when they are on vacation)

Ultimately, holding both people and housing units (including hotels) constant, it's not at all clear that a new commercial system for reallocating who-is-in-what-bed-when causes any net increase in prices paid. By better utilizing stock that might otherwise have been empty, it might increase a city's effective carrying capacity with no costly new construction. Even if it does drive up rents, that's only happening in concert with a bunch of other value - more people on vacation, more useful density/utilization in the most desirable locations, more options for many renters – that helps offset the negatives.
c is assigned a list, not a generator. Switching the square brackets for parenthesis creates a generator, but attempting to access the elements will fail because f was closed after exiting the 'with' scope.

<ipython-input-8-e2c5ebe72b17> in <module>()
----> 1 for x in c:
2 print x,
3

<ipython-input-7-9460e3a04a4e> in <genexpr>(***failed resolving arguments***)
1 with open("/tmp/foo.txt") as f:
----> 2 c = ("{0} : {1}".format(x,y) for x,y in enumerate(f,1))
3

ValueError: I/O operation on closed file
Hey, I'm part of Mozilla and I spent a significant part of my day researching this spec, and asking questions and listening to try and find out why your use case wasn't being met. Usually we prefer well-reasoned bug reports or emails as apposed to "Fucking fix it" on the HN front page, but we'll take feedback where we find it. :)

Also note that if you can't convince Microsoft to change this as well, then it doesn't matter too much what Mozilla does (at least for sites that need to support IE).
If you're writing a filter, an even better pattern is:

while (<>) {
...
}

By omitting the file handle, "<>" will go line by line through each filename specified on the command line. If no filename arguments were passed, it reads from STDIN.
"One is so that you can use fonts that have single-site licenses in a way that satisfies the licensor, by not allowing other sites to use the font too without your authorization."

Good point but I believe that the only way to combat that particular edge-case is to use something like the valid_referers directive: https://gist.github.com/jdorfman/6737413

"This isn't about a known attack, but a class of attack that we know from experience is likely to crop up in the future for any type of cross-origin resource load that we allow."

You bring up another good point, but I am not talking about every cross-origin resource here, I am talking about Content-Type: font/ttf, application/x-woff, application/vnd.ms-fontobject & image/svg+xml.
Hey man, here is my bio https://about.me/FaisalAbid. If you feel I can provide any insight then give me a shout at faisal.abid@gmail.com
If you don't know how to slurp a file, you're not a professional Python programmer.
"Liberation Music", ha!

It's not clear to me, however, just how big an award can come from one instance of improper takedown? I mean, I don't expect the label to have to sign fewer artists or anything.
obligatory X is better than php flames on the way.. php just works.. end of story
Shockwaves, and the Beauty of Supersonic Flight
I'm not sure if it's still the case (I recall some discussion about optimising it) but using the more obvious[1] idiom of

foreach my $line (<$FH>) { ... }

slurps the entire file because the foreach is forcing list context on the diamond operator.

The

while(<$FH>) { ... }

that you describe works as desired though.

http://stackoverflow.com/questions/585341/ appears to cover it in some detail.

[1] To me, anyway.
Imagine one thumb being 1x, the other 10x - then you could dial in precision and speed at the same time.
Great start on an interesting idea! One thing I noticed was the time durations when filtering by time. I'm not sure you need it going back as far as 6 months especially since filtering by importance would be next to impossible.
If you are looking for an async MUC bot writen in Python, here is a pretty good one that has been really easy to write plugins for:
https://github.com/Netflix/brutal
While hardened font parsers that were safer to deploy against arbitrarily supplied fonts would be nice, there are already issues with turning over control of your supplied fonts to a third party:

- http://www.cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2013-3...

- http://www.securityfocus.com/bid/61697/discuss

- http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2010-3959

etc. And yeah, those are generally windows vulns, but IIRC, mozilla/firefox use the OS font rendering libraries, so these are still valid (I could be hopelessly out of date here).

Don't get me wrong; cross domain fonts would be _really_ nice to have, and same domain fonts don't solve the font engine vulnerabilities, as you can still have malicious domain owners messing with fonts to mess with your browser, but it seems like font rendering is still very early stage when it comes to hardening. I hope that once FF is feeling good about the security of their font rendering engine (and their dependencies), they'll start loosening the restrictions.

This doesn't even begin to cover the font/copyright licensing issues involved with serving fonts to all and sundry that come to your webserver...
History of Casio Keyboards, Part I: 1980-1983
This was an interesting talk. My own interpretation was that PHP's strengths were claimed to be:

1) State => because endpoints have no persistent state

2) Concurrency => because there is no concurrency model

3) Transparency => (1) + (2) + fast reload = easy to understand

These combined give the language nice programmer "ergonomics" (Keith's terminology). It also limits the collateral damage any particular change to the codebase can have which allows Facebook to more confidently deploy multiple times a week.
How one state representative raised $1600 for his campaign-in bitcoins
OK, maybe it's his IT department that's arithmetically challenged. :)

If costs are CLOSE to being that high, then data volumes are a very poor metric for cost allocation. 2+ people per terabyte are being counted in, so either there are a huge number of tables, or they're including BI developers, or something.

E.g., doubling the size of every table, if nothing else changed, might only take those costs up 10%, give or take a factor of 2.
Is it fair to assume that this must be something YouTube set up? I guess I'm wondering if YouTube says to the record labels "Hey, don't worry about us anymore. We scan everything and if one of your songs is found we'll send out the notice. Just sign this doc saying you wont' sue us if/and we'll monitor this all automatically for you" Perhaps that's why they dropped it pretty quickly (or maybe it was fear of this guy) It would kind of suck if they're just trying to protect their artists from being ripped off and now are going to be the poster child for this crusade to destroy the bots. Seems like YouTube might be the significantly more guilt party. (Not sure so posting this as a question)
@mbrubeck I know you are part of Mozilla and I respect the work that you and Mozilla have done for the FOSS community, I just think Mozilla is off on this one issue.

"Usually we prefer well-reasoned bug reports or emails as apposed to "Fucking fix it" on the HN front page, but we'll take feedback where we find it. :)"

You know just as much as I know that email is dead ;)
The only non-anecdotal data in this story appears in a last paragraph and contradicts the thesis.
True enough, my (uninformed) guess is that for this to work it would have to be on the level of the touchpad driver.
This is definitely true. We frequently talk about the real challenge in all of this being exposing the power that is under the hood while still keeping people productive and not letting them shoot themselves in the foot (while changing results).
This.

Apple's track record proves that they are more than happy to drop anything more than a couple of years old if it means general forward progression.

My real bugbear is that to some extent they've created the modern day IE6 by not updating Safari on the old iPad.

Also, if you look at some legacy iOS apps on the Appstore (designed pre 6.x), they are pretty much 100% broken on 6.x+
CC companies don't care about, name, address & zip verification?
I was getting 200s from Stripe with bad card data.tl;dr:"CVC and address verification [zip]

We strongly encourage that you collect, submit, and verify this data in order to prevent internet fraud, but since the credit card networks do not require either field"

No way to verify the name -- but the card will be declined if it's wrong.On Fri, Sep 27, 2013 at 7:49 PM, <support@stripe.com> wrote:
No. You can provide it, and a bank may choose to decline the card if it is incorrect, but you cannot yourself receive the information about whether or not the supplied name was correct.

On Sep 28, 2013 at 12:47 am <quantumpotato@gmail.com> wrote:
Right, can it be verified?

On Sep 28, 2013 at 12:45 am <support@stripe.com> wrote:
Correct, name is not strictly necessary.

On Sep 27, 2013 at 11:55 p <quantumpotato@gmail.com> wrote:
Thanks! So name is not necessary

On Sep 27, 2013 at 10:41<support@stripe.com> wrote:
Hi—This behavior is actually configurable: there are two checkboxes on the bottom of your account settings page (https://manage.stripe.com/account)﻿ to enable CVC and address verification.

We strongly encourage that you collect, submit, and verify this data in order to prevent internet fraud, but since the credit card networks do not require either field, we want to give our users the flexibility of choosing what data to collect when accepting payments.
Don't forget templeos...as trippy as it is.
How I Refresh my memory
Congrats Quin, glad to see you guys rocking along! This is an example of a solid team building a great product and iterating well over and over again
iPhones destroyed after a fake Waterproof advert on the Internet.
Microsoft’s copyright bots
Swine-dled!
Here's the Form D for the latest JustFab raise: http://www.sec.gov/Archives/edgar/data/1531017/0001531017130...

Confirms JH (see above..) sits on the Board and represents Matrix
I don't have a definition, I just use the thing. That's why I'm asking, I'm not a computer scientist. Eg:

$f = function helloAction(Http\Request $request) {
$response = new Http\Response("Hello " . $request->query->get('name'), 200);
$response->setMa // at this point the IDE will show a list of methods like 'setMaxAge($time)', because it knows its type
};

Now I can pass $f somewhere else, like this:

$someObject->someMethod($f);

And the method can accept it like this:

protected method someMethod($f) {} // no checks!

Or like this:

protected method someMethod(\Closure $f) {} // only an argument of type Closure will be accepted.

So those are types for me. If you are asking for something like this:

Response $r = new Response(...);

Then yeah, PHP doesn't have that. Though I don't know why we would want that, it's kind of redundant.
Interesting, you're processing ~500GB (10TB / 24 hour) of uncompressed loglines in 1 hour? Is the set up the same as the presentation?
Could use something like PaperBack[1], which can handle >1MB/A4 sheet. Combine that with a decent quality printer/paper and autofeed scanner, and you could quite easily dump a few hundred MB without too much manual effort.

I believe "offline wallets" require only the (relatively) short keypair to be stored, which would make this a practical solution.

If they're using much fewer wallets, or are confident that the paper would be last-ditch restore only, they could print (semi-)human-readable data in an OCR optimised font, to give them some chance of recovering from otherwise corrupted media. I'd put more trust in the automated bitmapping with sufficient redundancy & forward-error correction, but wouldn't discount extra semi-manual methods for any high-value wallets.

[1] http://ollydbg.de/Paperbak/
Is it actually legal to let a bot randomly send DMCA notices like this? Seems incredible that it's not even required to check the website before asking to take it down.
The more data you collect the harder it is for someone to claim they didn't authorize the charge. So know you don't need all that data, but if you had a dispute you would wish you had it.

Since your transaction fees are based partially on your dispute rates not collecting this data could move you from 3% to 5 or even 7%.

Imagine giving an extra 2% of your Gross to fees. So people collect more to limit fraud.
Why Tough Teachers Get Good Results
I've used php since v3, in its non-OO days. Coming from perl, that fit nicely. Today, I still avoid OOPHP and continue to write procedurally. The convenience of web-oriented functionality, broad deployment, and soft typing is basically unparalleled, although writing this way requires a bit of discipline. It's also a surprisingly good fit for a lot of server side code if you scale beyond a merely web-based execution model and have existing libraries. These days, I generally avoid perl if data structures are required, and despite dabbling RoR-esque frameworks feel overly constraining with regards to execution path control: I don't want a controller and additional layers of abstraction, the web server does that already!
Ask HN: Questions about Wordpress 
My friends have asked me to help them build a website for our small school alumni (about 500 people) and I was wondering the best way to go about doing this.
They need to have an index of people, a way to make donations, a hosted newsletter, and a couple more simple things.

I'm a developer but obviously I don't want (or have the time) to build it from scratch, so I thought I would use Wordpress and some plugins. But I have a couple questions regarding this:

- Can you do enough frontend design to make a Wordpress site not look like a Wordpress site at all?
- What's the flexibility of adding new features if I the frontend is redesigned?
- Is it a better idea to hire out and let someone else pick all the plugins and put it together?
- Can you give me a recommendation on would could build such a thing for me, or would it be cheaper to do myself?
- What would these things cost?

Thanks!
I started vaping this year. I love it. I've got a usb passthrough that just plugs in and I can sit in a co-working space and smoke and work. It gets some funny looks, but also starts some fun conversations.
Looking for a non-technical cofounder
Yes, it works the other way around.

Here's me...I design and build products extremely quickly, am super passionate about creating, and have experience launching products for a handful of companies including my own.

Looking to find a similarly passionate cofounder who's experienced in the softer sciences and is strongly opinionated on the world and how to improve it.

Here's my linkedin: http://goo.gl/t2DF7H
Click here to email if you think we should talk: http://goo.gl/HbqH2D
British adventurer's re-education in China
> When you do a blame on a line of code, to figure out when the last change was, do you want to see the "fix whitespace to match style guide" commit that someone insert in the branch at the end, or the actual meaningful change that occurred earlier?

git blame -w # works with git diff and git show too

(You might also be interested in --word-diff=color for git diff and git show)
How do you support the last statement? If rates can be higher on rentals, they would be higher. If landlords could make more on AirBnB tenants, they'd provide AirBnB booking.
I'm coining a new word:

Lawrenfreude n. Schadenfreude when the underdog moonwalks over The Man.
You use Wordpress because you like the off the shelf parts.

You can make WordPress look like anything. It is PHP, so if you want you can have a page that is mostly a web App and just use WordPress for the content blocks on the page, but that wouldn't be the most efficient way to do things.

If you have to ask if it would be easier, then it would probably be easier.

Paying for custom design varies wildly. You could spend $50 on a kid in college who may or may not make something awesome. You could spend $50k on a major design studio.

As an SEO I saw both happen.
Absolutely, TempleOS is an amazing piece of work including its programming language (Holy C).
Are the complaints about PHP even controversial? The built in library functions are a mess, and mostly terrible. The syntax and basic language are overly verbose and have layers upon layers of cruft. The type and object systems are grafted on, and have so many gotchas and inconsistencies that it takes many months to understand enough of them to be very productive in the language. The aspects of PHP that were intended to make it simple (like pretending types don't exist) actually make it more difficult to reason about precisely. I don't think anyone who knows anything else would ever choose PHP for a fun personal project.

Despite this, there is nothing in PHP that prevents you from doing the thing you want to do, however you want to do it. As projects become larger and involve more time and people, the fine grain of line syntax fades out of view, and all that is left is the large scale design decisions, which are similar in any language. And this is what ultimately determines the technical success or failure of software.
We are talking about the Apple iPhone 5s. In that context, anyone not a moron knows exactly what I am talking about. Shush, you have zero interesting things to say and are just a defensive blowhard. Maybe Apple will send you a t-shirt or something.
Outsourcing a Life
Zero dollars. Not to be flip, but someone else writing my resume wouldn't get me a job I'd want.
In the sense that setting you on fire is a fix for hypothermia.
I couldn't grok the original 1 liner, definitely not the second one and no way the last one. If there is a segment of programmers who grok and like it, cool. It still doesn't fix the performance problem of copying 1 million things before you can act on them because the copy would still have to happen on 1 core, or 1 core at a time, unless maybe the Scala compiler optimizes the code to divide the list among the cores available, if not though then immutability doesn't help performance during the copy.
Agree about the funny looks. I was on the 1 train last weekend, and someone took an e-cigarette out of her purse and started smoking. My first thought was, "OMG this is so illegal, I can't believe someone could think it's OK to light up on the train!" Then I realized it was an e-cigarette.

I imagine e-cigarette smokers must get this stunned reaction quite frequently.
In this case the author directly conflates an architecture, state, and instruction set, which is exactly why this sort of 'well I will call it...' Nonsense is ill advised. But hey, good try right?
Seems like someone should invent a way to easily get automatic updates to your ssl config in apache and/or nginx.

I know I'm not the only one with half a dozen, a dozen, or dozens of web servers I am responsible for -- who realistically isn't going to keep track of what the current consensus is and go updating the ssl configuration even every six months.
In the top paragraph you mention Lawrence Livermore and in the bottom one you use the acronym LANL, which is Los Alamos. Did you mean LLNL?
The 386 was not available in 1983... The 286 was released in 1982. Linus was partially working on Linux initially to get to know the processor in his new machine, the 386.

Anyhow, I don't know why a 386 processor is required for people to want to run Unix. Unix was well established as 'the' OS for serious computing, and MSDOS was not a great alternative. Actually, MicroSoft released a lousy *nix themselves in 1980: http://en.m.wikipedia.org/wiki/Xenix

So, the idea of running Unix on PC software was mot unusual and made plenty of sense. Not necessarily for home users, but for small businesses and education professionals, who have been a significant market for personal computers all along.
Oops. Sorry about that; I was still thinking in Ruby (day job) mode!
Thanks! Would you recommend getting the whole thing setup by someone else, or having one person do plugin setup and then another do design?

How flexible would it be to change with a custom design? Like if I add a new plugin, won't the theme from that plugin have to be rewritten to match the new one?

Know anyone good that would be interested in this kind of thing? Or have you had good experience with a particular freelance finding site?
... how does this have anything to do with DRY? You're calling $scope.$apply because you're re-entering AngularJs with new data and need to start off the dirty checking process.

This isn't repeated logic. This is a core function of the framework that's meant to be used exactly like that.

It's meant to be called that many times if you're doing that many things outside of Angular and need to sync your models.
>Can you do enough frontend design to make a Wordpress site not look like a Wordpress site at all?

Yes. One of wordpress' strengths is its theme system. You can find a number of existing themes which are ready to make 'child themes' out of (I suggest looking at Responsive or even 2012.)

Bear in mind there's nothing you can do to keep someone from viewing the source and seeing it's a wordpress site.

>What's the flexibility of adding new features if I the frontend is redesigned?

You have a functions.php to build whatever hooks you need into the API for that particular theme, and plugins are basically global applications which can do anything. The API can be a bit arcane but there's a very good chance whatever problem you have has already been covered in an existing theme or plugin. I would be willing to bet that for what you describe, 100% could be handled with existing plugins, and 90% of the rest by creating a child theme and tweaking. This is honestly what Wordpress was meant for.

>Is it a better idea to hire out and let someone else pick all the plugins and put it together?

I would say it depends on the amount of work you want done, in regards to customization of the theme and custom plugins.

>Can you give me a recommendation on would could build such a thing for me, or would it be cheaper to do myself?

You could do it yourself for free, but looking up documentation and solutions is on you. How comfortable are you with horrible looking mixin PHP?
Do yourself a favor though, whatever you do: look up "hardening wordpress", apply what you learn and turn off theme editing through the UI.
The credit card number itself is optional too.
According to the article, YouTube detects copyrighted songs and pays labels a cut of ad money. Every song ever recorded exists as at least one YouTube video. It doesn't seem like YouTube is playing whack-a-mole with all these songs anymore, the way it used to a few years ago. Does this mean YouTube is now a normalized source of income for all record companies?
Truly, "rebase vs. every-commit-is-precious" is the "vi vs. emacs" moot question of our time.

EDIT: haha, I just reminded myself of the "Every Sperm is Sacred" song from Meaning of Life.
Numbers radio station
PHP just works... if you're willing to spend more time on it, find more bugs in production, have a less readable, extensible, and maintainable codebase, and have no taste.

PHP is the dream of a one-man team that gets paid by the hour. Get contract, slap something together that makes the client willing to pay, throw it all away and do it again when the client wants a change.
You mind telling us what app they were?
Android overtakes iPad in tablet race