skysight-inc/HackerNews huggingface dataset:
Likely many more than 1000 children were infected.

That said, hopefully the government of Pakistan is embarrassed enough to fund free treatment for this population. With treatment and compliance, HIV-positive people usually lead long, healthy lives.
I like this bit of JavaScript for uniquifying an array:

array.filter((item, index, arr) => arr.indexOf(item) === index)

It works because indexOf returns the index of the first occurrence of the item, so you're asking whether this occurrence is the first occurrence.
Emails are easier to deal with as task items, and he probably wrote this before smart phones were a thing.

Also reminder apps for smart phones suck, just read some internet reviews, e.g. first half of https://www.ipitaka.com/blogs/news/does-your-calendar-remind....
>> If a barber used an autoclave, would it be acceptable then

If I trusted that the autoclave was properly used, of course. Same as the dentist.
I don’t see one either, which puzzles me. I only read on paper if there is no other alternative. This seems like exactly the kind of book I would hope to read in digital form, but I'm not finding it.
Use DocAssemble... it has an API and can fill PDF templates.
UINavigationBar with UISearchController Changes in iOS13
I have a folder on my mail server called “Dead”. If I move an email to that folder then all subsequent emails to the same address as the first one go into “Dead/Match”. It’s driven by procmail and a script.

When used with one-off email addresses you get a behavior that’s like unsubscribing, but without having to trust any “unsubscribe” links or processes, and also without having to edit any config files (it’s all driven from iOS Mail.)

1/ book your hotel using the email address $RANDOM@yourdomain

2/ receive booking conformation and enjoy holiday

3/ when you eventually get marketing spam, file it in Dead and never be bothered again.
Dude! I don't care about cookie scrubbing but great idea. Heard of any.run? I use that a lot but their sessions are a minute long. Will definetly try your service but I hope you clean up the UI if you want to charge for the service. I hope you can take in high demand because it's there.

Also: I specifically need a long(30min+) remote browsing session where I can interact with untrusted content in a specific browser and OS setting (most but not all of that is offered by any.run),your site is deploying VMs so I can't check it out now.
That's a way to loaded and bait like question. Why not ask for "the most elegant snippet" instead?

There are beautiful code bases like DOOM source or SAT solvers that are like super models beautiful. Complete and hard to improve. Marvel at from a distance.

There is beautiful code in the libraries everybody uses all the time. All the lib* code. Somebody to marry. Discover the good beauty over time.

And then there is the beautiful snippet of clever code at the bar, quick to love, but one you get to know him it's much more trouble than he's worth.
There is also an updated HD graphics mod, though I never tried it myself. https://sourceforge.net/projects/urquanmastershd/ But YouTube videos look promising.
Can Bill Gates Foundation help these kids?
I've been building this crontab since 1996.

How many phones have you gone through since 1996 ?
This is O(n^2) though
I saw a similar version in erlang (in Joe Armstrong's Programming Erlang) and agree it beautifully illustrates the concept of quicksort. Apparently, Tony Hoare came up with it when he took a class teaching him recursion (i.e. he was a student).

But the flaw you note unfortunately undermines performance... the "quick" in "quicksort".

Thus, IMHO it's a compelling illustration of the profound strengths and weaknesses of fp.
What Is “Gas” in Ethereum?
Don't they usually have disposable blades? The barbers in Melb I go to do.
There could also be a “clean the slate” streaming directive, which means “I started the query again, please scratch what got delivered already”.
Any specific ones that standout?
Agreed. Nix and Guix actually solve the dependency problem, Docker allows you to work around it. But a work around is better than nothing.
All of JS's list processing functions are pretty inefficient, since at the bare minimum each one creates and copies to a new array (as opposed to, say, Rust iterators). You use them when elegance is more important than performance; N^2 is fine when N is eight.
Seriously, I thought I received a knock-off when I first opened the package.
Notifications/interruptions don't tend to be at a good time and get swiped away, if you get an email you can check it at an actionable time, assuming you disable email interuptions.

It's easy to keep in git along with other configs so it survives phone refreshes without relying on third parties who are probably snooping on that data.
I don't know much about these topics, but the style looks very 1970s to me. Looked at the Wikipedia article on Wim Crouwel and it seems some of his typography was from the late 60s, so not far off.

https://en.wikipedia.org/wiki/Wim_Crouwel
Barbicide kills HIV and hepatitis.
That sentence explains perfectly well what it means by democratizing, and how is independent of the platform being tied to nvidia.
I think you are getting distracted. The real problem is abject poverty, and ineffective government. We could be endlessly horrified about what actually goes on in the world’s most disadvantaged places, rather than just what makes the NY Times.
That's also roughly the backstory of Niander Wallace in Blade Runner 2049. He creates synthetic farming methods to avert a global famine, which then gives him the clout to get the ban on replicants overturned.
Windup Girl came out in 2009, perhaps some inspiration was acquired for BR2049...
What's wrong is that it's not default, in Android at least:

https://support.google.com/calendar/thread/1699815?msgid=171...
I began coding in IBM/LCSI PC Logo. The first line of code I ever wrote was:

FD 100

That's the "hello, world" of turtle graphics in Logo. While probably not as beautiful as the several splendid examples posted in this thread, that simple line of code changed my world. I could make stuff happen in an otherwise mostly blank monochrome CRT display. Until then I had seen CRTs in televisions where I had very little control on what I see on the screen. But now, I had control. The turtle became my toy and I could make it draw anything on a 320 x 250 canvas.

The next beautiful piece of code I came across in the same language was:

REPEAT 360 [FD 1 RT 1]

The code above draws an approximation of a circle by combining 360 short line segments. It showed me how control flow can be used elegantly to express complex ideas in a simple expression. And then I came across this:

REPEAT 20 [REPEAT 180 [FD 1 RT 2] RT 18]

The above code draws 20 overlapping circles. The output looks like this: https://susam.in/files/blog/dosbox-logo-1.png .

At an impressionable age of 9, reading and writing code like this, and using simple arithmetic, geometry, logic, and code to manipulate a two-dimensional world had a lasting effect on me. I like to believe that my passion for software engineering as well as my love for writing code, sharing code, and open source development are a result of coming across these beautiful code examples early in my life.
Personally I like this one, although it only works for an array of primitive types.

const unique = [...new Set(arr)];
I think it could. It could log words for a certain amount of time, give a list of recommendations, and export it as a AutoHotkey file.

It would be a neat project at the very least.
I did the opposite. I looted and leveled for fun but didn't read the storyline and got powerful but stuck. Played a lot but never beat it. My friend got pissed at me for not reading the storyline! Fun times.
Except for the fact that virtually all of the available experiential data supports GP's take, and not yours.
https://github.com/kelseyhightower/nocode/blob/master/README... you're welcome
I'm not really convinced that key rotation is an effective mitigation. Sure, it helps with some classes of threats, but if you're worried about the ones it does protect from you should imo be worried about the others as well.

Like, it mostly protects against an attacker trying to get access from an old machine, but doesn't protect from a device with no disk encryption or weak disk encryption (likewise with key passphrase) being stolen outright within the month's window, or an old key being found within a month.
Best programming language(s) for blockchain software technologies?
Given that technologies based on C/C++ are vulnerable to security exploits, should future blockchain software be written primarily in JVM-based languages?
I'd estimate 2-3 weeks of actual rendering and coding, plus 2 years of having "I wonder how you could make a rendering such that..." bugging me at the back of my mind.
I totally get it. I've done something like it, browsing via RDP via ssh on a remote VM. A clone, which I can nuke when I'm done.

But it's been on an anonymously leased LUKS-encrypted server, connecting via Tor. Here, I'd need to trust you to actually scrub the data. And to keep others from logging it.

I wouldn't call this silly. As you say, it does protect users from browser-mediated threats. Better than a local VM could. But trust issues ought to at least be mentioned.
Indeed, if you know the people there we would be happy to talk. (Email's in profile)
The cognitive dissonance is certainly strong for any tech worker who cares about ethics, privacy, etc. Sadly it’s not a frequent conversation that I’ve had with many others despite having worked in SF for several years now.
The other advantage of the filter one is it can be stuck in the middle of a bunch of other list operations - map(), sort(), slice(), other filters(). Also, you can use findIndex() instead of indexOf() to match any arbitrary predicate, instead of exact equivalence.
What does it mean for a machine to “understand”?
That "togetherness" is valuable. That's what crossfit did to me and forced me to go even when I knew it was bad for my health.
Cities Are Built by Humans
It probably would be that simple. When you issue a 1099 to an LLC, it's not like you report the number of employees or even have to know how many employees that LLC has. Additionally, if that one man company is a C Corp, you don't even have to issue a 1099. So the state would have no record at all of you paying that company.

And before anyone says that a c corp is a lot harder to form, it's not really. A little bit extra on legal zoom and that's about it. Additionally, as an LLC, you can elect to file taxes as a C Corp. Which again, absolves the "employer" from needing to file a 1099 at all.
I wanted to experiment with VLC broadcasting over wifi for my workshops. It could reduce dependance on projectors, I encounter 1024x768 ones, as an Indian.
The only thing in my view that's making Silicon Valley darker is the clouds of smoke that continue to haunt us every year from fires and the only answer we have so far is to cut people's power.
But if "Ransomware, malware, virii, browser exploits, zero days" is what you are worried about, isn't it easier/faster to use local VM instead?

A short script which runs "kvm -readonly ..." (and a second one which does browser upgrades), and you have exactly the same functionality in the comfort of your own computer, but much faster, with video support, and not relying on the security of some remote service you know nothing about.

That said, I can see many reasons to run remote browser for other reasons -- zero-setup aspect is pretty useful, and the privacy is better than local VM as IP addresses are not shared. It is also a pretty great free proxy, handy when you are on those annoying networks which block some sites.
This is sad. They spend like 20% of their budget on their army and the army runs so much of their economy, and is on the stock market and owns stocks.

Not to mention all the F-16s and Mirage fighters etc costing like $20 million each

https://en.wikipedia.org/wiki/Pakistan_Army#Corporate_and_bu...

https://foreignpolicy.com/2019/03/21/poor-nation-rich-army/
Making open-source development work for businesses
Hi guys,

Wanted to discuss something that we've been working on.

Open-source software suffers from a tragedy of commons. Since the benefits are diffused and costs are concentrated, it does not receive the investment that's proportionate to the amount of value it generates for its users. Things really are in a bad shape.

Take your work scenario today. You start using an open source tool say, a cli based deployment library, only to find out that the library doesn't support config option while deploying nor can you customise it. Now, in order for you to customise it, you need to work on that library, submit a PR which might or might not get accepted depending on the activity in the project by their respective maintainers. All this, and now you have gotten far away from the actual problem that you were working on. Now, frustrated as you are, you switched to a paid library which does what you ask for but comes at a huge cost.

We come in at this point. You can get your problem sorted in the open source library at a fraction of the cost of the paid one and also save time at not having to think anything beyond your own business scenario.

Check out more details here: https://polyglot.network/about/

If you feel this might sound interesting to you, feel free to reach us out at team@polyglot.network and let's discuss the open source stack that you need help in.
Yes, looks 70s but is there anything wrong with that?
Excellent game, excellent article. Thanks for sharing.
I’ve never seen a residential building with a loading dock. Best you’re gonna do is an elevator down to the garage but that’s incredibly rare
It is difficult to get a man to understand something when his salary depends upon his not understanding it.
Oh, for sure. I know .filter() has it's place, so if you need anything beyond making the array unique, I'd definitely use your solution.

The one I posted just blew my mind a little the first time I saw it, so I love to share it. I guess I never really considered spreading a set.
People may be overthinking why the USAF flies the thing. If it's in active service, the USAF flies it once in a while. Otherwise they mothball it or retire it. Aircraft which just sit there don't stay in operating condition.
Most likely, it would be a legal zoom like company that allows you to easily form your own LLC, elect for c corp tax filing status and then generate invoices and send to the companies that hired you.
The Advertising Industry Has a Problem: People Hate Ads
It shouldn't be the workers job to maintain those ethics, though. Don't get me wrong I'm all for unionizing and all the benefits it brings, but it's not the worker's responsibility to ensure business behaves ethically; that's the job of regulation. They shouldn't have the option to behave unethically in the first place, and the determining factor should absolutely not be if they can find sufficient human resources willing to sacrifice their ethics to feed themselves.

I'm all for whistle-blowers of course, but these companies aren't breaking the law, and that's the core problem.
I've seen the Apple stack render dark mode apps crisply but Linux+poorer screens making the same apps headache-inducing.
It's impossible to choose a favourite, but here's a beautiful snippet, courtesy of Joe Armstrong [0]

universal_server() ->
receive
{become, F} ->
F()
end.

[0] https://joearms.github.io/published/2013-11-21-My-favorite-e...
Agreed that this is beautiful purely from the standpoint of how there is essentially no disconnect between the concept of the algorithm and the way it's expressed in code. It's almost the math/algo just translated directly into code (not commenting on the efficiency or other issues that may exist).
Nope. No problem here. Don't know why you would think my comment was meant to suggest it. I am presently a fan of many things from that time period. Very good decade for music, for instance.
Sometimes that could be used on purpose, for a banner etc. Having that struggle to decode it it makes it linger more in ones memory.

I find the presentation quite entertaining and visually stimulating.
Not always that. Because people.
Well yes I agree in principle but you as a worker voluntarily choose to work somewhere. Sometimes it’s only when you actually start at a job when you realize that there’s a disconnect between a company’s behavior and your own principles.
No, it's not acceptable. Still it's evident that it doesn't prevent getting a good job.
There appears to already be a mint scraper on github
I agree with you about rehabilitation over punishment. Why do you think we shouldn't rehabilitate attempted murderers?
I went through a phase of trying to automate _all_ aspects of my life. If I did a task more than 3 times, and it could be automated, I went ahead and wrote some scripts for that.

Anyone will quickly learn there is a trade-off between managing the time it takes to maintain automation and the time you would spend just "doing" said task.

After this realization, I started manually performing tasks, timing them, and storing them in a glorified spreadsheet. Any time automation broke, I timed how long it took to fix, and also put it in the spreadsheet.

I deprecated all automation tasks that did not save me either 10% or more time, or tasks that I found at least some enjoyment in (such as messaging my wife when I would be home, reading my child's school reports regardless of their result).

I have over 140 automation scripts in tact. Some are software-only (interacting with APIs, emails, SMS, scraping) and some have associated hardware (sensors attached, etc).

I have become obsessed with data being generated by this automation, so I now log all events and meta information where possible. This gives me pretty good insight on where pointless items exist in my life (which allows me to just stop doing them, automated or manually) and where important parts also exist.
Things are still improving, but I already find it quite usable in practice. Yes, precompilation can take a while, but once you start using the language regularly you hardly notice it, since you only need to re-precompile after installing updates -- which ends up being a small proportion of the time. Same with "time to first plot", since I almost always have a session already running already these days.
Those are all over the US, too. My apartment has Parcel Pending that couriers can put packages in.

Amazon has lockers, too.
> voluntarily choose

If my workplace tomorrow decided to implement things I ethically disagree with, I cannot in good faith say that I would quit. It's easy to say stuff like that, but when you have a mortgage, have family that depend on you, a home you've put tons of work into, hobbies you love... I mean you can call me a sellout if you want, and I couldn't really disagree, but why is that burden on me? To relieve the politicians of the awful work involved in doing their job?

My job is to write code. Their job is to write law. Why must I quit mine and jeopardize my livelihood so they can eschew theirs?
I find Manjoo generally pretty insufferable but this is actually a pretty solid review.
Wow! This is really cool. I just entered it quickly in a C64 emulator and it ran, creating a maze. Not sure, whether it would be a solvable one, but it is interesting to note, that the paths are really connected!
The irony of using Kindle Direct publishing but not putting out a Kindle version is palpable :-)

I have stopped buying paper books over past several years as they simply accumulate moisture and mould in the climate I live in and make rooms smell musty. It is incomprehensible to me why primarily textual books would be published without and ebook version these days.
"While early microkernel work saw significant performanceoverheads attributed to inter-process communication (IPC)and address space changes [15,16,20], such overheads areless significant today. Compared to the uniprocessor systemsof the 80s and 90s, today’s servers contain dozens of cores,which allows microkernel invocation to leverage inter-coreIPC while maintaining application cache locality. This ap-proach can evenimproveoverall performance when there islittle state to communicate across the IPC (common in zero-copy networking) and in avoiding ring switch costs of systemcalls. Moreover, recent security vulnerabilities such as Melt-down [43] force kernel/user address space isolation, even inmonolithic kernels [25]. Techniques like tagged-TLB supportin modern processors, streamlined ring switching hardwaremade necessary with the resurgence of virtualization, andIPC optimization techniques such as those explored in theL4 microkernel [29], in FlexSC [58], and in SkyBridge [44],further allow a modern microkernel to essentially close theperformance gap between direct system calls and indirectsystem calls through IPC."
plus paying for all the software patents
This quote perfectly describes my experience of raising the issues of values, ethics, and responsibility with colleagues at Facebook when I worked there.
Sorry for the incorrect interpretation, it felt like a criticism with the assumption that 70s is passe. I love a lot of 70s things as well.
Someone once posted a C program here on HN, where each line, even the comments, seemed to "line up" in 6- or 8- character blocks with a space in between. It made the whole program look sort of like a table.

I felt it was sort of like poetry. I unfortunately no longer have a link to it, and once looked very hard but couldn't find it.

I would be extremely appreciative of someone else saw it and had a link. If I recall correctly it was a type of interpreter, I remember it having code for parsing.
Laws generally come from practice: first "de facto," (by force) then later "de jure." (by law)

Those regulations will exist when there is less political friction required to enact them. When workers unionize, they take the first step into "de facto" practice.
A little dismissive for someone who works at Uber of all places, no?
In one of my first companies, InformAsic, we developed and shipped a small ASIC that implemented encryption for serial communication. The control was handled by AT-commands. And the parser and rest of the control functions was actually implemented in SW on the 6502 core in the chip. We clocked the chip at 33 MHz, making it one of the fastest 6502 clones in the early 2000s.
You seem to be searching for an empiracle argument that is devoid of all context and I’m not sure you’re going to get it.

Simply look at the situation and see if it passes a basic common sense test:

Coke produces billions of plastic bottles, many of which end up as pollution.

Coke produces billions of dollars of profits, none of which goes to preventing those plastic bottles from ending up as waste.

Coke’s company operators and shareholders make billions of dollars, of which none (or a negligible amount) of which goes to preventing said waste.

We all live in a world that is littered with plastic waste, which causes health problems and other horrible ecological problems, even if we don’t buy coke products.

Coke is directly responsible for creating a huge amount of this waste. They are not the only producer but they are the biggest and the biggest ones get held accountable for things. This is the way of the world in which human beings make emotionally bisased decisions.

Does this sound fair to you?
A neural algorithm for similarity search (2017)
Nobody expects to actually get useful power out of tokamaks. That's not their purpose. Tokamaks are a jobs program for high-neutron flux physicists, to ensure there is a population to draw on for weapons work.

Any attempt at actually generating power with one would destroy the most expensive parts in no time, leaving you with thousands of tons of radioactive junk.
I don’t have a problem with that on day one, but I do think you should start looking for a job in that situation. This results in increased costs via turnover which discourages unethical behavior, and let’s you do something meaningful without pushing the full burden to you.