skysight-inc/HackerNews huggingface dataset:
Some time ago, I stumbled upon a graph (sorry unable to retrieve its URL) showing correlation between the discharge depth of a battery and its lifetime in cycles.

Obviously, the less you discharge it, the longer it'll last.
OTOH, the less you discharge it, the more you'll cycle it.

From data scraped from the graph, despite all of this is not linear, I found the best compromise was to not go lower than 50 % discharge.

I've been applying this discipline to my new notebook battery for 6 months and its full capacity is now at 95 % after almost daily use.
And 3% on the lost 5% were after I ONLY ONCE let it go to full discharge.
> hire local underemployed (and Soviet era educated) talent

You are aware that the Soviet era is long ago and the youngest people educated under a Soviet system are mid-30 by now? There is plenty of universities in Poland teaching among other things also Computer Science.
Using Cloud Functions would be interesting. But how would you handle persistence?
> The british flag, spanish flag, french flag, russian flag and even the american flag are greater symbols of oppression and imperialism in east asia.

I'm sorry but this is simply incorrect, I mean it's not even close. For example you'll see people wearing all of those flags (except the Russian) on their clothing, and you might even see someone wear a Japanese flag (rarely) but never ever the Rising Sun Flag which, btw, isn't a national flag at all, but a military flag. It was, for example, banned at the Beijing Olympics. Please don't try this but if you went outside in many East Asian countries with a big Rising Sun Flag you might not even make it down the street.

Second, the Japanese Empire was not at all like the British, French or Spanish in East Asia. However we can say that European imperialism and European racism strongly pushed Meiji-era Japan to seek an empire. At times the Japanese Empire was more brutal than others, at times it did serious economic development, and during World War II it was horrific to say the least. The European Empires in East Asia were no saints. Look at China. European meddling is remembered as shameful. Japanese conquest and war is remembered as catastrophic and evil.

Please, ask a Chinese, Korean, Taiwanese, Vietnamese what they think.
Lost one of my sources in the comment rework. [2] should be https://www.ncbi.nlm.nih.gov/pubmed/14534428
I think you should block all IPs by default, since you can't trust the Internet. Better to whitelist every one.
Google adds a ‘.new’ shortcut for making G Suite files
Computers can compute numbers faster than 20 professors too ... can we please stop the AI is everything?
You'll feel normal again. It's going to take time and tactics, though. Do plenty of reading on how to deal with stress and you'll find mechanisms. It can take months, yes, but the time to feeling 'normal' again can be cut with the proper measures.
How to Enable Restricted Mode on iPhone(YouTube App)
It is undefined in multithreaded scenarios, not in single threaded code. In a world where memory access latencies dominate and you pay a huge penalty for cache misses, and a smaller yet significant penalty for TLB misses, there are some significant performance gains that can be gained by tightly packing fields in structures, while still maintaining alignment at a structure level. We’ve been doing this safely for years in prod now. I understand that the dogma of “unaligned reads invoke undefined behavior” is rather popular given how memorable it is, but it isn’t always true.
If you have a Certificate Authority in your trust store, than any certificate signed by that CS is trusted by your system.

That is why Google uses key pinning for their services and a list is hardcoded in Chrome, AFAIK.
Tesla hugely exceeded expectations last quarter
Not for all. I'd like to think that most people could take a few days off for it, but can't pay for rent and food without working.

Even working on the farm, I rarely could take a sick day. Cows won't milk themselves and you can't tell them to hold it for a few days either.
Solar Today: Financing and Incentives
It looks like Richard Miller, author of the article and living UNIX legend, is using a verilog implementation by Clifford Wolf [1] in this FPGA board [2].

[1] https://github.com/cliffordwolf/picorv32
[2] https://www.tindie.com/products/Folknology/blackice-ii/
Too late. WaPo doing its thing.
This is a godsend to anyone who just wants to publish markdown blogs (with some maths) etc in the simplest possible way on a static website.

I know, the proper way is supposed to be to use Jekyll or Hugo or something like that, to compile to raw html on the server side but this is much simpler for the publisher. No configuration and compilation and updating on the server involved.

I do not think that the user will notice or begrudge the few milliseconds of processing in his browser. Especially if this could be converted to a WASM module. Any takers?
Yes, they have over-charge protection. But apple laptops still go all the way to 100% whenever you plug in.

It is not a good idea to charge a lithium battery to 100% all the time. The source article also specifically mentions it, giving reference to Battery University.
Interesting. Reagan was governor from 67-75, but the Wikipedia page seemed (to me) to imply it was passed under Reagan (it wasn't):

https://en.m.wikipedia.org/wiki/California_Proposition_13_(1...
Microsoft completes GitHub acquisition
Ask HN: Does this article about HDFS vs. S3 make sense?
Here is the article:

- https://databricks.com/blog/2017/05/31/top-5-reasons-for-choosing-s3-over-hdfs.html

I am not experienced enough with HDFS to understand fully the comparison being made, but it seems they are choosing a particular EC2 instance price assumption as the comparison point.

Does that actually make sense as a counterfactual you could compare with an in-house data center operating HDFS?
That's irrelevant and it doesn't change the fact that no one drives with the intention to brake hard enough that ABS activates. There's zero chance of anyone becoming dependent on it.
> 5 — Implement Ansible, Puppet, Chef, Kubernetes, OpenShift, Terraform…

Irrespective of personal feelings on these individual projects, they're all aimed at automating something?

I don't get the point of this item?

What's wrong with them?
Summing RGB sensors doesn't really work the way you would think because each sensor is actually sensitive to a very broad range of wavelengths, some of which affect it more, and some of which affect it less. Unless you know what your red sensor reads with X amount of illumination at 635nm vs 670nm, you are going to get very bumpy results on even a blackbody.

There's still some of variation in colored LEDs. (and unless you are paying big bucks, a ton of variation on white LEDs. What most home LED bulb companies do is buy a bunch of off color white LEDs and sort them per light so that the badness sort of evens out to something close to okay.)
Ask HN: How would you design an API for a Python minimax library?
This is probably a little different from most Ask HN threads (at least the ones I've seen) but here's the context:

I want to start writing blog posts, and I've decided that I want to write a series about the Minimax algorithm, as it's something that I've done before (as in I've written a game ai using minimax before) but I could definitely learn more about and there's plenty of interesting topic to get into (i.e. optimization like alpha-beta pruning, probability, designing evaluation function, memoization and transposition tables).

I'd like to make this a more general library instead of having to remake the code every time I want to switch to a different game or system, but I'm having trouble deciding how I want to design the API. Here's what I'd need from the user, as far as I'm aware:

* A definition of the current "state"

* A function to generate a list of "moves" from that "state"

* A function that changes the state based on a "move" from that move list

* An evaluation function that takes in the "state" and returns a real number

* A way to swap the current "state" to the opponent's "state"

From what I'm thinking, this looks like the perfect situation for object oriented programming. You'd have the user define an immutable "State" class that would have "move", "generate_move_list", "evaluate", and "opponent", and all of that state information would be handled within the class. The API would define an abstract class of some kind.

This thought comes from having more experience in Java that Python, and from what I've seen that wouldn't be how most people make python libraries, so I've come to ask the opinions of people with more experience that me. What do you guys think?
The number of employees under Andy is not clear to me. 500 for the early days of Android seems plausible.

But yeah, I did not intend my comment as a rebuttal to yours - I just like numbers to add up.

I don't really think "fair" comes into it. It's a market value issue. I'm here at Google making senior engineer compensation, and when I look at what I go through every day and compare to friends who make less per year than I pay in taxes, that seems unfair to me too.

But, in the end, some combination of skillset, talent, scarcity, and luck results in my value to my employer being what it is, and my friends' value to their employers being what that is. It doesn't seem fair, but I also don't see particular fault from any party.

Now, with my comp and my friends' comp, it's sort of the result of the blind machine and in the end only larger political or social forces can affect things.

With executive comp, it seems like a small club of bamboozlers at the top, wanting more and more and sharing more and more among themselves. However, in this case, it was basically Larry's money to give and he decided how much. Android is clearly a win for Google, and (perhaps unjustly, but how could I know?) Andy was the one pegged as responsible for the success.

Edit: Also this wasn't his yearly compensation, but a one-time bonus recognizing his total contribution to Android.
Establishing hubs elsewhere would be good for the rest of the country, too. For example in the coal mining regions that fear getting the short end of the stick in the transition to renewable energy.

Compared to the situation in the US ("fly-over states"), it's still trivial to get to your trendy night time activities: Eastern coal mining hubs are 2 hours or less by car from Berlin, and less from Dresden or Leipzig. Western coal mining is in an area with one of the highest population density of the country. That makes me think that the regular "who wants to move there" argument isn't as convincing here as in the US.
>and large government debt (US anyone?)

The comparison to the US is not apt because the US has control over its own currency. This is critical for high debt scenarios because it leaves the option of essentially printing money via a program like quantitative easing to always ensure interest rates on fed bonds don't get out of control. This serves the purpose of providing favorable rates for the government as well as inflating away the value of the outstanding debt.

Countries bound to the Euro do not have this option so it usually means growth-killing austerity+taxes is the only way out.
I moved to Berlin ten years ago. I live close to Rosenthalerplatz right at the epicenter of the startup scene in Berlin. Gentrification is definitely a thing here. The neighborhood I live in has changed beyond recognition in that timespan. Lots of construction throughout the aftermath of the 2008 economic crisis; most of the local shops have been replaced by hip restaurants, bars, and coffee shops; rents have gone up substantially; etc.

I would argue it is mostly for the better. But of course it is not necessarily that nice for the locals who are confronted with vastly increased prices for basically anything.

The city has changed a lot and is growing and projected to continue to grow by about 50K people a year for the foreseeable future. This is good for Berlin because it definitely needs economic development as it has been living well beyond its means for some time and because it is still catching up in terms of economic activity that was lost between WW II and the fall of the wall. All this growth is increasing employment opportunities and lots investment money is being spent in this city, which is definitely benefiting local businesses.

Meeting actual Berliners born and raised in Berlin is actually not that common. Change is very much the local culture. Major changes of the 19th and 20th century originated here and were fueled by waves of people moving here. So most people you meet here are part of the problem (in terms of gentrification). So complaining about gentrification is a bit disingenuous for most.

I would say it's a shame that a bunch of anarchists get to push back economic development in what is still one of the poorer neighborhoods. They're a vocal minority and they don't speak for all. They live in Kreuzberg because it used to be a dump before the wall fell and was thus cheap. Basically, this area was heavily damaged in WW II and the West Germans put a lot of cheap housing for immigrants there (these are not the people doing the protesting). After the wall fell, it happened to be conveniently close to the former East German historical center and it became a popular place for young people moving to Berlin to settle and for poor startups to open up cheap offices.

So, most of the protesters moved there because it was cheap and now they feel entitled to live cheaply in the middle of a major world capital that is once again flourishing around them.

This city is not done growing. There is plenty of room to build and expand.
I was speaking about stress. The fact that chronic stress has negative impact on decision making, etc.

To your point, if stress effects the relatively well off, imagine what happens to those are struggling to get by.
Yeah but XBerg is so hip & happening and whoever lobbied for this move at Google must have loved their stay at one of the many AirBnB apartments in the area! /s
PawJS now supports LESS preprocessor integration with launch of @pawjs/less
ReactPWA now supports CSS LESS PreProcessor.
With many user requests to support less framework like Ant-Design in ReactPWA we launched the @pawjs plugin @pawjs/less to support .less files with minimal effort.

NPM: https://www.npmjs.com/package/@pawjs/less

Github: https://github.com/Atyantik/pawjs/tree/master/packages/pawjs-less
> That opens the possibility to observe people picking up the paper of $CONTROVERSIAL_CANDIDATE and dropping it into the box, thus revealing who they voted for.

You are supposed to pick at least two papers and usually there are enough paper so that everyone can pick one of each. Then you go to a booth, hidden behind a curtain and put one of the paper in an envelope (given after the official has checked your elector's card), discard the other paper in a basket case, then drop the envelope in the ballot box.

Of course it limits the possibilities of the vote: one person can only vote for one candidate, on the other hand, it's easier to understand for the voters.
There are studies showing the natural sleeping cycle of adolescents is shifted back a few hours from the norm. e.g. https://nyaspubs.onlinelibrary.wiley.com/doi/abs/10.1196/ann...
Any drop past $1 longer than a few minutes indicates Tether isn't really backed by USD. Which is what the external evidence also shows (no audit, Tether terms explicitly say they are not redeemable for USD, etc)
lowRisc and SiFive, there is no lowfive
Came here to say that.
Maybe you could do it the other way round now? Adding a ?withmath to url would add math rendering :)
Federal prosecutors have filed new charges against swatter Tyler Barriss
It is extremely easy to overload on new and shiny. Sometimes a web app can be scaled with a minimum of tool work. If something can be automated that is great, but probably not everything needs to be automated right away. This is a special case of You Probably Aren't Going To Need It.
I'm not quite understanding what you are saying. Do you mean kink in general is abusive; do you mean workplace relationships are abusive or are you relating to this specific case?
I was spanked until I was 12, after that, I was lectured. But I knew I deserved a spanking when I got lectured. My folks only spanked when it was warranted and other parents always marveled at how well behaved I and my siblings were.

It wasn't child abuse by any stretch, and I benefited from the self discipline I learned.
I'm assuming 75% of people aren't dying in that way (or aged 98 while making love to their fourteenth wife and losing control of the plane they're flying)

I'm personally more worried about things like dementia
The title in this case is not very clear because it's out of context. Should be something like "the Microsoft acquisition of GitHub is complete" to be more factual and instantly understandable.
A Parallella should be faster than that Arty as it has 32-bit wide DRAM, the Arty only has 16-bit.
Definitely a side effect of communism, you can see how different it was if you read older literature, newspapers etc. The comparison can be made between Eastern and Western Germans.
ReactPWA now supports LESS Preprocessor
How Linux allows TCP introspection the inner workings of bind and listen
Stop using most of the smartthings. Most of them are totally useless.
There is a huge expat community, almost everyone speaks English and IT jobs are open to everyone and will help you with visa and sometimes even relocation. I worked in a company with hundreds of foreigners, they all like it here.
Perhaps the computing experience should be precisely the more holistic one. Hypercard is exceptional for many reasons: new users can do a lot without writing code, but can easily "see" how it works by inspecting things (in a language that is readable even for non-programmers). You can copy and paste everything. It integrated well with the system upon which it was built. It let users do what they needed to, for their own ends, without making too many assumptions -- and it did this in a highly accessible way. That should be what personal computing is all about.

I think the key lesson, really, is that you need intuitive metaphors to make such things work. The idea of cards and stacks are highly intuitive in this case.

It's worth booting up Sheepshaver and giving the final version of Hypercard another look. The default home stack -- complete with interactive examples and documentation that you can straight up copy and paste -- is still a marvel of design in my view.
I recently ghostwrote a sizable text on diabetes, with one part dedicated to cortisol.

In short, cortisol is secreted due to a real or _perceived_ threat, meaning that by framing everything around us as challenges we avoid activating the HPA (hypothalamus-pituitary-adrenal) axis that normally works during danger. Rats put in stressful situations showed a propensity to gorge on sweet and fatty food (cookies), since they impacted the brain just as much as natural endorphins; the rats were trying to calm themselves down after stress. The literature is monumental, one study is here [PDF]:

https://www.medicinasistemica.it/doc/biblioteca/Stress,%20ea...

There are no threats, only challenges.
US ballot is a lot more complex than in most western European countries in that voters have a say on a lot more stuff!
You vote for president, senate, congress, sheriff, education board members, a bunch of other offices, and also constitutional amendments. All on the same day/occasion - if spreading it out many election days would be needed!

A google on “US state general ballot sample” gave me this:
https://cdn.ballotpedia.org/images/3/33/Colorado_sample_ball...
Sure, I'd also rather die from cancer than from Alzheimer's, but "they'll die in a different way" is a poor argument against medical research.
We were discussing Thai curry. There are some dishes cooked in Thailand that are marinated or slow cooked, but curries aren’t. Southern curries are cooked a little longer. But it’s common to get e.g., massaman curry in Thailand with undercooked potatoes.
Protecting only one group from dangers that overwhelmingly apply only to that group is not bigotry.
Outright measuring cortisol levels would be nearly fool-proof.
>We tend to love it when we’re satirized in the media, particularly American media.

I don't at all. I find the same overplayed Canadian jokes from Americans extremely tiring and patronising. Don't use 'we' to refer to over 35m people.
There is a lot of snow where I live and the ABS triggers all the time and yes some people just slam the brakes expecting their ABS to optimally slow down on ice.
This is not so much about preserving local culture and character, but just about economic circumstances of the local population.

Especially the campus idea - which in London, for example, attracts tens of thousands of techbros and -sises per year - puts more burden on the neighborhood as "just" a regular startup office. Neither google nor the city of Berlin could address any of the concerns, housing costs, general costs of living, traffic situation, just to name a few.

Berlin in general suffers a lot from rising real estate prices and rents - and the area where google wanted to put their campus is even more heavily affected than other parts of the city. This neighborhood - I am living a mere 500 m from that place - suffered from an influx of people probably more than other parts of Berlin. On top of that it turned into one of the hip party areas.

Given that this neighborhood historically houses lower-income families, which won't gain anything from google moving here, but will have to face even faster rising cost of living, and at the same time have no chance to move to other parts of the city - with the housing market being as tight as it is - it shouldn't be a surprise to anyone that this move saw local opposition.
Does it though? The most I see is mere lip service towards health with things like counting steps competitions and the like. The plans are whittled away each year (whether thats really under or outside the control of the purchasing company), or they just make you pay more and more if you want to include your partner/kids.
It's not for the top 10%. It's on the more expensive side of things but a software engineer should be able to afford it. There are other companies like Taxify or Liftago that are cheaper. The public transport works pretty well as well, you don't need to use taxis much if you live here.
Yes, good point. Updated the title.
If you want actual hardware you can get:

- Kendryte KD233

- HiFive1 (https://www.sifive.com/boards)

- GAPUINO GAP8 (https://greenwaves-technologies.com/product/gapduino/)

- HiFive Unleashed (https://www.sifive.com/boards/hifive-unleashed)

Those are the only ones that exist commercially as far as I know.
Law is an industry entirely based around charisma and precedent. Entirely "(s)he said, (s)he said". It's quite boring on a technical level, because maths are rarely involved. And quite frustrating on a human level, because judgments are based more on the judge's previous meal and night's sleep than the case facts.
GCC 6.5 Released – 2 years of support
Ex-communist probably. Romanians also like to complain. I think it's what people do when they feel powerless. They don't see what else to do other than complaining. Problem is you tend to complain even when you could do something about it.
They "hugely exceeded" huh? Not bigly? Come on Donald, you need to be running the country not wasting time online...
While not yet in mainline (patches pending), the Lima open source driver for Mali 400 GPUs appears to be usable: https://www.phoronix.com/scan.php?page=news_item&px=Lima-DRM...
Don't know, it has probably more to do with the fact that it's Google trying to open something there.

Otto Bock (market leader in prosthetics and wheelchairs) just bought a old brewery for several hundred million € in Prenzlauer Berg [1] with the goal to convert it into a research center. I don't remember any kind of protest or outrage against that.

1: https://www.ottobock.com/en/press/press-releases/ottobock-re...