skysight-inc/HackerNews huggingface dataset:
Explanatory comments that tell the reader to go look for other instances of this pattern are the key to success.

// AB-20200405 - Hi future developer (probably me),
// if you're copying and pasting this code, then
// please take an extra five minutes to locate the
// other similar instance of this code snippet in
// the codebase, and refactor both of these into a
// method first. The other snippet will have the
// same comment that precedes this one.
//
// Here's what this overly clever snippet of code
// is doing, so that when you do refactor it into a
// method in 2023, you don't miss an important edge
// case. Ta!
>This is the reason that software engineers need adult supervision. The fact that you think that modern infrastructure is physical and static displays a lack of experience. There is nothing static about modern cloud infrastructure.

Note how I said "more physical nature," meaning that it's closer to physical but not completely physical. Either way, all abstractions suffer from leakage from the physical world. Data and processes, while seemingly abstract all occupy physical and temporal space and this fact leaks to all layers of the stack. Thus, technically, everything in the universe including computation is physical and nothing is ever purely a virtual entity.

Honestly, you think I don't know about docker? You think I don't know about the cloud? "Infrastructure as code" oooh buzzwords, you're just using a shittier domain specific language to write something that you can also do with Regular code (such as python, no buzzwords needed).

Give me a break, what web developer doesn't know about the above stuff? None.

>I just had to deploy an API to ECS/Fargate (Docker). We had to determine the best combination of memory/cpu of the Fargate runtime environment and what hardware we wanted to give the ElasticSearch environment. I basically wrote a CloudFormation template (infrastructure as code) that defined the environment and then wrote a Node script that ran the CF template and passed in parameters...................

OK, the stuff you did isn't even usually what a "architect" does. It's devops. An architect just diagrams the boxes and lines and gives it to the devops guy to spit out working infrastructure or a POC. But that's besides the point...

Can you write your own programming language? Can you write your own database? Can you write your own Operating System? These are actual specialties (none of which involve "architecture"), not some garbage made up specialty like "architect." At the very least, if you want to be part of an actual specialty in the IT world you need to build shit and that shit needs to be HARD to build, you can't just do some easy diagraming of a bunch of stuff while acting like you have some superior understanding of the latest architecture pattern you can look up on wikipedia.
Back when I was preparing to apply to a FAANG, I built a game engine as my vehicle for practice. From scratch. Well almost from scratch, if you consider bare nekkid OpenGL to still be "from scratch".

There's tons of opportunities in a game engine for exercising and honing your performance chops and your algorithm chops. It also gave me an opportunity to learn a new language and programming model - the GL shader language. Building it onto a game helps to keep it real.

Best of luck.
> e.g. tests, type checks or other static analysis

You can do all these things for YAML or JSON or TOML or XML or INI or s-expressions or custom bytecode or butterflies or however else you're defining configuration data, too. It might not be present as part of the configuration language itself, but that's true of a lot of full-blown programming languages, too (especially the dynamic and weakly-typed ones).

If anything, a static configuration file should be easier to statically verify than a full-blown programming language because it's, you know, actually static. This goes out the window somewhat with YAML or XML (which do somewhat funny things), but once you have that hash table or whatever you've deserialized the config data into, congrats, now you can statically analyze it.
That is an interesting approach and you might actually be an outlier. However, in a generic context, the idea is that someone needs to take breaks to minimize the risk of exhaustion and other medical problems and it does make a difference in someone's overall productivity when they do not push themselves too much. So, to answer your original question "why would someone want to interrupt their workflow" the answer is: In general, even if someone loses a few of their valuable zoned-in epiphanies, they gain an overall well-being and retain their health, which makes them be productive all year-round.
Things to do in quarantine from a guy who lives in Shanghai
In your own words.
Thanks for your recommendation !I am pretty interested in web security partly because I want to start my own start up in two years, and I want to make sure my customer's data is safe.
I am also interested in compilers but just can't bear C++, so I plan to take this course :https://www.coursera.org/learn/nand2tetris2.
It doesn't limit languages you can use .So I plan to write the compiler by Racket(which can also sharpen my functional programming skill).
We use pandas for writing assertions on time series data collected from simulated and real firmeare. Eg:

- two signals X and Y should always be within 5% of each other while condition Z is true.

- signal A should transition from value M to N within time window t1-t2

Would love something in rust to match the rest of the infrastructure. Python also has plenty of warts with regards to packaging, cross compilation and deployment
Most teachers don't have to deal with toddlers and the ones that do don't have to do another job while taking care of the toddler. It is not such a big deal unlike being a full time housewife which does have to take care of toddlers while doing other house jobs. The economic value of a full time housewife is probably bigger than many of the jobs done by women in the office.
This is quite interesting, looking at chip technologies, algorithms, actual papers and industry processes together.

Neither debunking nor selling AI but a big picture.
The Jackpot Chronicles Scenario 1: Force Majeure
Rostelekom hijacks internet traffic for Google, AWS, Cloudflare, and others
With untested drugs, the risk-benefit is considered such that only people who are certainly going to die without intervention can be treated without incurring further liability. So only "terminal" cases get remdesivir in the first place.
Real talk though, at the point where people are building templating engines for YAML files, doesn't it become kind of obvious that YAML isn't powerful enough or expressive enough for at least some of the projects that are using it?

We've got a project in Python, but Python is too hard to read, so instead we have YAML. But YAML is too hard to write, so now we have YTT.

We've now taken a program that was written in one language, and magically transformed it into 3 languages instead :)
High school is out so I am learning SIMD instruction sets, like AVX2 and SSE, and using these to speed up Hamming/Levenshtein distance calculations in Rust. Preliminary testing shows a 20x speedup using vectorized SIMD operations! The end goal is a full Rust library for edit distance routines.

Sneak peek of the code: https://twitter.com/daniel_c0deb0t/status/124224838155819008...
Engineering manager and tech lead here. Today I made banana bread for the first time and it's delicious!
What is your background? By the time I lived in HK I found it more difficult to study compare to Mandarin in terms of speaking and listening. Though learning traditional characters seems more exciting.
But now I live in Japan, Japanese has more intersections between Cantonese rather than Mandarin
For clothing, the Berry Amendment ensures that the US has strategic capacity, by mandating that certain government purchases are made from suppliers that assemble US fabric with US labor. Maybe there needs to be a similar policy for medical equipment.
TurnTable was awesome! Forgotten about it, thanks!

Edit: didn't know about Live, but the original[0] one, TurnTable.fm with the avatars was really a fantastic place to be in the Internet. So sad to see it end, but maybe someone can revive it?

[0]: https://www.youtube.com/watch?v=FPCWSL52uVU
Reading various biographies!

Some of the books on my list are:
The Secret Life of Salvador Dalí
Doctor Goebbels: His Life and Death
I, Claudius by Robert Graves
The Agony and the Ecstasy
Lust for Life
Carl Jung Memories, Dreams and Reflections.
Stephen King - On Writing
I just started learning Lean today - what a coincidence. I have found learning lean difficult but gratifying. The post serves as further motivation.
Totally agree, he should accept orders from any org willing to sign a long term deal at his usual prices and run the factory 24/7.
More about Adobe Premier Pro. I've been doing video editing for a couple of years as a hobby, and I am continually amazed at the depths you can go in video production.

I'm also learning that you can only do so much in post. Sometimes, you just need a different shot.
> It seems that the actual problem might just be hospitals being stingy.

Hospitals have to stay afloat just like everyone else. If they go bankrupt, they close, just like everyone else.

If the government agrees it's a national security matter for us to have our own PPE production pipeline, then it needs to stop in. It can't expect private facilities, that have to make their own budget targets, to take on the cost of keeping up national priorities. That's literally what the government is for.
1. There are no chores or obligations only things someone wants to get done.

2. If you want something done that you personally don't want to do at the moment you need to ask. Every time.

3. Person asked has the right to refuse without any consequences or resentment. If person asked refuses to do it, you need to do it yourself or stop wanting it. If the person agrees and does what you wanted it's polite and effortless to thank for it. If person does something that's beneficial for you even though you didn't ask you should thank as well.

Those rules, even never openly stated, just distilled unilaterally by me resulted in happy domestic life of 14 years between two good persons. Those rules require no bookkeeping and promote positive interactions and instill sense of individual freedom. They are extremely flexible. They adapt easily to switching jobs, homes, schedules.

You don't regret how much you do around the house because it was either to satisfy your own wants or a direct result of specific request you freely chose to satisfy. You also don't resent that other people are doing so little because they do that either because you didn't ask them or they refuse many of your requests (in latter case, should you have that relationship?).

I believe it might be beneficial to apply those rules even to business relationships.
Let me start with the following caveat: I’m not convinced journalism’s quality now is worse than any time in the past.

That being said, I think content aggregators are partly to blame. I mean if you’re just reading the daily paper, maybe the front page has exaggerated headlines, but once you’re in the issue it can mellow out. But content aggregators are always trying to find the latest splash.
Sup baalz! Yes it's me. I read this site daily but never expected to see a post related to QWTF on it.
The mask situation in the US is truly fucked up right now. I've been finding and sending masks and other PPE to the US from China. Started out for friends and family then it expanded to friends-of-friends, then anybody. It has a really weird dynamic.

I've contacted over 100 hospitals. They don't want to help themselves. It's all about pushing people into a web form that fronts a bureaucratic system that supposedly allocates resources efficiently through a central clearing authority (never heard back from any of them), covering their ass in regards to regulatory requirements, and not allowing anyone to take advantage of them by charging money.

Individuals aren't much better. They've had so much conflicting information drilled into them that of the few who still think masks are needed by regular people, many feel so guilty about getting them that they can't bring themselves to do it. Or can't wear them in public because people will judge them for taking away from nurses even though the same hospitals the nurses work at have made it clear they would rather have their employees work unprotected than buy something not approved by the FDA or stoop so low as to work with someone who can't donate everything for free.

Have had way better success working with retired civic-minded business guys who can buy stuff through their local civic group and just get it done. It takes a surprising amount of almost outright harassment from these dudes to get the hospitals to either accept a donation or come up with a list of what they need and arrange funding, but so far getting hooked up with this type of person has been the only way I've found to get PPE (at least the kind that's still available) into a hospital.
Will you provide links?
Learning a new language, Received a Rust book for my bday so finally get around that.
> For clothing, the Berry Amendment ensures that the US has strategic capacity, by mandating that certain government purchases are made from suppliers that assemble US fabric with US labor.

Honestly, US government policy should be to buy everything that could be remotely considered strategic or useful in an emergency from US suppliers that use US labor and materials. Small exceptions could be made for proprietary things made by NATO allies, but even that stuff should really have a second source supplier located in the US.
You might think you are joking, but that's exactly what happened with sendmail. It's configuration file is so complex (and I think Turing complete) that people came up with a completely different configuration file to generate the configuration file.

Thank god I no longer have to deal with sendmail.
Philip W. Anderson, RIP
I highly recommend reading ETS, then 'Measuring and managing information risk', both talk extensively about this. Magoo has written quite a bit as well.

I really appreciate the mission support oriented perspective in ETS, something a lot of security practitioners could learn from.
If you're templating YAML, it just means that you don't know that you can generate YAML.
Dev ops is a very different world. Yes they can script, but that doesn't mean they will modify any part of your program, even a python config file directly. They will template it.

If you find yourself thinking that your config language isn't powerful enough, the solution is to either generate it, or to fix the program to not require a complex config file. There is a long term, 10 year cost to making config turing complete that I don't believe is worth paying. It'll save you time up front, maybe, but I certainly am not going to be impressed with having to modify your program just to "configure" it.

Finally, given that's the environment we're dealing with, from now on the rational thing to do would be to design config file formats expecting them to eventually get templated. Because that's how they get automated.
Not to undermine your dramatic point[1], but:

Most hospitals run at profit margins well below 10%. Median operating margins are in the vicinity of 2% (https://www.modernhealthcare.com/providers/operating-margins...) And for the last few years, expenses have been growing faster than revenues (though the rate of growth of expenses has slowed.)

Whatever you imagine they're bringing in, they're not.

Nor is their job to maintain the long-term health of the country. That's literally the government's job.

[1] Those numbers have a historical reason behind them, which people are either ignorant of or choose to ignore. The short version is: hospital prices are set as a part of the negotiations with insurers. Insurers account for the vast, vast majority of dollars going into hospitals, so their business operations are built completely and entirely around insurance dollars. Uninsured patients register as barely more than a rounding error. So while, yes, being uninsured in this context sucks, hospitals aren't gleefully rubbing their hands and going "muahaha, $5K for stitches!" They don't expect to see that 5K, they don't rely on that 5K, and they're not trying to gouge that uninsured person who's almost certainly not good for that 5K. That person has just fallen into the crack(s) in our healthcare system, which are more complicated than "evil greedy hospital", or "evil greedy insurer."
>The route leak was distributed quite well through Rascom (AS20764) , then Cogent (AS174) and in a couple of minutes through Level3 (AS3356) to the world.

Is there a reason why these can't be filtered at the ISP level? eg. Cogent knows that Rascom shouldn't be announcing those prefixes, and refusing to route traffic to them unless there's manual verification?
Regarding #2: whether you use the same buffer or a new buffer, you still have to actually write to the memory. The bottleneck at numpy scale isn't the memory allocation (mmap or whatever) but the actual memory writes (saturating the memory bus), and you need to perform the same number of writes no matter which destination array you use.
Don't listen to the downvoters. You're telling people the cold hard truth that they don't want to hear.
I suppose parametric amplifiers would be similar in the RF realm. At least we have distributed amplifiers, which I suppose could be an amplifying medium if you could make them fine enough.
Trying to adapt WFH as our team tends to work overtime and WFH simply compounds it.

On the other hand, trying to figure out what to learn after adaption...
In my experience, the unstressed "o" as "a" is only mostly true and varies by region. This is especially true for unstressed "o" preceding the stressed vowel.

For example, "молоко" is pronounced differently in different parts of the country. For me, the first "o" sounds more like a "ə" (think bOOk) around Moscow, and more like "a" further east.
I feel like it's something any sysadmin (prospective or veteran alike) or developer or other tech professional should know how to do and therefore try doing, regardless of whether or not it's practical. There are so many companies out there that do it in-house (usually with Exchange, in my observation, but a few with Unix-based setups as well) that it's useful knowledge even in this day and age of GSuite being the new normal.

I've been running my own mail server since 2012-ish. First on a Slackware VPS (through HostRazor; I don't know if they still exist) with postfix+dovecot, and then migrated to an OpenBSD VPS w/ OpenSMTPD+dovecot (on 1984.is). Email is enough of a "solved problem" that once you've got everything going it'll stay working for a long while (system issues notwithstanding), but there are definitely a lot of moving pieces when you factor in IMAP and SMTP and DKIM and spam filtering and antivirus and all that jazz. All useful things to know, of course, but if your motivation is anything short of "I want to learn how email works" you're probably better off letting someone else deal with that.
I think rather than trying to get org mode outside of emacs, you want to change the mechanics of entering emacs. In my head this looks like a subset of emacs (in the same way you can imagine notepad a subset of word, or contenteditable a subset of codemirror). If there were an emacs-lite application that just surfaced simple org mode functionality and bindings like moving the cursor or paging removed behind a settings wall, I think adoption of emacs would rise due to the lower barrier of entry.
For starters, this guy doesn't actually make the masks hospitals need. They need n95 masks; this company makes plain surgical masks.
Chiropractors are worse than fortune tellers. Their whole industry needs to be banned for fraud and making unfounded health claims.
Tesla Ventilator
This piece is amazing! Thank you for linking it.

This made in C sound? I have no words.
I was making a joke that you can either laugh at or cry at.
ArXiv: Portable Health Screening Device of Respiratory Infections
Indeed, this is basically correct. The premise should be rephrased as ‘corporations and the wealthy should pay their fucking taxes so the government can provide services.’
If the author discovered tslint/eslint he'd be surprised that this problem was long solved in the JS world :)
In the absence of police protection, how do people plan to prevent their gardens from being pilfered? Seems to me that both sets of skills are needed.
Been learning Elixir. I loved Erlang and Elixir smooths out a lot of the rough edges for me. Planning to use it for a web-based multiplayer RPG.
I think making medical claims is quite punishable if one doesn't have a license. This could easily be extended to include journalists and politicians as well as other areas of science (if the stakes are high enough)

It would work like this:

For each field there has to be a committee similar to the ones medical practitioners already have. If the behavior is not up to standards they do an inquiry and if need be the credentials are stripped.

Someone with credentials may sign-off on articles written by journalists and must do so for laws made by law makers.

Such articles and laws stay active for as long as the credentials are valid. If the person dies a new one has to sign off on it. If that doesn't happen the law is abolished automatically and the archived news article will have to clearly state at the top that such validation is missing as-of [say] march 2043. It may also solicit such review.

We can make a convenient api that allows people with credentials to stick our their neck to approve a publication. The list of professionals endorsing the perspective must be made available from the article or law.
New Tech Plus
> We've got a project in Python, but Python is too hard to read

You said the kind of scripting system you were describing was for cases where your users can write code.

If your users can write code, I don't see why Python would be too hard to read.

If your users can't write code, then, as you agreed, you shouldn't expect them to, which means the kind of system you were describing won't work. And that means you should rewrite your code so it doesn't need such a complicated configuration that it seems like writing code is necessary to express it.
I really need a self hosted solution. Ideally it would have an LDAP adapter so it could get login info from our internal active directory. If I were building public facing apps Auth0 would be perfect.

I don't think I'd be allowed to entrust users passwords to an external entity, despite the fact that they would probably do a much better job than I would at securing them. Also despite the fact that we trust every other external provider to store passwords...

I've been looking into keycloak.
Sure, that’s one point on the privacy-vs-utility spectrum. Is it the best one? Contact tracing to track the spread of coronavirus seems pretty high utility. If there’s a way to get a lot of that utility with a lot of (but not perfect) privacy, we should explore that, no?