skysight-inc/HackerNews huggingface dataset:
PHPUnit has this in the comment annotations

/**
* Tests that thisShouldThrowFooBarException throws FooBarException
*
* @expectedException FooBarException
*/
public function testFooBarException() {
thisShouldThrowFooBarException();
}

but I much prefer

/**
* Tests that thisShouldThrowFooBarException throws FooBarException
*/
public function testFooBarException() {
$this->setExpectedException('FooBarException');
thisShouldThrowFooBarException();
}

Much more explicit and you're less likely to miss it when trying to grok someone else's unittest.
Ya that's true, there is a design issue. The house was build around 20 years back. But it's not a great issue as it's supposed to get water from a small area of roof.
Can't believe I've just seen Wrexham mentioned on Hacker News! That's where I grew up :)
Mist.io
Some: the NY Times had an article about one such the other day. But they don't run to four-year degrees.
I vote for the APL derivative.
If they're classified as vouchers they are no different to selling anything that gets VAT lumped on it.

If they're classified as money, then they're capital.
And protected by the First Amendment.

Unlike some theocratic regimes where the maker of this film would be beheaded, at least we have some remaining freedom of speech and expression.

The right of free speech is not resolved in motherhood-and-apple-pie cases but in the extreme fringes of bad taste and offensiveness (Human Centipede, Nazi propaganda, etc)
This is all downside. Let it go, move on with your life.
Pretty interesting I just got an email from a .ru with a zip attachment called fax.zip (7kb) saying I had a fax from a friend, and a link to some .ru site.

Probably a coincidence, just wanted to mention it. Curious if anyone else received the same.
Dear Google, am I pregnant?
http://pastebin.com/W8B3CGiN
Bilingual books are quite common in France, since may people want to speak better English. I was surprised that no bilingual edition of Candide, on of the most known works of French litterature, isn't available. Turns out it is: http://www.amazon.com/Candide-Bilingual-Edition-English-Fren...
OpenID Connect is Here
OpenSUSE for the latest and greatest stable packages.
Hey i'm hari, i'm available for pairing. I'm a freelancer too. Take a look at my github https://github.com/hariharasudhankm. I've done a just-dice.com partial clone (https://github.com/hariharasudhankm/justdice) And working on sails.js too. My email id is hariharasudhan@live.com . Here is my linkedin link (http://in.linkedin.com/pub/hariharasudhan-km/37/23/918/)
First time I used Apple Maps was for directions to a hospital. It added 30 minutes to my drive. Thankfully it was only a dislocated elbow we were dealing with and not someone choking to death.

I have no trust in Apple Maps.
I run the Amazon App Store and Humble Bundle on my Galaxy S4, both of which are APK files I side installed and I have many apps from both installed. I don't think I'm a minority in that regard, since these are businesses. As such I have lots of apps not from the Google Play Store. My Kindle HDX doesn't even have access to Google Play, so all the apps on it are from Amazon/Humble Bundle. They're just blown up phone apps for the most part.
No. Evolution is just a phenomenon, but its successful products, such as brains, have purposes. Eyes are there for seeing. They came about, in a sense, by coincidence, but they don't work by coincidence. There's no conceptual error in saying "a brain evolved to do X".
I get so many bogus attachments in my spam filter that I've quit noticing what country they're from.

What is new is a string of email bounces: somebody is spamming Russians with Louis Vuitton, Dior, etc. etc. ads, and with my work email in the "Reply-To" line. I'll be happy when they move on.
Those main images are from a 2013/4 honda Civic.
For what it's worth, I'm happy to see the Go update announcement here. I only hack occasionally on Go so I haven't updated it in a while, but seeing this post has prompted me to download the latest version.
Apple in 1996.
Complete Python Training from Beginner to Advanced.
It is illegal, and she can use sue in the civil court if she wanted. Fraud is serious, and if the allegations are true, she has a good chance to win.

However, this court case is about copyright claims and work contracts.
+1 This. C# counter-example: NancyFx. A library that enables you to write a complete Web Server in a custom DSL that (if written correctly, of course) reads as close to English as you can imagine. Plus Type Safety. Plus awesome SQL Server Support.

P.S. The other reason you use C#: you want to interact w/ SQL Server. TDS works, but boy is it a pain compared to just adding a reference in Visual studio. Also the bindings for TDS are pretty weak in some languages.
I'll hazard a guess: the protocol might not want to allow arbitrarily large transaction messages. Could introduce points of failure / DOS'ing.
Wonder if that has something to do with size of America relative to most countries in Europe. Americans just simply have to drive more and for longer distances. Driving doesn't seem so fun in the midwest.
All I see are a few perf graphs that show a 20% runtime reduction in a few cases and > 50% reduction in one case. This gives me no insight whatsoever what is going on under the hood.

Is it that for these dozen or so benchmarks, we end up using > 4K and < 8K of heap? So the extra 20% time is just going into a memory allocation?

P.S. Interesting that I got two snarky comments asking for a basic question about Go. Does not bode well.
Netscape in 1998.
Jurassic Park computer system in the browser
Give this beer to your browser. Wait. Enjoy
Oh boy was that bad. It couldn't write DVDs back when that was THE thing you wanted a video editor to do, and it only supported windows-only codecs. You couldn't even upload the videos to Youtube, when that became The thing you wanted to do with video, due to the proprietary-only codec support. This is one of the three main reasons I switched to Mac back in 2007. One was viruses, another was Time machine and the third was video as I had recently had kids. The closest thing to iMove on a PC back then cost IIRC about $1,000.
You know, you can use more than one storyboard in your app.
UK hospital records data was publicly available online
Wow, that sounds like a nightmare, are you able to trace back the original sender?
Also, naming a programming language with a single letter is not very search-friendly.
Why I Eat Lunch at My Desk
> One requirement for having solid laws, would be some sort of compulsory security audit of the code by independent experts.

This doesn't exist in the U.S. financial system. Maybe it should, but honestly it is such a stronger requirement than anything close to what we have currently, and I imagine it would be impossible to enact on a resistant market (try defining "independent security experts"... oy).
Please check your facts before posting to avoid being a clueless moron: C# is not just a static language it supports dynamic typing, C# is not just an object-oriented language it's a functional language as well.

The post is downright offensive to C# developers.

EDIT: ok, I figured it out - it's a troll post to stir the HN community a bit. Lot's of other good languages get undeserved bashing.
There are 5472730538 essentially different Sudoku grids
But finding all partitions seems like a simple combinatorial problem at first sight.
Its because we're seeing them all at once, and all in their shaking state. Normally these would be used sparsely and would only be shaking on certain actions.
View Your Facebook Search History, The Worst Page On The Internet
My understanding is that while the domain was originally purchased for a MtG exchange, it was never used for this purpose. I've yet to see proof that a MtG exchange has existed on mtgox.com
Or as an open standard. There are Chinese companies selling Android decks on eBay that fit into nearly every odd-sized car stereo opening out there, complete with plug-and-play wiring harnesses and steering-wheel control integration.

Otherwise, my newest car is seven years old, so maybe I'll get CarPlay around 2022.
It's worse than that: Ben Goldacre is reporting ( https://twitter.com/bengoldacre/status/440475049880195073 ) that the data was made publicly available.

This is beyond parody.
> Isn't that a little contradictory? You are saying all the changes in this release are critical, yet there is "nothing to see here".

To quote T. B. Lance 'if it ain't broke don't fix it'
That's all very well, except that Windows doesn't have 97% of the market. In fact for consumer PCs over $1,000 the Mac actually dominates, as it does for profits in the PC industry overall and has done for quite some time.

If iOS ever does end up in the same position against Android as the Mac does against the PC, Apple will be doing very nicely thank you very much.
So if one of us were to create something dealing with BTC we should just store the data as the smallest discrete amount (satoshis) and then run calculations on that to display info to the user?
Almost certainly an astonishingly high percentage of it. You hear about the bad stuff, but by and large it works. A lot of projects get delayed and some don't work out as expected, but very few could be classified as "stolen". Even in your example, many people did get the book. No one got the book they paid for since that's not how Kickstarter works (it's not a store).
A fairly close analogy in English would be to randomly sprinkle the word "fuck" in your speech.

I was once speaking to a good friend of mine here, in English.

"Do you want to go out for yakitori?"

"Go fuck yourself!"

"... switches to Japanese Have I recently done anything very major to offend you?"

"No, of course not."

"Oh, OK, I was worried. So that phrase, that's something you would only say under extreme distress when you had maximal desire to offend me, or I suppose you could use it jokingly between friends, but neither you nor I generally talk that way."

"I learned it from a movie. I thought it meant "No.""

"You might want to not repeat it ever again."
It's interesting, but is it powerful enough? There's a great talk by Zed Shaw about implementing authorization code. I think the same issue holds here.

A language might work for simple and more complex type constraints, but at some point the constraints might become so weird that you really need a full blown turing complete language to define them.

And that point might be sooner than you'd like. Why not instead of using expressions in this constrained language, use something like Haskell?

It's got the super powerful typesystem, and you're certain that it will be able to express any constraint you throw at it.

That said, this language does look nice, and I haven't really tried to find out if there's any obviously important constraints you wouldn't be able to build in it.
Thanks for you input ses. It is a little harsh but this is what we wanted - real opinions from real people. I agree with you that a presentation should reflect the person giving the presentation but in terms of content & story to be told, the design itself can be tricky and time consuming.
I have 1 bitcoin. I send you 2^-32 btc. How much do I have left?
The report in question (linked in the article) provides "exceptional" evidence for the performance of Cloud technology by comparing a Google BigQuery search against an on-premises SQL Server query.

So, cloud is good because map-reduce performs better than relational databases...
there are high number of Dengue deaths in Sri Lanka whereas blocked gutters with water are good breeding grounds for mosquitoes

Should have led with that, I would have read with more interest.

I could be wrong but putting mesh over gutters is already fairly common in the USA.
Exactly. We should be creating a community where people are encouraged to share their code and to expect constructive criticism.
>why didn't Discourse beat Facebook

Did you mean Diaspora? Also, those are not "ecosystems".
Not really caring about what the fans are saying, but the OP is about market share, and you match it with an opinion about user experience.

That doesn't make much sense as the two concepts are not directly correlated. Good user experience doesn't guarantee market share nor does market share point at good experience.
Interesting... here is a tool, which is also going twoards data oriented approach.

"Drake - a kind of make for data"

http://blog.factual.com/introducing-drake-a-kind-of-make-for...
For PHP he comes out of the gate saying "Don’t just assume PHP is horrible."! Apparently the ONLY redeeming quality of PHP is the vast number of developers who know PHP?
Two things about this study: First, it only covers people in government jobs. Second, the title of the study is "Gender Pay Gap in the Federal Workforce Narrows..." meaning there IS STILL a gender pay gap. And if you read the study, about 7 cents worth of the gap was unexplained by any of the factors they analyzed.

So okay, women don't make $0.77 for every dollar men earn. If we discard all the stuff the GAO found that definitely isn't related, women make $0.93 for every dollar men earn. So, is that somehow okay because it's "only" 7 cents?
The ignorance around TARP baffles me. Before I explain, let me state I am against bailouts in general.

In the bailout $245B was given to private banks and $187B was given to fannie and freddie, money was also handed out to GM, insurance cos. etc. to a total amount of $610B.

As of 2014, >$380B was returned in cash, >$235B was returned through dividends, the current "loss" to tax payers is approximately $12B. Which is expected to turn green very soon and generate substantial profits for "we the people".

Most large banks refunded the govt. with substantial profits, so did the insurance cos. The TARP also saved a ton of jobs.
Surely PA Consulting should immediately be sued out of existence. This kind of behaviour must be considered beyond negligent, practically criminal.

I would strongly support throwing anyone involved in this into jail for a long time as a deterrent against future criminals.

This is just unbelievable.
These work well: http://www.leafproof.com/how_it_works.html
Https doesn't encrypt the URL you are reading, which kind of gives away what content you're reading when it comes to wikipedia.
This list(and much of the commentary is just lifted from our(Pycoder's Weekly) newsletters and yearly project roundup issue.

You can check out the full 2013 roundup issue here: http://us4.campaign-archive1.com/?u=9735795484d2e4c204da82a2...
This one?

http://vimeo.com/2723800
Install Android 4.4 Kitkat on PC or Virtualbox
In This Tutorial I'will Show you How to Install Android 4.4 Kitkat on PC Using Virtualbox. Android Kitkat Is a Most Innovative, Because It Has Endless Features Support Almost All Application. An you can run android 4.4 kitkat PC with the help of Android 4.4 iso Image or VirtualBox
To the author, great job.

It shows attention to detail and finesse, you took one simple idea and went above and beyond making multiple implementations for different use cases, presented in the most exquisite and pleasant way.

Code and beauty. Great skills to have.
Show HN: Followup
That's pretty impressive. Kickstarter has a 5% fee (and Amazon their own processing fee) which means ~$50m in revenue for Kickstarter and $25M in revenue over the last year. I wonder how long they'll keep with Amazon as payment processor, it seems like they're leaving a lot of money on the table.
Then just define them! The entire subject is about linear transformations on vector spaces. The biggest problem with linear algebra as its taught today is that students uniformly come out with an understanding that linear algebra is about matrices. It should be made clear that a matrix is simply a representation of a transformation, and then when you do teach the grunt work operations, you can teach them as what they actually are (multiplication: composition of transformations, determinant: area of unit square under transformation, etc.)
McCaleb replied to my email. In response to my question "Did anyone ever actually trade card for card or money for card on Mtgox.com?", he replied "yeah they did".
I would strongly encourage everybody to contact the Information Commisioners Office, as this must be a breach of data protection ?

https://ico.org.uk/Global/contact_us

If anybody has details about how this may be a breach of the data protection act exactly, then please post below.
Consider not taking advantage of the illegal compromise of someone else's servers, even if you are very interested in the contents of their purloined data. You'd hate it if it happened to your startup, and odds are your startup has plenty of ways to get into equally private data. If nothing else, consider it your moral down payment on being able to criticize the NSA ever again.
The Inside Story of Mt. Gox, Bitcoin’s $460M Disaster
SEEKING WORK - On-site (Montreal, Canada) / Remote

iOS Developer Freelance (Objective-C, iPhone/iPad)

Email: info@skyriser.com

Web: http://skyriser.com/

LinkedIn: http://www.linkedin.com/in/christiancomeau
(grumpy cat) NO
SEEKING WORK - Remote

~5.5 years of work experience

* Java (Android ~3.5 years)
* HTML5, CSS3, Javascript
* Node.js
* Embedded C
* Requirements and Architecture Design
* Project Management
* Open to learn new tech as and when required

Based in India.

--- Feel free to contact me for any help on open source projects as well ---

(hypr DOT geek AT gmail DOT com)
http://www.youtube.com/watch?v=5SBo0akeDMY
Why "One Hour" Equals "Ten Defects"
PA has a history of not looking after UK Government data very well, they famously left a USB stick on a train with alot of confidential data on it....

http://news.bbc.co.uk/1/hi/7575989.stm
His consort? Sheesh, I guess you still have pretty strong opinions about that case.

I still don't know most of these details, and have forgotten most of what I learned at the time, and honestly that's for the better. It's none of my friggin' business, except that it highlighted some serious problems in the US legal system. And we could have learned about that problem without ever hearing the name "Terri Schiavo" or knowing anything about the personal lives of her & her family.

Until the problems are fixed (if they can be), it's important to make a living will. It shouldn't be left to your husband and parents (and the news anchors, and higher elected officials of your country) to battle each other over who has more right to say what should happen to your brainless body.

Make sure the people who need to know understand roughly what you want, and who you trust to make decisions on your behalf about palliative care, life-prolonging treatments, etc.. Google has lots of advice, free templates, etc..

Wikipedia says Terri was brain-dead for 15 years before she finally died. I don't think I know anyone who'd want their body kept alive that long. I know I would not.
I'd use Clojure over Common Lisp any day of the week, but I'd never call CL a "dinosaur language". It's still getting a lot of use, and it's still a better language than what 90% of programmers have to use in their day jobs.

I like one point he made about Clojure's real killer strength: it works for exploratory code and in production. You don't have to use one language for data analysis (e.g. R) and another one for your production servers (e.g. Java) which means that the data-science/production-engineer impedance mismatch need not be as severe. Here's a presentation I gave on that aspect of Clojure (note the Venn diagram): https://docs.google.com/presentation/d/15-7qFy6URdE7Owi2Litk...

On Haskell, he says: "This language truly feels as a more advanced thinking tool than the others in this list. It has libraries for almost any need and it has a hard-core community."

You know, a few years ago I looked into Haskell and thought, "this language is amazing" but wrote it off because (a) it didn't seem to have the libraries for "practical" corporate programming (CRUD apps) and (b) the political fight to get to use Clojure at your job is at least theoretically winnable due to the JVM; for Haskell, it's not winnable until you are the architect or boss man. I like static typing a lot (I used Ocaml at Jane Street for a year and a half) so Haskell always seemed appealing, if not practical for "most kinds of work".

I'll probably stick with Clojure and Scala, because I'm not yet at that point in my career where I can use/do whatever the fuck I want, but I'm inspired to look into Haskell more.

A few people recommended I check Haskell out again. The community has made major strides (or, to put it more directly, it's kicking ass). I spoke to @cartazio about it the last time I was up in New York and he made a really convincing case for Haskell being ready to tackle the hardest of the hard problems (e.g. machine learning problems where performance and high-level code are both needed).
Your Guide to Data-Driven Testing
Yes that's the one :)
It's a Unix system. I know this.
I'm sure I missed something.

InvalidCharacterError: 'atob' failed: The string to be decoded is not correctly encoded.
how do I launch fsn?

http://en.wikipedia.org/wiki/fsn
To add insult to injury they were probably getting paid vast amounts of taxpayers' money to be this incompetent.
Leaving a USB stick on a train is one thing. Spending weeks to upload 27 DVDs' worth of confidential health data to Google servers is quite another! One is negligent. The other is, imho, criminal.
Don't make the mistake of thinking "Storyboard == Auto Layout". I really like Auto Layout and I think it is much easier to understand and read when declared in code. I strongly dislike Storyboards, though, for the 15 reasons outlined here: http://stackoverflow.com/questions/9404471/when-to-use-story...
However, some pains can be removed with this tool I wrote: https://github.com/jfahrenkrug/StoryboardLint
It helps you to keep your IDs in code and in your Storyboards in sync.
In some ways this is worse than writing code for something like the Therac-25: there are hostile people out there who will actively try to destroy you. If they can cause you $10 million in damages to get $10,000 for themselves they will consider that a good day.

This was the guy who wrote his own SSH server (in PHP, FWIW) and put it into production, right? This whole thing is a disaster waiting to happen.
You actually believe C++ isn't used in the real world?
Decision Tree Testing Lessons
I like the irony of the site telling me not to use Safari.
Make fire with pure css3
Don't knock tax – it gave us the iPhone
Seems like it mainly depends on Apple's licensing terms.
Not even that - they say "We uploaded it into a traditional Microsoft SQL database on a 1TB drive". So it sounds like they were just using a single spindle.
Purchasing an SSD for that SQL Server would probably have given comparable performance benefits.
The report also indicates that appropriate government approvals were obtained and that they protected the healthcare data appropriately. Might they have been using an appropriately secured Google cloud tool? I understand that this still doesn't tell you the country in which the data resides, but that's a lot different than posting data on the open internet or an unsecured cloud instance.
27 DVDs = not a lot of data. What were they doing, transcoding through paper tape?
Why does the government repeatedly hire incompetent people?? They pay crazy amounts of money for it too.

I hope there is a very public investigation into this. We are losing privacy every day now and this is one area of our lives that needs to remain private at all costs. There is very little I can see to gain and lots to lose from losing privacy in health. Especially in a public system like the NHS.
Drupal 7.26 and Joomla 3.2.2 modules for EasyPHP DevServer
You can see the trailer here: http://www.dailymotion.com/video/xtk8hd_innocence-of-muslims...

It's "garbage" in the sense of "terrible film making". The actor's voices change occasionally, probably because it was poorly edited afterwards to make them appear to say something different from what they actually said.,
only tested on chrome...