skysight-inc/HackerNews huggingface dataset:
I don't really see DHH giving any arguments as to why designing for tests leads to poor design decisions.

It results in pointless levels of abstraction that aren't used to abstract anything in real code, but destroy readability and screw up static analysis tools. It also results in over-splitting of entities to the point where they don't represent anything remotely similar to problem domain. Finally, it encourages "old stuff plus this addition" kind of design. (For example, using a switch statement to cover 7 different cases for days of the week, rather than using a math formula.)
Seeing whether the students sit on it is likely valuable data that is part of what they're trying to understand :)
If that was an ideal strategy they would have never opened it up to publishers in the first place.

Google no doubt optimizes their algorithms for profit, but they surely don't need to block out publishers to ensure their own sites have ads to display.
Hah, I was going to ask if they planned to add a formula to homebrew-cask so that I could use it to install Cakebrew.
"Whitey obsession."
Weird Ways to Make Things Invisible
We like you all, so we wanted to let you know about some Privacy Policy changes
Square Pickup
Tbh, the only true limits I see in PHP are performance related. [e.g. I can write in Golang something that outperforms straight PHP+Accelerator or HHVM by a mile]

That and it was really designed as a fire-and-forget language so longer running processes have issues.
Note that previous software versions also includes previous configuration files. I don't believe there's anyone who manages things like database schemas via Nix, you're right there.

EDIT: Thinking about it, it should be theoretically possible to write a schema migration layer on top of Nix. In the system activation script, copy all schema migration scripts to some directory (/var/schema or similar), then run the schema migration tool. When you try to rollback, all the schema migration scripts will still be in that directory, so the schema migration tool can rollback as well.
I'm not suggesting you don't continue to make a better one, but there are quite a few databases like this in the UK and, I imagine, world wide. The top few from this Google search: https://www.google.co.uk/search?q=uk+database+stolen+items

Quite often local police services in the UK have databases you can search for serial numbers and so forth. I suspect a big problem for all of them is consumer awareness and consumer effort to enter the details into a site.

There are quite a few potential privacy issues - you can't give away too much (or possibly any) information which may directly identify an owner because serial numbers are guessable and an enterprising thief could use a service which did reveal any information to track down theft targets...

However, I really hope you do come up with a great solution :)
They will just think Bitcoins are not secure.
Both the announcement and the comments here focus on the amount in USD. When will (the majority of) that half-million USD be converted to BTC? (Via exchange? Via swap with an individual or entity holding a bunch of coins? Nice way to hedge liquidity if you've got the BTC.) What does it say that it isn't already done, and that it wasn't "each MIT student will receive 0.2 BTC" (or whatever a recent exchange would be for $100)?

There is probably more information available without having to contact those organizing it, and the article was written for media press-release ingestion, but I'm surprised to see no comments on these facets here (at the time of writing, and HN seems to be acting up a touch so I've been trying to submit for a bit after I wrote this).
I met with 26 startups for my birthday, and here's what we learned
True Detective style opening titles in CSS
Maybe they are trying to subtly tell us that they have had an NSL or have been forced to put in a backdoor by the NSA. Warrant canary?

Thpugh more than likely it was just a poor choice of name!
This paragraph is referring to mail forwarding, not mail agency; this is just the simple form used to divert your mail to another destination, and which is only supposed to be used temporarily. The form that is required to have someone else receive mail on your behalf is a much more "complex" form in that it requires you to sign it with a notary public and then dispatch to various parties in multiple copies, rather than just stopping at your local post office branch.
It's probably my own lack of understanding, but I never really understood the benefit of PHP on Heroku -- it's so easy to setup a LEMP stack on somewhere like Linode, where I have full control and can still scale just as easy.
This seems remarkably useless. Their only use case they present is figuring out how many calories are in the things you eat, which you can already figure out by looking it up by name (chances are if you are finding and eating random things you're not carrying around a portable spectrometer). Even if it were more convenient to carry around a dedicated calorie-tester device, I hightly doubt that it would be at ALL accurate just looking at the skin of most things you eat. It might be accurate if it's using a spectrum "fingerprinting" technique to identify what it is you are eating and look it up in a table, but it's likely going to be less accurate than your own ability to assess whether something is an apple or a pear.

Oh, I guess they also say you can test medicines. I guess that does solve a lot of problems - I can't tell you how many times I've found unlabeled pills lying around and thought, "If only I knew what kind of medication this was!" Gone are the days of "pop-and-pray", I suppose.
Let's take as an example dependency injection. The genesis for DI was to facilitate the testing of objects that are dependent on objects that are not easily constructed, such as DAOs. And the whole reason this was done was so that these classes, the ones that have a DAO dependency, could be more easily and quickly tested.

So, in order to use (constructor) DI you would have a constructor that looks like this:

public InvoiceController(InvoiceDao invoiceDao) {
this.invoiceDao = invoiceDao;
}

The key point to remember here is that this has been done so that in our unit tests we can inject a fake InvoiceDao. Now, let's say that our InvoiceDao class has one and only one constructor:

public InvoiceDao() {
// sets up connection parameters, etc.
}

Then the constructor for InvoiceController could be simplified to:

public InvoiceController() {
this.invoiceDao = new InvoiceDao();
}

This is quite a bit cleaner from an API perspective, and that is the entire point. This is only a simple example. For more complex classes, with multiple dependencies, it really becomes cumbersome. What if InvoiceController also needed access ReporterDao? Well, then you need to add that as a parameter to the constructor as well. Your API is made more complicated, all in an effort to make testing possible.

This does not, of course, invalidate the benefits of unit testing, which are many. But it does expose a negative that is not frequently acknowledged, and that's what DHH is talking about, and what Kent has failed to address.
Actually, I wonder if you could use the existing ones and have some sort of meta-search site for it?
Best Way to Make a Hot Dog 
Engineering students in the UK have found the easiest way to make hot dogs !
Funny video
The reasons I can list are thousands. But to understand them it's really a matter of mindset. I can talk about long-running processes, threads, weak references, actor systems and so on, but most PHP developers would just phase out completely if I do this without sufficient background. At most they'll say something like "shared nothing!", like a tick, almost.

Because to PHP developers absolutely any problem fits into "state in MySQL and logic in PHP". Even with Memcache, or now with NoSQL stores like Redis, the mindset remains the same, just the API is different.

Someone once said "You can't connect the dots looking forward you can only connect them looking backwards."

To realize why PHP is shitty, you have to first get familiar with the larger landscape. Because if you don't, you'll believe every problem is fit for the golden hammer of MySQL+PHP until the end of your days, even if there are vastly superior solutions out there.
It's a GUI for Homebrew (brew.sh - OSX package manager; akin to aptitude or yum etc).
There are usually multiple levels of Twitter API access. (regular, white label, fire hose) The same can be applied to FB Ads API (reg, pmd, spmd) & many other APIs. In my experience, a lot of these APIs aren't as reliable and can sometimes cause huge financial loses. (Imagine if you use the FB Ads API to run an Ad campaign for a client - it goes out of sync & you sync back 10 mins later - in a matter of 10 mins - you could've spend $X) Since your relying on the networks API - they are not liable for any sync issues - you have to take that on as a liability on your end. Ideally, the third party would have premium level access all these APIs that you can leverage, but the big value add would be around the financial payout versus the premium level API access. (It would something like gnip.com with insurance)
I wouldnt consider Java crap first.Java is rigid,yes,but there is a reason why people can code these huge Java libraries. Because it's very structured.Now yes ,PHP is a flawed language.And in the age of the cloud where devs control their entire stack,there should be little reason to use PHP.

Except PHP is good at webpages,blogs,ecommerce and is mainly use with well known CMS that are not going to vanish overnight.

And frankly,when i see projects like Doctrine or Symonfy,which are bloated yes,yet powerfull, i'm amazed by what devs write in this language.
Why would you downvote this comment?
Can anyone vouch for any similar services in Europe (specifically in the UK)?

I change address fairly regularly, as a student, and it'd be great if I could cut out paper mail entirely.
The BIG Advertisers are their bread and butter, but every big advertiser knows to avoid most contextual targeting Text Ad buys.

Here's something that came into play around 2009: When a new advertiser (think small business) goes into AdWords to set up their first account, the default is to show Ads on Search AND Display Network. After setting things up, these two sources of VERY DIFFERENT traffic get lumped together in a lot of high-level reporting.

Until they specifically look at the quality of Display vs Search traffic (and see Avg Visit Durations from Display traffic around 5 seconds) they will not know about the crappy quality of sites they are on.
You're correct, I did miss the point. I viewed the original link on my phone and wasn't seeing where it dived into the value of amenities. :(

I may give it a shot someday.
Nothing will happen because of some unsubstantiated pastebin.
interesting! tnx for the extra effort to put that up.
Vagrant was a huge step forward for managing vm environments, but I'm afraid its integration with Docker is forced and misguided.

For instance, the idea of ssh provisioner does not jive with Docker. The better approach is run the container with shared volume, and run another bash container to access the shared volume. If you are just starting to look at Docker, I would recommend to use Vagrant to provision the base image, and leave the heavy lifting to Docker itself.
Agreed. The multi-process vs single process is controversial. With cheap memory, multi-process would be better.
However, I personally don't experience crashes several times a day.

A crash usually boils down to Javascript taking too long and/or maybe rendering issues with CSS (hardware acceleration). However Chrome is not immune to bad JS and will also slow down your system until the single tab is killed/crashes.

Overall, a crash is not really that dramatic. The browser restarts, all tabs are still there and only load if you click them, you can use Lazarus to auto-save all form inputs and not lose a single point of data and it resumes at the exact position in seconds (no need to scroll either).

Just add NoScript and block the sites where developers can't write decent JS.

>> it happens several times a day in Firefox

If it happens frequently regardless of the sites you're visiting then it must be extensions or hardware acceleration or plugins. i.e a configuration problem and not a FF one
I don't like word clouds either (and I'm one of the authors!). You'll notice there is no cloud in the actual paper, just in the blog post.

Do you have any references about human perception of blue-red versus monochrome gradients? Would be interested to have good recommendations for such cases.
As a son of a landlord who rents rooms, I can tell you that people are not willing to rent a room with no windows for the same price as one with a window, even if they have the same area.

If we adopted a single price, it would either force us to lower the price of the other rooms significantly or keep the interior rooms unoccupied.
That's fair. But that's also the vast minority of these results that I can tell...
Anthony Evans Making His Voice Heard
If you watched NBC’s The Voice in February 2012, then you might be no stranger to Anthony Evans. Picked by Christina Aguilera as a member of her team
nice to see a programmer from central brazil for a change.
reocities.com got banned for no reason that I can think of, never bothered to try to engage google on this because it is as good as pointless. Google just simply doesn't care, as long as more people are signing up than they are cancelling they can keep the ship afloat. On the off-chance that you're trying to social engineer them they apparently can't take the risk to re-enable an account.

So, I've taken the attitude that google adsense is to be avoided like the plague for anything approaching a business. It's found money if you can get it, and if you can't that shouldn't be a factor in your business plan at all.
Open source doesn’t imply transparency
I'm guessing this doesn't disappear anytime soon https://github.com/rails/rails/tree/master/activerecord/test
1. Agreed. (Assume it doesn't.)

2. Why am I making my library's utility methods public? It's a frob library, not a generic utility method library. I don't want clients depending on my utility methods. I don't want to support a separate utility library just to avoid testing private methods. I would prefer not to take on an external dependency for a single simple method. Having it private and tested is the best tradeoff here.

3. Agreed.
Open-Source Paper OTP Generator
Using Machine Learning to Detect Offensive Graffiti in San Francisco
The only solution I've found for intense fear of something is to keep doing it over and over. For job interviews I've liked Larry David's concept of 'flipping it', start interviewing them for the right to hire you. Of course there a tactful way to do it, but getting myself into that mindset has helped with the nervousness.
5. Lots of snail mail will suddenly start to be received by the MIT post office, sent from exotic locations such as Canada, Tijuana and Detroit

6. Lots of rich kid's dads will be drawn into Bitcoin, inflating the bubble further.

Sounds like win-win to me.
Lyft Is Launching A Premium SUV Service
I wonder who creates these rumors? Why is it people feel the need to lie about, well, anything under the sun?
Zach Holman responds to: Why doesn't GitHub talk about their product roadmap?
I didn't call Java crap. I edited the post to make this more clear.
Stylish is applied post-rendering in Chrome. It works fine in FF because of the browser API.

In chrome, because of the limitations of the extensions API, it doesn't cover chrome pages, developer tools or source view. If you pick a dark background in Stylish and visit a site with a white background, you will see flashes of light because the extension takes over after the document was created and chrome stylesheet was applied.

Check out http://code.google.com/p/chromium/issues/detail?id=1373 for more details
A Linux background changer, which changes terminal colours to adapt accordingly
Company's claim that it may have found airplane wreckage disputed
The Cast of Star Wars: Episode VII Has Been Announced
Stung by data breach, Target speeds switch to chip-and-PIN card readers
You're using a 4+ years old version of Firefox?

https://bugzilla.mozilla.org/show_bug.cgi?id=512854
This is really interesting, and I remember reading something similar awhile ago and having the same thought as I had today. I wonder how this would look if they segmented the data by education levels.

When I look through my social media news feed (or read BuzzFeed posts on the hilarious dumb things that have been said on the Internet), I see a very big difference in things that are posted, if just simply from those that are college-educated vs. those that are not. Certainly this is not a guarantee. I'm sure I've shared stuff that has been fake, and even reputable news agencies make mistakes. But to me the data would be a[nother] compelling argument for better and more access to education--to stop the damn rumors! (My real goal is to put Snopes out of business.)
What you contend in paragraph two seems to explicitly contradicted by the article:

"This is not the ending that the Wall Street private equity firms, including Kohlberg Kravis Roberts, TPG Capital and the private equity arm of Goldman Sachs, envisioned in 2007, when they acquired the TXU Corporation in a colossal $45 billion deal.

Their investments are expected to be all but be wiped out in the bankruptcy."

Did you mean something different?
Yes, but it does not offer the features we are used to in modern environments.
> This... is not Kent's finest moment.

It's really not. Objectively, this wouldn't even be within artillery range of the front page if it hadn't been written by a Big Name(tm).

I even have what borders on a fundamental disagreement with his last point :

> Anxiety. Perhaps what I'll miss most is the way TDD gives me an instantaneous "Is Everything Okay?" button.

This point of Kent's feels particularly weird given that DHH had specifically criticized the TDD artifact that is unit test worship & mock abuse. That workflow practically embodies the notion of a "false sense of security". It might do wonders for personal anxiety, but I have doubts about its ability to rigorously test a system :/
We're actually just borrowing from the phrase "canary in the coal mine" -- http://en.wikipedia.org/wiki/Animal_sentinel

Google Chrome uses a similar convention (http://www.google.com/intl/en/chrome/browser/canary.html), as do many other companies when talking about unstable/nightly/etc. builds (simply google 'canary build' to verify :)
Normally in the model; but often in Rails the "model" gets conflated with the "persistence layer." Many of us who develop in Rails feel that the persistence layer should have the single responsibility of persistence, and would like to use something like a DAO pattern there, keeping business objects / logic in pure Ruby classes.

Note that this is not necessary for small, simple Rails applications: by all means, if you're writing a blog app, stick everything in AR::Base and don't over-design. But once you start working in large-scale, non-trivial Rails apps, it becomes very painful to have to have all of your tests running against your database for example.

This is probably something of an idiosyncrasy of Rails, and may have little relevance to other frameworks / languages.
How I killed my Mailcloud.com's 21,000 users
Many many people in large cities would prefer USPS for all package delivery. USPS tends to have keys to apartment building vestibules, allowing them to leave packages in secured areas instead of on a stoop.
Thanks for the feedback. Yep I understand the privacy concern, and that people would feel more comfortable with an app. This was something I whipped up after seeing this post on HN a while back: https://news.ycombinator.com/item?id=7520216. So I can't take credit for the conversion idea. I do not know enough about iOS or Android development to know if it would be possible to do the conversion on the device instead of server side. Will look in to it if there is enough response. Doesn't look like this one is rushing to the front page though...
Spotify has different rules depending on what kind of mobile device you're using to listen. My phone is significantly more restricted than my tablet or PC.
Product manager for the languages here at Heroku. You could absolutely deploy PHP on Heroku via buildpacks before as you can many other languages such as Go, Bash, etc. This support however makes it much more of a first class citizen working out of the box. Further the richness of this support with Composer for dependencies, HHVM, and proper support channels is fundamentally different than manually finding a buildpack to work for your needs.
While I agree that the "truly fearless" would just use Java, PHP has been significantly enriched by adopting some of the structure/idioms from Java. (Partly the adoption of any structure, Java or not.)
> TDD has become a foundational tenet of agile

Dear god, please take the straw man out back and shoot him already.

There really is no way to have an intellectually honest discussion about these subjects, is there?
You can put the link preview directly into the address bar with this addon https://addons.mozilla.org/en-US/firefox/addon/link-location... Status-4-Evar can actually do the same but it's a bit of a hassle to configure if you don't need its other features.
If you need sth. like this, but would rather like to stay away from Bash, you can use Cram[1].

[1] https://bitbucket.org/brodie/cram
thank you so much! this is quite helpful, as I'm definitely a person whose memory solidifies through doing, rather than by reading.
Of course, in the UK/Commonwealth you might offend a surgeon if you call him "Doctor"[1]

[1] http://www.bmj.com/content/321/7276/1589
Yes I completely agree with you! We plant the seeds of systems, be it legal, educational, political, economic, etc., and then they evolve, grow, and spiral (fueled by their own momentum and interesting side effects) to a state where we often lose control of the system completely, and then have to submit to it, instead of the other way around.
Any kind of static typing (regardless of how primitive) is compiler assistance. Do you think that all static typing is worthless?
If you don't think that the AngularJS API is Vietnam then I don't think I'd be able to change your mind regarding this.
Oh I see! Not homebrew as in home-made software :D Now it all makes sense.
Circle of fifths and roots of two
Social Media Mining
> I just tried and your developer tools don't cause the tab to freeze for 1 second every time I switched into the tab.

Can you give steps to reproduce and a test case? Which panel do you have active? What URL are you on?
I haven't been able to find it again. I'll update if I do.
You can not economicaly circunvent cable (or fiber). P2p networks are not efficient.

What you can do is include the cable and fiber into the p2p network. People can bill routing with some Bitcoin like tech (altough I doubt Bitcoin itself could be used), and let Comcast et al. completely in the dark about whose data they are carrying.
I don't understand the issue. alt+d for address bar ctrl+k for search bar.

What's so complicated?
Thanks Tom, for giving WeSawIt one of those hours. Really appreciated the advice and feedback!
This "feature" was introduced in 4.2.2. Android is at 4.4 now.
Fair is an interesting concept.

How do you set the rent?

If it's an apartment, it's the fixed cost set by the landlord, but what if you are the landlord?

Do you set the rent to be based on the mortgage, or based on rents for similar properties?

With that same logic, if you had a place that was below market, could you set rent to market and charge that?
That's why the new hamburger menu is so awesome. You can put all the addon buttons that you don't want taking up space on the main toolbar in there.
FlipNote a simple note-taking app for android