skysight-inc/HackerNews huggingface dataset:
I'm sure it would help if these tests used the minified version of React on the server.

Also this test could be more efficiently written. First (in SearchResults.jsx), setState accepts a callback in its second parameter, you don't need componentDidUpdate() or this.doneCallback (which is triggering more GC). Second in SearchResultsItem.jsx, you have an empty componentDidMount() function, you should get rid of that. Also this is super optimization, but it's also important that you think deeply about the creation of objects, therefore creating potential garbage that has to be cleaned up after short usage. In SearchResultsItem.jsx, you should just go with a className (className={"search-results-item" + (this.state.purchased && ' user-has-purchased')}) instead of a style object, which becomes useless if you don't have a purchase.

By giving each SearchResultsItem their own state management, you're making it more dirty than you has to be, it should just be a simple list item. Typically in this type of app (Search), the SearchResultsItem component would be stateless (no this.state, getInitialState). When someone clicks handleBuyButtonClick, that communicates the change to the store, which then flows down to SearchResults, which "re-renders" the list of SearchResultsItems.

There are probably a lot more optimizations I could go over, but in short conclusion React's performance is more than the library, it is a mode of thinking.
Have you found that there is a specific time/day that is better than others? Have you found that products that have a specific landing page for HackerNews people they convert better?
My intuition is totally failing me here, because I can't get over the 1/2. If I have a friend who has one child, and he's about to have another, what's the probability that it will be a girl? Clearly 1/2. What's the difference between asking any of these questions and the one I just asked? I can't find any difference.
You're right. Still, it would be better to just say nothing, so as not to dilute the thread further. The right tool here is flagging. You can flag an inappropriate comment by clicking on its timestamp to go to its page, then clicking on "flag".

Fortunately, enough other users did so that the comment was killed.
I've had the high end version (i7 & hi-res touchscreen) for a couple of weeks as my primary development machine and so far is pretty satisfied

The keyboard is more plastic than for instance the Zenbook but good. I've had no issues with the track pad, two-finger scrolling works perfectly. Best trackpad I've had on a PC laptop (don't know what The Verge was raving about, maybe pinch gestures aren't as good as mac?)

As for battery issues, It does feel that it doesn’t last too long, like 3-4 hours tops (I run Bitlocker & Chrome though so that has some impact). I don't think this is as much the laptops fault really as it depends mostly on having a screen with very high resolution and depending on how you configure power saving options, what kind of work you do etc.

I think it’s pretty safe to say that the Xps "13 is the best PC laptop in this form factor right now until sharp releases the exclusivity on the screen in November, then Asus might give them a run for their money again.

To their credit I vowed never to buy a dell laptop again but they proved me wrong. A 14"-15" version of this laptop with more ram would be the ultimate though, larger screen so you can use the resolution better, more battery volume for a little better longevity.

I'm not so sure the hi-res version is the best option for developers because of the energy drain, especially if you need to work on battery for a whole day. The power pack buys you some time but very doubtful you'd last a whole day.

Also matte screens is often better than glossy for development, at least when working outside or where's there's sun.

Then again, you might need touch for development and the touch version with gorilla glass looks much better.

Personally the feature I'm dying to get now that we have almost bezel free computers are Amoled screens. Bezelfree where the true blacks of the screen blends into the little bezel there is would be truly droolworthy
See the status of your LAN/Ethernet connection right from the menu bar
Norwegian Air (budget airline) adds a fee for bookings made with a credit card.
Thanks for checking it out! It sounds like what you're looking for is a Ops or deployment checklist (but really just deployment automation). DevOps really is about "general engineering team principles", one of them being 'DevOps is not isolated to a specific role in our organization.' aka 'Don't have a "DevOps guy"'. There's a lot of great material in the references section at the bottom if you'd like more information on the reasoning there, but I think some investment in automation would relieve the checklist issue and make your deployments quicker and more flexible as a result.
:) Yes exactly! Deployment automation to the rescue!
I think it's wise to assume corporate-owned devices are just that: 0wned by corporations.

I use my work laptop all the time for a variety of things, but I do so under the assumption that the company may be snooping on me. (No idea if they are or not.)
The relative importance of cash flow vs. income is dependent on the availability of capital. A business might take that 2% discount IBM offers to pay now vs. in a month if they are out of working capital and worried about making payroll.
I use telegram it's an app and it works great cross platforms. The other option is Skype it's a little buggy but more people have it and most are comfortable using it.
Maybe this time Dell will customize that key for the developer edition? One can hope.

Sitting here using an XPS 13 Ivy Bridge (didn't buy as developer edition, but running Ubuntu) and definitely considering jumping for one of these for the battery life alone.
PowerSpy: Location Tracking Using Mobile Device Power Analysis [pdf]
There will probably be some hit, but probably not terrible.

I have the Ivy Bridge version; I probably get 4 hours running Ubuntu and perhaps just under 5 with Windows; this is not scientific though. I really should measure it.
Check the serial number. Either way, I've yet to be completely disappointed by a trip to the Apple Store (with a pre-scheduled appointment and something to do on my phone while waiting). Even if out-of-warranty, they'll give you a free diagnosis and tell you how much it costs to fix. It wouldn't surprise me if it's entirely covered by this repair program.
14 Ways to Enforce Positive Thinking Today
First door as in the first door to be selected. When you select it, it has a 1 in 3 chance of being the correct door. The door presented to you obviously has a 0 in 3 chance, so the remaining one must be 2 in 3.
Same exact sentiment here with 2012 rMBP. Had to sell it for much lower and grabbed a new one. The NVIDIA GPU was faulty and it worked fine on Intel only. No way they reimburse the damage.
> Here repping enterprises, can confirm this is how things work. But we don't pay late out of malice. Often incompetence and apathy, sure, but we don't actively set out to cheat you guys.

Yep. Also, small companies dealing with MegaCorps - please, just accept our terms & conditions. Raise the price by 20% if you have to compensate for whatever rights you feel our standard T&C doesn't give you, I don't really care. But if you want your own terms, then your lawyers need to talk to our lawyers and there is a 50% chance that your PO will arrive after man lands on Mars.
I'd be happy to go through some of your options even if you don't use us. We're a startup that does cloud based security video hosting. https://eagleeyenetworks.com

Let me know if you want to talk.
mcotton <at> eagleeyenetworks.com
I got someone at the Apple Store to replace my board a couple years ago.

I'd made a couple trips over a year. Initially, I stopped the reboot by not using the discreet card then I foolishly upgraded to a Mac OS X beta at WWDC then my machine rebooted quite frequently. Tried to grab an engineer to demonstrate the problem but the kernel guys were the only ones who I thought could track it down but I missed them.
The Verge and most other reviewers simply run the tests with the display at some percent brightness - I forget what the Verge uses, but I think it's 50% or 65%.

This is a fairly useless metric. Since different displays have a different max brightness (and perhaps even different brightness curves, I feel like the "percents" aren't always linear), testing at a certain brightness value is the only way to go.

Thankfully AnandTech uses 200 nits for all laptops so we can actually compare these numbers.
Cancer risk linked to DNA ‘wormholes’
Well, at least now you have until early 2016 if anything does come up...
No, I would not consider it unreasonable but a lot of people probably would. And I don't know enough about inferring future health conditions from DNA alone, but I meant it as an example for a future possibility. If anyone does know, exactly, what you can infer from DNA alone and how that would be extremely helpful.
WiFi range is one of the only problems I have with my Ivy Bridge XPS 13 (2013) running Ubuntu. Mine is not the developer edition. It has an Intel 6235. I forget if Dell shipped the developer editions of this generation with different cards or not.

I'm hoping with newer chipsets and hopefully better support, that things are better with the 2015 models.
Right, that's the last case. The eldest is a boy (or a girl, it doesn't matter), so the younger is equally likely to be either.

The middle case is 2/3 likely to be a girl. Think of the possibilities of the sex of two children (sex given in birth order) M then M, M-F, F-M, F-F. I tell you one is a boy, so we have MM, MF, FM, in two of the three cases, the other is a girl.

In the first case the answer is 14/27 a girl, so almost 1/2, but not quite. To figure this out you can consider all 196 combinations of two children with birth-days-of-the-week, cross out all those that don't match the phrase "he has a son born on a Tuesday", and you're left with 27 possibilities: 14 of them are when the other is a girl (14 because she could be born first or second, and on any day of the week 2x7=14), and 13 when the other is a boy (6 when the other is an older boy born on a non Tuesday, 6 when it is a younger boy born on a non Tuesday, and 1 when both are both on a Tuesday).

So that's not the intuition, as much as the answer.

The intuition is that as you add more specific knowledge about which child you mean, that question contributes less to the probability of sex, and is more an irrelevant detail. Being more specific can be anything. Do it with birthday-of-the-year, (more specific than day of the week) and it is even closer to 1/2. Do it with something unique, like their phone number (or their birth order, or 'the taller one is a boy') and it is exactly 1/2. Be less specific, make it so they both toss a coin and it is 'one of the children tossed heads and is a boy' and it is 3/7.
> paper and other wood products, they continue to sequester the carbon for the life of those products.

Which is basically forever if you throw away the paper instead of recycle it.
It would be great, but I must admit I'm on a MBP now.
I find that Konsole works well in XMonad.. but I use a lot of the KDE application suite in XMonad (Konsole, Okular, Dolphin, GwenView, others..) so I don't mind the KDE packages.
That doesn't surprise me, Lenovo seem to be working hard to become the next HP in terms of hardware quality. I recently spent hours and hours trying to get a Thinkstation to boot with ECC memory that it specifically listed as supporting. The Lenovo engineers seem to basically get the motherboards to the point that they can kind of boot with the exact hardware the machine ships with and then completely give up. The smallest hardware changes would render that machine unbootable, including inexcusable things like changing graphics cards (Nvidia -> Nvidia too, just a model change).
I have given up on buying laptops with dGPUs - Post Sandy Bridge Intel's GPU is more than what a non-gaming machine needs and I certainly don't need the battery loss and added heat.

(These dGPU related repair issues seems like the are an Apple only thing though - my work laptop has a Nvidia GPU and it is running most of the times due to sleep/wake issues - no other problems in the past 4 years. Haven't heard of any other manufacturers having similar issues recently either.)
I'm a teacher, so I optimize for the result "understanding in my students." I teach it like this:

You don't bring up Monty Hall first. It bends minds too much.

I give a parallel game, where basics are similar, but you can choose to reveal 3 doors, 2 doors, or just one door each time. Everyone (after making sure they aren't being tricked) chooses to reveal three doors. Winner every time. Then I change the rules: Can't open all three doors. Have to choose between 1 or two. Everyone picks two.

Only then do I give the Monty Hall problem, and show (as @bhc3 put it succinctly) that it's essentially the same game they just learned: your choice is between revealing two doors, or revealing one door.

The most interesting part of this, and why I do it this way, is that I specifically optimize for my students to be able to explain what they know. I can teach someone to win an argument with someone who is convinced it's a 50/50 chance this way. Other ways, people sorta, kinda get it, but can't explain it to others who are confused.

EDIT:

The general principle here IMHO is teach something simple first, and show how it can be applied to something more complicated. When people think something is complicated, "breaking it down" into simpler concepts or making easy analogies doesn't have that great a track record. Their brain seems to have already classified it as "complex" and that has to be overcome —they have to be convinced to drop the tag #complex— in addition to however you teach the right understanding.
What a shame. I can't imagine why.
Jazz and math. Ah. What more could one ask for?
From experience - there is absolute need for this.

People often lie on their resumes. A while ago when I was hiring, I would throw 90% of the resumes I got because they weren't what I was looking for (one way or the other), but of the 10% that were left, many were simply lies - I didn't keep stats, but phone screens weeded out most of the fakes, though some slipped through and were only weeded in person.

People who say "screening is unneeded" have never likely tried to hire, or have access to a pool of honest-resume talent that most of us do not (which I find highly unlikely).
When I spend money with a vendor I often reveal my identity to them intentionally (so that they can ship me goods!). There's the join right there. You can argue that I shouldn't have sent money to this vendor but I think that eliminates an enormous existing use case for cryptocoins.
Correct, the firewall intercepts all traffic looking for potential compromises and blocks it. Given all these corporations getting hacked, such measures seem necessary.
Sopa – Local package manager
+1 for walking. I am a pathological walker. If I am having issues (stress, concern, overwhelmed) I walk for a few hours. I can't say it always works but it gives me something constructive to do and allows me to focus less on my immediate problems that I often can't change.
I wouldn't say that's a side effect. The point of the policy is to allow the observation of website traffic to make sure it's normal.
Don't you actually need to buy a new license? I don't think you can activate any 3rd party installer (say downloads via microsoft.com, making an usb key) with the oem serial? Not sure though, the only windows license I'm currently using isn't OEM, it's a full 8.1 pro license.

This does sound like a good argument for wiping the OEM windows 7 pro partition on my laptop, and install a windows 10 trial or something (I currently just run Debian GNU/Linux on it -- but it's technically dual-boot).
That is quite the offer. I have a few projects/ideas I have been putting on the back burner. Send me an email.
I've convinced many people to do clean installs on new computers - my reasoning usually goes like "the software it comes with is suitable for demos in the store; when you start using it, you should clean that out and install your own."

It used to be relatively easy to do a full reformat+install of the OS and drivers; not sure whether that's gotten easier or harder now.
What do you think spying is? By definition it is illegal. Other countries won't do anything but cry a bit because their hands aren't much cleaner.
Firefox has it's own certificate store. Both IE and Chrome utilize the Windows store.
Various HP laptops have also had major issues with dGPUs, Nvidia ones to boot.
I wonder why people are downvoting you. It's a good point and not something everyone has explicitly considered before.
When I moved to another country from Japan, I couldn't carry over my account (which is associated with my e-mail).

Their customer support simply doesn't exist (yes, seriously), so I had to kiss goodbye to that account.

It looks cute (although I'm not sure it matches the taste of people from non-Asian cultures, and I don't think western people will be eager to buy or even use the stickers etc.), and everyone in Japan is using it. Given all these, it's going to be a tough for them to get into the market.

(and oh, the name is terrible in google search)
I read an article recently that in the past they did not measure founder metrics like this besides gender but were considering doing so going forward.
I understand why that might make you uncomfortable, and I do hesitate to make such comparisons. But, you know who cringes when they hear about the surveillance apparatus that we are building in the Five Eyes countries? Germans.
They definitely can blacklist the certificate.

They have the choice of having HTTPS effectively useless (by leaving the certificate there), or making HTTPS not work (by removing it, thus prompting action from the user to fix it -- perhaps by calling their tech savvy nephew).

Browser vendors should (and usually do) err on the side of security.
U lucky simple-minded bastard! :)
> I need to pay for various services: domain name registration, etc, etc. At the moment I'm constrained to using Japanese companies who will accept bank transfer payments.

Why not buy a refillable Visa at a convenience store?
Ask HN: Looking for a good blackboard in the bay area
My company is setting up a math lounge to host "micro-meetup" study sessions. We're looking for a large board (4x8 feet or so) that is high quality like you would find in a university math department. Craiglist only lists little cheapo things. Does anyone know where I can buy a good blackboard in the bay area?
"openly" usually means "it was burried in a paragraph on page 25 of the 3rd addendum of their employment agreement".
I have a tendency to "over-engineer"/overthink projects. I love process but the three points above are awesome. They now are on a sticky note next to my desk. Good litmus test for automation.
One way would be to bypass the proxy if it's detected as a Superfish proxy by its certificate, but somehow I feel like this isn't a problem the browser vendors should be doing extra workarounds for (and giving precedence to "if we don't like your proxy we'll ignore it" isn't a great idea either.)
Chiefs vs. Brumbies [Live]. [Stream]. .Super. .Rugby
the first line from the one-page-PDF source for the article is:

"Billing servers to suppress SMS billing"

were the GCHQ risking bankrupting the government because of abusive SMS billing from the telcos?

[1] https://firstlook.org/theintercept/document/2015/02/19/cne-a...
Clef actually doesn't require internet on the secondary device. We just shipped offline mode a few weeks ago: it's not as seamless as the primary flow, but it works well and solves the problem. Turn on airplane mode, sync the wave and let me know what you think.
>Apple has something that Tesla does not: gigantic piles of capital. Apple has around $230 billion in cash, which is more than the annual gross revenue of Ford or GM last year. Apple is ready to scale from day 1. Whereas Tesla is following a careful growth strategy, using each model's sales to fund the R&D on the next.

I don't care if you have a trillion dollars, you can only tool up manufacturing capacity so quickly. "Apple is ready to scale from day 1" is laughable. Cars are not iPhones you can outsource to Foxconn for production.
We have a secret police now: what else do you call an organization that secretly collects information against the nation's own citizens to be secretly passed along for 'parallel construction'? That kept this policy itself a secret? Theoretically it's as a byproduct of foreign intelligence-gathering, not a primary function, but this frog feels the pot to be plenty hot already.
Just how many HN accounts do you have? And why?

Insolvency wasn't the question.
It is quite suspicious though. A Korean company makes a messaging app used by Japanese people.

Line may well be a spying tool. I'm pretty sure Korean would like to keep tabs and eavesdrop on Japanese.
Gophercon live blogging
Seems like this could be simplified to simply extend standard OTP (with the caveat of requiring a camera on the laptop, probably invalidating one of the use-cases of OTP: logging in to low-security accounts on a kiosk pc):

1: Set up OTP as usual (pc/web-app shows qr code,
scan code with phone. Server and phone now share
a private secret for generating OTP tokens)

2: For login: phone displays QR-code, pc/web-app asks
for image input (with 6-digit code fallback) --
user holds up phone to pc-camera.

I don't really see how Clef offers any benefit, except that you can't use standard OTP with Clef. Am I missing something?
or skip both and use http://ramdajs.com

(I'm not affiliated with the project, I just think it's really good.)
So, I will point out that in the case of frequent allocations and deallocations of small objects, most managed memory environments tend to have a bad time. This is forgivable but there will inevitably be GC pauses to clean up lots of internal fragmentation.

For game development, this is far more noticeable than in other applications, specially because there tend to be both lots of these allocations when doing vector arithmetic for graphics, physics and gameplay, and also because there is by definition a human being with 100% focus on what the program is doing and watching for any perceived choppiness.

For this reason, one of the first things to do when attempting game programming in these environments is to reach for a pooled math library.
Apple Watch, a literal gold mine for Apple
Plenty of spies on all sides have been killed and jailed over the years. If a country can prove a specific person committed a crime. But that's a lot harder to do with tech crimes.
It's not in Lenovo's interest to voluntarily recall anything, unless they wanted to save face, but I would imagine consumer expectations on Lenovo are different than, say, a car manufacturer.

But unlike a car manufacturer, I doubt any governments will compel them either... since this kind of thing is exactly what a government would want.
Facebook's Stetho for Android Debugging
You might have withheld your hostility if you had first double-checked the definition of "ambivalent".

It does not mean or imply "opposed" or "disdainful" or "disinterested", at all.
Have you seen Nim? (http://nim-lang.org)
Yes, I have a similar problem.

I often carry my Macbook on top of my head when I go around the house.

It's just really awkward to reach the touchpad that way, so I hope the next Macbook will add one on the bottom as well.
Show HN: Babydook – digital journal for keeping photos and info about your baby
"Better to read a poor book with alert resistance, than devour a good one in mindless adoration."

I have felt similarly. The mediocre, when analyzed deeply, can become more interesting than the interesting.