skysight-inc/HackerNews huggingface dataset:
This code would be a bit shorter and simpler if it dropped support for old browsers (specifically, Internet Explorer).

Some examples:

The functions hasClass, addClass, and remClass could be replaced by Element.classList [0].

Another one is remEl, which can be replaced with a direct call to ChildNode.remove() [1].

I was going to give more examples, but I don't feel like rewriting the whole script.

[0] https://developer.mozilla.org/en-US/docs/Web/API/Element/cla...

[1] https://developer.mozilla.org/en-US/docs/Web/API/ChildNode/r...
Luckily, this is not the case in Germany. Here such behavior is illegal.

We have experience what happens when you give people unrestricted access to data to do with whatever they want. Spoiler: It leads to bad outcomes.
An electric car in normal road use is unlikely to ever need brake pads ever unless you turn off regenerative braking.

When I upgraded the tires on my first Spark EV at 10000 miles and got a look at them I was amazed that the rotors still had the factory crosshatching on them and the inside of the wheels were clean instead of being filled with brake dust.
Uvm: a BSD virtual memory system (2016)
Probably not worth setting up a babel transpiler for that small amount of JS tbh

Makes supporting older browsers a lot easier
SEEKING WORK:

Location: Japan, India

Language I can speak : English, Hindi, Conversational Japanese

Remote: yes

Skills :

AI -> forecasting, NLP, RecSys, Similarity matching, Image recognition, Chatbots, AI training

Engineering -> Build and deploy AI/non-AI projects into production, Build customer-facing API, Search sub-functions like DidYouMean, Spell Checker etc.

Linkedin: https://www.linkedin.com/in/avinash-mishra-a0846360/

Email: avinash.mishra.2388@gamil.com

Availability : More than 30 Hours a week.
Rate: $35/hr
There's some disagreement over it, but it does seem likely that Lilienfeld built a working radio with his FETs. We know he drew a schematic of one and it's specific enough that it seems likely it was the result of practical experimentation.

Here's one quote:

In 1981 the semiconductor physicist H. E. Stockman said "Lilienfeld demonstrated his remarkable tubeless radio receiver on many occasions, but God help a fellow who at that time threatened the reign of the tube."
I understood it to be a tongue-in-cheek title
Police and teacher unions are known the world over for making it hard to fire bad employees. Whether or not this is true in Germany specifically is immaterial because the discussion is about unions, not Germany. You wanted evidence specifically relating to Germany, so I gave you a study proving it’s at least twice as hard to fire union members rather than non unions members, and that it’s also more expensive. You didn’t read any of the evidence and tried to dispute it. Now you’ve given up on that you’re trying to bring the discussion back to the unionization status of teacher in Germany.
I think it's terrifying how sooner than later the plebians won't even have that miniscule amount of power because all the work that needs to be done will be automated with machines they have no control over.
14% of Americans have changed their mind about an issue because of social media
I'm sure the code works very well for its intended purpose, but I'm kind of wary of the idea that using obscure abbreviations like 'posf', 'arem', 'vis', 'ind' etc. makes you "expert hacker".

I don't agree that code should always be designed to be perfectly readable by outsiders. If such abbreviations works for the people who have to maintain the code, more power to them. But I disagree than this is somehow proof of superior skill.
> Most interestingly are the justifications for these things.

The problem is not so much the _initial_ justification. It's the inevitable "control creep" [1]. When something bad happens, they'll just go "hey we have this vast surveillance network in place, why don't we just re-use it for XYZ". That is the fundamental reason why people need to be so vigilant and militant against mass surveillance. Whatever the initial justification was for putting it in place is irrelevant in the long term.

[1] Control creep is where the data generated for one form of governance is appropriated for another
> Skype is still relevant to me in 2018 because their core streaming tech is in my experience still more stable/reliable than Hangouts/FaceTime/Slack etc. Often Skype still connects on a crappy network when these other apps fail.

Wait what? I have, at least for personal communications, the exact opposite experience. Skype video often cuts out and pauses, or even entirely drops the connection, at which point me and my friend(s) either switch over to FaceTime (if they have iDevices as well, since its by far the most reliable in my experience) or WhatsApp video (decently reliable and pretty much everyone has it).
Looks good, like the design. I'm going to compare the results with my website's google analytics.
React Native Starter – Free Mobile Application Template Built with React Native
That's not within their purview. The CBA binds management and labor alike.
I'm surprised things would be that clear cut even in the USA.

Though it's certainly a very American thing for employees to argue that corporations having power over them is the right and proper order of things.
... and if even Yahoo can get it right!
Same for me, but they took my 2009 photos from an old OSM-based website with panorama in its name that I used back then.

Can't remember the exact name of the website, though.
Never seen this. Doesn't sound intentional at all.
This is my surprised face. :|
>There's got to be a special name for this kind of logical fallacy.

Similar to https://en.m.wikipedia.org/wiki/Just-world_hypothesis perhaps?
"Compact" (abbreviated) names are negligibly more efficient when machines read them, and they're wildly less efficient when humans read them. Code is read many more times than it's written, so it doesn't make sense to optimize for fewer keystrokes when typing the code.

This is especially true with modern IDEs that autocomplete everything.
A very concerning attitude, to assume people have no rights at a workplace. Ironically and disappointingly this attitude seems prevalent among Americans.
> Still uninformed, but hopefully less tyrannical.

I don't think this is a reasonable thing to just hope for. Historically, governments have always had tyrannical streaks and I don't think it makes much sense to simply assert that "this time it'll be different". It probably won't.
If you're on the run, you've probably changed your number plate. If you're just an opposition politician being monitored, then where you buy petrol probably doesn't reveal very much about your activities. And you're probably using a card to pay for the petrol anyway.
>If you don't want your country's citizens to have access to something, well then, time for a Great Firewall.

It's not the EU who wants to ban access to something. It's the provider who wants to benefit financially from selling that product( targeted ads) without having to comply to the laws of the country that the selling happens. There is no other market that you get to do that. Why should your web page be different?
Blazor: .NET in the Browser
The whole country on a backyard sale while population was chocked down ("shock therapy" - thanks, Balcerowicz and Jeffrey Sachs!). The largest innovation these reforms farted out in the IT domain was a PHP clone of Classmates.

> Or PepsiCo paying $25 mil for privatized chocolate manufacturer(no debt), just to turn around and resell _one_ of their factories for $75mil

The story of Wedel is a classic example of predatory business sucking out all the money from formely legit business while offering deteriorating quality ("ptasie mleczko" tastes like and has a quality of a turd, sorry).
Moore’s Law is dying. Here’s how AI is bringing it back to life
This is an interesting story, but it's also odd that it doesn't mention any of the standard work on decision making (e.g. Savage), no multiattribute decision making/multiattribute utility theory and all the variations thereof such as lexicographic decision making, nontransitive preferences, generalized additive decomposition, and other nonstandard models of decision making (like e.g. in Fishburn's seminal work or Schmeidler's work).

There is consensus in the decision making literature that the direct scoring method described at the end of the article is flawed for measurement theoretic reasons, and a vast range of elaborate preference elicitation methods have been developed. There is also work in philosophy on value structure that is partly relevant, though not yet at the level of economic modelling.

In a nutshell, the article is interesting but sound decision making is much harder and more complicated than the author portrays it. I just wanted to mention this for people who aren't aware of it, there is a vast literature in this area.

Edit: Although I prefer pseudonymity I've decided to give it up on this opportunity for some shameless self-promotion. If you're working in nontraditional decision making or the ethics of risk, please check out our conference:

https://sites.google.com/view/lvu18lisbon

We've just recently extended the deadline until 16.9.2018.
This is the only meaning of Sitzfleisch I have ever encountered. It's not a compliment at least in our house.
Why does business industry necessitate the script translation?
One could also argue that non-union members are less likely to have decent legal support, making it easier for employers to exploit them.
AFAIK a container ship has about 30 crew. Most of which are maintenance and engineers. You would need those people anyway. Most shipping companies use cheap labour now.

I imagine the largest cost after the ships themselves is fuel.
Highly doubtful that.
Serverless Web Scraping with Java
This is a very interesting social phenomena and I'm glad someone randomly linked to it since I never heard of it.

I imagine the effectiveness of it stood in the fact that cities were self-sufficient. Since cities are no longer self-sufficient, a protest like this in the modern age would be meaningless. All the plebs of New York could leave the city and nothing would change, except that some patrician would get richer by exploiting the plebe that chose to partake in this (or punish it).
Worth pointing out that Knausgaard concluded My Struggle 6 years ago. It's just that it's only recently been translated to English.
Depends who's figures you go by. As per [1] they're at 6%, double your source.

[1] https://www.google.com.au/amp/s/www.cnbc.com/amp/2018/04/27/...
Person who trusts it enough to actually go whole-hog on it here: you are wrong.
> or Google (with the "killer drones" recently)

It's because you assume that every software engineer has the same political opinion as you on that matter. In reality, there are people who could consider working on "killer drones" their patriotic duty and are ready to accept low compensation just because they feel they make the world a better place doing it instead of just selling ads. I know such people personally both from US and other countries as well, eager to work for military and intelligence agencies of their respective countries, from NSA to 8200 to FIS.

You may not agree with their political opinions and I respect that, but denying existence of such people is just plain stupid.
By hardware I mean the actual silicon itself. OpenGL is so complex and patent-encumbered that I highly doubt anyone can make a new implementation at this point.
It is probably called in an onclick=“” in the HTML somewhere
Back in the ‘90’s we used to say the e in email is for “evidence”
A lot of this material is also covered in The Idea Factory, Jon Gertner's great book about Bell Labs.
Police officers are state officials/servants (not employees) and can't be let go. New teachers often don't get appointed to that status any more, they're regular employees. They do have a union though (officials/servants are legally unable to unionize and can't go on strikes).
> since I guess it could be easily automated

Certainly at the add-on level, as I presume this is how https://addons.mozilla.org/en-GB/firefox/addon/tab-memory-us... is implemented.

If feeding this back to use as a general performance metric, you would have to be very careful to make sure you were measuring the same thing each time which for a complex application could be difficult unless you are only measuring on initial page load (which might not be as useful as you are hoping for). Without this control you would need a lot of results to make any average or other analysis of the metric meaningful.

For controlled tests run by yourself in dev (rather than a performance metric for your app in production) it could be useful though.
It depends on your goal. If you want to show more ads for longer, it's the local maxima of profit. If you want to provide something like a quick reference guide, then yes, it's terrible. Instead of optimizing for some arbitrary metric you should focus on doing whatever you're doing right.

Behavioral analytics on user interaction can help you fix a bad design but shouldn't matter that much.
Yes, there are cases when a sub-60 resting heart rate is bad. For the vast majority of people, lower is better. The athlete's heart undergoes remodeling that is similar in outcome to pathological processes (eg, cardiomegaly and cardiac hypertrophy), but is in fact healthy, not harmful.

https://en.wikipedia.org/wiki/Athletic_heart_syndrome

I have personally found that average RHR per week tends to correlate strongly with my own physical activity. With consistent workouts, I can get down to 47 bpm. When my RHR gets above 55, I know I've been slacking off for too long (or it's an exam week and I'm stressed).
So you would like to work a place with no code review? You will be happy to hear that many many workplaces have no code review at all.
Do you have an expression for greping subdomains?
Hard to read? The sum total of the script fits on 2-3 pages at most, no single function exceeds about 10 lines, if you have trouble reading and reasoning about that code then something is wrong.
Researchers Used Sonar Signal from Smartphone Speaker to Steal Unlock Passwords
I think their main claim was to improve the experience and reduce the costs for the users and the medical professionals.

The rest of your comment is a straw-man argument as it misrepresents my words as I never even implied that they had a great idea or tech or anything like that. Sorry I cannot defend words that are not my own.
> when is crypto TRULY going to be decentralized and not just limited to agents with immense mining power and exchange?

You don't need to mine in order to use bitcoin.

> There is no easy way to convert existing assets into crypto without a framework

You can buy bitcoin at numerous places, or ask for it in payment.

> where do I find someone who can transmit value into my wallet so I can start transacting?

The same place you find someone who can transmit value into your bank account. Employers, customers, family and friends.
Extra hot publication kit №124 – FUNNY VIDEOS (VINES and COUBS)
44 now. This is one thing I noticed as I get older, I can map most new / novel problems to a variation of something I have seen before. Same with most new tech, much of it isn't really new but a variation on something from years ago.

Have you got an example of a novel situation that you would expect someone old to get stuck on?
Surely equality means equally capable of bad deeds as well as good?
Hello Hacker News community!

OP is here.

My company have been working on lots of react native projects recently and we have extracted some sort of a starter project that helps us to bootstrap development of mobile applications.
We decided to give back to the community and open sourced it.

I would appreciate your feedback and comments!

Thank you
Evernote cuts price as report suggests it’s in a ‘death spiral’
By that definition C89 has generics too (arrays and pointers). The whole point of generics is that they are user definable. Everything else is hairsplitting.
When you give blood they usually hide the bag, I suppose for the squeamish. But that drives me mad, just waiting there not knowing how much more to go - It's a natural progress bar!
So, I’m one of Theranos’ biggest critic, since I’ve had a weird fascination with the company since someone on HN pointed out the bizarreness of its BoD back in 2013.

I think if Theranos hadn’t gone all-in on its fraud it still could have had an impact. One area was that it was actually pushing to change laws (I know it did this in Arizona) to give individual control over blood testing instead of requiring people to go through doctors and corporations. Another area was price transparency. Much like the Surgery Center of Oklahoma (https://surgerycenterok.com), it was listing all the prices for its tests right there on its website. These 2 things alone would be a major advancement in the US. Forget the mini blood tubes.
It would be a world without governments, where no one could be dominated by anyone else. And yes, arguably impossible. I do like Vinge's bobble novels, though.
If this happens a sad chapter, I'd think that this is more cheerful than the utter horror that happened during the 20th century.
> under the threat that they had used my webcam to record me watching porn

If I ever get such threats, I'll just repost them on my Facebook page and offer to send a video for free to any interested party. Watching porn and masturbating is normal human activity, how in the hell people end up paying ransom that, unless they watch child porn or something?
Or the EU could declare that business with NYT means you can't do business in the EU. Which would probably hurt a bit if ad networks jump off (I doubt Google wants to deal with this).

There are more than two options there, many more.
I think policy just lags social acceptance.

It never used to be legal to be homosexual, for example, then it became socially acceptable, and then a generation of politicians had to die off, and then it became legal.
The nice thing about C++ and templates is that you can implement a scheme exactly like this without special help from the compiler :)
I swear, everybody on HN thinks they are a "high performer". In reality, most of us aren't. Unions mostly only cover the lower hierarchies (like IG Metall does) while managers (even middle management) have to negotiate their salary by themselves.

So, if you are a "high performer", you will easily get a management job and get all the money you are able to negotiate.
This is untrue by counter-example: I'm white and back in the 80s got pulled over on US 80 headed down from Donner Pass to Reno in blowing snowstorm for having a non-working headlight. The CHP officer looked at my license, looked at me, and said, "Hey, I went to high school with you, I'm Steve" and after a few minutes reminiscing sent me on my way with a friendly "make sure you get that light fixed".

See, the system works! /s
I’ve been working in Germany for a decade and I’ve unfortunately never witnessed this so called German work ethic.

I do hear about it a lot specially when talking about my home country and ironically during coffee breaks.
Show HN: Run servers out of browser tabs over WebRTC
Depends on where you are. In my country it is still a privacy violation and therefore illegal to look into mails of employees, even if private use is completely disallowed.

That is now relevant in the whole EU for example and it is a very sensible rule.

Maybe I am the conservative here, but I wouldn't expect my provider and mail provider to look into my private communication. Even if it is 100% their infrastructure.

Maybe we shouldn't expect it, but having a legislative insurance certainly helps.
Taking Things Personally
> "Anonymized". Just with the data posted above, it seems like it'd be pretty easy to correlate the data to a person. And auto-enrolling everyone who buys a health product is not an excuse to mine all their data.

Hospitals are allowed to anonymize protected health information in their medical records to mine the data (they can distribute it too) without the patient's consent. PHI is way more protected than consumer health information, which is what Fitbit has.
In my book 135 km/h for a car designed for the city is fast
I do sincerely hope, wish, and ultimately assume [1] that intelligent people (which is what I'd find fair to describe the people at Google who were supposed to work on "killer drones") do have high ethical standards. Of unintelligent people, its less surprising.

I don't deny the existence of people who don't have the same ethical standard as me though. I never claimed or argued those people did or did not exist at Google; all I was saying is that "only" 12 resigned. Who knows how big that team was.

[1] Else I get rather negative with my faith in humanity...
How old are you?

How many work outs or what frequency thereof does it take to notice lowering of your RHR ?
EFF tells Patent Office not to seek loopholes in Supreme Court patent rules
Chelsea Manning Continues Fight Against Unfair Hacking Charge
The WWW is fundamentally broken at this point, perhaps this legislation will completely destroy it and kickstart some other form of network.
Capitalism is basically over at that point when there's like 80% unemployment because most jobs are automated.

The idea of your survival based on a job is a terrible idea anyway.

I can't wait until this happens because then people will get serious about income inequality and have to figure out how to properly distribute the wealth that the machines create.
Given that brackets and the return keyword (and the function keyword!) are core parts of functions (a scope and a value to return to the caller), I would argue that removing these key parts of a function makes it harder for someone not familiar with ES6 to see that it is a function.

This reminds me of Ruby's return-the-last-evaluated-thing-in-a-function semantics (which sadly Rust copied). Having to type one extra word is not such a burden that you should add cognitive overhead each time someone not intimately familiar with the language has to read your code.

If the argument is that only ES6 experts should only ever have to read or write ES6 code, then I would argue that any syntax argument is pointless because only experts can comment on a languages syntax -- and thus COBOL objectively has the best syntax and you cannot disagree unless you are a COBOL expert.
I actually liked the squiggles.

Also, once you've tried Whatsapp calls, Viber calls, Google calls... Skype is so much better.
Baker: simple tool for provisioning virtual machines and containers
I'm not German but I work in Germany. I work in an two floor office with >50 people; we're 4 people in our room, working more or less on the same projects, as a team, and we all have small children. When one of us is sick, they stay at home until they're not contagious any more. You're not only thinking about the people you're working with, but also on the impact of their health on their family members. This is both because of "common sense" and of a "practical sense": you don't want to infect other people and see them get sick (common sense) and you don't want to have your team mates missing, which sometimes makes your job harder.

I believe this is also related to the culture and the way the employee is protected by the law when sick. In Germany, you're not going to get fired because you were sick for, say, a week. Although I don't know all the details and subtleties of the American Health/Work System, I can say I haven't heard that many great things about it. Which, in my eyes, would confirm/explain why in the GP's example, their American colleagues work even when sick.