skysight-inc/HackerNews huggingface dataset:
I don't see the possibility for catching the wrong type (or not catching it) if you get one character wrong. Unless of course you have two valid type names that just differ in one character, but that is a general pitfall and not exception specific.

If you always throw by value (and not by pointer) then it does not matter if you catch by value or by reference, the catch block will be activated either way. The only issue is possible slicing if you throw a derived instance and catch a base class type. You might lose error information that way, but the program will not crash due to an uncaught exception.
Here are more of these:
http://en.wikipedia.org/wiki/Category:Test_items
and 1% saint or devil, pick one...
No bro, because you don't have the right to scream racism while you have arab organisations who fight to "put pictures of an arab poet on a postage stamp".
Your checker doesn't work well with curl, btw -- you end up seeing both the not vulnerable AND the vulnerable (alt text) messages.
I wanted to make something that gives something a little more useful than an error page if you're safe.
I successfully connected a USB hard drive to mine. If you're interested enough, email me and I'll go look up which inexpensive model of enclosure I'm using. The bootloader is indeed finicky but I guess I got lucky enough to have a HDD enclosure that just worked.
“We are all human beings, and our nationality is simply an accident of birth.” - Venkatraman Ramakrishnan Nobel prize winner for chemistry in 2009
I installed this last night and the update came in at 15MB. Surely a one line bug shouldn't cause a 15MB update? Or is it that some things in iOS might be statically linked and those had to be pushed out as well?
A quick test shows neither -Wall nor -Wextra report anything on either gcc or clang. However, clang's -Weverything does complain (it implies -Wunreachable-code).

Confusingly, gcc accepts -Wunreachable-code as a valid option, but then proceeds not to warn anything. (edit): Which is a known bug apparently,

http://gcc.gnu.org/ml/gcc-help/2011-05/msg00360.html
Weird, email is there, anyway: brunomtsousa@gmail.com
Unfortunately, only one shitty Ethernet port. I'd love to find fast hardware with multiple independent gigabit ports for an affordable price.
Great move, the single menu bar thing is just terrible design. It just moves common application actions further away from their context in order to give more room for.. more application actions? Whoever designed the single menu bar was clearly not thinking in terms of functional design principals.
Looks amazing. The framerate seems a bit low, but I'm not surprised considering how much you have to render.
Nice to see some frenchies doing something in that space. The site says that all the elements are here for a first PC release, do you plan to release an early demo? Or keep the game playable by contributors (release regular builds that add stuff)? Or go the traditional route and wait to have a complete product?
Looks really awesome.
Since it looks like a fighting game, Something like this could be implemented for multiplayer: each face of a cube is owned by a faction in the beginning. Then the factions fight to gain the different sides.

Just a thought.

BTW awesome team portfolio. Good luck
To get any decent performance you have to use a horrible binary blob kernel module that offloads (certain very specific use cases) to hardware acceleration. See this post for more info: https://news.ycombinator.com/item?id=7282258
I'm calling you on the GOTO is evil thing. It's not. This is a well-structured use of GOTO, and it has a long tradition in C shops. This is a well-understood idiom, and you're seeing a different failure.

Your choices for exception handling systems in the C-like languages are:

- early return (whereupon, resource leaks and bloated cleanup code)

- setjmp/longjmp (whereupon, utter chaos)

- "chaining" success, where you don't use GOTO and have to consistently check your current 'err' state before doing additional "work" (whereupon, lots of bugs when you forget to handle an error case)

- or GOTO to a single piece of error handling code (this is usually coupled with an earlier hunk of code where you initialize variables and set up state; this is essentially the C++ "constructor / destructor" idiom, but done by hand).

The GOTO is the best choice, because everything else is worse.

(If you're using C++ exceptions you're in serious trouble. The effort required to write correct code in the presence of arbitrary exceptions is very high, and you're likely to get things wrong. Scott Meyers wrote like three whole books on the subject, which should be strong evidence that something is Very Wrong, and if you've ever used exceptions in a language that doesn't have garbage collection you'll probably agree (and even GC doesn't save you). Most production C++ code that I've seen use exceptions simply catches them in a bug-handling layer, which responds by scribbling some kind of report and then restarting the app).

Often these GOTOs are wrapped with macros that hide the fact that GOTO is being used. This can hurt code quality, since things are less clear, but in general they work well.

Basically they should have had the dead code warnings enabled, and listened to them, and done better checkin reviews. GOTO is not the enemy here. In paranoid code like this, generally you want to "claim success" as late as possible, so setting 'err' to some failure code would have been a better choice.

But using GOTO wasn't a mistake.
The faulty block of code -- line 623 (function SSLVerifySignedServerKeyExchange) -- looks like a cut and paste (or the reverse) of the block of code at line 372 (function SSLSignServerKeyExchange), except this one doesn't have the extra "goto fail;".
He is half Syrian. Syrians are not even Arabs. Neither are Lebanese or Egyptian, or Iranian (Persian) people. It just happened that at some point Arabs invaded their lands.

This is like calling Spanish people Arabs, because Arabs used to be there at some point, or calling English people French, because French used to be there at some point.

The ethnicity knowledge of the Americans is no better than their geographical knowledge.
I noticed a while ago that while Safari supports TLS 1.2, but Mail does not. So somewhere in the implementation they are using different code. (Not agreeing or disagreeing, just mentioning an observation.)
A simple way to validate your startup idea
There's not a whole lot I can do about that without adding a lot of complexity. You could try downloading https://gotofail.com:1266/test.png I suppose.
I spent a year in 2007-2008 managing equipment inside Comcast's network while working for a very much not-Comcast company. Even had a Comcast VPN assigned specifically to me complete with RSA fob shipped to me by Comcast. You haven't got the first clue what ISPs do, nor how networks work.
> are people really not been taught this?
>

You make it sound like these are obvious thing, but most people have trouble even with basic math, let a long linear algebra.

I wrote a short 4-page tutorial on linear algebra myself and it covers quite a few things. Would love to hear what you think about it: http://minireference.com/blog/linear-algebra-tutorial/
Nice idea, but I am wondering: will too much fight impedes space development? Space discovery would really be what I'am looking for when playing such a game. Saying that, I might not be in the set of targeted customer for the game...
Fair enough, and there's now two alternatives to confirm with.
In the latest GCC releases, -Wunreachable-code has been removed (the option still exists but is silently ignored for compat with existing Makefiles), as its output varied so much between releases (depending on what got optimized away).
I've always found it ironic that the same people that claim race does not exist are the same people who encourage and support these types of race-based promotions and classifications (well, as long as they are non-white).
Bitcoin – My Two Satoshis
That's exactly what defenders of PHP say, too.

Can we just stop pretending that a language cobbled together in 10 days has good parts except by chance?
I think the assumption is that the menu won't take up the entire bar
I think what this really shows is that Apple has no unit tests to cover the security of their products. And that is pretty scary.
cURL uses OpenSSL, Safari uses Apple's Secure Transport.
Couldn't you just set a 'failed' boolean and wrap the fail: statements in a conditional check on it? Not that I'm saying all uses of goto, particularly this one, are necessarily absolute evil.
> performance hit

Should be negligible.

> compare to *bsd jails

Similar in many respects.

> primer on security

Still a little sketchy, but see:

https://www.stgraber.org/2014/01/01/lxc-1-0-security-feature...

http://www.slideshare.net/jpetazzo/linux-containers-lxc-dock...

LXC uses the same kernel for all containers, so containers/hosts will always be vulnerable to buggy syscalls.
I also do not like Vyatta's weirdness. It looks like Linux, acts like Linux, but then you have to use all of the awful Vyatta commands to actually do anything.
Chrome on iOS also seems safe
Not sure about Unity but in quite a few Linux desktops you can press Alt and move window by clicking anywhere in the region. That's how I've always moved windows and been surprised when Windows or OS X have behaved differently.

But the question is great! For a regular user dragging window without setting off a menu can become a serious usability issue. Yes, menu won't take the whole bar but still the size of the movable area becomes substantially smaller.

One solution to detect dragging could be to use mouse release event for menu, instead of press and filter out shaky hand who actually wanted menu, not drag. But then again it's still bad because user expects menu system to react ASAP/mouse press, not release.
every guy has a name, makes no difference
My personal observation is that while compilers continually get better at identifying straightforward mistakes, they don't have the same capability as a static analysis tool that works across compilation units. That is the real selling point of these tools. Definitely -Weverything/-Wexta plus static analysis for baseline checking.

My other beef is that compilers always add new warnings as options or behind new "catch all" flags like -Weverything that no one knows about. As long as each new warning can be individually disabled, there isn't a huge cost to pay by making much more of them enabled by default. Upgrading to a new compiler version usually requires a tiny bit of work, so adding a few -Wno-* rules for new things you want to disable until the code is clean (or forever) is a small price to pay for all new code getting the checks by default.
The really scary thing is that there is basically no good testsuite for SSL/TLS in existence. I would not be surprised if other stupid bugs showed up in other implementations given one…
they also bundled other NSA holes with this fix. :)

seriously, tho, it is probably the whole binary this was part of.
The real WTF is those Warn flags, then. In what sane world does "extra" mean more than "all", and "all" and "everything" mean different things?
Could you store the ports tree on a network share, mount that share on the device, and compile that way? Seems like that would be easier than cross-compiling, if it'll work.
I don't think you necessarily need unit tests to catch this; code review would work (even I probably would have caught this if I'd actually read it; "fucking gotos" would have drawn my attention to begin with, and if it was a single line commit, even more so.)

The problem is Apple (intentionally) understaffs and overworks, so I doubt they have the spare people to look at most commits.
The idea is spreading the security to multiple systems. Electrum doesn't help you if you enter the passphrase on a compromised computer.
Speaking of books, my No bullshit guide to linear algebra is almost ready. Anyone taking a linear algebra class with $15 in their pocket should sign up for the prerelease: http://bit.ly/18xPbs9 It starts from the basics and gets to quantum mechanics by then end ;) All in just 250pp on 5½[in] x 8½[in] paper.

You can check out a 4 page tutorial of material extracted from the book: http://minireference.com/blog/linear-algebra-tutorial/
I guess i had my facts wrong then.
The Bayesian argument would be that what these estimators are really doing under the language of MVUE/MLE/etc. is implicitly choosing priors

I'm curious, which choice of priors corresponds to the frequentist answer? It looks like it comes down to the distribution (n|k)? Seems like something that must've been studied.
Would Korean fall under this category along with Vietnamese?

I ask because while I can't read Korean, I know enough to sound things out based on its character set. Which is really really cool.

I also dated a vietnamese girl and the latin script they use now instead of the hanji/chinese derived script in use prior is so pervasive almost nobody can read older vietnamese outside of scholars.
Omagh is NI; but the important point here was the militarized police force was (for better or for worse, given the number of mainland attacks) confined to NI. Much of the special powers granted only applied to NI. I'm not saying it wasn't a problem on the mainland — by any measure, it was — but one must realize the extra powers granted were limited.
I agree, I was thinking about what this situation would look like in other langs and when I turned to Go, I realized:

While Go has goto for tricky situations like this, because it has defer you don't have to use it often, assuming the free calls were needed (and the vars were not going to be GC'd):

defer SSLFreeBuffer(&hashCtx)
defer SSLFreeBuffer(&signedHashes)
if err = SSLHashSHA1.update(&hashCtx, &serverRandom); err != nil {
return err;
} else if err = SSLHashSHA1.update(&hashCtx, &signedParams); err != nil {
return err;
} else if err = SSLHashSHA1.final(&hashCtx, &hashOut); err != nil {
return err;
}
return nil;
}
Then you did it wrong. You should have just factored your thesis in multiple files, for example used one for each chapter.
Right, but they weren't designed to be fast routers. They make awesome single-purpose servers, though (DNS recursors and NTP, in my case).
Interesting perspective. I both write code, and contribute fixes. I've had my code end up in screen, emacs, and other tools that people use but I've virtually never advertised that.

(To be honest I've probably lost track of projects that have taken a one-line bugfix/fixup, and if you put me on the spot I'd probably struggle to recall even the biggies.)
Report: How The Most Successful Apps Make Money
Very slightly-off topic:

So, I have this theory. The theory is that Microsoft and/or Apple somehow infiltrated the Ubuntu organization and got their men in as developers and made big changes to sabotage and undermine the Ubuntu project. And they've done great.

Let me tell you about the Unity Launcher: http://www.bomski.com/wp-content/uploads/2012/10/screenshot....

The awesome thing about it is the microscale indicator that is supposed to tell you what window is open. Yeah, that small little triangle on right/left side of icons. It gets even better when you have many windows open (the icon menu folds) or have more than one window open of a certain application (the triangle becomes an elongated thin icon which is now twice as difficult to make out in full-view): http://4.bp.blogspot.com/-36ZlfS5qyI0/TZREYHuo56I/AAAAAAAAAr.... Basically, the most perfect applications panel design to get my mom to stop using Ubuntu (it worked, too!) When on a high resolution screen, I can't quite make them out either (so it got me to stop using Ubuntu as well)! Also, changing windows (e.g., if you have two or three document processing files open), how do you quickly and efficiently switch to the right one? I don't know! Give Ubuntu a chance yourself to see more gems like this. Man, I really have to give kudos to whoever is behind this, to have convinced their 'dedicated UI team' that this shit is anything less than a joke. Bravo Apple/Microsoft/whoever you are, I'm impressed!
Reverse engineering design
A little bit about how I, as a developer with really no design skills, went about getting my initial design "good enough" for my alpha/beta release of Coach Wizard.
The "application context" vs. "window context" UI dichotomy is certainly interesting; I think both mechanisms can be fine and implemented well or poorly. Ubuntu's was always extremely poor. Unless the toolkit and, to some extent, the applications are designed for that use-case, trying to hack their menus to appear at the top when they were expected to be part of the window is just a disaster.

It's unfortunate that we just don't have the resources to make a sane desktop-level application menu on the desktop-linux stack, even with all the might of Ubuntu. But that seems to be the case, so I'm glad they're moving to something more feasible. Even if it's a little disappointing.
I think he/she is saying to stop idealizing an entity which primary purpose is to increase shareholders equity. I sure agree with him/her if it's what he/she meant.
Indeed, the early "demo" (we call it alpha) will be playable by contributors few months after our crowd funding campaign.
"Non Contributors" will have to wait for the final product.
And `cu` is already included in the base.
I don't use my Ubuntu laptop nearly as often as my MacBook Air, so not a huge deal for me. That said, when I just work on a laptop's screen I like the menus on top but when I plug into a huge monitor being able to flip to the menus on window mode is excellent.

Off topic, but I need to find a nice way to do the same for OS X when I plug my Air into a huge monitor. Any suggestions?
Funny thing is, I was finally looking at Rust the other day and thought, hey, that's nice that if statements are forced to have braces, I never liked one-liner if statements in C. And here we have a perfect example of what can happen with the brace-less if statements.
Your original post could be construed as suggesting that he killed himself due to the false accusations.
Nobody said its easy, we are saying that it must be done or you and the customer will both be unhappy.

I think that far less software businesses fail due to telling their customers to fuck off than vice versa.

At least that is what my anecdotal evidence says. I know of a couple of software businesses that failed because they couldn't get themselves to say no to their customer.

I know of none that told their customer to fuck off and failed.
People living in Syria 3,000 years ago were not Arabs. People living in Syria today, are Arabs. Who is an Arab? Well, one that speaks Arabic and living in an Arab country. You want to get into DNA? I'm Palestinian, born in Jordan and now working in the US. My DNA tests show >60% Middle Eastern/Arab DNA albeit my paternal lineage tracing back to ancient Egypt.
OpenBSD is amazing.
524 pages! With chapters on assembly language towards the end. That's what I call getting your money's worth.

I had a Spectrum myself. The pack-in manual for that wasn't quite as hefty at about half the number of pages but it was pretty hard to overlook the possibility of programming when the keyboard itself was festooned with BASIC keywords.

While messing around with a Raspberry Pi recently and fidgeting with the board which by default does not come with a case I noted that - while not quite the same because just looking at a board isn't going to make you an electronic engineer - having such internals right there in your face does stoke some curiosity, even now that I'm an adult.
One of the nice thing about menus being at the top of the screen is an adherence to Fitt's law: http://en.wikipedia.org/wiki/Fitt%27s_law

> Edges and corners of the computer monitor (...) are particularly easy to acquire with a mouse, touchpad or trackball. Because the pointer remains at the screen edge regardless of how much further the mouse is moved, they can be considered as having infinite width. This doesn't apply to touchscreens, though.

But there's an argument to be made for the spatial-locality as well, as you say. I think it's an interesting trade-off / difference of design philosophy.
I contributed a fix to something on github, making one function signature which required 'options' have them optional like all the other functions.

Repeated throughout the code base was some copypasta. I dutifully committed more copypasta.
> The ethnicity knowledge of the Americans is no better than their geographical knowledge.

You were doing so well with your warning about sweeping generalizations..

FWIW his father seemed to identify as Arab

> In the 2007 issue of “Campus gate”, a magazine published by the American University of Beirut, Jandali featured as one of the Arab nationalism activists in Beirut who quickly rose to prominence and was appointed as the director of “Al Urwa Al Wuthka” journal (The trustworthy Guide), a journal that embraced the symbols of the Arab nationalist movement like George Habash, Constantin Zureiq, Shafik al-Hout and many others.

http://www.alarabiya.net/articles/2011/10/09/170940.html
Yea, for something like a single-purpose DNS recursor or NTP server, any cheap hardware will do. You got your terminal server for what? 15 dollars? Much more reasonable than the 100 bucks an ERL costs.
As an Arab, I agree. He might be Arab by DNA, but definitely not by culture. We all know that DNA and genes mean nothing for success. Jobs succeeded as a result of his environment, and not where his DNA roots trace back to.
That's a pretty poor assumption then.
This tradeoff is best left to the user's specific task and is handled in a very intuitive and usable fashion: maximizable windows.
In this Olympic medal count, the United States is near the bottom
Test driven development with silly/vague method names, like it() and should(), often written by people who don't write the code so behaviour can be defined separately from implementation.

It was quite popular in the ruby community a couple of years ago.
This actually is the thing keeping me from using Unity right now. A permanent menu bar made since on a 4:3 screen. But in 16:9, I just don't want to lose my precious vertical screen real estate to a menu bar.
Public beta version of Google Cast Chrome extension
I would like to see folded coins.. That is, protein folding. I'm definitely not qualified to suggest this, but it seems like proteins are kind of like hash values in their one way process structure.. I wonder if protein foldings are finite in number like bitcoins?
The last time I used Word it was an absolute nightmare to typeset equations in it. In theoretical physics basically every page contains at least one equation, it would be complete madness to try typesetting that in word.
Well that's vague. Defined "acceptable"?
I remember when this happened. I was quite the upset teenager :)
> I miss eigenvalues

They're not missing just judiciously omitted. Actually seeing SVD presented in an introduction is what inspired me to post this.

The SVD approach works for an matrix A in R^{m x n}

A = UΣV^T

But if A is square and you allow the singular values to be +/-, then you can find a single matrix U that serves as a left-basis and a right-basis for A. Hence we obtain the eigendecomposition:

A = UΛU^T

So SVD is the mother ship, and eigenstuff is a special case.
You know how difficult it is to remove "religion" (using it as a general term; so nationalism is a part of) from humans? Very difficult. It's part of our biology. Although thousands of years ago it was crucial for our survival, it is primitive behaviour right now and destroys us unfortunately.
Watch the video in the article. At 0:48, they drag the titlebar as usual, even though there are menu entries directly under the mouse cursor. I guess they have replaced the "pull down" mouse gesture with initiating a window drag, so the only way to open a menu with the mouse is to click it.
Why the hell would Apple publish the vulnerability & fix for iOS without a concurrent update to OS X?!