skysight-inc/HackerNews huggingface dataset:
Anyone interested in weekly interview problems and detailed solutions newsletter
Hi friends,

I am running a newsletter that sends out 5-10 coding interview problems with detailed solutions in Go. My goal is to build a database of top 100, most frequently appeared problems that I think are the most valuable and effective to spend time on. For each one, I am including my thoughts of process on how to approach and solve it, adding well-documented solutions with test cases, time and space complexity analysis.

Let me know if you're interested in the idea. Here is the link to:

- its blog post: https://medium.com/@hoanhan101/i-am-making-ultimate-study-guides-for-mastering-coding-interview-challenges-3f88a228441a?source=friends_link&sk=999d12c966d910736764fefbc9b8a0d3

- the newsletter itself: https://www.getrevue.co/profile/hoanhan101

Best,
Hoanh
I don't know who you mean by "us," but while this distribution is somewhat top heavy, it's not something where even if the most destructive country took its emissions to zero, the world would be safe.

https://en.wikipedia.org/wiki/List_of_countries_by_greenhous...
> IRC network like Freenode

When was the last time ALL freenode servers were offline? I know about occasional netsplits but those do not affect all of their servers and freenode itself is still operational.
Blogc – A Blog Compiler
That link has a fun and informative video.
That averages to 4.4 miles per hour or 13.62 minutes per mile.
My comment above now no longer makes sense in he context of your edits, but I can't change it anymore.
Maybe don’t keep your Apple Card in a leather wallet, Apple warns
Reposted clickable links:

- its blog post: https://medium.com/@hoanhan101/i-am-making-ultimate-study-gu...

- the newsletter itself: https://www.getrevue.co/profile/hoanhan101
Maybe if he presented it to the Hacker News crowd, for which the popular opinion seems to be that anything less than 100% privacy is acceptable.

You know this, but plenty of people, including me, prefers free content to paywalls at every corner. That Google is ramping up efforts in trying to improve privacy while maintaining the viability of free content providers is very positive.

What's interesting anyway is what mechanisms they'll implement. I'm intrigued about the fingerprinting budget: how well will it really work?
God... reCAPTCHA needs to die. I refuse to use any websites that use it!
Indeed. There's been plenty of hand-wringing since the war, mainly by those who didn't live through it.

The savagery of the Imperial Japanese forces is well documented, as is their willingness to fight until death. It is difficult to imagine what the resistance involved in invading Japan would have been like.

The atomic bombings without doubt saved hundreds of thousands of lives on both sides. Further, since WWII, nuclear weapons have been a greater force for peace than anything in history. Let's hope that status quo continues...
This conversation was started about addressing the systematic problem of Google tracking users despite their wishes. You responded saying that could be solved through individual action. Now you are changing the topic to be about Google tracking you.
The legal maximum out of pocket cost for a calendar year for in network providers (providers who agree to a price with your insurance company) is $13.5k. You should budget at least that much for a childbirth in the US (in case of complications such as C sections and other common issues after birth), if you can manage to plan your child being born between ~May to Oct, as you can then likely have all your expenses be in one year, otherwise another year's out of pocket maximum will come into play.
Crispr editing DNA in human sperm
How does shared memory between processes on different chips work with something like UPMEM?
Big Data Is Transforming Property Market for the Better – Small Business Bonfire
Oh yes, one of the best books on the subject. Reads like a novel, but the physics side is presented surprisingly well.
"Wage slave" is a term that should return to the popular vernacular. It very accurately describes the relationship most Americans have with employment.
Here's the flatmap version with better formatting:

flatmap(lambda a:
flatmap(lambda b:
flatmap(lambda c:
(lambda d: [(a,b,c)] if a**3+b**3+c**3==d**3 else [])(
int((a**3+b**3+c**3)**(1.0/3)+0.5))
if gcd(a,c)==1 and gcd(b,c)==1 else [],
range(b+1, 30)) if gcd(a,b)==1 else [],
range(a+1,30)),
range(1,30))
And that's exactly the problem.. it used to be very hard to block just a few weeks ago.
Do you think any reform is ill-advised? What would for instance be wrong with giving each state 1 vote in the EC? Upon naive inspection, that would at least get rid of battleground/swing states somewhat.
Qt for MCUs – Qt Announces Support for Microcontrollers
Lets take Acid rain for example. This was a major environmental problem. It never got political. We determined it was the fault of coal power plants. We then fixed that problem with legislation. Acid rain hasn't really been a problem since.

The problem of politicization of climate change are people like Alexandria Ocasio-Cortez. She has declared that the world will be uninhabitable in less than 12 years. Humanity will be dead in 12 years.

Her fix? She wants to ban airplanes, boats, and cars(non-electric) this sounds rather absurd. A democratic senator from Hawaii asked her what she thought about what would happen to Hawaii. She didnt have an answer. Then she went further. They want to basically setup the various usual communist things. This is the real goal of the new green deal. Her own chief of staff publicly admitted the new green deal originally didn't have anything to do with the climate. It was entirely about pushing a communist agenda.

Which is why it was voted down unanimously in the senate.

They don't care about climate change, they are using it in name to push their agenda.
Bernie Sanders unveils $16T 'Green new deal' plan
You should invent that!
A prefetcher reduces cache misses by retrieving the data first; the number of memory accesses to get the data remains the same. [Though it may be through a more efficient pipelined operation].

How does a prefetcher reduce unneeded cache evictions? It fetches data that may not be needed, increasing cache evictions.

The only thing a prefetcher can do to improve power efficiency, IMO, is by increasing utilization-- if the processor stays 99% busy instead of 97% busy, the fixed portions of the power budget are amortized over more operations.
For my apps I'm not worried about abandonment. They are internal applications generally with no access from the web.

Also the code is solid enough where I feel I could maintain it if I needed to, but most likely it would get picked up by someone else.
Discussion of practicality aside, thinking "$bad_thing can't happen here because of $blank" is base exceptionalism that only results in creating a blind spot for yourself.
Some limitations are very useful for creating innovative art styles.

If Muslim artists weren't restricted from painting people and animals they wouldn't create the decorative motives they created. If early sound chips in personal computers weren't restricted chiptune genre wouldn't be created. And you can certainly make art using restrictions that aren't enforced on you - restrictions often inspire people and make it easier to create.

That being said while I love chip tunes and I like some old games made with pixel art I don't particulary like it in the new games, but that's just my opinion, lots of people have different preferences.

Also from gamedev POV pixel art allowed many modern indie games to be created which wouldn't be created otherwise. That's a plus in my book.

> Low quality collision objects?

Funny that you mentioned this - some collision detection bugs in starcraft 2 were introduced on purpose to mimic bugs in starcraft 1 because these bugs increased the skill cap (people learnt to abuse them to get ahead of their opponents and community liked that because it was another thing you had to learn to master the game). See "mineral walk" :)
I don't disagree with that at all and of course Jeff will do what he wants and is welcome to that. I just think the art direction is the encompassing unaddressed point that follows through the article despite the enumerated constraints. Also where he does touch on art direction the things he chooses to highlight are not why his games look bad. Particularly when he highlights games he grew up with like Ultima V which IMO still looks great despite being made with the constraints that existed in 1988. I'm also well aware that it hasn't prevented him running a successful business.

I don't think his liking his games art is a reason not to comment with my take on his blog post about it though.
>> javascript codebases become read only :-D

This is BS. I've built very large JS projects with hundreds of thousands of lines and never had this problem.
If your architecture is well designed and modular then refactorings are easy and localized to just a small number of files.
On the other hand, TypeScript encourages spaghetti code which makes refactorings span more files; complex active instances end up getting passed around all over the place and makes your code brittle and fully dependent on TypeScript to make any changes.

TypeScript allows you to write a lot of spaghetti code and allows you to delay having to think about architecture until your code is a total complete unmaintainable mess.

With JS, you will discover if you architecture is a mess a lot sooner and you will learn more and adapt faster.
YouTube deletes German election spot that cites constitution for hate speech
> AIM as something to grow up with was ehhh. I kind of wish it didn't exist so I would have been more forced to push my parents to drive me to friends houses instead of hogging the family computer

So I was young enough to not know a time before instant messaging as I graduated from high school in 2005. Are you saying that I'm missing out because I never knew what it was like to not have AIM constantly at my fingertips?

Because I see kids today are absolutely missing out because they never have to be bored and make their own fun.
I think you have an absurd understanding of history if you believe all of this decolonisation happened nonviolently. Almost every independence movement relied on the threat of violence. You are using the civil war itself as the starting point, a brutally violent regime change. Ireland gained its independence from Britain in no insignificant way thanks to violent means. Most African nations gained their independence through violence. And even India was not just freed through a barefoot bespectacled man walking around singing kumbaya. Simplifying it to mere acts of civil disobedience is grossly misrepresenting how complex the situation was.
You have a good point, distance running is the exception as far as I can tell, in that this has actually happened more than once now, I can't remember his name but the Australian ultra marathon runner who came out of nowhere from being a shepherd or something and more recently this article, people showing up with a new technique doesn't really happen in other sports like this, let me know if I'm missing some examples though, other sports tend to have far less variables I think, ultra marathon runners make a lot of decisions that sprinters and velodrome cyclists don't have to or at least they don't have as much of a cumulative effect.

But then i do also think the guy above you has a point in that we can be pretty much certain based on the biases we know about that we're probably overlooking some excellent people in big sports just based on failures in our selection methods. There's no reason that children born in September should be better at sports and get better degrees, but they are over represented because of the way we select kids for sports based on school year, if you're older in the year at school, the benefits carry for a long time, and we've probably missed some potentially incredible athletes because of minor circumstances like that which caused them either to not get into it or not get the training they need. But that's not quite the same as them _currently_ being better outside of the competitions. Still bothers me though.
Any localized event that kills over a thousand inviduals points to a systemic problem, not an individual problem.

Transportation, communication, education, and to some degree even culture are also infrastructure.
"Patients will wear a 4-kg external controller pack that contains two rechargeable batteries (providing about 5 hours of operation each), although they can also plug in directly to a power outlet."

This seems like a potential issue.
تحميل برنامج موقع فوتو فونيا Photofunia 2020 لتعديل ولتركيب الصور
Somehow I don't think you know much about medieval serfdom. While the serf was not allowed to leave neither was the lord allowed kick the serf out of his land. The only way the lord could "fire" a serf was to sell the associated land in which case he would simply become the serf of another lord. By contrast employees are not attached to their place of work and are free to leave. The two systems have nothing in common.
When you lose weight, where does the fat go?
Even as someone with half an electrical engineering degree (three advanced calc courses, linear systems, difeq and linear algebra) and a full CS degree I still find myself sort of overwhelmed or unsure of where to start with ML. Even with a lot of guides. Sometimes I find that guides are too application focused and don't seem to be of much value outside of the specific thing the author built and then structured the tutorial around.

Do any other people here with college math / cs experience (granted I wasn't top of my class) find this stuff overwhelming or daunting?
Swatting Is a Deadly Problem–Here's the Solution
The wikipedia article for the "Korean axe murder incident"[0] is a pretty good read (and a fairly small article)

[0]: https://en.wikipedia.org/wiki/Korean_axe_murder_incident
To be fair, Apple's California naming is off-putting even for people in the US.
someone advocates for policy to limit the emissions of vehicles produced by the automotive industry, but happens to drive their car to work everyday, that's not hypocrisy

Agreed, but if a person who owns multiple homes and flies between them says it, it’s clear that they want you to believe something that they don’t believe themselves. The climate movement really needs to divest itself of celebrities because they do nothing but undermine the message.
gnaritas, you're "dead." Looks like it started on the "Why do you host offensive content?" thread.
There are plenty of recipes out there. Molasses is a popular addition because of its potassium content.
> almost barefoot shoes on pavement is the most honest thing you could do while practicing barefoot running

I'd second that, though I'm a very casual runner.

I grew up running in flip-flops ("hawaii slippers") & once I tried to be more serious about it, all my running injuries were from a Nike which let me run faster than I should have. I liked the fact that I was doing faster 5ks, but invariably the longer runs would injure me.

The effect of barefoot shoes was to slow me down to a more "normal" pace and a normal stride - if I was running with bad form, my heel would hurt before my knees and my bridge would hurt before my shins.

The pain comes early and fast, which is sort of like a strict teacher when it comes to running form.

It's been seven years of barefoot & zero-drop shoes, with almost no knee or shin injuries. I'm way slower, but I feel happier, because it feels like I'm floating up hills instead of pushing myself up.
I would love that Atom plugin, wow

How to get started making an Atom plugin? Would love to collaborate w/you or others
Thanks for the opinion. I feel the same way as the parent poster - this thread is fairly horrifying, particularly as someone who has spent the past couple of years on personal growth, particularly improving my fitness and sleep.

Always been on the fence, keep hoping I want to have kids some day, because I sure don't want to go into it with a negative attitude. I don't want to "miss out" and regret having lived a childless life when I'm 70, but I sure don't want anything about that lifestyle today. My wife seems to be much the same way. We always talk about "some day, if we have kids.." but nearing our 40s, some day doesn't seem to come.

I absolutely believe it must be rewarding in a way I cannot imagine -- just as most 'worthwhile' pursuits that take time and effort and learning and growth are. And precisely because the benefits are non-obvious (I don't really enjoy anything about being around children). I've found raising pets to be far more rewarding than I could have imagined, so I'm sure children must be 100 or 1000x that reward.

But, just like I don't need to take on every challenge the world has to offer (someone else can die on Everest, others can become passionate about their skydiving hobby), I'll pick and choose my challenges.
`~>` This operator is a devil
Our youngest daughter screamed something terrible for months and months when she was a baby. There was a period of maybe two months where I thought I had permanent hearing loss from it.

Went to the doctor and turned out that I had a cold as some point and the pressure in my ear never equalized back correctly, which meant the ear drum couldn't vibrate right. A couple weeks of allergy medicine seemed to fix the issue.

Around that time though, I bought a pair of ear muffs and wore them every time I had to put her to bed or change her diaper. Amazing. Highly recommended.
It's ironic I interpreted the sentence wrong given the topic of the article.
I'm on day 1101 of running daily, on average about 7k per day, mostly on pavement, in vibram five fingers. I frequently do very slow or very short runs (think 2k) when I feel that I need it, it's all about listening to your body and noticing what's just regular wear/tear and what is injury territory. I rarely stretch, but I focus a lot on running form and making sure to mainly load muscles but not joints during running.
If the developed nations figure out how to live sustainably, India and Africa can just do the same.
That's not entirely true. There are fuel cells which work by oxidizing blood. I can imagine that they are not efficient enough at this point, but it's a start.
Ad blocking users wouldn't be affected by the study at all.
It's useless to try to judge that pace. It depends on the terrain, which is hard to get a feel for from afar. We can assume there's elevation and uneven terrain, but to what extent?

But first out of 500 ultra-marathoners from 12 countries means it's probably a very good pace.
I think the Cambrian Explosion alone stands as a refutation of Darwin's theory as it is commonly understood -- i.e., as a random process.
This is random, but did anyone get interested in programming due to Furcadia?

I played it in late elementary school and you could write your own levels -- I think they were called "dreams" -- that people could visit with all kinds of conditional logic.

You know how as a kid you'd sometimes daydream about your future? I daydreamed that I would later become a computer programmer and be able to look back and my messing around in Furcadia was my start. For some reason I thought being a programmer was a fancy job that was somehow out of reach.

Now I'm a computer programmer... and yeah, tooling around with computers in the 90s was my "start."
I would add that cows (or whatever other animals in the farm) don't have any idea about saturdays, sundays or hoilidays, they want to be fed (and in the case of cows need to be milked) every day, sun, rain or snow.

And it is not so ancient (medieval) as it may seem, it depends a lot on the country and the actual area.

I am told that the family (a very large one, composed of some thirty-forty people) of my great-grandfather (born in 1860 or 1861) lived in a farm (near but not so near to a village) in a remote area of the Apennines and they made one trip each year (with a horse carriage) to a village some 60 km away, on the seaside, to buy salt.

Besides that, all they actually bought "outside" were matches and some kerosene (or lamp oil), some steel/iron tools and glass and clay tableware, all the rest, including furniture, soap and candles was created/manufactured in the farm, including shoes[1] and clothes (they had wool, linen/canvas, leather) .

An older brother of my great-grandfather was semingly the first one to buy (circa 1865 or so) a rifle to go hunting, so you can add to the list gun powder.

[1] what was used largely at the time in farms were wooden clogs (or barefoot) , shoes were reserved for special occasions only
No, "not nasty brutish and short". And not "everybody suffered a short lifespan" either. As we have just seen.

What is true is that many children died young. Beyond that they lived almost as long as we do.

If they had modern medicine then the numbers would have equaled out. Heck, with their superior diet they may have lived even longer.

So the question is, do we need to work long hours to have modern medicine?
Slack was probably the last straw that broke aim. We used aim internally at aol for work related messaging up until slack came out and people started using it one team at a time. It got to the point that so many teams were using it that aol bought an enterprise license for it and that was basically it for aim as a product.
I hadn't noticed that angle, being fully invested in getting kids of my 256-color lawn. However, I feel a little more sympathetic towards Vogel; consistently making money in the games industry is borderline impossible. If, as he suggests early on, he is supporting a family with his small business, investing more than the absolute minimum in art, particularly when he has proven his business model, must look like a serious risk. Cheap art, and he knows he can recover from a failure; blow a lot of money on art, and the game sucks anyway, and he's finished, and has to go and get a day job, and post cantankerous comments on Hacker News during his lunch break. I wouldn't wish that on anybody.
For layoffs, severance is common.

For other terminations .... there should be a performance improvement plan in place and you should have seen it coming for a long time.

Only the most severe, egregious situations should result in a off-the-cuff, surprising firing.

[I'm not saying that everyone lives up to this standard, but it's the way it should be.]
The article is an enjoyable and novel intro to philosophies regarding the underlying value systems that we optimize for as a society. That is intellectually interesting to me.
Just like Search was cancelled after 2000 or Maps or Youtube or Android ? Keep peddling the HN narrative.
That is a surprisingly good result. It literally changed my perception of those screenshots from "that is some gross and sloppy artwork, I'm keeping my money" to "hey not bad, I might buy that"
> People aren't idiots, you don't move to urban factory work (as bad as it was compared to modern day) unless rural life was much worse.

Rural life was worse not because rural feudal tenancy was worse than urban factory servitude, but because the technology advances which made it possible to support the latter also simultaneously produced a population boom and reduced the total (not just per capita) quantity of rural labor demanded, producing a whole lot of surplus rural labor.