skysight-inc/HackerNews huggingface dataset:
> use NaN = 0/0.

You may not be able to do that it traps are enabled for the invalid exception. (The NaN may be coming in from a data file | over the wire | from another process prepared under an entirely separate floating-point environment that didn’t have traps enabled).

> Can you give an example where == is appropriate, but where you want NaN == NaN to be false?

I’ll give you one where == is appropriate but where you want -0 == +0:

if (x == 0) return someFormulaValidAtZero(x);
else return somethingEasierToComputeWithAnImplicitFactorOfx(x)/x;

this is actually a fairly common idiom.

Here’s my standard question for the “NaN should equal NaN" crowd, to which I’ve never seen a satisfactory response: If NaN == NaN, how should NaN compare against zero? I think we all agree that NaN != 0. If NaN < 0 or NaN > 0, you’re giving up x > y ==> -x < -y, which to my mind is a bigger loss than trichotomy. If NaN ?? 0, then trichotomy goes out the window, and presumably NaN ?? (any number), at which point NaN is unordered with respect to every number, but somehow equal to itself, which is also pretty darn weird.

You give something up any way you tackle this. You may reasonably argue that one of these options is less bad than another, but you can’t pretend that there’s a canonical right approach (though nearly every algebraist I’ve ever met believes that you should be able to until they really dig into it; analysts are much more realistic).

w.r.t. rounding modes, I partially agree. Had I been on the committee in 1985, I would have argued against formalizing round up and round down (round to zero is quite useful for some signal-processing applications). It’s a mistake to look at them and say “they aren’t interval arithmetic so they’re useless”, however. They were never intended to be interval arithmetic; rather they were intended to be building-blocks for interval arithmetic systems. (My problems with them are that (a) they’re global rather than operation-by-operation—this was corrected in the 2008 IEEE-754 document and (b) round-up and round-down are no more useful building blocks than round-to-zero (which we already have) and round-away-from-zero, which would free up space for another useful rounding mode (either round-ties-away “schoolbook rounding”) or round-to-odd, which is extremely useful for library implementors).
Yep, that's a big-time point of interest for me. Keep an eye out for some of that in the future!
Fujitsu harvests low-potassium lettuce grown in semiconductor plant
I'm not saying this is a good or a bad thing, but: intro physics courses are not designed to teach physics, really. They're designed to give intuition about mechanics. In practice, physicists don't really think much about concepts like forces; although that's what an engineer building a bridge needs to worry about. If you want a technical and conceptually pure understanding of physics, well, that's what the next 3-8 years of study is for.
This is correct. As a matter of fact, even dosing one chemotherapy may be a challenge for a patient if the side effects are too server (lowered immune resistance, can't keep food down, etc). We're talking about drugs with such small therapeutic windows that given too often can easily kill a healthy human.
Tips From Apple's Official Guide To App Design
I'm curious, why would it be unreasonable to cite every contributor to an article you copy? They are the ones who made it, and it only seems reasonable to me to give credit where it's due.
C/C++ Ternary operator crazyness
Those are good points, for sure. I hadn't considered the swiping part, especially. Mostly the details are stupidly small at mobile size -- as much as I'm a fan of responsive design, this really is more of a "desktop" activity.
> Yahoo itself, meanwhile, continues to decline

Yahoo stock has gained 113% since July 2012, when Mayer was appointed. For comparison, in the same period:

Nasdaq: 38%

Google: 80%

Facebook: 83%
Evaluation-guided techniques for Machine Learning
I wouldn't know, I never used Perforce. But there's a walkthrough for that: http://git-annex.branchable.com/walkthrough/modifying_annexe...

That's without the Assistant, which further simplifies the latter steps by automatically taking care of committing and such. You just do unlock <file>, edit, then add <file>.
Offer HN dedicated thread
I was thinking of making a Offer HN, but then I decided why not make it a thread where everyone can add their offer, maybe others are interested in posting.
There are many:

http://stackoverflow.com/questions/3620947/best-static-photo...
As a longtime fan of this project, I have to say that I was not at all surprised to hear that Notaz pulled this off, in the way he did. The man is a veritable wizard on the platform (and many others besides) and has continually demonstrated that the open-source mantra really kicks serious ass if you take it seriously. Notaz, I salute you!

The Pandora itself, is an amazing project. Against all kinds of odds .. drunk people in funny hats, a volcano, multiple mutinies and uprisings and public linchings of many key players involved .. somehow EvilDragon and his motley crew are still there. There's still a righteously viable ecosystem around the tiny platforms' little repository .. (http://repo.openpandora.org/) and there is much of value to run on the thing, more to the point.

Starcraft being onboard is a real gem. Fact is, its a bit of a watershed. The OpenPandora has been considered 'dead' for a long time .. but actually this demonstrates more and more the fact that if, indeed, you build it, and put it in the right hands: such things will come to pass.
Where's the fun in that? Re-inventing the wheel to scratch your own itch is part of the process of improving yourself as a developer.

:p
I actually just got an email with this question yesterday, as well! Going full-screen gives me extra screen space to tack on the annotations without covering other parts of the interface up, but I agree that sometimes things spill over. I could try letterboxing it and seeing where that leads -- thanks for the feedback. In general, though, I also wish more teams had a simple "max width: 1400px;" declaration!
I'd like to see the video with the side/by-side demonstration of "no animation" vs "animation" of the tabs, synchronized to the moment of the click.
Analyzing S3 and CloudFront access logs with AWS RedShift
Well, I think one answer if that you can quickly have a running web app without another piece of software. This is an attractive quality of Node, too. In fact, if a language doesn’t have a “5 lines to a web app” demo, I consider it insufficient.

I’d posit that 90+% of apps don’t need another http server. Big apps have good reasons for a dedicated http server – unifying SSL termination, load balancing – but they are a minority.

There is nothing to to prevent you from putting nginx in front of the Go app if that’s better.
Is adsense leak forgotten already? My opinion on the story.
I wrote a big article on this story at the mentioned url.
Offer HN: Offering node.js, angular, php development in Dublin or London. I am travelling through Dublin and London next week and I am offering some cheap services and maybe I can help you with your app/startup and do some coding out of a coffee shop and meet new people along the way.
I guess it's because the HTTP module works out of the box and you can still have the dedicated HTTP server using a reverse proxy like Nginx.
Great point. The criticism is still valid, however: Mozilla IS sacrificing its mission and values... in order to remain "important" enough, in the eyes of society, to get a seat at the table.

It's a slippery slope.
To explain to those who may not know what's going on here:

Go forbids importing modules that you then don't use in the source code. This is particularly annoying with the "fmt" module, which contains things like Printf that are useful for debugging, but you may only be using fmt.Printf for one debugging statement in the code. Consequently, if you're developing, and you're adding and removing it over and over you also have to add and remove it to and from your import list over and over, which is very annoying since it's likely to be relatively distant from your use location, and it's mandatory that all imports are listed at the top of the file. (So, you can't do what you can do in perl and say "use Data::Dumper; print Dumper($debugging_stuff);" all on one line, without even being concerned about whether Dumper may already be imported.)

goimports is a source filter that cleans out any unused modules, and tries its best to add modules that you only reference. It's pretty good. You can confuse it if you have two modules with the same last bit of the name, but the standard library doesn't have that anyhow, and for the most part you can deal with that. Since it also runs gofmt for you on save, it's also a drop-in replacement for gofmt, which you should configure your editor to run on every save even if you for some reason don't want the goimports functionality. (Seriously. Just do it. There's no excuse not to. There's no excuse to ever commit code that was not gofmt'ed.)

If you do that, the problem goes away. Typing "fmt.Printf" pulls fmt in automatically, removing the one line removes it automatically, the import list is always accurate, and it's smart enough that if it isn't the only usage it doesn't remove it.

That said, I also strongly recommend setting up automatic syntax checking by compilation (flymake in emacs, don't know what in vim, etc), so that you also avoid the "Save -> switch windows to terminal -> compile -> get smacked in face with an error that feels stupidly persnickety" psychological torture. If the errors highlight in your editor on save or something, you go through that much less. Those who lived in the C#/Java etc world have long had this... a lot of people coming from the scripting side would be advised to pick up a bit more of the helpful tools the static side has to offer.
They introduce some of the fundamental concepts of the later courses (and try to tie them into previous knowledge).

In the U.S. system, they also serve as a review, I guess with the hope of shoring up knowledge that students were missing (but I think such an approach for math education is pretty optimistic; figuring out what they don't know and fixing that must be more valuable than just showing them things again).
Ask HN: Do you listen to radio? Will it survive?
Yesterday I was without any technology other than radio, and I just turned it on to see what I could get. I was pleasantly surprised, with many stations in several languages with good music I had not heard before, and interesting programmes on diverse topics.

Do you still listen to radio? Do you think radio has a future as it stands now? Television broadcast over airwaves is dead or dying, and many broadcasters have shut down. Why hasn't the same happened to radio yet?
Hmmmm, probably Jalen with Sunglasses, since Champagning and Campaigning is my favorite segment.
MoD’s ‘quantum compass’ offers potential to replace GPS
Perhaps but they're doing it in a Comcast/Verizon truck, wearing their uniform, talking about that as their company with no mention of being a contractor, and in at least two of those cases they specifically went to extra work to remove the cable even though it didn't come in the same box / conduit as the new fiber. That was actually why I first heard about it: a coworker mentioned his surprise that the FIOS installer spent the extra time removing Comcast's cabling all the way out to the street after finishing their install.
I'm particularly excited about improvements in materialised views that will make Postgresql better suited to OLAP usage scenarios.
>24fps video on a 30hz display isn't going to be smooth. Every fourth frame of the video will last for twice as long as the rest.

I see what you mean. Doesn't the HDMI standard have a way to fix this? It could just have a mode where you have 30 frames per second sent to the screen with the indication of which 60hz or even 120hz timeslot to use them in. It might need a little more/faster memory in the screen but should work fine.
Hey, post-author here.

I would argue that they're not non-essentials. They may not be functional essentials, but they certainly add to the experience of running a polished, smooth browser.

You'll be happy to note that I've been loaned out to the Electrolysis team. We're making headway on that front for Desktop, and you can already test it on Nightly[1]. Open up a copy of Nightly, and go to File > Open new e10s window. A new window will open that has its tabs use child processes (you can tell when this is working because the tab's title will be underlined).

We hope to enable this by default on Nightly in the near future.

[1]: http://nightly.mozilla.org/
Sorry, FT article seems paywalled. Here's a take from The Telegraph: http://www.telegraph.co.uk/technology/news/10833087/MoD-crea...
Java, while compiled, isn't compiled to machine code, and the bytecode to which it is compiled is run on a virtual machine. For this reason, I consider Java more of an interpreted language than a compiled language per se.
Build Your Own All-Star Team
> Chrome, unlike Chromium, is not free or open source.

How should we consider Chromium, knowing it is most probably used to serve Google's interests in terms of reporting, orientation, strategy, etc? Does it contain usage tracking code like Chrome?
Heartbleed Was Scary, But Did Anything Change?
Just read the Optimizely tear down. Excellent. Have bookmarked and will buy the book shortly :)
Because the list can be huge. It's not unlikely that the list of contributors is longer than the article.
They also filled it up to the edge with Ruby-like magic all over the place.

ASP.NET MVC is the only place I've ever seen in mainstream compiled languages where the code can break in untraceable ways if you change the name of a method parameter (f.ex. for controller actions). Or where models suddenly don't get data because you forget to add "{get; set;}" to the code somewhere. Absolutely no way to find out why it went wrong. The data just isn't there.

Sure, you can learn this and then not make the mistake again, but the reason I don't use Ruby or Python much anymore is because I've had with with having to spend a full day going through a framework's source code to find out why my bug is a bug. In an ecosystem and language like C#, you expect things to either work or to get a pretty OK error message, preferably at compile time. The more magic, the more time I waste tracing bugs.

What's the point of using a compiled language if half your code is a dynamic viewbag of string keys and liberal JSON parsers that just ignore fields it doesn't expect or can't fill?

It's just Ruby, but then in Visual Studio.
I run a Wordpress site on Websites and it works great.

Its not cheap hosting (I'm running a business so I just want my stuff all in one place) but it has been very solid when used at Standard with a paid MySQL database option (the free tier is for development - not production).
I just registered with my @tilburguniversity.edu address but sadly I don't see any indication that it's on the list.
Yes, definitely. The title was familiar to me however the age of the article would've made me instantly recall what this is.
Yeah, but Musk can sell the DoD brand new rockets at full price (i.e. the disposable price), recover the first stage and keep it for himself/sell to more risk-seeking third parties like Orbcomm at a deep discount.
"Go: Code -> Operating System -> Hardware"

Is there any reason to use RVM, PVM on production while Go does not required one?

I believe should be install one and only one Ruby/Python version on production.

Why Ruby/Python does not required application server like unicorn/wcgi, etc?

The article clearly try to make other deployment more complicated.
Actually it's almost impossible for a regular user to avoid using Google products any more, e.g.:

- Over 63% of the top 100k web sites embed their web bug ( http://smerity.com/cs205_ga/ )

- I have no data, but a huge proportion of web sites use Recapcha in their sign up process. It's impossible to use some domain registrars without revealing the IP address of the probable domain registrant

- I cannot host a web site without Chrome or Google DNS donating some huge percentage of data about my visitors to Google. I'm not sure the mechanism employed here, but I've set up 2 private web sites in the past year where upon having a Chrome user visit, Googlebot turned up within a day or so, despite all efforts to ensure the URL remained private

- I cannot visit Reddit and many similar sites with a cold web browser cache without revealing my use of the web site to Google, thanks to their AJAX library hosting

- A technical user has no difficulty blocking Urchin, but e-mail is a different issue entirely. I cannot find the article now, but one user reported 40% of all mail in his inbox passed through Google's servers at some point, even though he wasn't a Google user.

On the average day, whether I like it or not (and really I don't), I generate tens to hundreds of new records in Google's databases.
Not the parent, but personally I can't remember the huge list of available Unix commands. Every time I want to do something outside my normal workflow, I end up in google. For me, "Google + man page + command line" is slower than a nice GUI optimized for specific tasks. The hard part is designing this mythical nice GUI.
Precalculus as I'm using it is a level of math, not a particular course (although there are of course courses with that title). In addition to what you learned in high school, assuming your Algebra II was like mine, plenty of analytic geometry, it would also include trigonometry.

To do as well as you did, you obviously picked that up on your own, as did I.

(While in theory I took a trig and further analytic geometry course in high school, followed by a semester of the calculus, the teacher flatly refused to teach anything, and trig at that level in that textbook was absolutely boring and unmotivated (e.g. didn't mention you needed it to do calculus on rotation including AC electricity); I only stayed in these automatic A courses so I'd have them on my transcript (I'd already taken my first go at the calculus in a summer course taught at a university before this, but focused most of my attention on a PDP-11/70 running UNIX(TM) Version 6, which ended up being infinitely more valuable (as it turned out, perhaps lifesaving; the introductory programming class that was my excuse for using it was easy, so I focused on UNIX(TM), Adventure and other games, wandering around the filesystem (very much like Adventure :-), software engineering, helping others debug their final class project, and using nroff for my class project which had more exposition on software engineering than code; included that in my college applications)).

Expanding on maxerickson's comment, I gather formal precalculus courses also start teaching you about limits and stuff like that; since basic differentiation, especially speed and acceleration, is relatively simple, I'd hope it would teach an intro to that, which goes along nicely with the limits. It could also be a fancy name for a (further) analytic geometry course, and/or include trig motivated by the calculus vs., oh, surveying.
This is much easier for bacterial infections vs cancer -- chemotherapy is (excuse the non-medical phrase) very close to actual poison. Antibiotics are very well-tolerated, so taking two at once is something that could be done and is indeed deployed in serious infections or when there is high risk of one.
> Wiki is legally within its rights to change the licensing of its content.

Would be if they had proper terms of use/service in place. But TVtropes has no terms as far as I can see, which makes the situation whole lot muddier. Basically we are working on an implicit grant of rights to TVtropes from content authors. The disagreement stems on what those rights include.
So they are being taught some optimisations that they'd normally learn later? Doesn't sound too bad.
Who will win the 2014 Dicty vs. HL60 cells world race?
Google places much less emphasis on domain names now.

http://webmasters.stackexchange.com/questions/53703/choosing...
Yes, my first reaction was, at $60 million, there's no way they're paying for launches, plural.

As I recall, a normal Falcon 9 launch is $60 million, and they estimate something like a $30 million premium for Air Force work due to the extra certification required.

I have no real idea what Falcon 9R (reusable) launches will cost, and I'd hazard that SpaceX only has a rough idea for the moment, until they can actually see how the rockets withstand multiple launches. But the cool thing about their reusable program is that they're building it on top of a sustainable, economic conventional program, so they can take it slow and incrementally.

Regarding Musk's net worth, a lot of that is tied up in stock of somewhat questionable value. He owns about a quarter of Tesla, for example, and with a current market cap of $23 billion, that'll account for around 2/3rds of his total net worth. Tesla isn't necessarily overvalued, but the stock value is heavily based on enormous future success, and unforeseen circumstances could bring it down in a way that a more established company might withstand. (To put it in perspective, Tesla is worth about half of what GM is worth, even though GM sells literally 100 times more cars. Again, it could very well be justified based on future performance, but it's uncertain.)
So because these guys are either bad at coding, had a site that was on heavy load for that service, or what else you want to call it, an entire platform isn't ready for service? Get real. From everything he told me, if I had a real site & wanted to make use of a lot of things for cheap I'd go for their free tier in a heartbeat.
How does one handle window placement in a single monitor setup like that? I quite often use Windows' fill right, fill left, maximize, fill height options for window arrangement.
Very nice feedback! I agree there's plenty of room for improvement here -- it started as a side project I threw together over a weekend and it's always had a bit of a "cobbler's children" status.

That said, the fact that it skews educational over salesy is very intentional -- I'd much rather have you find it to be a phenomenal resource and come back over and over (and then buy the book) than I would have it try to sell you hard on the first visit, which is probably unlikely to be optimal timing. To that point, I didn't see you mention signing up for the mailing list or not, but if you did, it's "working" as intended for visit one!

But yeah, overall, you're quite right to turn my own advice back on me!
Server is down... Cached version: https://webcache.googleusercontent.com/search?q=cache:TaAWyk...
I see value in educated opinions. For instance a while back I was trying to figure out how to make a web app in Python (keep in mind that, while I can program, I have zero knowledge about web things). This is what I saw: https://wiki.python.org/moin/WebFrameworks

Which framework is the best? Why are there so many? Which is the easiest for my specific goals? An opinionated guide that said something like "Use Flask because X" or "Use Django because Y" would have been pretty useful.
A victory for the giants.
Custom windows servers that do failover and interceptor pattern at the same time. Try that with IIS without pulling your hair out.
Smart Card Operating Systems: Past, Present and Future [pdf]
Open-source Python client for the UK Police API
Besides the fact that you are using the free ClearDB plan which is not supposed for production use (and it is not related to Microsoft anyway), Azure website (shared) is a preview product [1], with no SLA, you should not consider them for any serious use anyway, so you've made two mistakes here.

[1] http://azure.microsoft.com/en-us/pricing/details/web-sites