Better HN
topnewbestaskshowjobs
Log inSign up

nirui

2,087 karma · joined Jun 12, 2019 (7y ago) · 706 submissions

You know, I figured if I run this undefined behavior long enough, eventually one day that server will just jump down the shelf and fix the red black tree by itself.

[ my public key: https://keybase.io/nirui; my proof: https://keybase.io/nirui/sigs/oi8UKCZcYxKij-Pi43fDt35S1cHWmEKrFeMHZ4wW5Mo ]

Submissions

comment 5y ago · link · parent

I've been reading Chinese posts on the network, a lots of people are actually debating whether or not the OS is related to (not solidly based on) Android due to the confusion. I'm personally also not sure about the fact too, because there is no source code to confirm that.

Based on my understanding of the copyright law and licenses, in addition to keep the same license, the fork must also display/state the original authors in their copyright declarations. There are also implications on the patent front.

comment 5y ago · link · parent

> Forking Android is not a big deal, and huge companies like Amazon do it for its FireOS. The difference is that Amazon is upfront about it and says "FireOS is a fork of Android" in the first paragraph of its developer documents. Huawei's developer documents don't reference Android and are mostly pure gibberish—and by that I mean they are paragraphs of buzzwords and circular links that don't actually communicate any technical information about what the OS is or how it works.

One question: IF there is a CHANCE that the entire OS is indeed just a `sed s/Android/whatever/g AOSP/`, is it legal (for a company that large) to do that?

If it is, please call me the creator of RobotOSxxx OS (Which really fuzzwords could not may Android) from now on.

comment 5y ago · link · parent

The Mulan license was released by the COSCL (China Open Source Cloud League? I guess? They didn't state that in their About page) to promote open source movement among Chinese companies.

It reads like a Mozilla Public License 2.0 to me at a glance.

comment 5y ago · link · parent

You must mean this video series: https://www.youtube.com/watch?v=ONBWBj9LnXQ

I was wondering why the view-line of those actors was so on-point. Well, I got my answers.

comment 5y ago · link · parent

Not sure why others are down voting you, and I so far can't down vote anybody.

As a Chinese, I never considered myself as a communist-lover, and I probably saw more shady things happened in the country than probably most foreigners here. But, I assume that's not why people clicked this thread.

Yuan Longping is an icon. A scientist who dedicated almost his entire life to improve the life of the others through his research and groundworks, which saved billions of people from starvation across the world. This alone deserve some praise, regardless which political party you're in.

Now, if you're still unconvinced, think about this: He increased the yields of rice, and rice is a kind of food people eat. The only way rice could hurt people is through probably obesity, you can't even make or launch nuclear bombs with it. So why feel triggered?

comment 5y ago · link · parent

What most shocking fact it, the driver didn't even notice the poor kid. The blind spot that people constantly talking about is real and many people lose their life to it.

Sad thing is, most people I know don't know about anything of it, they still assumes that the driver will take care of everything.

comment 5y ago · link · parent

> These “boring” things take on more importance when you can see what happens when you ignore them.

Couldn't agree more.

When I was a 7 years old, a road near my home was undergo an expansion. The work involves a lots of heavy and big machines, including heavy trucks etc. During that time, me and almost all other kid was warned to not go near those machines, "Don't play near those things, it's dangerous". But none of us knows why, so none of us listened, at least not carefully.

Many years later, after I've grow up and start to understand the value of lives, one day I stumble upon a video showing a middle school aged student ridding a bike down a road, and got crashed by a turning lorry. And the lorry driver didn't even notice the student until a terrified security guard yelled him to stop. That kid was crashed at the left abdomen, then the wheel rolled over his chest and head, all with in 3 seconds of time.

That moment is when I suddenly remembered the warning that I got almost 20 years ago: Don't play near those things, it's dangerous. Everything is so real now, because it is, it's just that I didn't receive it at it's full meaning back then, and that video, completed it.

Video like those really works, because now you saw it with your own eyes. You feel the brutality without a layer of filter, and without even a slight distortion, and then you know it for real.

comment 5y ago · link · parent

Sorry, couldn't help you there. The website is titled "北美最有影响力的华人社区 (The most influential Chinese (online) community in South America)", which is little less than half-earth away from me, so..

However, if an interview is really LeetCode-based, I'd say it's a fair game for the interviewee to do some preparation. In my opinion, the best kind of interview is based on real production needs, the interview question (regardless whether or not it's came from LeetCode) should reflect that.

comment 5y ago · link · parent

Here's somebody's write up in Chinese, which actually is the second Google search results for keyword "内卷": https://zhuanlan.zhihu.com/p/250474212

If you want to read official tune, here's the article about "内卷" among university students: http://www.xinhuanet.com/2020-11/09/c_1126713666.htm

Other than those publicly searchable contact. There are many nonpublic/deepnet information, for example, recruitment ads, under table HR rules etc.

Here is a recruitment ads from Minhang District government that set age limit (from 18 to 35 years old) for no good reason: http://xxgk.shmh.gov.cn/mhxxgkweb/html/mh_xxgk/ggxxgk_xxgg/2.... And another one from Zhongwei City: http://www.nxzw.gov.cn/xwzx/tzgg/202103/P0202103163192272939...

Case and point, this problem is widespread and kind common knowledge in China.

comment 5y ago · link · parent

> We don't realize something important - Leetcode is a competitive programming platform at its core, not an interview platform. Yet, we fall into the trap of thinking it's an educational website.

There is a word circling China's Internet call "内卷", which can be translated directly to Involution, but on the ground it actually means "Over competition" or "Doing zero-sum competition". People trying to climb over the others while preventing others from climb over them, so they created many arbitrary obstacles to block others.

Keep in mind that, in Chinese society, 35 years old is equals to 70 years old (In many places, you cannot even get a gov job if you are over 35). Failing a competition can be really, life-changingly costly.

So, it is rather a "standard practice" for Chinese companies to keep throwing LeetCode questions to the interviewee during a job interview (, after all, many of those questions are marked by LeetCode as "Interview Questions"). This method creates a lot of benefits for the interviewer not only for the interview, but also for later negotiations.

Funny thing is, even though the top dogs in China got the best talented engineers in the entire nation, their public-facing products are still nothing but trash (or even fruaddy). And as for those engineers, many of them has their own big dreams, but they cannot realize it because the market is a highly restricted blood sea.

comment 5y ago · link · parent

> "To Success, we must BELIEVE"

Yeah, we must believe NO BULLSHIT.

Man! the Snowden man is really sharp! I hope I can one day mock somebody as intelligently as him did LOL.

comment 5y ago · link · parent

The solution mentioned in chaifeng/ufw-docker is not beautiful too, because now you have to configure UFW each time after you deployed a new container since the IP address of each container is different. And you probably don't want to use an IP range for UFW because that will bring you right back to square one.

A better solution is to use an ingress controller such as Trafik and expose it to the Internet. Then when deploy later containers, don't use `-p` at all, instead, ask Trafik to route the traffic to the container.

comment 5y ago · link · parent

> offload all the stress and frustration onto you

Man! I can feel you. However, after these years, I've learned how to be a polite dick: You don't have to wait until they allow you to, job interview is a negotiation, not an interrogation. If you feel abused during an interview, give them an one star on Glass Door and try another company.

My strategy go like this: Whenever there is a chance to insert, I will start by asking which version control (or other quality management tool) they are using, followed by the detail of their CI/TDD/release/deploy system and code-reviewing tool, and then the code-reviewing and QA process, and then how they distribute responsibility and reward and so on.

In the real world, it sound like: "Oh, You guys using Git? Nice. So, do the team also use CI, such as Jenkins? ..... How you test your code? ..... So what's the code review tool the team is using?". Always sound positive, casual, cute and all while professional, like you just met the child of your middle school crush taking by his dad to your clinic for a flu shot. Control your emotion like an airplane lieutenant telling others "everything will be fine" while the airplane is crashing into the ground at supersonic speed.

If they can't produce an appropriate answer, maybe there isn't one[0]. I personally take it as a red flag, and will raise my caution when answering their question from the point and on.

Of course, you have to ask the question to the right person. Negotiation itself is a skill.

[0] You know, even if they don't have one, the correct and professional answer should be like "Oh, we don't have that right now. We would like to build one if it is necessary for us. [Do you like to share more information about it?|Do you like to build one with us?]"

comment 5y ago · link · parent

It sound funny, but sometimes, those ads contains some information that might spark the curiosity in me.

For example, there was an ad about some gangster/mafia game, the ad itself was absolute ridicules for my taste, however, the game itself received ~4.3 stars rating on Google Play, which is completely contrary to my expectation -- other people think it's not a bad game, it's just me not understanding it well enough.

Look, I live a simple life, the world in my eyes is narrow, which is bad for me as a (self entitled LOL) developer. So if getting harassed for 5 seconds is what it takes to widen my view a bit, I think I'll take it :D

Of course I never downloaded the game, so it's still an ineffective advertisement for them.

comment 5y ago · link · parent

I must say it's a valid point. After all it's a hobby project, having fun is the first priority :D

However, one could also say "Well, it's a hobby project, so I'll just slap this framework on to save my time..." or "What? I have to manually deploy this hobby thing every time I made a change? I'll just put it on a CI and let Webpack pack the thing for me"...

My method is this: I will start the project with all new tech/frameworks/lib/"display: grid", then I publish the project, if it turns out to be a success, I'll maintain it (including upgrade the framework, bug fix etc); if it's not, I'll just put it aside and start another one. This way, I can touch/learn many new stuffs that might later benefit me in my day job without any risk.

So, I believe it eventually boils down to personal preference (based on objective information on hand, of course) :D

comment 5y ago · link · parent

> ... are done with plain JS, with as few libraries as possible ...

I was having the same opinion and practice. However, I'm kind regret it as well.

Even if you done everything with plain JS, eventually, one day some idea will float into your head such as "Hey... I want to automatically compress the script file/snip", "Hey I wonder if I can polyfill all my script", "Automatically bundle assets?", "Compress assets images?" etc.

Then, you start to learn Webpack/Gulp/Grunt (if the last two are still alive), and commit your entire soul to it few minutes later.

I think the reason for the messy front-end tech is, the Web itself is messy. You have to consider a lots of things, networking, file management, cache management, cookie, user-side storage, security etc. Some eyes saw the problem and then built a framework to address it, then others discovered some other issues in the framework ... the circle of life.

I guess we'll eventually settle down on something when people finally figure out what they want from the Web technology, or when the Web is "dead" (no dramatic changes anymore, like what happened to Desktop Applications today).

comment 5y ago · link · parent

> People left because of it

So, one question: After they left the company, has their income increased/decreased/stood the same? Maybe it's a hidden key factor for the decision.

comment 5y ago · link · parent

Curious.

How many of you actually brought something just because a machine/stranger recommended it to you? For me, it's almost never.

I watch YouTube a lot, as a free tier user, of course. When a video starts to play, all my focus is automatically dead-locked on the "Skip Ad" button, and sometimes "Skip trial". It's a game for me now to see how fast I can tap the "Skip". As for the content of the Ad, well, usually I ignored it all together.

Sometimes, when I'm away from the phone and suddenly a some 50 hours long Ad starts to play, I'll just continue finishing what's on hand first, and then go to my phone to tap "Skip" or switch to Twitter or Telegram to see whats fun over there -- all without notice what the Ad was saying.

Yes, sometime, some annoying Ad got into my head anyway, but ... why should I buy something that annoys me?

For me, the most effective Ad are those what I'm actively looking for. For example, if I'm looking for a running shoes, I'll click the Ad on the search page and/or listings page to see if there is a good product/deal. And I'll stop click those as soon as I made the purchase.

So personally, I don't really understand the idea of Tracking Your Every Move So We Can Sell You Stuff. How it even works?

Now if you remember this: https://news.ycombinator.com/item?id=14879204

comment 5y ago · link · parent

I use many Google services, and generated many records on their platform such as payment, cloud computing service, email, file storage. That is a lots of information, making me slowly losing my confidence on whether or not I can recover if someday Google turn their back on me.

My opinion is, if DDG is showing me some ads based on my search keywords (which is sort personalised) so they can make some money out of their not-so-bad service? Fine by me.

comment 5y ago · link · parent

One funny thing is, few years ago there was a promo video on Heroku.com homepage "complained" about the high price after an intensive praising for the platform. It's not that people just suddenly started talking about the price issue today.

Heroku is a great product, there is no denying that. However, relying on startup/small teams is kind risky. Some startups fail after awhile, those who succeed sometimes "grow out of" Heroku to keep their cost down.

I think what Heroku needed is a plan or two that can keep the both end happy, instead of offering a plan that eventually driving successful teams away.

comment 5y ago · link · parent

I saw nobody mentioning Docker here, so just a reminder: If you do `-p 5432:5432`, there is no different than listening `0.0.0.0`.

comment 5y ago · link · parent

You are right, 人 (or radical 亻) is a gender neutral term means "Person/People". You can add gender ahead of it to be more specific, for example, Man means 男人 (Male Person), and Woman means 女人 (Female Person). As far as I can tell, there is no default gender for 人.

Learn more: https://en.wikipedia.org/wiki/Radical_9

I don't know if the combination (亻+圭) makes it gender specific, but as far as I know, many males also has 佳 in their names. I'd say the character is neutral, as long as the name is not 佳佳 which sounded too cute to be a male.

On the other hand, 蕊 is not gender neutral, because you don't call a man Flower and it's a different "Rui" from the one in my name.

comment 5y ago · link · parent

> For example, the Chinese equivalent of “John Smith”—a common English name in the United States—would be 王俊杰 (wang2 jun4 jie2).

Not sure about whether or not it's really that common, but given the fact "王俊杰" means King, Handsome and Prominent individually, I'd say that name is pretty close to the up limit of what you can get from a 3-characters name.

comment 5y ago · link · parent

They're police, they probably just followed some orders from up the chain.

If they did their home work, they will probably never

> concerned that users of the "Russia-based website" could have information taken and misused online.

I mean, so many wrongs in that one line.

comment 5y ago · link · parent

> The problem with social networks isn't the software, it's that they aren't for a particular purpose ... The problem with social networks, is that they're social

Let's take look how Hacker News is designed: A discussion platform that utilize tree structure to keep discussions structured, easy to track and on point.

There are many different kind of designs, the flat-list one for example, which causes less structured and often ineffective discussions.

The problem of social networks is not just due to social factors, software design plays a key role.

You know, most physical real-world bars/clubs, which are also social places, couldn't generate that level of toxicity. Even the toxicity on Reddit is no match for the top social networks. Those systems are what I called "moderated-islands", on each island, there are people who wants to keep things in check.

On the social networks however, the people who checks things are the same people who post the content, and moderation is done directly under the content they've posted, there is no "the third eye". Then, you introduce the feature that prevents your users to from structured discussions, and then give them a "How popular U R" counter ...

It's more complicated than "It's just social".

comment 5y ago · link · parent

Well, it worked 7 months ago for this item: https://news.ycombinator.com/item?id=23895789

comment 5y ago · link · parent

Well, if you're patient enough to sit through all the Chinese text, here is the teardown (with picture) you've been looking for: https://www.acwifi.net/12621.html.

Also that router is currently on sell on JD.COM (https://item.jd.com/100017450204.html) priced at ¥599.00, about 80€ I guess.

There are rumors says Xiao Mi has somewhat subsidized their line ups with intention to create their own ecosystem. If true, that's one of the reason why their devices can have such low price.

On the other hand, ¥599 is not exactly cheap in China. Somebody can literally survive a entire month on that amount of money. A "normal" price for a "regular" router is around ¥70~¥200.

comment 5y ago · link · parent

Actually, deploy Kubernetes is not that hard after I learned the few concepts.

However, I found myself spend too much time on finding out what settings should be put into which files. I really hope there is a tool that can help users to generate and configure these settings.

I think a good example of this is `npm config edit`. When invoked, it'll open the correct config file, and list all available settings with their default values. User can then enable those settings by uncomment them as needed.

Maybe add similar functionalities into those CLI tools (kubeadm, kubectl etc) could greatly improve user-friendliness?

comment 5y ago · link · parent

So based on the article, Autopilot is designed for GKE??? (https://cloud.google.com/blog/products/containers-kubernetes...)

I'm learning Kubernetes and is deploying my own test cluster on my ARM-based board at this very moment, and I already spend 3 days on K3s and have to give up due to a problem (https://github.com/k3s-io/k3s/issues/2509#issuecomment-78657...). I must say, this is way way harder than Docker Swarm.

Just want to know, will Google actually make Kubernetes a bit more friendlier for general non-GKE users?

comment 5y ago · link · parent

> "Don't worry, the captain will shut off fuel to that engine and turn around and land. But we'll have to go someplace else for our trip"

Compare to "Don't worry, everything will be fine", I found this calms me down better. Because it keeps me occupied on verifying the claim rather than allowing me wonder about what "fine" was actually meat.

But again, we don't actually know why "many adults were screaming" there, maybe they've already figured it out, and they are screaming because they don't want to go someplace else :-D

1
192021
24