skysight-inc/HackerNews huggingface dataset:
Hear, hear!

I started on AmigaBASIC and later ARexx. QBasic on later 386/486 machines. Pascal, OOTuring (a Pascal-like educational language), and C in high school. Perl near the end of high school. Python in my early twenties. Common Lisp in my late twenties. Have tried a bit of Haskell and OCaml here and there. Though I'd say I've settled on Python, C, and Common Lisp... trying to make brain space for OCaml only because I find Mirage to be such a great idea.

I've given talks on BloomL implementations, constraint propagation solvers in game level design, and have written various bits of libraries and such over the years. Nothing terribly "ninja" like here. Depending on the audience I may sound like a wizard or a clueless hack. The reality is I'm probably somewhere in the middle in skill if programming were a quantifiable skill. The only reason I can cite these things is because I tried and learned some things not because I was born with some legendary ability to whisper to a computer what I want it to do. At the end of the day they are just machines and there's nothing super-human or special about learning how they work. It just takes time and effort like anything worth doing.

The theory, as I understand it, is that without sufficient evidence we must assume that programming ability follows the same bell-curve distribution as every other quantifiable skill we can measure.
#1 StackOverflow Python Answerer of All-Time, AMA With Codementor-5/6
My understanding (again, uncited, like almost everything in these threads) is that one might /perceive/ a different result than this because the /software/ calibrates what 0 and 100% mean based on observation.

If you never observe a zero (or, presumably, a 100%), it might recalibrate incorrectly. Again, this is based on old and uncited knowledge. There's surely someone here involved in writing power management software that could chime in.
you can reach out to me at nicolas@novicap.com, will be happy to provide feedback if we adopt it.
One doesn't have to worry about this.
Should we not discuss our concerns for how people around the world connect to the same network? There are a number of people working on this problem, people who can handle the funding and work involved, but that still leaves room for us to comment on policy that will shape the way large populations interact with the rest of the world.
i used to have a macbook that i used as a desktop in clamshell mode. i left it plugged in all the time. i never took it anywhere.

when i called apple to replace the battery on warranty because it had started to bulge/swell dangerously and not hold charge, they had me open up the system information panel to see how many cycles it had been through, and it was hilariously low, like, 4. they refused to warranty it.

so at the very least, if you care at all about your warranty coverage, you should probably cycle it normally.
Personal experience with IPAD 1, 4 years using it every day with full discharges every day more than 1,000 charge cycles.
When new full battery lasted 9 hours after 4 years lasts 8 hours.
It's correct that you'll retain battery capacity better if you store it at 40-80%. But that recommendation is based on long-term storage.

It's not right to assume that also applies to in-use products, especially the way people use them. In fact you'd likely reduce battery life because you're putting the battery through a greater depth of discharge (DoD). Assume you let it run from 80% to 60%, you've just gone through a cycle of 20% discharge when you could have kept the DoD at 1%. Also, most modern laptops will run on power once charged, so it's not like an infinite number of 1% cycles.

http://batteryuniversity.com/learn/article/how_to_prolong_li...
Yep - I have this on my Lenovo.
This link from google says otherwise.

https://answers.yahoo.com/question/index?qid=20130825212946A...

Lithium ion batteries do seem to have memory.
I hate to sound like an ass, but I think I need to say something anyway... Is this the kind of question we want at HN? It's been done to death elsewhere, and is easily answered with a quick search.

I know there can be a fine line between a good, thought-provoking question and a useless one, and, to me at least, this seems too far on the "useless question" side of things. It's about basic hardware maintenance, and I'm honestly surprised it's gotten 37 points in 22 minutes (so far).
> Even if that doesn't represent reality, it reinforces that perception

Is that a good thing?
Programming benefits from dogged perseverance. If you have lots this trait, it can overcome other shortcomings.

It also benefits from being thorough and detailed: analyzing all the cases that may occur, forming all the conceivable hypotheses and so on.

It doesn't matter if it takes you five hours of hacking on something to finally see a solution that some brilliant programmer came to in 45 minutes of hacking.

Maybe it was luck; his or her brain generated some spontaneous idea which revealed some aspect on the problem resulting in a breakthrough, while you were methodically working through various hypotheses (including the boring ones).

Brilliance will lose in the long run to dogged perseverance and thoroughness.

Brilliance has an advantage in dealing with badly structured programs; the brilliant mind has a great memory and can simultaneously hold a lot of the program in consideration: for example, to visualize a complicated run-time interaction between numerous scattered pieces of code. The more brilliant mind can handle a larger instance of this sort of thing than a less brilliant mind. But there is a limitation on it. It's kind of like being muscular. It's impressive that you can bench 300 pounds, but it's useless in the big picture where we might need to lift 30,000 pounds. And where we therefore use a machine to do it, and that machine can be easily operated by a "90 pound weakling".

We can erase the advantage of the brilliant mind by not structuring the code such that only the most brilliant minds can visualize how some scenario arises in order to identify a problem. And we can also use tools: tool to help us visualize, analyze, validate, and so on.

Where we ultimately need brilliance is in forming ideas. Someone who comes up with great product ideas (and ones that sell, too) cannot be replaced by a machine, or by someone who just has perseverance and thoroughness in the face of details.
Consider the cost of a replacement battery and if it's worth the subconcious mental strain this consideration places on you.

In short, leave it in because it's not worth worrying about.
Maybe I have bad luck, but I came to accept that every laptop battery eventually becomes a UPS for getting from the desk to bed :-)
worst (from POV of financial/social outcome) place to grow - i guess it would be a black family. Best - probably a wealthy white family. Specific county doesn't really matter.
Sure, but the battery gets heated when left plugged in, which is not good for its health.
I thought the average linux user was a professional user. So, I guess I'd like to know if you think that most pros actually take the time to start digging into unknown code versus just looking things up?

(edit: clarification)
Every human ability has a natural distribution of what for a better word we can call "talent". This is as true of running or tennis as it is of coding. To claim otherwise is to tell people who aren't naturally very good at tennis that they are moral failures for not working hard enough at it, which is insulting and demeaning as well as false.

Furthermore, there is evidence that the ability to code is non-linearly dependent on some fairly uniformly distributed basic abilities. The bimodal mark distribution of first year software courses is evidence of this. It is trivial to reproduce it using the assumption that the underlying skill-set is uniformly distributed, but there is a threshold of ability below which coding becomes very hard: http://www.tjradcliffe.com/?p=1471

There is a very simple way to disprove this hypothesis: find a way to teach coding that will get rid of the bimodal distribution of marks, which has been vigorously attacked by educators for decades without progress. The things we have learned in that time are:

1) It doesn't matter how passionate the teacher is about believing that "everyone can learn to code"

2) It doesn't matter what language is used

3) It is very hard to predict who will be good and who will be bad.

Because of this, there are three reasons we know cannot be the source of the problem: the attitude of the teachers, the langauge used, or the number of years experience prior to university. If any of those were the cause the extensive research on this issue would have revealed them in the 80's.

I'm prefectly willing to believe that most people can be taught to code, and if I can be shown evidence of a teaching method that gets rid of the bimodal distribution I'll happily abandon the barrier-to-entry model I've proposed in the link above, but until then, it can't be called anything less than a plausible hypothesis. Certainly not a "myth".
I'm an electrical engineering student who needed an idea for a school project dealing with reliability.

I think I just found my project. Stay tuned!
Think about using a vertical left and a grid right like they do. It fits more and given the right control, works pretty well to navigate, even if it isn't the prettiest.

While grids are nice they have a problem. They're great at navigating two dimensions but they aren't easy to get out of. Where do you put the settings and search buttons? Do I have to scroll through all the categories (like netflix does) to get to search?

Similarly how do you do subcategories?

This system actually solves both of those problems. What it lacks is information density. Something like this linking _into_ a grid could work.

Note I say this while our company that does this developed an app with this exact navigation scheme for Comcast cable boxes.

http://adifferentengine.com/cases/sochi/

But we had a very strict set of content so we knew it would work for our use case.
Why would the battery be heated if it's not charging? You can set a gap - e.g. 80-100% where the battery won't start charging until it drops below 80%. Look at the documentation for your relevant power-management module.
Survey: Improving Your Work Experience
I am not trying to calculate the theoretical minimum costs but the actual costs. Nobody cares if a transaction could theoretically cost $0.30 if right now someone pays those $10.00 for each and every of the 100,000 transaction on every single day. If the Bitcoin network at some point in the future processes 3 million transactions per day fine, but it does not right now and it honestly does not like this is going to happen anytime soon. The transaction volume is at best stable since more than one year and to me it actually looks more like it is slightly declining.

And even if you get your electricity for free there is still the other half of the costs, the largest part being hardware. It doesn't really matter for me if it is $10 or $5 per transaction, it is not cheap. And even those theoretical $0.30 are still a lot. Real micro payments could be a killer application. Pay $0.05 or $0.10 to read a news article. If one hour of your time is worth $50 that is the equivalent 3.6 respectively 7.2 seconds of your time. Thinking a couple of seconds whether you should buy the article or not makes almost no sense at that price level. Just charge those few cents. But $0.30 per transaction is like a factor 100 to expensive for this.

And with expensive by nature I meant that the security of the system depends on that. The Bitcoin network will never be able to spend less money on running the system because that is what it is protected by, the money spend on hardware and electricity. You can't even keep using your hardware for a long time because technological advances will make an attack cheaper and cheaper and therefore lower the security level your old hardware can provide. The Bitcoin network is doomed to throw money out of the window, hundreds of millions every year for processing not even enough transaction to make a Raspberry Pi sweat. To me this seems a pretty hefty tax for being distributed and trustless, especially because no one cares about those features.
> Why should this be changed? Is it broken? Is it something that 1 second on google can’t answer? If somebody is advanced enough to be using classes (I think about the only time you would use a double colon) then they should know what it means.

If you know PHP classes, then you know Hebrew.
OK, you guys got me. I'm not a lawyer. So the legal definition of theft does depend to some degree on intent. I've learned something today. In that case, allow me to reframe my argument. I'll be generous and replace the term "intent to permanently deprive" with "intent to harm". Still, proving intent to harm is (or should be) much more difficult in cases when you have only made a virtual copy of something, and I think the bar is being set too low in some of these cases. So I think there is some validity to the argument that these financial firms are shooting themselves in the foot by being too zealous in persecuting behavior that can (or should) fall into a grey area.
http://my.clevelandclinic.org/services/heart/disorders/coron...

> The American Heart Association (AHA) estimates that about every 34 seconds, an American will have a heart attack. In addition, the lifetime risk of having cardiovascular disease after age 40 is 2 in 3 men and more than 1 in 2 women."

These numbers are so high :(
Don't do what you hate. Flag and move on.
School of Haskell 2.0
NYC Makes a $70M Commitment Toward Universal Broadband
This is all anecdotal but learning to program is (IMO) somewhat like math in that it is virtually impossible to learn it while not feeling confused and lost because there's a lot you have to internalize (and often this includes multiple concepts sort of all at once) before everything clicks and makes sense.

Talent is a thing, surely, but IMO the primary "talent" when it comes to learning to code is having the mindset where being lost isn't a problem for you. Some people hate this feeling of not intuitively knowing what is going on (possibly for an extended period of time!) while others embrace it, the latter tend to be the ones who end up excelling at programming (and/or math).

"Most of the code I wrote even before finding a need is solid, efficient, and secure. But that's because I'm so bad at it that I have to be careful. If I don't write clean, efficient code, I won't be able to understand it well enough to fix it when something goes wrong."

If your code is good it is because you are a good programmer. Full stop. Not being able to understand and fix your own code if you aren't writing it cleanly (and as simply as possible while doing the job) is universal.

"Everyone knows that debugging is twice as hard as writing a program in the first place. So if you're as clever as you can be when you write it, how will you ever debug it?" - Brian Kernighan
Intake helps, correct, but on the latter point, most newer cars are coming with removable underbody paneling for just that reason. Aero is just improving across the board.

The Nissan Leaf, for example, has a drag coefficient of around .28. While that's good, it's in the same ballpark as the current ICE Honda Fit.
Keygenning Using the Z3 SMT Solver [pdf]
Or almost all forms of recorded audio for that matter. It is basically miraculous that a single speaker can create the impression of an orchestra; it obviously relies on an implicit instantiation of this same principle.
Facebook and Nokia Quietly Ink a Map Deal
I love it when a conversation moves beyond the typical argument and counter-argument. Thank you!
That's exactly what someone, not living in the Bay Area, would say.
I don't disagree with the increase in the total number of diagnosed cases, there is nothing to disagree with. I disagree with calling a reduction in the number of deaths since the 90's by half (prostate) and by a third (breast) "a tiny reduction, if any".
They're asking for input from the community regarding license, markdown version, and other issues.
I'm tired of titles worded this strongly while having no substance. This title is what you expect for some exhaustive rebuttal but there is nothing.

It's just excessive. Just like that one "Against Kahneman" article a few months back. Give me a break.
This quality can be teased out of more people than we think.

A whole lot of "that quality" comes down to a couple things. One is basic inhibition. Learning to shed this dramatically improves one's potential for performance activities of any kind, and speaking in public is a performance activity for sure.

The other is coming to understand people better. Empathy is a part of this, but so is just understanding how different people are and how they respond to things varies just as much. There are commonalities, of course, but there comes a basic security from being able to read the crowd and that feedback feeds into the lack of inhibition, allowing a person to shine much brighter than they would otherwise.

This from a geek who had a fair amount of music, theatre early on. I still remember the "unlock" where I came to understand the importance of conveying intent, being humble, and not having that basic fear that locks one up so much. Failure is OK. So are basic gaffes and mistakes. People are way more forgiving than we are to ourselves.

I think Elon could improve considerably. He doesn't need to, and he's got his time priorities right where he wants them. Maybe sometime in the future those could change. Should that happen, some time spent with the right kind of people could very well open him up to a degree we may find surprising. Elon has deep passion and resolve and drive. Those things, brought out in a bit less stiff fashion may have an impact he would value someday.

In a very real sense, those that pick it up quickly, care more too. I sometimes mentor engineering types who need these skills for things like pre-sales, or to begin consulting and selling in various ways. Reducing inhibition is important. For many, it's simply not knowing what will happen, so the default is to do the minimum to limit risks and unknowns. Caring is also important. For many, the speech or show more generally, isn't core. Does not matter as much as the tech, or whatever it is being spoken.

Cracking that tends to be linked to understanding the selling of ideas, movements of money, and a lot of other things get driven by those who can handle people, and there is a science, and I would argue, technical aspect to that just as there is any thing with sufficient dynamics as to not be obvious at first glance.
I know that this was an issue on my ThinkPad W700 with Linux installed. In Windows, the Lenovo drivers would automatically manage the charging level to preserve battery life, but in Linux it would overheat when plugged in for extended periods of time, and I suspect that it was "over-charging". Within a year, the battery had about 50% capacity, and a replacement battery degraded as quickly.

My current ThinkPad w540 does not seem to do this in Linux, so I suspect that either Linux or Lenovo has solved the problem, but I haven't really investigated what happens. I leave my ThinkPad plugged into a dock most of the day at the office like I did with the W700, but it's battery still has almost full capacity a year later and can still keep it running for 5+ hours on a full charge. (Linux could never get the 7+ hours that it can get under Windows and I haven't run Windows for more than 1 hour in almost a year.)
Sixth DNA base discovered?
Are hobbies and child-rearing really that much different? Hobbies can be just as time consuming and expensive. Some hobbies can interfere with work in a long term way just like maternity leave. Really the similarity only falls part that maternity is sometimes not a choice... and I'd rather not open the can of worms that is abortion; let's just assume that just like a hobby, you have chosen this path.
Is there any evidence that private schools make much of a difference in the overall education landscape or is it just yet another option for rich people?

If you really want to make a difference you need to address the broader audience and do something like charter schools.
> A second, largely unrelated problem is the under-funding (in CA for sure, perhaps elsewhere) of public schools

I hear this often. I'm curious, do you have a dollar figure in mind that would be appropriate?
My personal experience with a Lenovo W520 having the battery needlessly inserted for two years (40 hours per week) while connected to the charger:

The battery lost 50% of its capacity. The laptop was almost exclusively used while connected to the charger.

So if there hasn't been a big change in how laptop batteries work in the last few years I'd recommend removing the battery whenever the charger is connected if possible.
No disrespect to Dave, but whenever someone dies suddenly and nobody says anything, my first thought is always drugs.
And even when it appears to work, it may result in the processor being throttled so as not to overtax the power adapter without the battery available to supplement it.
Usually the reason behind discharging fully once per month is because when this happens, the laptop records how much capacity is required to recharge the battery. This will keep your battery % left accurate.

The actual preference for getting the MOST DISCHARGES out of a lithium ion battery is discharging it to 50%. This, however, doesn't not to equate to longest battery life (in terms of age) for the use within a laptop/phone.

Edit: There is something state of charge estimation models which may rely on this variable to decide how full they'll charge the battery. If you don't fully discharge and fully recharge the battery to update this capacity value, the SOC estimation model might overcharge the battery, thus decreasing the lifespan.
I actually just finished the book last week, after sitting on it for a year. I honestly have no idea how I feel about it, but something about his writing style kind of makes it stick with me, even though I think I disliked most of it.

I'll probably re-read the whole thing later.
In the real world, the slow part of "parsing" a CSV file is IO: reading the file content from disk to memory, and from memory to CPU cache.

You would avoid reading the file content more than once if you had to parse it.

> The first line counts the number of lines in a buffer (assuming that file is read into memory and copied to gpu buffer d_readbuff).

but this is what is done here, first search to find all \n, then multi-core GPU stuff for each line content.
zeroes and ones.
Strategic Plan Survey
Digital music could absolutely exist without the Fourier Transform.

The author should familiarize himself with the history of digital audio, and its milestones such as the development of the compact disc format: long before MP3, Ogg and the popularization of the Internet, and its use for media streaming.

At its bare bones, digital audio requires time domain sampling and reconstruction, sandwiched between some filters that can be analog. It requires understanding of the Nyquist limit, which can be purely in time domain terms (sampling frequently enough to avoid an temporal aliasing ambiguity in the reconstruction).

Digital synthesis of music can also be as simple as playing recorded samples in loops, and scaling them in the time domain for various pitches (or changing the sample rate, or both), which doesn't require Fourier.