skysight-inc/HackerNews huggingface dataset:
This "most teenagers stay up late" must be unique to U.S./European teenagers with access to computers, video games, mobile phones, internet and lax parental supervision. As someone who went to boarding school from age 14-18 years where sleep and wake up time was well regulated I can tell you for a fact that we all looked forward to sleep time. Most students preferred waking up earlier to study to take advantage of the quiet and focus.
You can pay for Tinder Gold and Boosts, which effectively does the same thing but for money
The point remains: most people have E2E chat, this article misrepresents that badly.
Long story short, parents need to consistently enforce strong rules regarding lights out time at an early age and eliminate excessive external stimuli as the day winds down. This idea that teenagers who can't make responsible choices are left to define their sleep time as well as other rules borders on child abuse.
Few-Shot Video-to-Video Synthesis
I won't comment on how quicksort-y this is, but the combination of pattern matching and recursion is bread-and-butter Haskell. A number of seemingly complex algorithms can be implemented in a similar way.

Having said that, it is elegant and clean and -- taken by itself -- does make Haskell very attractive.
That is a very weak argument, because it's not providing any explanation of why. It's just asserting that the reason is X, and this is very easy to do:

Why are they to blame for diabetes? Because they are manufacturing the product.

Why are they to blame for tooth decay? Because they are manufacturing the product.

Why are car makers to blame for road deaths? Because they make the cars.

etc etc.

It's so easy to trot out such near-slogans.

I am NOT saying you can't make an argument for these parties to having the blame, however such simple "because they make it" doesn't cut it.

It requres a more substantial argument.
Low latency development flow is slightly different in Julia. You should startup you process and reload updated code with revise. You won't have this problem. Obviously compilation performance improvements will be very welcome when they arrive but it's not a deal breaker because of this revise based flow.
My typing. In my work I tend to type a lot of the same things over and over again. So I automate that with AutoHotKey. Ctrl+Tab becomes RightAlt. Two words become entire paragraphs. Even simple things like "You're welcome" are just 'ywyw' or 'tyvm' becomes "Thank you very much". I know it sounds silly, but while trying to avoid RSI's, the less typing the better.

I also use autohotkey to help me remember to Linux commands that I don't remember of are awkward to type. Like 'awk1' becomes "awk '{print $1 }'" and then I can modify it as needed.

This has worked extremely well for me for many years. Ymmv.
If 900 children have HIV then how many thousands of other children have blood born infectious diseases related to this guy?
This reminds of locality-preserving hashes, which also are based on mapping a high dimensional space onto a low dimensional space.
Could make some song lyrics out of that, am I right, Ol’ Wheeler?
In 2014, we were going gangbusters. Then at 630am one day, I got a call
I mean not exactly surprising. We literally just had a measles outbreak in Brooklyn last year. Vaccination rates are basically a prediction market on events like this happening.
It's hyperbolic to proclaim ad tech doesn't add value, given that Facebook and Google manage to serve billions of happy customers with services subsidised by ad tech.

That in no way implies I approve or like what they do - I run ad block wherever possible. Just refuse to believe in falsehoods trendy among rich, Urban tech savvy HN-ers, whose reality is far removed from the truth. Some estimates peg the value of "free" internet services, like Google search, Gmail, Facebook, etc at $30/month. That's a lot of value, if you ask me
Not to mention humor -- there's a reference in SQLite to Golding's Lord of the Flies -- and I'm guessing more.
I've always felt we don't appreciate history very much in our industry.

I've been lucky enough to work and hang out with some of the co-founders of very impactful projects, such as OpenStack and Cloud Foundry, and there are so many stories I've heard that I'm sure would be insightful and valuable lessons for whomever is embarking on new ideas. And yet, we all move so fast, that there is no time to stop and write them down.

I'm glad BK did. UNIX is foundational to essentially all software-driven technology today, in one way or another. His book (along with Dennis Ritchie) on the C Programming Language made a huge impact for me as a CompSci student in the 80s, as did UNIX itself (Ultrix and DG/OS were my fist UNIX variants).

I look forward to read his book.
>Health officials now say that Mr. Ghanghro is unlikely to be the sole cause of the outbreak. Visiting health workers saw many cases of doctors reusing syringes and I.V. needles. Barbers take the same razor to the faces of multiple customers, they said, and roadside dentists crack away at patients’ teeth on sidewalks with unsterilized tools.
I find it frustrating that you not only failed to answer the question to which you responded, but you also failed to provide the name of the alternative platform you so condescendingly espoused.
That Google/Android tracks everywhere I go, sends me an email at the end of the month about it, and still can't silent/remind when I get into proximity of a location bugs the shit out of me.

That tracking that's so profitable for them is an afterthought when it comes to my own convenience.
Ask HN: What is the most beautiful piece of code you've ever written?
There's a good thread going.

"Ask HN: What is the most beautiful piece of code you've ever read?"

Along those same lines...
As a fan of Erlang’s pattern matching, the walrus operator feels like an obvious win.

I do, however, resent Python 3 for removing pattern matching on tuples in function heads.
In action: https://youtube.com/watch?v=m9joBLOZVEo
Even here in Melbourne the barber offers to use a cutthroat razor to give the neck a clean shave after a haircut.

He's always a little puzzled when I'm "no thanks" to the razor.
I would be happy to dwell on solving that problem for the next few centuries.
I was wondering too. His series of videos on YouTube from A9 on algorithms is excellent and has some very beautiful code but you have to work through the series to fully appreciate it.
> Engineers don't generally enjoy paying off technical debt, it's a chore. But they recognise that it must be done sometimes.

I disagree. Most engineers I work with like refactoring. It’s usually well defined work with clear metrics for success. It can also reduce daily pain if it makes delicate/messy code much easier to work with.

The problem with refactoring is that its only value is in improved execution of future projects. So it can be extremely valuable or completely useless. It depends on how likely the refactored things are to be worked on again.
Every time you buy your stocks for those individual companies you're accruing fees. You're also extremely susceptible to sudden loss due to lack of diversity. And even if you had the time, energy and knowledge to pick what you think is the best half of the Russell 3000, you still wouldn't beat the index - https://www.fool.com/investing/2018/01/03/warren-buffett-jus...
In some jurisdictions, auto-disposable needles are now required to be used to prevent things like this:
https://en.wikipedia.org/wiki/Safety_syringe
This is how poverty works - they probably genuinely have no way if getting the needed stuff even if they knew how important it is.
phoneix channels does the same thing and can fallback to long polling while relying on the erlang vm to scale out to many more machines.
Like this?
https://news.ycombinator.com/item?id=14664415
Autohotkey doesn’t get enough attention. Great software.
They may be running, no doubt on that. But if they don't "scatter" their operations and try to get monopoly or oligopoly of the market they'll in trouble because nobody will trust this "companies".
I do a lot of flutter development and I never really have understood widget makers like this because they always end up falling flat on edge cases. Does it really speed up development time to drag/drop some boxes around? Doing this is already just a few lines of code in flutter and the hot reload is pretty amazing fast.
Unfortunately, I doubt the children of Pakistan are getting a vaccine against HIV.
I Am from Hong Kong, Not China
I've seen a lot of Brian Kernighan on the YouTube Computerphile channel and he's very well spoken and interesting to listen to. Might have to pick this up.
We will possibly end up with nearly 1000 children killed by a single man.

A sobering reminder that our problems are, almost always, nothing in comparison.
At this point, nuclear power needs to be rebranded to be viable. The tech is fantastic but 50 years of apolcalypse porn has ensured people see mushroom clouds as soon as they hear "nuclear". A name change should be the first priority.
Slowing down aging so that we can live 500 years or so would be fantastic for long term investments.
The doctor says the parents of the patient were too poor to afford syringes; and the family was already starving in order to pay for the medicine.

Wouldn’t it be nice if patients could afford anything. Reality doesn’t work that way though, and some first world people just can’t imagine what real poverty is like (I can’t either).

> When Mr. Jalbani protested, he said, Mr. Ghanghro snapped at him and told him he was using an old syringe because Mr. Jalbani was too poor to pay for a new one.

> “He said, ‘If you don’t want my treatment, go to another doctor.’” Mr. Jalbani said. “My wife and I had to starve ourselves to pay for the medicine.”
Beating wc with less portable C
Oh wow this is a cool loop closure. I wrote a CHIP 8 emulator to learn stuff and my main test rom was this program. I walked through the bytecode very slowly as I learned and debugged and repeatedly wondered how the heck the program was so tiny.
This is a great point, which is part of what the original speech linked to covers: Education and it's associated achievements require time and resources beyond what schools themselves provide.

Regarding people in a similar economic situation to yours, I wonder if taking on a modest amount of low-interest debt early in life to fund a more comfortable and convenient life while you study and achieve in the free university system would be seen as a valuable investment? I understand the fear of debt that may exist, but with a free uni system available, it seems like such a great opportunity. Imagine if (as Rory Sutherland has proposed in one of his talks) instead of calling it a debt, it were named an "education tax" that you pay back a bit at a time after graduation?
What does measles vaccination in Brooklyn have to do with syringe reuse in Ratodero?
The problem isn't always knowing what to buy, but when to sell. For some who don't have the time of researching and rebalancing an index fund or ETF that does it for you is a good value prop.

Example where that strategy might run into problems - hindsight is 20/20:
https://pbs.twimg.com/media/EH6la6VWoAIC0cM?format=jpg&name=...
It does not. If it was that simple, there wouldn't be an entire trillion dollar industry based on it.
Woah, I never thought about this possibility.
Do you have a source on this figure? There are trees that live for thousands of years. How does their DNA preserve itself if what you say is true?
I use IFTTT to do a few things like this.

Mostly motivational sort of stuff.

I like this idea of asking myself questions.
seems great, but how to use it in other programming language? How to add my backend logic?
> Health officials now say that Mr. Ghanghro is unlikely to be the sole cause of the outbreak. Visiting health workers saw many cases of doctors reusing syringes and I.V. needles. Barbers take the same razor to the faces of multiple customers, they said, and roadside dentists crack away at patients’ teeth on sidewalks with unsterilized tools.

Sounds widespread, probably not just that one man.
thanks, checked it before, still complicated somehow
In a hard place at a push, syringes could be sterilized before reuse. Sterilization is not effective against prions but some doctors without supplies could possibly resort to it.

The story is gut wrenching. Children in poverty need free basic health services everywhere.
The problem is there's no way for you to pick the winners and losers accurately. Most people who spend their whole career picking stocks actually don't beat the market indices. It's not as trivial a problem as you seem to think it is.
Jesus. These are the medical standards of the early 19th century. On net, it's probably better than nothing at all, but there is so much further to go.
Dreadful. I wonder how this could be avoided.

A single individual from a developed country could help pay for some as basic as discardable syringes for a whole town.
What’s so special about US. Rest of the world is doing just fine right ?

Why does someone need to survive on tips? Why can’t it be part of their base pay?

What I hate about US tipping is that tips are a 15% hidden tax. It’s expected out of you even though the service is terrible. People get legit mad if they don’t get their minimum 15% tip.
It's from a user which seems to have had their comments killed immediately. I vouched for it so it should be fine now.
I know it’s crazy. https://doggielawn.com/ Wasn’t cheap either
I have a website that tells me when the next train leaves and if I need an umbrella: http://mazu.ai/

Probably a good idea for a startup actually, a 90s style "web portal" for urban commuters that tells you the weather, transit situation, and downloads some news articles for when you're in the tunnel.
My hacky solution to doing this for free is to use the iphone accessibility "speak screen" feature. With the high quality Siri voice downloaded, it sounds just as good as this. And in BookFusion it will read through an entire chapter without requiring you to turn the page or anything.

Not to be a "just use rsync" commenter, though. This is a cool service. Just couldn't justify $5 a book, myself.
Bash fork bomb (do not run, this will crash your system if it's not configured properly):

:(){ :|:& };:
Cfcxvvxvxbxbxsvdfvbxgbrf
If I recall, target date funds have taken quite a bit of flack for their fee-adjusted performance compared to a minimalist simple 2 or 3 fund fund portfolio approach.
Report generation that need to be done through some poorly designed web frontend (even to a point where you abstract the automation process and the return of the data as an api). Have been worked at various companies over the past decade, I found that this kind of automation is the most valuable.
Not at IPO but I did buy both at the beginning of the year.

AMD currently has me at a 94.32% return but MSFT is only at 51.33%. Not bad for the year though.
Ghhcnfcrbggbhfjjfjxhgnjf
Most of your cells are replaced every decade [0]. In replication, a fresh copy of DNA is created.

[0]: https://www.snopes.com/fact-check/does-body-replace-itself-s...
Back when HotOrNot was hot, there was a site like it for rating code snippets. The top-rated one, I think I remember, was a broken version of this sort function: it had left out the recursions or something (I don't remember exactly), which made it even more 'elegant'.

This wasn't the only case I noticed of highly-rated broken code there. It took me a long time to take this lesson to heart about especially slick-looking code of my own.
I don't think a year has ever passed since this was released without me doing a playthrough at least once. This article really shows why - it's about the story, so it's not so different than having a favourite movie you watch every year.

Of course, if the novel were based on my average game, the first half of it would be Gorath wandering around the middle of nowhere sharpening a pile of swords with hundreds of whetstones for a month.
Lexical Scanning In Go is a charming piece of programming:

https://m.youtube.com/watch?v=HxaD_trXwRE

A good debuggable piece of code explains what it is trying to do by being clearly written and conforming to a consistent and logical model. I don’t think I would ever have invented this type of lexer pattern in Go by myself, but would be very grateful to come across it in a code base I had to fix. Like Duff’s Device mentioned in this thread, it has just the right amount of cleverness without becoming inscrutable.

Also, if you’ll excuse some avuncular pride, my niece and I wrote some code yesterday. She asked me how many times grandma’s clock chimes every day and we ended up with the following Ruby:

2 * (1..12).reduce(&:+)
As a work from home developer, having a Peloton has been a godsend for me. I could never motivate myself to get out to the gym after work... the effect of that was a constant feeling of malaise and fatigue, presumably because I wasn't exerting myself enough. Since I've gotten the bike I use it 5-6 days a week and have made a 180* turn in my health- no more fatigue, malaise and poor lung capacity.

The Peloton is a solid bike, but it does one thing masterfully... it motivates me to use it and work hard at my personal fitness. I could care less if it's becoming the latest fitness cult. All I care about is my personal health and what gets me results.
Same with MSSQL. You can write stored procedures in C#
The copyright holder needs to prove he's the copyright holder, which is difficult to do without a paper trail to the creator.
This isn’t a political discussion board. Please leave me alone little corner of peace and sanity.
As long as the proper extractable=false options are set.

I'm doing a project utilizing subtle crypto and I'm, right now, doing an audit to ensure I've got that setup correctly everywhere.
thanks, I will check.
This! And the general lack of safety culture also plays a role in incidents like this.
Nothing fancy or involved at all, but in my personal finance spreadsheet, I dynamically pull in Zillow's current estimate of my home value (which I take with a grain of salt obviously).

I also use IFTTT to pause my robovac if my doorbell rings.

Right now I'm working on a Mint scraper to automate the rest of my personal finance data entry, but running into headaches getting Selenium to work properly on Catalina.
Right, portscanning won’t work on Wireguard. Port knocking can provide an additional layer of protection against an unknown vulnerability, even for Wireguard. Sorry for the confusion.
yeah, I checked it. Thanks!
Cool one liner! Here's some other languages:

Python: 2 * sum([x for x in range(1, 13)])

Haskell: 2 * sum [1..12]
> By comparing the specimens' ages and degrees of DNA degradation, the researchers calculated that DNA has a half-life of 521 years. That means that after 521 years, half of the bonds between nucleotides in the backbone of a sample would have broken; after another 521 years half of the remaining bonds would have gone; and so on.

> The team predicts that even in a bone at an ideal preservation temperature of −5 ºC, effectively every bond would be destroyed after a maximum of 6.8 million years. The DNA would cease to be readable much earlier — perhaps after roughly 1.5 million years, when the remaining strands would be too short to give meaningful information.

https://www.nature.com/news/dna-has-a-521-year-half-life-1.1...
Index funds don't try to time the market. Which ETFs are you thinking about? Hedge funds?
‘Silicon Valley,’ Darker Than Ever, Captures the Bleak Mood of Tech
> May I suggest picking up a outdoor hobby and living near a place that enables it.

OP here ... I used to be a competitive snowboarder, but that was many years ago.

Now I am pretty out of shape from sitting in front of computers for decades, but that's my own fault for not taking care of myself. It is funny you mention this though, because I currently live about 20 minutes from a ski resort and was thinking about a season pass to get back into it.
My job is to advertise on classified ads my local business: heard of OLX? I have macros in JavaScript that does that automatically (I only have to sit and write the captcha)
I'd have to think long and hard for the most beautiful code I've ever read, but I think the classic K&R "strcpy" comes pretty close:

void strcpy(char *s, char *t) {
while (*s++ = *t++);
}

It's short, elegant, and quite readable to the trained eye–a bit sharp too, but if you use it right it's quite functional.
C# Object Oriented Programming Principles and Overloading
Research suggests that happy employees are good for firms and investors
Snap: A Microkernel Approach to Host Networking
I think the problem wast that while XML was an OK mark-up language for human-readable documents, it was horrible as a structured, data interchange language. Unfortunately, that did not prevent people from trying to use XML for data interchange, and this caused widespread hate of it.
This 256-byte demo: https://www.linusakesson.net/scene/a-mind-is-born/
Yes, if you do it fast enough, before the paywall loads.
No way this phone ships on time and working
Hire a cleaner once every 10-11 days to clean my apartment and do the laundry. Its surprising how much time you have if you don’t have to do dishes.
IIRC Carmack didn't write that code, as brilliant as he is.
I would recommend SSL Lab’s tests: https://www.ssllabs.com/ssltest/analyze.html?d=free.cloudbro...

> This server's certificate chain is incomplete. Grade capped to B.
Over the past 5 years, Nike has gone up by 100%, coke by 20%, Verizon by 15%, and apple by ~125%. The s&p500 has gone up by ~50%.

So if you invested 100 in an index fund, you'd have 150, if you invested 100 split evenly in those 4 stocks, you'd have 165. Of course, if you invested in GE, you'd have lost money. And if you invested in Amazon alone, you'd have $500.
Biggest Data Breaches of the 21st Century: The Facts and Stats – CISO Platform
The paragraph before was far more perplexing to me.

> The doctor recently renewed his medical certificate and now works as a general practitioner at a government hospital on the outskirts of Ratodero, despite laws that make the reuse of syringes an offense that is not eligible for bail.

So he was arrested for it, then while still not convicted, got a new certificate and is back at it?
I wonder if it would be possible to build an app that's effectively a self-installed keylogger given access to your entire stream of writing, and after a few days, it starts to recommend candidate strings for automation with Autohotkey.
"But I guess we're going to let that slide": I hope you realize that, with that phrase, you are exactly doing to geofft what you complain about the journalists doing - you're distorting his words to make them say something that they didn't say.
I grateful you pointed this out to me! I'll upgrade the server when the load lightens a bit later.
I had trouble getting a DMV appointment. Wrote a script that would alert when one was available. The site wasn't busy enough to warrant building out the booking. Only used the script once.
"A change to the kernel stack takes 1-2 months to deploy; a new Snap release gets deployed on a weekly basis."
"pain points" is a good expression here. Some code inflicts more pain on the developer than other and the psychological effects should not be underestimated (=reduction of productivity due to lower morale).

I also like your approach of time-boxing the fixes.
Somehow--somehow--companies survived and even thrived off of static advertisements that generally targeted recipients by dint of the estimated (not exact) audience of a given publication and by signage controlled by community policy and with pretty strict requirements around night-time lighting and sound-and-nuisance in general. Somehow, those companies found buyers for their stuff. I know it's shocking, but they did.

It was better then.

This "oh but what about a sign?!" is some /r/iamverysmart strawman junk and I would hope that you would be better than that.
Even if you don't get HIV from the razor you could still get one of the forms of hepatitis.

I've never seen a barber with an autoclave for cleaning his equipment.