skysight-inc/HackerNews huggingface dataset:
I'd say that 10% is very common, sometimes 20%, somtimes less than 10.

But to combat this my previous phone was a moto z with a battery-mod that kept it at 80%. But the constant charging/discharging was probably too much for it. After 20 months the battery was beyond useless without the battery-mod.

And I only did the above to be able to prolong the life of the phone, yet it lasted much shorter than any previous phone I've had.
I assume it should have read "Systemd is bad at parsing"
Buy water front property because it doesn't exist?
> Static types and Object Oriented Programming are better ways, I think most of us will agree?

I'm pretty sure you won't find near universal agreement on either.
I always feel that freeloaders are not hurting me personally, so why harm them? And it's not like they bring nothing to the table, it's just less than an ambitious/motivated person would. Last but not least, and why I think most people take on freeloaders and keep them: If they switch to another company and are motivated there, it's better for them personally, but might also mean more competition on the market. Therefore better have all people slack off in your offices than give the competition the edge. Not sure if I would agree with that strategy but it has some logic at least.
You can turn on showdead in your profile to see flagged posts. It's not a conspiracy.
It might be pure hometown bias, but this article by Sue Bird immediately comes to mind when I think of the Player's Tribune: https://www.theplayerstribune.com/en-us/articles/sue-bird-se...
No I know some who got stock options.
I think the "side project" framing actually makes this problem more solvable, because you don't have to completely solve every aspect of the problem. It seems likely that developing an easy to measure metric would start to help the issue, which is what Pioneer may be looking for.

E.G., measure the productivity of repo owners (managers/leads) by their lag in accepting pull requests. Measure the quality of submitted code by comparing how often my code is accepted compared to someone else's (w/in the organization/language/community).

From there you could build more of a productivity measurement suite, e.g. maybe connect test coverage and bug reports to specific commits and start to score a coder.

Basically, look at currently-existing data points about coders that a specific team culture believes are important to productivity. Then baseline that against a comparable group, and present reports.

Another trick is to simply measure stuff over time. (This is a bit trickier, due to what you hinted at w/ LOC... but still measures change over time, which is really useful for managers.)

The final thought I have is that it is useful to connect events over time that are related to the same code/feature/branch. If my team's workflow is design/develop/test/commit....gap....deploy to users, then bugs are temporally disconnected from development efforts. Connect things over time in an easy to use report, that has value.
Well, I have an active social life, and I'm not a big fan of working in the evening, so sure I can adjust it, but it's frustrating.

Turkey is a bird. The Turkish word for Turkey is Hindi (which is funny, because the Turkish word for India is Hindistan, -stan means country, so a literal translation of Hindistan is "Country of Turkey")

Türkiye is the Turkish spelling for the Republic of Turkey.
Show HN: A note-taking web app that won't ever betray you
Getting the problem fixed is about culture as much as anything else.

If there is some legacy reason something cannot be fixed and has to keep returning bad data, then yes, there is 100% a reason to have two endpoints that do the same thing... usually prefixed with /v2/ or something
What are some Unix design decisions that proved to be wrong or short sighted?
> He then went back to school to pursue a master's degree in comparative literature at the University of Colorado Boulder.

You graduate with a degree that has little market value and can't pay your load, so your solution is to accumulate more debt for another degree with little market value?
The real answer: I try to primarily type with my keyboard set to Turkish, which means autocorrect always changes this to the native spelling.
VBA 1.8.0, VBA-M 2.0.2 – Multiple vulnerabilities in ELF file parser
Well, at this point, I'm really curious to know what the restaurant is!

I promise I will keep the secret, and if needed, happy to leave a bad Yelp review :)
Nor if you're trying to find accommodation in an already lacking city, and AirBnB further exacerbates the problem because people can make more money over a summer of short term rentals than a full year of long-term tenants. Or they avoid paying taxes because AirBnB leaves it up to them, and they never report it... AirBnB has basically made some aspects of travelling better, but overall it's made the locales much worse off.
Show HN: Achi – Unique Tic-Tac-Toe extension (iOS)
not sure why you're being modded down. i find this comment hilarious and it reminds me of individuals i've encountered.
They only compare it with conventional hydroelectric power in the video (around the 1:50 minute mark) by the way.
Interesting ... curious what the replacement cost of these membranes are as compared to installation and ongoing maintenance of wind turbines.

Also, as always, curious how having these membranes in the water would affect the local ecosystem.
Usually in the early stage (when stock has no value) people get more stock. Then in the growth times people get more cash. And then when the growth slows down and one succeeded at becoming another boring behemoth people get stock again because it increases market activity for an otherwise boring stock. So I would assume that most Netflix people currently report a higher amount of cash bonuses, while the internal policy slowly shifts to more stock.
Indeed, I assume it has something to do with the second law of thermodynamics. Just like you can't make electricity out of heat alone but need a temperature difference, here you need different concentrations of salt.
> Mr. Halligan, how was Napster back in those days? Like, do you have a blog about that time period?

I was the "only" sysadmin when I was at Napster (We had 2 people in desktop support/it, one of whom actually died a few years later. The guy I replaced, Stephen Fountain, was actually shot to death by police). We hired 2 more a week or two before I left. It was a shit-show that I prefer to forget. (I'm also not at all proud of my work there. I was an unprofessional, somewhat incompetent 19 year-old workaholic who worked 100 hours a week and did a half-assed job at everything, which in the end actually was a huge net-negative to the organization, and myself!)
Microsoft will sell the Pentagon all the AI it needs
> What makes US different?

Regulatory capture by the financial industry. The US government has facilitated a system whereby as many students as possible are funneled into taking predatory loans.
As an array of uint8_t? I'm pretty sure that's wrong, and that it should be char instead. Usual OS network APIs are char based, and the fact that the network is technically about "octets" shouldn't matter behind those APIs. Or is my thinking wrong?
Human urine bricks invented by students
Their environment seems similar to the movie In Bruges. I wonder if Reed Hastings is so dedicated that he would “Keeper Test” himself.
What's crazy is the censorship here on HN. You all think Dyson is a charlatan too? He doesn't believe the hype either... You could get a Nobel price scientist on here arguing a point and you would obviously still censor him because the admins have made up their minds to align themselves with leftism. Unfortunately I cannot reply to the OP because they killed his comment :(
The U.S. takes medical talent from other countries including poor ones. Those countries make an investment in these docotors and they leave for the U.S. for economic reasons. We shouldn’t complain if it starts to go the other way should we?
Relevant: https://news.ycombinator.com/item?id=15607383
It's a bit hard to follow what the author wants to tell us, so I might be misrepresenting below (sorry!). I don't think the assertions that (I think) they make hold though, or are particularly useful.

The author claims "functional programming, types, JavaScript: pick two". He supports that with links to a number of libraries that have incomplete type definitions, and a few patterns that are hard to express in a static type system.

I don't think that assertion holds. Some JavaScript APIs are indeed written in a style that's very hard to give static types for, and some libraries have sub-par type definitions.

But odd JavaScript APIs != the entirety of functional programming, and sub-par type definitions are just missing features that need to be fixed. You can write perfectly fine, statically typed, functional programming idioms within the TypeScript type system (and presumably within Flow). You can even do that within the confines of Java's type system, and that's a lot weaker than TS' or Flow's.

These type systems are optional, and you can subvert them. If you use the recommended strictness flags though, it's hard to do so accidentally.
I've never seen a tokenizer as one big regex that finds all the types/functions/keywords all at once.
> which makes it easy for a machine to parse, but harder for a human.

That is a naive fallacy. What is harder for the machine is harder for the human.

By and large, humans rely on formatting cues, especially indentation, to parse programs. Human eyes can be fooled fooled by bad indentation:

/* C */
if (foo)
bar();
cleanup();

if (outer)
if (inner)
foo();
else
bar();

If you want to compare human versus machine parsing, then you need to write all the code samples on a single line with no breaks (if the programming language allows that). All optional whitespaces that can be written as a single space should so be written. This way, the humans are actually parsing the same tokens as the machine and not relying on cues that aren't part of the language.

> I personally prefer syntax to be designed for humans to read and write

There is no such thing in existence. People who design syntax simply use their whims, rather than any cognitive science that brings in any measure of objectivity. Those whims are shaped by what those people have used before.

The concept behind Python is actually the closest to getting it right: it recognizes that people really grok indentation rather than phrase structure, and so it codifies that indentation as the phrase structure.

> Languages are a minority in terms of usage indicating that my preference might not be common

That's another fallacy. The vast majority of all programming and other computing languages that have ever been invented are not used at all, or used by a vast minority. In that vast majority, we can find the full gamut of what has been done with syntax, semantics and everything else. Popularity and lack thereof isn't trivially driven by cosmetics.
This is such a great read. For those who don't know (I didn't) East St Louis is in Illinois, across the bridge (Eads?) is St Louis. Never been to Illinois. Most I know about it is it's not actually windy and Chicagos there.

I spent a lot of time in the projects in Virginia (Hampton/Norfolk), places like Lincoln Park. My friends were living it rough, I got to see it from the outside when I'd bike over to play Gameboy. They had to come to my house to play Sega, they didn't have tvs or if they did no games. I can't imagine Darius' life.
Windows has an HAL, already targeted multiple architectures, and once upon a time 4 MB were good enough for NT.

Likewise making Linux fit into the same hardware I used for Slackware 2.0 is an exercise playing Tetris with source code.
Don't have much skin in this argument, but this would convince absolutely nobody not already aligned with those beliefs. . .which was GP's point in the first place.
Probably returns a value if the assert works, and aborts otherwise.

I would go so far as to say that using asserts in input validation is a good thing, in very limited quantities. I use them in places where the input should have been validated so long ago, so many functions back, that if something isn't as I expect here, I seriously fucked up somewhere else and the whole system has a good likelihood of being compromised by something unrelated to the condition I'm asserting. In that scenario I'd rather log and abort.
Wow spent that last 20 min reading the whole thing glued to wonder what did happen to Darius Miles. His mom was awesome and understandably a reason to be depressed, at the end of the day all you got is your family.
> It's about culture – and looking down on someone just because they talk different is ignorant.

It's a shame, but linguistic discrimination is super common, and there doesn't seem to be much of a trend to change that. Likely because of education forcing the idea there's "One True English" (TM) and that if you didn't learn it you're dumb...Despite the fact nobody learns it natively, and you have to actually learn it, not acquire like your native dialect...So it all comes down to proper education, and did you learn when to use it, etc. Linguistic register is a nice term for everyone to Google.
How to Setup PHP Code Sniffer in PHPStorm [video]
Will the situation improve with Wayland? It seems like Firefox is generally moving in the direction of natively supporting Wayland but it doesn't seem like a high priority for now.
If you learned English outside the US and particularly as a second language, I could see this style being pretty strange and maybe hard to follow.
FWIW, the ex-googlers I've asked about this claim it would be very hard for an individual to do this surreptitiously. One even claimed that Larry Page would probably get caught if he tried.
There are many sources of this problem, but I suspect the three that get the least attention are:

- parental pressure to attend college

- guidance counselors and school administrators pushing for college

- the wholesale destruction of vocational schools

As a result, the US K-12 education system produces a never-ending deluge of students who believe their only life option after high school is to get a four year degree. Or joining the military, but that's a different discussion.

Like the people in this story, many HS grads study subjects with little economic viability.

Why?

That's the story I'd like to see. What motivated the choice to waste four or more years and tens or hundreds of thousands of dollars on a credential that will never pay for itself?
Don't think it's unrealistic at all from within a single company.

The point about 3rd party libraries is taken but I also think if you are using a 3rd-party endpoint that publishes a specification that it then doesn't live up to (and takes months to fix) then it's not a reliable partner in whatever you're doing and is not living up to its own promises about the data its customers can expect. Like one of the other commenters here said, time to deprecate or write a wrapper around it that enforces the data contract.
In Sweden you cannot fire people on permanent contracts (that you need to give after 2 years) if you still require their work, i.e., you cannot fire someone without cause and then hire someone else to their exact job. In the Netherlands it is also extremely difficult to get rid of an employee with a permanent contract that you need to eventually give to them. In all cases I personally know of, permanent contract employees were basically paid by the company to agree to leave.
There is no free lunch. Efficiency kills the idea.
However the nature sorted it out already - evaporation, clouds, rains.
In many (most?) European countries you cannot legally fire an employee at will. There needs to be a process, and the employer has to be able to show that the employee cannot or will not perform even adequately (or actively harms the employer eg. by stealing), cannot be trained or reassigned to a more suitable position.
CBD has incredible medicinal value, I wonder if PET (perrottetinene) will end up being a similarly powerful treatment.
The Problem with Magic Leap One's Display – Video Essay
Two of the three have become teachers in other countries, and one wanted to be a professor here. So they have at least some desire to teach, some ability to teach, but would rather move to a new country than teach K-12 here. And somehow we have a teacher shortage.

From my experience, quite a few people getting the degrees being criticised in this thread want to become a professor in that field. Teaching is what they want to do, but they just saw how terrible being a high school teacher would be.
you also have to consider the climate that the user lives in. one can be very diligent about discharge levels, but if you spend a lot of time outside in the heat, you are subjecting the battery to worst case operating conditions a lot.
Apples and Oranges. Postscript itself includes the code for the primitives used in xeyes, whereas the C code implements them first. Take away that code and it is much more illuminating.
From the Google people I've talked to, the easiest way to get fired at Google is to inappropriately gain access to user data.

And yes there is anaudit trail on accessing that stuff.
6 Doggy Sleeping Positions That Will Tell You a Lot About Your Beloved Pup
I totally forgot about the scuba-mask viewport... yikes.
Yes, agreed. It is a step backward to manipulate and recombine bytes. "Extracting an integer from a packet, then changing it's internal format" is exactly what is being done, and thinking at that abstraction level is beter than playing with individual bytes. And suppose you hoist those operations into a separate function instead of doing it for every field? Well, congratulations on reimplementing ntohX. If the boundary between internal and external data is not clear, that's a bigger issue that could cause incorrect or unnecessary data transformations, whether we're talking about byte order, string sanitizing, unit conversions, etc.
They’ve been pushing the same product since inception; they could do nothing except maintain current tech and catalogue, which is what they’ve more or less been doing. So it’s in spite of. They could have any culture, hire a herd of thousands of cats and pay them half a million each, and they wouldn’t lose much.

The only thing they need to do to survive is maintain rights to enough shows people are willing to pay for.
Are they firing "free-loaders" or people who are just worse at playing politics/self-promoting?

We have extremely quiet people at work, few know what they do, but they're actually extremely productive, rarely make waves (good or bad), and help keep longer term goals.

The "Rockstar" types join, get all excitable, make a handful of rapid (often good) changes, burn out, and leave. Likely to start again at their next workplace.
If you want to read about some interesting stuff, you might wanna research "flux coupling". That is when one flux is used to pump another against a gradient, i.e. in the opposite direction as it would normally flow. That's pretty common in biological systems but there are physical cases as well when e.g. thermal and electric fluxes are coupled (Seebeck-/Peltier-effect).
What,if any, are the side effects of generating electricity this way, other than lowering the speed of the water going through the membrane?

Also, the article didn't mention the power density of the membrane, which matters for making this work without covering river mouths.
Google has amazing controls and audit capabilities around access to customer data. When I worked on the security team there the number of people who could access a specific person's data without an audit record and an alert being triggered was zero.
Countries where unions and work laws actually work, like many European ones.

Sure firing is still possible, but be ready to prove in court it was done properly.

Quick firing like in US, only if it was something really bad and even then, a notice period might be required.
The reverse process is called desalination, and there are a few approaches to desalination that use membranes: https://en.wikipedia.org/wiki/Desalination

Typically, you don't use electricity directly, but pump in salt water with high pressure, and some of the water is pushed through, while the salt remains.
That exists and is called reverse osmosis desalination.

https://en.wikipedia.org/wiki/Desalination#Reverse_osmosis
Reminds me of stories about working at Goldman Sachs. I guess that’s fair when Tech has become the 21st century go-to yuppie industry
I don't know if it's a bad future but it would limit our potential to our current biological evolution's zeitgeist. An analogy would be like giving the kids all the candy they wanted. It isn't good for them in the long run. Meaning we are fairly simple still relying on our mammalian brain to drive our internal desires. The neural lace idea for example could potentially drive our motivations to a higher cause and purpose than we could ever imagine now with our current limitations. Focusing on expanding our understanding is probably more noble but less fun.
400k??? This seems insanely high. Are you one of a kind specialist of sort? I find it hard to believe that regular engineer, even in the prime of his career can expect such high salary.
Sort of, I think "to terraform" usually means "to make more like Earth" though.
That's a very common game or example often with tanks. I like this gorilla/banana theme.
They are basically admitting it’s faulty when telling ‘it’s users mistake and there are lots of users like this’.
There are many parts to being diagnosed a psychopath. I don't think Reed fits. https://www.psychologytoday.com/us/blog/mindmelding/201301/w...
so does ubisoft and Blizzard. It's a gimmick that hinders useability in favor of complete control.
Wow! That's news to me, thanks. I wonder if Ethiopia still has any old lineages of coffee growing...
Oh yeah I've seen a lot of ads for SoFi and Laurel--also weirdly extravagant SoFi 'member' events. It seems like SoFi alone is probably fairly large. They've been reporting billions of dollars in consumer and student loans converted in a Q1 2018.

Also they've been issuing asset backed securities linked to their loans.
Rob Pike is saying that your code should never care/check what the host byte order is; if you use the libc FOOtoh() functions, you aren't caring what the host byte order is, you're just converting something to it.

Put another way, Pike is saying that libc should have implemented be16toh() like:

# define be16toh(x) ( (((char*)x)[1]<<0) | (((char*)x)[0]<<8) )

instead of how GNU libc implemented it:

# if __BYTE_ORDER == __LITTLE_ENDIAN
# define be16toh(x) __bswap_16 (x)
# else
# define be16toh(x) __uint16_identity (x)
# endif

But that complaint doesn't affect programs that call be16toh().
Well, we have to come to terms with the realization that society has a percentage of freeloaders. They also need to make a living; somehow. So the better option is to assume a certain percentage of freeloaders and design work with them in mind. Instead of firing them, reassign them to places they will prove more useful. Something like where in Japan they relegate these people to the periphery of the company but don’t fire them.
Why is this immoral in the least? At worst, it's lucky. At best, very shrewd. The UK held a referendum which impacted the value of the currency against another that ended up being beneficial to you. Literally nothing you did impacts any of this. In fact, by doing what you did, you helped support the pound (i.e. selling dollars to buy pounds). It's not even close to what's being described here.