skysight-inc/HackerNews huggingface dataset:
I had no trouble getting a phone number and bank account. China Construction Bank was straight forward. They only ran into a few issues with the characters in my full name. They had to create a legal name for me in China. It took 2 hours for everything but I walked out of there with an account a debit card, access to their services via an app on my phone. They really made sure I was all set.
We are possibly many decades away to "execute" entire human genome and verify that edited code does not introduce other bugs. A bad mutation can spread in to population and cause damages that are too expensive to contemplate. The reason evolution has been slow is very likely because genome is so complex and it takes time to test out mutations. One can probably accelerate this process by throwing in simulation utilizing immense computing power. But until that happens we probably don't want to edit ourselves.
How my house went a year without buying stuff we don't need
Computer Therapist
Don't get me wrong. Leaving isn't worth it yet. Still quite a ways off.
Yes, you need a Chinese bank account for AliPay.

You could give RMB's to a friend and have them transfer you money to AliPay from their AliPay account. This involves your friend needing to go to their bank and deposit your RMB's into their account though.
> How about “stop being actively hostile to people”. Most rural areas are populated by anti-people people. ...

I don't buy this. Have you ever been to some of these places (let alone "most" of them) or are you just repeating self-serving urbanites' stereotypes? Villeinizing rural folks is a pastime as old as history itself.
Why not both at the same time. All you need is a language with compile-time execution:

auto fizzbuzz(size_t n) {
return iota(n)
.map!((i) {
if ((i % 15) == 0) {
return "FizzBuzz";
} else if ((i % 3) == 0) {
return "Fizz";
} else if ((i % 5) == 0) {
return "Buzz";
} else {
return i.to!string;
}
});
}

void main() {
// enum here forces compile-time execution
enum fizzbuzz100 = fizzbuzz(100).join("\n");
writeln(fizzbuzz100);
}
RFC 8493: The BagIt File Packaging Format (V1.0)
Fastest? We need benchmarks to show that. I can see this being slower than traditional approaches on systems with slow memory, tiny CPU caches, and compilers that don’t do constant string folding.

You can also replace the array by a single string. That may or may not be faster, depending on CPU and language implementation. I think it likely is (rationale: the code writing the array to stdout either does multiple write calls, or builds up the string in memory and then does what the code writing the string does. The code writing the array need not load the string, but it needs to store the array, and that won’t be much smaller, even when it shares strings)
I had both WeChat and AliPay. I found that most vendord accepted both equally. Very rarely did a vendor only accept WeChat.

However, every person has both AliPay and WeChat and they use both.
I just modelled a 3d-printable version of the "tube hidden inside handle" design: http://incoherency.co.uk/interest/pythagoreancup.stl

It's not printed yet, but apart from the excessive overhang at the top of the handle I think it will work.

Side view at 50% opacity: https://img.jes.xxx/2003
Delphi 1 running on Windows 3 11 demonstration by David I
Yes but that was a considerable period of time ago (in relative terms).

Also it is almost directly the result of what the western powers (and Japan did) in that period that we have the incredibly strict ethics regime around medical research to this day.

I think when it comes any of this stuff the https://en.wikipedia.org/wiki/Precautionary_principle is the best framework we have at present.
Space probe Osiris-Rex makes closest ever orbit of smallest ever object
Some of these may be really arty, but IMO a functional bus shelter need to have:

* Protection from weather (both sun and rain)

* Protection from wind

* Some sort of privacy or seclusion area for women or children who have to wait alone

* Comfortable seating for long waits

* Space to put your bags or shopping without having to have them on the ground.

* Provide a clear view of approaching buses

Amazing how many architectural 'designs' miss some of these simple elements.

The only thing the simple concrete bus shelters in MY small Australian town have to distinguish them is paintings by local school children and artists [0], but at least they meet most of the above criteria.

[0] - https://www.abc.net.au/news/2016-06-08/darwin-bus-stops-pain...
> This is false, you cannot open a bank account unless you
> live in China (work & residence proof required).

This is completely false.
That is completely not what this is about, but your comment made me laugh.
https://en.wikipedia.org/wiki/Detroit:_Become_Human
Lady Be Good (aircraft)
Alex from Near is here, the author of the post. Would be happy to answer any questions.
In the US. Undergrad degree included CS. Spent a few years in software engineering industry. Left industry to pursue a PhD in computational science. Returned to industry right after completing the degree. At a hedge fund for 4+ years now. Dunno if that counts as "switching". Anyway...

I love it. Interesting problems with demonstrable business impact when you find a good solution. Software in an environment where robustness can be critical but, too, overpolishing work can be full of opportunity cost. A chance to keep reading/using academic literature. I hit a conference about once a year. Great coworkers from a myriad of backgrounds. I can afford to have a family, to spend time with that family, to give them a nice quality of life, and to save for the future. I have been lucky/blessed/etc.
Is Dr He a scientist or a medical doctor? I don't think even in China scientists get to muck around with patients. If he is a medical doctor can we stop calling him a scientist.
Why is Apple allowing this?:

“3.1.1 In-App Purchase: If you want to unlock features or functionality within your app, (by way of example: subscriptions, in-game currencies, game levels, access to premium content, or unlocking a full version), you must use in-app purchase. Apps may not use their own mechanisms to unlock content or functionality…”

My app was previously rejected because I had to built in In-App purchasing.
Former EMT. If you called in that you had suicidal ideation and had the means to harm yourself, it would be treated like a hostage situation, where you are both the hostage and the captor--especially if you have a weapon like a knife or gun.

I can see few situations where they would send only an ambulance. The closest is if you said you simply overdosed on pills. However, at this point you need to go to the hospital. The ambulance has no ability to force you if you change your mind. Police would likely be sent along to make sure you didn't change your mind.
So let's say that that's a component that displays a user's username - how do you make sure that its view is always up-to-date, whether the user is logged in, logged out, or another user's logged in?

Virtual DOM is not just about componentWill/DidMount/UnMount. It's when updating the view when a component's inputs (props) change that Virtual DOM shines.
This reminds me of the old jokes: "If Microsoft built a car..."
Let's Encrypt and certbot have made my sysadmin life so much easier by allowing me to manage certificates within the terminal and without having to deal with annoying CA UIs that try to sell you tons of stuff you don't really need.

And all that for free!

If you are a regular user, please consider donating to the cause: https://letsencrypt.org/donate/ You can make a one-time donation or set up a recurring one.
How is this relevant? Pouring liquid into a Pythagorean cup does not lead to two-phase flow?!
Create stunning logos in seconds
Got a PhD in Europe and later moved to the US for postdoc, then visiting asst. prof. then tenure-track asst. prof. All of these were very positive experiences, teaching- and research- wise.

I switched to industry while in 3rd tenure-track year and moved back to Europe, though the topic is the same (nonlinear discrete optimization). Most of the work is software development.

Enjoying a better paycheck and working 9to5 Mon-Fri (rarely had a non-work evening/weekend while in academia) but the research is still great and I get to publish articles and go to conferences. Miss teaching a lot and clearly I can't pick my own research topics, but the switch was definitely worth it.
Linux containers are 'just' processes that run directly on an existing Linux kernel all together. A kernel feature called namespaces gives these processes their own view of memory, the file system, etc.

What's being described in the article isn't a conventional process. Rather, the article describes using Linux's KVM virtualization capability to launch a virtual CPU that is running another kernel. A virtual machine is like an emulator - hardware being simulated in software. The article is describing how to launch that VM, and how to build a minimalist kernel that runs inside it. This is similar to the setup that one might use in a college operating system course to run an under-development guest kernel on a host system. The under-development guest kernel can then run processes of its own.

(Since the design of this mini-kernel contemplates both a kernel mode and user mode, I would not call it a unikernel. The article’s guest kernel also isn’t Linux, though it seems to be aiming for Unix compatibility, e.g. ELF format)

Namespaces have a long history in operating systems, by the way: processes have had their own 'memory namespace' (aka virtual memory) in OSes since the 1960s. Modern Linux namespaces extend that concept to other aspects of the system like the file system, network, process ids, user ids, and more. (File system namespaces also have a long history in `chroot`). One kernel runs all these processes and implements the namespaces that keep them separate from each other. 'Containers', then, are a type of process whose namespaces are configured to make it seem like that process (or process tree) is the only one running on the system.

You could think of the difference between a kernel and a process in terms of the API that each one builds upon: a process builds upon both the CPU architecture and also API of the kernel that runs it (system calls like fork and open), while a kernel builds upon only the CPU architecture that runs it.

This particular kernel is also aware of the fact that it's running in a VM and is not designed to work on real CPU hardware; it makes "hypercalls" to the hypervisor as described in the article. Since virtualization is common, many real kernels including Linux have explicit support for being run efficiently in a VM, taking advantage of hardware acceleration and hypercalls where available. Most cloud computing environments run customer code in this type of virtual machine, not directly on real hardware.
Small victories matter: the year in free software
You're not allowed to use other payment methods inside your app. You CAN require someone to separately browse to your website and sign up there, and incidentally use that same login in your app. Directly linking to the online payment form from your app is not allowed either.

This is how other apps like e.g. Amazon Kindle work
Ask HN: Is Facebook's revoke app permissions feature in the Privacy tab down?
Funny you call them prejudiced when, after reading this comment, it's clear you're the one who's prejudiced.
> Shame on us for shipping over 211,000 of these jobs offshore to countries like Malaysia and Brazil. Americans have an advantage in doing them because of a cultural understanding of what businesses need and a more convenient time zone.

> When some of the Beckley students asked me what more they should do to bring tech, I joked that they would be wise to open up a few more Pakistani or Indian restaurants.

So the idea is one should not be a valuable tech employee working for a US company from abroad, they should come to the country and wash the dishes for a few years first? No, thank you.
How may I ask is MSFT a top tech company?
Thanks, yep I should've double checked for typos.
How may I ask is MSFT a number 2 company in AI?
When I was a developer at a well-respected company, the managers treated me with a combination with disrespect and contempt (when they were not outright ignoring me). I switched to academia, government and the non-profit sector; my pay went up 3X-fold, and my talented colleagues praised those problem-solving abilities that I developed over the course of my commercial career. My advice to you; f*ck industry! Its a petty pointless prison where you’ll never do anything worthwhile. Switch to academia, government or non-profits in order to work and projects that actually have some positive impact on the world. Only then will you be treated with respect.
I am (perhaps naively) wondering whether a blockchain can be sharded
hierarchically instead.

Each shard works like a channel like in the Lightning Network and the channel can have sub-channels, this means the channels all have their own blockchain, i. e. they are blockchain shards. To verify a transaction from A to B it's like a tree walk from a tree node A to the other tree node B. First verify the channel A is in, then go to the parent channel till the common parent channel is reached then descend again to the partner B's channel, verifying on each step ascending and descending.
Regular reminder that "Europe" is a big place, including such countries as Switzerland where guns at home are a normal part of military service. Several other countries have strong hunting cultures too.
Ask HN: What is the best way to add authentication to REST API (for mobile)?
Newbie Question: What is a secure and accepted way for authentication and authorisation of REST API endpoint for mobile and SPA's? A google search usually yields JWT but from what I know about JWT, it's complex and doesn't support revocation of tokens easily.
Sometimes you survive, like Taffy Holden:

http://www.historicracer.com/aviation/accidental-fighter-pil...

Not drunk, and not just a mechanic, but still!
Selenium: Storing Data Efficiently
This brainfuck implementation is super neat:

https://codegolf.stackexchange.com/a/148958
A Hotel Room Hacking Spree (2017)
Can believe everything but the 3x salary increase
My first wife was an M.D. (and did not change her last name), and we occasionally received wedding invitations addressed to “Mr. and Dr. Aaron Harnly”, which I found hilarious. The endurance of the patriarchy and its subversion, all in one line.
The Curse of Knowledge Bias
Matt Welch has written extensively about switching from tenured Professor at Harvard to Software Engineer at Google: http://matt-welsh.blogspot.com/, with the initial post http://matt-welsh.blogspot.com/2010/11/why-im-leaving-harvar... Matt's blog is great because (a) he writes it, (b) he's still connected to academia via program committees and (c) you can see how his thinking has evolved over the last 8 years.

And there are of course a number of other former faculty there too, but none that I know of who've blogged as much as Matt. In the systems space, off the top of my head: Amin Vahdat, Mike Dahlin, Steve Gribble, Craig Chambers, David Patterson, David Wetherall, Eric Brewer.

Personally, I've had way more impact (and fun!) building Compute Engine and Kubernetes than I had in academia. If in doubt, try industry for a summer or a year -- nothing we write can replace personal experience.
A directory of gzipped files is often incredibly useful, I've managed to reduce both latency and time it takes to load pages by just precompressing resources. It's more than incredibly useful on low-powered hardware like Raspberry Pis, some applications can be made to load in 3 seconds instead of 10.
Sonic R’s “Impossible” Fading
Which is a book where a character kept killing cute things by being too aggressive with them...
Feeling upper class culturally is nice and all, and drawing from the studies people done on stress management it could be very beneficially, but in the end if a person is dirt poor then that is their social economical class.

College is great, but here in Sweden anyone with the intellect can study for about as long they want to endure minimal income from the state, staying at a one room apartment and cook and eat the cheapest food. There are plenty of people here who been at college for 10+ years and have nothing to their name in terms of power and wealth. Because the state pay for college being in college don't convey any implied wealth. In Swedish culture, staying a long time in college can imply low social economic status.

The "self made man" is a myth. Economist, sociologists, and many other in other fields have reach that conclusion. Wealth and luck always pops up as the correlating traits to more wealth and influence. With wealth you can meet and get in contact with other people with wealth. With luck you can raise money. With money you can survive the eventual bad luck. It all goes around in that circle until you either end up in top or fall out.

You have 14k karma and I got 10k karma. I don't have 71% of that one person from HN that you got. No job offerings, no "social network" I can use to get attention for my projects, no followers or anything like it. My average karma score on comments is somewhere between 1 and 3. Life of a man is to be treated as unwanted unless you got money and power, otherwise no one want to even acknowledge your existence, or worse see you as a threat. Does that sound like the kind of thing that helps men exclusively succeed?
No

>I saw that spark in the Beckley [W.Va] students, many from coal mining families

It's quite the opposite: The joke was that the local US population should open those restaurants to attract tech talent to their towns.
The journey continues: Apple Watch, positivity, and improving mental health
10 Knowledge Base Software Best Practice Examples
> Times was giving Facebook crap that Facebook Live promoted/publicized suicides, so doesn’t quite compute that their attempt to do something about it is also bad.

If Facebook's algorithms were promoting suicide-related posts, then doing something about it might be good, but it does not follow that they should also take an active role in suicide prevention.

You are creating a false dichotomy, both things can be bad at the same time. E.g.: being a thief is bad, being a vigilante is also bad.
> People are unarmed in Europe, so shooting at them is almost never necessary.

Has it occurred to you that cause and effect are non-obvious?

AIUI part of the reason most UK police does not carry a gun is precisely a policy of de-escalation — if the police doesn’t carry a gun, criminals don’t feel the need to match their firepower. Inversely, the fact that American law inforcement treats their beat like a warzone probably contributes to an escalation of violence on the other side too.

Same concept different application: escaping prison isn’t a crime in Germany. You will still be chased by law enforcement to serve the rest of your sentence but the act of running away isn’t a crime unto itself. This means an escapee is likely to avoid committing further crimes on their way out to avoid worsening their sentence, while an American escapee, facing a large penalty for escape itself, is likelier to take an in for a penny, in for a pound approach.
It sounds so strange for a post-doc experience. What’s your field?
Show HN: RememberTheAPI – everyday items for every programmer
> On May 15th, the German Bundesrat adopted a similar measure.

Not sure what this is talking about, but DNA Paternity tests are most certainly legal in Germany there is even a right to have one done:
https://www.gesetze-im-internet.de/bgb/__1598a.html

edit: So I checked, what happened is that Germany banned genetic tests where there is no consent from the party a sample was taken from. In the case of a paternity test where the father, mother or child is unwilling, a court can instead force the test as knowing paternity has been decided to be a constitutional right.
I think that's generally called financial independence in English.
You mistook a sigmoid curve for a linear one.
Not to steal thunder from graph databases, I want to point out that recursive SQL enables support for graph-like data structures in a relational database. You write constraint logic in the form of trigger functions to enforce directionality and prevent cycles and so forth. With this, you may not need a full graph database for your work. It's up to you to decide which is the best tool for the work, but you can't make a sound decision without being aware of the tool in the first place.
Sucks that you had to go through this.

I don't equate the way that academia is run with science (nor do I think they hold a monopoly on knowledge as people would rather believe and prostrate themselves for as if it were an altar), I don't think I could be friends with people who are that simple minded, probably why I don't have many friends in the first place lol

Maybe I got lucky and never saw any of the relationships I had with academia, corporate world, or society at large permanent or all that interesting in the first place… I tend towards aversion and skepticism, and it seems like every wants someone else to drink the kool-aid they made… best I could do take a sip from what would kill me the least before I piss it out and move on.
That explains a lot, I was redirecting to the website from a "Subscribe" link in the app. Maybe if I just called the link "Sign up" it would've been a different story. Anyway, I like having the subscription option in the app, it makes it much easier for the user to sign up, without the need to go to the website and fill in the forms.
Like a game engine, Flutter draws every pixel, compiles to native arm code, so you can create a custom design across android and ios or use the supplied material design and ios widgets.

Also they had an event in London last month, if you don't know much about flutter, there is this 11 minute recap of that event.
https://www.youtube.com/watch?v=D-o4BqJxmJE
The fate of reduce() in Python 3000 (2005)
https://en.wikipedia.org/wiki/Hero_of_Alexandria

https://en.wikipedia.org/wiki/Heron%27s_fountain
In Canberra the older Action bus shelters were concrete tubes They were pretty barren but in the cold wind of winter it was great.
Looking at the photo's in the article I kept thinking, it snows there, won't they be so cold and freezing.
This is hardware virtualization. Containers are OS "virtualization". They offer different levels of isolation and features.
I think more to the point, the 30% cut for Apple isn't justified because the content isn't delivered via the App Store. 30% of in app purchases that are downloaded from the App Store is one thing, but 30% of Netflix fees is crazy when all Apple is doing is hosting the app itself. Apple isn't hosting Netflix's content, why should they get a cut of that?
"unusual" isn't necessarily synonym of "cool".

Looks like more dehumanizing postmodern stuff, also called : CANCER
New Year 2019: US military apologises for bomb tweet
Being from the Detroit area, I find many of the comments here naive as one can't compare Detroit to an average urban city.

To understand what Detroit is like, watch a film like "Escape from New York" or a WW2 bombing documentary.

There are areas with no police or fire forces.

Also, the soil around mfg. plants (and downwind) have metal contamination. The air quality used to be worse than anything in China today, with choking curtains of black and red soot and oxides which precipitated into the soil.

So do your homework, get your firearm certifications and spend some time there before any relocation or investment.

It is a great location if you want cheap industrial space or your own truck marshalling yard (true story) and you don't need city services like elementary schools. Check out "Detroit Steel" to see more:

https://www.imdb.com/title/tt6403968/
100+ UK AI/ML Start Ups Launched in 2018