jkeisling/hacker-news-corpus-2007-2022 huggingface dataset:
Most smartphone batteries have only a single cell in them. Laptop batteries vary more, but you could expect around 4 to 8 cells in many of them.

The individual battery cell has a pretty hard limit on the number of times it can be cycled (i.e. discharged and recharged). Your typical AAA NiMH rechargeable has a lifetime rating of about 100 cycles I believe.

If a battery pack has multiple cells, they can be connected to each other in parallel or in series (and any combination of the two choices). In series gives you more voltage (i.e. kick), in parallel gives you more amperage (i.e. duration).

If the electronics hooked up to it are "smart" then any parallel sets of cells in the battery can be charged separately. This means that the laptop might drain parallel set A down to 30%, set B down to 50% and set C down to 90% leaving you at an overall percentage of roughly 56%. If you then hook the charger up, the laptop will charge the lowest set A first, then B, then finally C. If you stop charging before it gets to C then you've saved an entire charge cycle on that set which means it lives a little longer.

So.. now on to the Tesla. It has 8640 individual cells wired into 16 parallel sets of 540 in-series cells. The car will selectively drain and charge each individual set to maximize the life of the battery.

By default the car also does not charge the battery to 100%. The default is 80% which gives you a typical range of about 230 miles. That leaves more choice to the charger about which parallel sets to charge without reducing the life of sets that are nearly full by topping them off.

If you are going on a long trip, you can put the car in "range charge" mode which will force it to top off to about 260 miles of rated range.

The predictions based on modeling so far is that the battery should retain over 80% of its total capacity even after 8 years of typical use.
Thanks very much. I had always assumed the Shuttle's max acceleration was a lot higher than that, given how fast the thing seems to get moving in such a short amount of time.
"No one is going to buy a TV for Amazon Instant Video support. "

Actually, a client bought a "smart" TV to watch BlazeTV. When he realized it wasn't smart enough to offer the channel he wanted(licensing, crap proprietary software) he called me to "make it work". I bought a Roku, delivered & set it up. He watched < 4 hours of the target channel, called me up and told me to pack the whole thing up. Gone are the Roku, the TV and all subscriptions cancelled. Here's a target consumer who wants to pay but is not willing to pay, pay more & then jump through a myriad of hoops.

edit, forgot your 2nd paragraph: he doesn't pirate the content, it's not that important to him. He does listen to the live audio offered free of charge on his phone now that I set that up for him.
I was thoroughly confused when initial reading the title. I thought Lebron James had started experimenting with programming along with his teammate Chris Bosh [1].

[1] - http://code.org/promote
Read Voyage and Titan from Stephen Baxter. He was an astronaut candidate and write two great books about NASA.
I want to continue from my earlier (hasty) response. I was on mobile and don't enjoy typing there.

What I want to emphasize is that you can build custom tags without knowing much how Riot works. Just put together HTML and JavaScript. No need to know about `getInitialState`, `render`, `this.state` etc.. I wanted to create a tag definition syntax that is easy to learn and remember.

There are lifecycle events if you want to do something more specific.

I'm also not a fan of `shouldComponentUpdate`. Ideally you should not think about such things and let the underlying library take care of the performance issues.
Where are they talking about backdoors? I only see some talk about regulations to obtain keys from service providers. And if they have your keys it is your own fault anyway.

EDIT: The title has just been updated.
Historical correction: The article mentions "AI Winter" as occurring in the 1970s. AI Winter actually refers to the period from about 1990-1997 when the Expert Systems approach was deemed to be a failure, funding for AI dropped considerably, and it was a mistake to put AI on your resume.

This opened a window that allowed the statistical-based AI techniques that currently dominate the field to mature.
or it's betting that the cost of current liabilities and ongoing expenses will burn that hundreds of millions of dollars more than what Mayer will recover.

It doens't necessarily mean that Mayer will generate no value, since non-BABA Yahoo had negative value even before Mayer started.
The article describes pretty much what I’m facing at my job. We have a monolithic Ruby on Rails application with lines of code in the millions.

Still we general mantra is that comments are not allowed and I can only agree with the author that this makes non standard parts of the code extremely hard to comprehend. I would definitely love to work once on an application that size with a few comments here and there.

In my day to day work I depend a lot on our test suite. If I can’t even find the tests that cover this part of the code I just break the code on my branch and let the CI tell me which tests fail. There are probably better ways to do this with test coverage tools but this method seems fairly straight forward to me.

Documentation is something we started to do recently. I feel as long as the documentation is not directly connected with the code it is hard to keep it in sync. We even have PR templates that mention to update the documentation but the shape of the documentation is just too different from the code to have a straight forward Intuition at which point it needs to be updated. What happens for us is mostly that the feature owner at some point realizes that the documentation pages are not accurate at all anymore and rewrites them.

Sadly our commit messages are 50% of the time useless so that they serve more to know who to talk to than to understand why the change was done. PRs and commit messages are great documentation I wish we would use them more. In my company the idea is more that the change should be so small that no explanation is needed but I feel this idea misses the point that code can’t explain *why* something was done.

This is definitely an area for further improvements. Are there best practices someone could point me to?
Scala support is still being finished, however the project team decide to go ahead releasing 4.0.0 at the beginning of the year avoiding the block until the Scala support work was complete. You can follow its development on GitHub or the official Discord server.
The thing is, you're trying to create a metric that measures an essentially unmeasureable quantity and to predict future outcomes on this.

Moreover you're trying to do this for generally very smart people, so obviously they adapt their behaviour to those metrics (they game the system is a less favourable way of saying this). So the only thing you have achieved that the academics change their work to maximize those metrics. We have seen this with grants as well, to be successful you essentially have to write lots of grant (a period without grants can be career ending), so academics spend up to 50% of their time on grant writing and reviewing. At this point I'm not convinced a lottery would not be a better way of distributing money (and I say that as someone who has been fairly successful at getting grants)
Any new technics revealed for speedrun community? AFAIK, WR for GTA VC is 8 minutes and this run cannot be possible w/o reverse engineering.
Yep, see sociologists and archaeologists excitement over finding things like clay tablets with shopping lists or recipes on.
I’m not here to give a history lesson, as there are many better sources. What I will do is call out fallacies when I see them.
?

The entire media industry relies on anonymous sourcing. There are literally laws about it. The news may not exist without it.

So given that context, that they will respect the privacy of probably most of their sources, and won't reveal names while they use the cover of 'privilege' in this regard, I think it's fair to say that individuals who's names are not part of the public discourse should have the option to remain anonymous.
I used to think about a similar ideas. Because it should be possible to ssh to programs other than a "full-featured" shell (despite the "sh" in ssh). One idea was something like OpenBSD's auth-pf. The program might have only one purpose and one capabaility, e.g., to ephemerally open a port in the firewall. Then the user would access whatever remote program she wanted to access through that port, maybe opened briefly just for her.
In an absolutely brilliant video[0] on Microsoft's Channel 9, called "Panel: Systems Programming in 2014 and Beyond" (with Charles Torre, Niko Matsakis, Andrei Alexandrescu, Rob Pike, and Bjarne Stroustrup), Rob Pike makes a comment (I'm paraphrasing) that in making Go, he realized that testing in general and the idea of TDD was due to dynamic languages not having any compile-time checking. The panel seemed to agree.

If you have the time, you really should watch. It's fun to see all these guys on the same panel.

[0] http://channel9.msdn.com/Events/Lang-NEXT/Lang-NEXT-2014/Pan...
Someone is going to write a Scrappy Project for this site soon..
In baseball, cheating is a worthwhile art and a science.

http://a.espncdn.com/mlb/columns/neyer_rob/1380568.html
I don't understand how the double-checked locking recommendation is safe. Someone asked about it in the comments, but the response didn't make sense to me. It seems that the call to IsLinked would introduce a data-race with adjacent deletions, and cause undefined behaviour, unless there is already locking at an outer scope. If there is such locking, the lock inside the destructor is redundant. Have I misunderstood?

It has generally been my experience that if control enters a destructor while other threads are concurrently accessing the object, you are in a world of pain. For one thing, this makes it near impossible to safely subclass the object. (Because the subclass destructor will run first, rendering its invariants invalid before the base class has done whatever it needs to do to unlink the object from the outside world.) Anecdotally, I've also found code like this to be deadlock-prone, but I couldn't say for sure if the two are causally linked.
> I think stegosaurus's idea is that a sufficiently motivated government or billionaire could make that land attractive to urbanites.

I don't think they can. China tried: http://www.marketplace.org/topics/world/marketplace-25/china...
It's actually interesting how similar a pure Windows API app for Windows 8 looks to one created for Windows 1.0. A fun example of this is Charles Petzold's birthday cake app:

http://charlespetzold.com/etc/Windows1/CAKE.C

With relatively minor modifications, it'll run on Windows 7/8 and look exactly as it did on Windows 1.0 30 years ago.

The app was actually created for a fun presentation he gave in 2005:

http://www.charlespetzold.com/etc/windows1/
It's both. Using the insulting term RTFM makes it worse. But just pointing to the manual is also not the right way to do it, at least you have to specify which manual and where. That's the rules we set and they are really the right rules, below this minimal amount of effort you are not giving support. You are just wasting time and offending people.

> Just a final note: many open source developers consider that a feature, so I doubt you'd sway most of them with this argument

See the reaction in this comment thread. Developers rarely do only one project. One might not care whether or not someone uses the free Window Manager, but if the negative impression carries on to other and commercial projects there was harm.
Indeed, and relocating away from that regime is a good first step in cutting ties.
I understand that you can be fired for failing to fulfill your normal duties, if you spend all day doing union activities. The protection in meant for someone who correctly fulfills their work and, in addition, does union activities.
This is like dealing with that clueless newbie who desperately tries to help you, in the process creates a huge mess. You'd tell them to stop, and ask for permission before doing anything.

I propose a new term: paternalistic software. It's software that overdoes being helpful, and becomes annoying or dangerous. It's the software that does things you don't want automatically, because it thinks it knows better than you. Automatic renumbering and autocorrect both fall under this.
It's kind of bizarre to me just how cowed the middle class is in the US.
I meant, there is no way for subscribers to a calendar to do that automatically. There are possible heuristics that could filter out clearly personal entries (keywords, etc.), but that feature would need to be implemented by (cough) Google.

There are obvious ways for calendar owners to separate the information (which was not done in the instances that Google refer to).
Expropriate Google.
If taken with care and not abused I also believe mushrooms has good potential. It's effect is quite gentle and generally positive. Shame that it is put in the same bucket with hard drugs in almost all countries.
"puush.daemon.exe" seems to be the executable to look out for [1] if you've been running Puush. Possibly in either %appdata%\puush or C:\Program Files (x86)\puush

[1] https://twitter.com/puushme/status/582313699320299520
I haven't commented on HN for a long time, but this hit far too close to home not to respond to.

I have had exactly the same kind of existential anxiety from a very young age (I remember discussing this extensively with my parents at ~7 year old). It used to be something that only happened late at night when I was alone - until the first time it hit me in a completely normal situation. I was literally mid conversation and suddenly all I could think about was my inevitable mortality. I can not describe the feeling of shock and helplessness. The floor disappeared beneath me.

I walk out of the house every morning and look at the people in the street, and I just don't understand how they can function normally in the face of certain death. Terminally ill people are often anxious because they're going to die. But everyone is going to die. We are all terminally ill with this fatal disease called "life".

It's nothing to do with wanting to accomplish more before I die. It's the very idea of not existing that I can't comprehend. I'm sure anyone would agree that the world ending would be a fairly grim prospect. When you die, the world ends. Game over, even if everyone else continues.

Alcohol is a wonderful escape from an over-active mind, but guzzling a substance that's likely to screw with your health long term... isn't exactly ideal for an existentialist and hypochondriac. SSRIs seem to help regulate things until - months in - you realise they are actually pretty nasty drugs with too many observable side effects to count on both hands.

Maybe shrooms are the answer, indeed, though having never dared touch them from - strangely enough, fear of their inducing a panic attack - I've yet to be able to comment on that.
Good point. But in the case of the hunter-gatherers a person is not working for someone else who will then provide him sustenance. That is not the case with an office worker.

I agree with you in that the topic is more complex than I initially made it seem. In the case of the office worker, hopefully the worker produces something of which then the capital owner takes some and leaves the rest to the office worker. That seems better than slavery, but only marginally. It actually sounds more like indetured sevitude in a feudal system (i.e. plant my land, we split the crop). We could debate whether that's slavery or not.
We currently have a feedback form to submit feedback and haven't gotten any yet through the form. We also have a dedicated subreddit at reddit.com/r/SubtleTV. Glad it's working now. iOS can be a bit tricky due to restrictions but we're working on improving compatibility as much as possible. Intended behavior for iOS is to open the native player and then let you skip to the next video from the native player. Once we have our iOS app it will be a lot smoother.

Yes your assumptions are correct. We're streaming from Youtube, Dailymotion, and Vimeo using our custom player and our API.

The suggestion about custom channels is a good one, currently you can watch specific topics by doing a search.
They didn't have much of a choice, either that or they would have been burned for being a heretic.

More thought:

Religion preaches that we should simply accept stuff as fact without proof. The Bible condemns knowledge, it says that we are all sinners by default because our ancestors have accessed the tree of knowledge.

No sane person accepts baseless assumptions without proof. If I would tell you that your great great great grand parent was raised by mice would you believe me?

Sorry but currently religion is the true venom.
because average CEO made 343 times more money than the average American. http://www.economyincrisis.org/content/ceo-pay-now-343-times...
The biggest accelerator, at least for me, was having a child. As anyone who has children know, the first few years are a long sequence of tasks interspersed with small breaks. If you want to get anything done, you have to be able to do it in small increments. On the hobby side for instance, I worked at keeping a running note log with my projects so I could walk in and actually make progress on a project when I only had 10 mins free. I carried a notebook with 'thought areas' that needed some thought applied, and if my daughter was sleeping I might crack it open and look at one of the problems and work on it.

The ability to do real, forward progressing complex work in small chunks has made a huge difference in both my personal life and my professional one. I suspect it will also be helpful as I get older, because eventually great memory skills fade!
If you have any experience with the Signal GitHub projects, you'd know that you're lucky to even get a reply.

They seem to strictly follow their own agenda. If they don't think something is important, it won't be taken care of.
The future is now, old man
It basically creates a folder where you can define what type of files you want to have moved and automatically moves every file in the original folder to the new one.
Interesting point. Better to have a 'real' facebook than some imposter pretending to be you.

In some ways for a business, not having a facebook is like not having a URL.
Another half-hearted product attempt with no boundaries pushed.

With a Core i9 they have the hardware to fry the chicken, not only to keep it warm.

No wonder Apple keeps shoveling money into their bank vault.
The nuc alone pulls 180w and any graphics card that would hit 240fps at 4k would pull 150-280w. I would imagine it just ducts the hot exhaust air through a basket.
Title would be clearer with "in TypeScript 4.1"
> The concept of "protected classes" illustrate the difference quite well between the European human right as an fundamental right which a person is inherently entitled to, and laws which prevents government from doing specific actions against specific group of people.

It’s meant to illustrate a difference between who you are and what ideas you have; jury is still out whether this works, but it seems reasonable to me. Ideas are protected from government by the first amendment separately. You are forbidden by the law, with limited exception, to treat someone differently because of their age, race or gender, but not the fact that they have insulted you. It seems absurd to extend the full force of legal protections to the latter to me.

At the end of the day, you need to enforce a positive human right, the law needs to change someone’s behavior. I don’t think that most Europeans or Americans agree that they have a right to offend their neighbor without their neighbor treating them differently, I think the rub is mostly in what specific ways they are to be prevented in treating them differently.

> In the US a demographic group is either on or not on the list of protected classes. In the EU the only group that exist is human and we are all on it.

It is not a protection of certain demographics in the US, it is a protection of certain attributes that you might use to define a demographic that are generally considered accidents of birth, plus religion.

> On a personal note, I find the very concept of people being born into a religion to be at odds with modern thinking.

It’s basically how it has always worked, people’s parents and culture is the main reason they stay in a religion, and it’s the reason it has been grandfathered in as a protected class in the US [conjecture on my part, I’m not a historian]. While this is changing, it’s changing very slowly and mostly in the direction of people becoming irreligious, definitely not converting to religions different from their birth in greater numbers, at least in the US. I could not find global numbers for this.
https://www.pewforum.org/2016/10/26/links-between-childhood-...

> It would be like people being born into a political side

I don’t believe it personally but I remember some studies that pointed to this from a genetic sense.
https://www.theatlantic.com/politics/archive/2013/10/can-you...

It certainly seems likely to me that family upbringing for your first 18 years passes on political beliefs and culture for the many Americans.. but like you said we generally expect people to be able to change this, unlike the ability to change their race or gender. Somewhat less drastically, but equally seen as important to a person’s core at the time these laws were written, American laws don’t expect people to change their religion.
Thanks - I've just signed up for an account and it looks really good! I'll say hello on Slack in a moment.

We've been working on a JupyterLab based product for the insurance industry - not machine learning but shares a lot of the features - e.g. possibly long running models etc. Trying to land our first (fairly large) customer at the moment!

Can you share any more on what your plans are especially from a business perspective?
I don't know why anyone who games would like to eat fried chicken while gaming. You have to eat it with your hands, and it's so greasy that you need to wash your hands afterward or risk covering your mouse and keyboard in grease.
Guys, seriously get rid of the grey on grey on grey action. Your site is nearly unreadable. I recommend you talk to @limedaring, she's a remarkable designer, was my cofounder, and has done great work for several YC companies.
Hey -- my team here at Trip built this!

I'm happy to answer questions. Or field resumes. Celebratory happy hour is at 4pm, so try to catch me before that.
In my opinion, the problem with reminder services is that I have to remember to use them.

They can ping me all day via email, twitter, facebook, SMS, whatever, but it takes only 1 or 2 pings before my subconscious trains itself to ignore the reminders.

Also, a reminder is hit and miss. If I don't have time to take action on the reminder, it fails.
Funnily enough I posted just this (albeit in a more biting tone) last week, in an instance involving Justin Bieber (http://news.ycombinator.com/item?id=1982494), and was getting up/downvoted for a while just like you are until the upvotes won out in the end ;)
There already is. Its built into emails already.

If your username for gmail is user@gmail.com ...

Now if you want to use ebay with that address, use user+ebay@mail.com Now all mails will come in, pre-tagged for bins. They've done your work, for you.

Edit: its also good for finding out who's sharing addresses without your consent.