skysight-inc/HackerNews huggingface dataset:
> in plain js it doesn't seem to work that way. I'd do <root-elem>.addEventListener(), but I'd run into the problem that the event.target would point at the exact element that was clicked on instead of the parent element that I wanted to register clicks on.

Unless I misunderstand, I think you might be looking for "event.currentTarget". event.target is the element that was clicked on, event.currentTarget is the element that has the event listener attached.
Jim also said to be smart about what things you want to change.
Back then there were essentially two major ideologies in the minds of people, neither was proven to work yet: Fascism or communism.
To predict that one of them might win, is not exactly a prophetic thing to do.
This is like predicting today that socialism will "win" in the US or that capitalism will "win".
How  to Make Everyone on Your Team a Marketer
Unless the language supports first class environments, and you're binding to that. (Like Common LISP, Scheme, Lua, ...)
That is what I did for the shields.io logo: https://raw.githubusercontent.com/badges/shields/master/logo...

Unfortunately it is still a bit big. Simply converting it to SVG would probably be smaller. I'd welcome a simple tool that does that!
I'll probably be ~36 by the time I complete a PhD in CS. Should I be OK in terms of finding jobs at hip companies upon graduation (big 4, etc)? My areas of interest is in ML, algorithms but I'm completely OK with normal software development positions.

Reason I'm older is I decided I had a passion for it in my late 20s / wanted to do research, but had to go back to school to take classes before enrolling into a PhD. Hope my age + PhD wouldn't hinder me for software development jobs?
Isn't the main thing that if a person derives wealth it's because they created it and took a fair share? My main beef is between people adding real value and people using the system to appropriate value added by others.

I think if we fixed the above most of the inequality of opportunity would melt away. It's the rentiers who are the problem.

That rentier activity could be being a large-scale landlord and extracting labour due to a monopoly on housing. It could be by being a banker and having the state build a system where if you win you win and if you lose everyone else pays (and let you build a system for the landlords). It could be by making an incremental improvement to a technology and then claiming a monopoly via patents over all knowledge since Faraday.

Let the rich kid who became a dentist and works for 50 years fixing people's teeth do his thing. Rentier activity is what is hurting poor people.
nVidia has it. All they did is close off the drivers completely and not listen to kernel devs. Seems to be working out for them very well.

Is that the lesson we want to give to companies?
Subset sum is NP-complete (https://en.wikipedia.org/wiki/Subset_sum_problem), so wouldn't this imply that P = NP? Hence, I don't believe it.
I agree with the spirit of your post and I think it's good advice for someone within the range of 'normal' mental health.

However I think telling someone who is depressed to 'suck it up, buttercup' is unhelpful and potentially dangerous.

I was never properly diagnosed, but I have suffered with what I now think is depression for long periods of my life. Believe me, I told myself to 'suck it up' every single day. And my continued failure to 'suck it up' became another stick to beat myself with, and (in the warped mindset of the depressive) more evidence that I was completely, totally worthless.

Please don't ever tell a depressed person to 'just be happy' or 'suck it up' or 'snap out of it'. It doesn't work like that.

That's not to say the OP should abdicate all responsibility for his future. He should still do the other things you mention. But he should be kind to himself along the way.

One caveat: what's with the weird stigma (most prevalent, it seems, in English-speaking countries) about living with your parents? If you get along with your parents and they live in an area where there are jobs, what's wrong with staying a supportive environment and saving money for a while?
32yr old here. This is interesting to me, coming from times of 28kbps internet where the dude with a huge beard was a tech god.

Reading this and reading the posts, I'm aware of what occurs to be a trade off in young/age, in that young can be cutting edge while old tends to have wisdom/smarter about approach/worldlyness.

Seems shortsighted to think that young is better.
ReactOS: A operating system based on the best Windows NT design principles
Having a kill switch for the Net is an unbelievably bad idea.

There are two reasons.

1. If a political actor wanted to kill off a large group of people without the government calling in the army to intervene then it would need a definite window in which to do so. It would do whatever it took to trigger the killswitch. Then it could have its merry way.

If a government wanted to do this there is not much you could do to stop them. That doesn't mean you should extend the possibility to every other political actor!

2. If things are really getting bad for any reason, you already have the power to turn off 99% of the Net by turning off the electricity supply. The hospitals and other important infrastructure already have gas or oil backup generators. That this is an option with a risk of political/economic ramifications should mean it shall not be exercised much which is all to the good.

tldr; Don't do it. You'll get manipulated by people who are smarter and more dangerous than you are.
"And of course a musical work on the Apocalypse should also contain calypso."
Well life seems to have worked out fairly well for you so that's good. Not sure why you worry about your writing, seems fine to me.

How many machines are in your shop? Do you guys happen to use any software that monitors all the machines so you can see various charts and what not on uptime, downtime by reason, that sort of thing?
> and a banner ad for whatever was mis-classified from the background of the weighted average of the last 10 Facebook pictures you appeared in

Please install an ad blocker. uBlock Origin works wonderfully in Firefox for Android.
One huge thing the 'self-made' vs. 'privileged' classification misses is pure and simple luck.

Two equally competent candidates apply for the same highly selective position, but one of them gets the job and the other doesn't. Two people try their hand at the stock market, but one person buys in right before a recession, and the other buys right before a boom. You can claim that over a lifetime, luck evens out, but I don't think that's really the case -- there are key junctures in every person's life where luck plays a huge factor in their eventual path.

It's supremely hard to disentangle luck from all the other factors, because for every random factor you can always come up with an ex-post rationalization that gives yourself all the credit ('I built a better rapport with the interviewer', etc.), and successful people I've noticed tend to be unusually good at assigning themselves credit.

A classic paper that looks at how wealth is distributed if every time two people randomly interact, the richer one is slightly more likely to gain money [1]. Everything else about individuals is identical. The rich always get richer.

[1] http://link.springer.com/article/10.1007/s100510050249
That is what you are doing yourself now. Dictionary however states something different,

believe
bɪˈliːv/
verb
1. accept that (something) is true, especially without proof.
DDG > Google*

https://duckduckgo.com/?q=5s+timer

*at least when it comes to timers!
I would dearly love to see this lost work, if only because it was written by Dr. Knuth:

I spent a lot of time in high school reading books on orchestration, and I wrote a fairly good-sized work for symphonic band entitled Milton and the Rhinocerous. (It was a spoof of Peter and the Wolf, using a story by Roger Price that I didn't know was protected by copyright. I was blithely ignorant about intellectual property.) I proudly presented that piece to the band director, and he proceeded to lose it. As far as I know, no trace of that piece remains; and everybody, including me, is probably better off as a result.
Yup, no doubt he was acting approximately optimally for someone whose only goal was to gain power and who didn't have other goals like "don't be obnoxious". Most of us, most of the time, don't consider that a reasonable set of goals.

In the same way, someone who robs a bank is (perhaps) acting optimally for someone whose goal is "get money" and who doesn't have other goals like "don't break the law" and "don't take stuff that isn't yours".

And if someone sleeps with your spouse and then kills you lest you take revenge, then (provided they do it carefully enough) they may be acting optimally for someone whose goal is "sleep with that person I fancy" and who doesn't have other goals like "don't encourage people to cheat on their spouses" and "don't commit murder".

If someone says "X acted obnoxiously" or "X acted immorally" then pointing out that there's some unpleasant/immoral set of goals X may have had that for which their behaviour was optimal misses the point of the criticism, which is to say "their goals apparently don't include being a decent person". hellofunk wasn't saying that Schwarzenegger was ineffective but that he was a bad person.
For me, Racket is the sweet spot. It has a surprisingly good story for a lot of use cases, good included batteries, truly great documentation, static typing when you want it, the ability to make a redistributable native(-looking?) GUI app, better-than-python/ruby/other interpreted languages performance, etc.

I do like some of Clojure's syntactic sugaring, but I haven't yet decided whether it's worth it to me to use Rackjure (Clojure-isms ported to Racket).
None of these are deliberate idling to give the impression of work which is what the original comment was about.
You mentioned community. If you have a forum or message board where people can select their own avatars or post image links, then you'll enjoy the land of mixed content warnings.

Add the header "Content-Security-Policy: upgrade-insecure-requests" and the mixed content errors will go away, but you'll experience a new problem.

About 30% of images/avatars will break, and of those, roughly 10% of them will cause the page loading animation to keep going for 2-3 minutes before finally timing out. I presume this is due to some sort of server misconfiguration on their part, as most non-HTTPS sites fail fast.

Give it a few months and users will slowly update their avatars and stick to sources that support HTTPS (like imgur), but don't expect the problem to ever go away completely.
Are you aware that nothing of what you said had nothing to do with this case?
Arnold: I am not a self made man. Don't call me that. Nobody is.

You: Good article. Arnold is a self made man.

/facepalm
I build pretty simple sites on the public side - mostly restaurants and gyms and other small businesses. I've been moving away from jQuery for everything except my ecommerce sites over the past few months.

The back-end administrative panel of those sites is more complex. It uses Bootstrap, so there's some incentive to include jQuery there, though I don't always use features that require it. But this is an area I struggle with as well - there are so many external components, like date and time pickers, drag & drop image uploads, etc, that aren't easily replaced with vanilla JS components that have feature parity. Curious to see what others have to say about this as well.
I've been using blake2(b) for file hashing in some content addressable db stuff. What might be a scenario where i would choose Seahash over Blake2?

My main concern was speed and assurance that i would not see collisions. Beyond that, i am clearly naive on the subject.
> printing to stdout is much, much, much, much slower than printing to a file

False dichotomy. stdout can very well be a file. What you mean is that printing to a terminal is slower than to a file.
Since I started using a standing desk, my neck and shoulders are significantly less stressed.
> By the time this site was over 1000 pages, even on modern super speedy computers with flash drives, it took something like 5 minutes to publish

Wow, that's like 3 pages per second. Are static site generators really that slow?

I can't find any published performance comparisons, so... yeah?
probably rightfully so, if this is the sort of welcome they'd get.
"Take a mistress. Your wife will believe that you are with your mistress. Your mistress will believe that you are with your wife. And you can spend more time hacking code."
Discussion that came up the other week for those that missed it.

https://news.ycombinator.com/item?id=13057797
My interpretation is: it's exponential in running time, although slightly faster than 2^n (exponent specifically is 0.86n). However, it uses polynomial space, which hadn't been done before. Prior approaches used an exponential-size lookup table. So there is no implication of P=NP.
Just curious, what are your pinned websites?
Colours help, sure, but more differentiation makes them more memorable, and being memorable makes for more repeat business. Marketing wouldn't exist and be so successful if our brains didn't work like that.
I hope the kid gets admitted! That might be iffy, though: The newspaper report said that the suspicious package was "neutralized" by the bomb squad. [1]

[1] http://www.chron.com/news/houston-texas/houston/article/Bomb...
The problem is that wealth is socially generated, e.g. when people work in a factory, profit is created because it's more efficient for people to work in a factory than in their own homes. The fair division of that profit is a deeply political question.

One could argue that the workers generated the value, because without them the factory would not run. One could also argue that the owners generated the value, because they paid to have that factory built.

In practice though, all the generated value goes to the party with the most bargaining power, which usually happens to be the owners of capital, because wealth and power beget wealth and power.

Just look at all the rhetoric of the campaign and the right wing -- corporations and the wealthy are 'job creators' and so they deserve all the credit for people having jobs, even though capitalists need labor in order to exist.
Awesome tutorial that will make you fulfill more of linear-gradient() magic
But this was fixed with strict mode; this is like criticising Java for not having generics, even though generics were added ages ago.

You can still assign/use global variables in the browser, but like the parent says, this is the browser's fault - having to accept old and badly-written code for compatibility reasons.
Apparently Hugo 0.17 can achieve 1000 "rendered content" per second.

https://gohugo.io/meta/release-notes/
They don't solve it in polynomial time.
I'm a 42 year old technologist who just got laid off last week, and very much dread age discrimination. Although I'm told that I look about 8 or 10 years younger than I look, it still scares me. And, funny enough I'm about as energetic - or very close to it - as I was when I was 22. Beyond all the great notes that the blog post's author wrote, I think the parts about "exude energy...it’s crucial to be spirited." really hit home with me. Especially now with my current situation, i appreciate this blog post!
And on that note, has anyone seen any benches for blake2 vs Seahash/Metrohash? I'm not finding anything so far
Sorry, looking at the paper, they aren't claiming a polynomial time solution, so I retract my previous comment. They just claim "faster" than previous, but still exponential.

The previous best was O(2^(n/2)) time and O(2^(n/4)) space, which they improve to O*(2^(0.86n)) time and polynomial space.
Uber Will Ban You If You Break These New Rules
Caveat: I'm old and fat.

A few years ago, I had knee surgery and could not sit with my leg under the desk so I moved my keyboard (Microsoft Natural Ergonomic 4000) to my lap. No less convenient to switch between keyboard and mouse, it's hands off either way.

A couple of years ago, I went to a laptop (Lenovo Thinkpad) as my primary machine. I also use my laptops in my lap. With the pointing stick, the where to put the mouse question simply went away.

Since I went to keyboards in my lap, I experience significantly less hand fatigue, neck strain, etc. These days the laptop allows me to sit in any comfortable chair with my feet up (my Office chair is an Ikea Poang and ottoman).

A price is multiple monitors...partially a matter of me just not bothering to set something up. I mitigate some of that with Xmonad as my window manager and a relatively 'big' laptop.

I did the standing desk for about a year a few years ago. Configuring everything was kinda' a pain in the ass. The best single change I ever made was a $40 Microsoft Natural Ergonomic 4000 keyboard. Microsoft has had a lot of employees spending a lot of time at the keyboard. Under similar circumstances IBM designed some great Thinkpad keyboards that lived on through to the 3rd generation of Intel Core powered Lenovo versions. (I don't know about the new chicklet style keyboards in the current generation).

Anyway, good luck.
Please let me know what you think and if you like the content, make sure to subscribe for the upcoming video series that I'm working on.
Thanks for the detailed reply.

If, at 5'10, I am experiencing problems related to desk height, I can only imagine problems are worse for those shorter. I wonder if there is a correlation between height and these kind of problems. Standard desk height seems to be designed for someone who is 6'2.

I was considering adding a keyboard tray, but I'm thinking that I mostly use my desk for a keyboard and mouse, I might as well optimize the desk for that use rather than having an add-on for that purpose.
It's still exponential ( O*(2^(0.86n)) ). If anything, it might show that Exponential Time Hypothesis is wrong, but I don't think it's the case here. (As far as I know there is no "constant keeping" reduction from subset sum to SAT).
Foes of Russia Say Child Pornography Is Planted to Ruin Them
I think it’s more about not appreciating experience enough as opposed to discriminating against age. I’m 31 with 13 years professional experience. I’ve worked as an employee, contractor and as a single person start-up. Last year I interviewed for ~10 jobs in SV and I was rejected for all of them. None of the jobs valued my experience enough to consider my asking salary to be worth it. I make ~$300K USD contracting and was willing to take a pay cut to ~$240K to work at a big company and for access to big problems. I found out, via a friend, that one of the jobs I missed out on was due to my asking salary. They ended up hiring a guy with much less experience for ~$120K for the position. A year later and the project failed due to lack of experience costing many millions of dollars. I wanted them to succeed and I know that I could have done it but I’m not going back to $120K - at $300K customers only let you work on important stuff, no busy work. This story gets repeated over and over. There is a culture problem that doesn’t value experience. It’s not my problem because I'll go to where my experienced is most valued; it’s SVs problem because it results in failed projects and wasted money.
In case you don't know, there's a book called SICM Structure and Interpretation of Classical Mechanics (by Sussman, SICP author). Similar idea, physics + computing, except it's a scheme library. Google it.
My experience has been that if you've got the chops, you've got no worries at all. Also, fashion is fickle, but right now you'll have people beating down your door to hire you if you're skilled with ML and algorithms.

I am in my 40s.
> Seems like a single occurrence of "eval" should both fail that automatic review

You're not wrong, but there are difficult customers with money to consider.
100 Ad Network platforms for advertisers and publishers
> can you not see the extension

If you see a file that's called "something.doc", can you tell whether it's a flyer for someone's holiday party versus another sample of that malicious RTF that's been going around this week? All the extension does is let Windows put an icon on it and dispatch it to the right application, and if the application supports multiple file formats it does the actual identification by the file header.
That's a common belief about Ayn Rand, but it's not correct. As long as they enjoyed helping him, or at least wanted to help him, she would not have objected in the slightest.
Yeah, it seems like a tool like that wouldn't be hard to build... hmm... :)
Seems like they could now afford to have the author consult on the project.
I'm still having a hard time understanding why adding a black pixel doesn't work. I understand 0x008000 + 0x000000 = 0x008000. But if I were to add a drop of black paint to a drop of green paint it would surely change the color. So not sure where that analogy breaks down.
Not to mention the influx of medium posts telling them if they specialize on one single framework, they can get a job after a few months of training.

The interesting thing is they are not lying: You'll get a job which will last until the new library de jour arrives.

Maybe this is how the job market answers the high demand. I personally have no idea.
Mastery comes from Failure
I would. That's the same price as a year of hosting an entire VPS instance with 1TB bandwidth a month, 40GB SSD storage, and 512MB of RAM. And for what? A completely automated process that loads a page on your site, verifies a META tag is present, runs an openssl command, and prints the output to a webpage for you.

So for that $50, you can double all the specs on your server, or get a little green lock in your URL bar. And don't forget, we're not all in the US. I know a guy in Venezuela that doesn't have $50USD to spend on an SSL certificate.

I understand it costs money to run a CA. But if Let's Encrypt can run one for free, then surely so can Google, if they're so gung-ho on 100% of the web being over HTTPS. If you want that to be a reality too, you need to back free wildcard certificates. Otherwise you'll never be able to deprecate HTTP.
Those are... pretty darn good examples, actually. Thanks!
You know what's funny about that quote? It was actually intended as a clever dig about Robert Hooke's height[0]. Newton and Hooke had a longstanding feud and this was another shot in that war. The quote itself is much older with the oldest known attribution from John of Salisbury, but it's possibly older still.

[0] http://www.aerospaceweb.org/question/history/q0162b.shtml
Interesting to see that everyone here is so eager to assume that the article is right. The article might be right, but it's also just gossip.
Thanks, I may switch partially to a standing desk, but I do wonder how much of the gain could be achieved with a correctly adjusted sitting desk.
The Future of Fundamental Physics [pdf]