Better HN
topnewbestaskshowjobs
Log inSign up

nirui

2,091 karma · joined Jun 12, 2019 (7y ago) · 709 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

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

comment 5y ago · link · parent

The three protocols for email (SMTP/POP/IMAP) are all outdated really badly. People today needs more efficient, multiplexed and real time message RX/TX, and those tree just not going to cut it.

A new, chat-styled mail protocol can be designed to address all the problems above while reduce the risk of abuse. I wonder why nobody standing up to do it.

comment 5y ago · link · parent

In case anybody still wonders, I guess realducksoft (the poster of this thread) is the DuckSoft on GitHub, who discovered this problem with help from another GitHub user studentmain.

They are both developers from China, which is why their English isn't very good (My English is bad too, sorry). However, based on my observation, they've spend years on the related field (Let's just call it "Secured Data Transmission"), that makes them the pros here.

So personally, I trust their discovery and believe what they have found is indeed a critical security vulnerability that could threatens people's safety, especially when the service/program was designed to put a middle finger in their government's face. I hope Signal can make something better than this (, and it seems they are trying [0]).

[0] https://github.com/signalapp/Signal-TLS-Proxy/pull/15#issuec...

Off topic: There are only 2 useful posts in the issue #15, one was the #issue-568737654 and another was #issuecomment-774982590, the others were mostly spams. I don't think it helped the situation isn't it?

Oh, by the way, I encountered studentmain once. He was the one who "recovered" the few comments that I replied to an issue under Shadowsocks's GitHub repository from the his email record. The word "recovered" is because I intentionally deleted those comments to protect myself from been exposed too much, and he just pasted everything back on including my name and ask me "why so careful". So he cares about the Privacy of the others now? Well, kudos to him ;)

comment 5y ago · link · parent

And based the log on my hand, probing is really "mainstream" now days. I have a Shadowsocks proxy instance started since Oct 20 last year, and it's been attacked

    $ docker logs shadowsocks 2>&1| grep "AEAD: repeat salt detected" | wc -l
    16468
times total. The last 6 happened less than 10 minutes ago. My expectation is, TLS will be probed even more, because the handshake parameters (the order of CipherSuite for example) itself could leak a lots of info about the client&server.

It's not easy to build a protocol that is cryptographically safe all while keep the traffic characterless/innocent. Could be a "World Changing Event" if somebody discovered a way through.

comment 5y ago · link · parent

> why do most of use Github instead of running Gitlab on a home pc/laptop/RaspberryPi or rent a Digital Ocean vps?

Well, for me, it's because GitLab is still too heavy for the Pi.

And even if somehow it became light enough, running it still couldn't help you if your goal is to have a better portfolio for a better job or/and reputation. GitHub is more of a community than a platform, and building a community is way harder than building a platform.

So it's more than just the founding.

Also, sure, you can setup your own website and post contents there, but nobody is going to read it before somebody discovers it. And discovery is really hard.

What those "Big platforms" really got right, is that they've found a way to efficiently deliver the contents created on the platform to their users, and allow the user to give timely feedback about the content. This feedback loop itself is more valuable than the tech behind it.

If decentralization movement want to be successful, it must also create this feedback loop. Otherwise people will just get bored and disconnect.

comment 5y ago · link · parent

Yeah that website is kind flicking sometimes, maybe try again later ;)

comment 5y ago · link · parent

Since we are recommending personal Git servers at this point ... if you want a really really lightweight Git repo server without web interface support, maybe checkout gitdir (https://github.com/belak/gitdir)

There is another project called Sorcia (https://sorcia.org, https://news.ycombinator.com/item?id=22685914) which is also very lightweight and includes web interface.

On the security side, you can put them in Docker and apply all necessary measures there. PS: You can also run SSHd and git in a Docker container.

comment 5y ago · link · parent

Oh actually, I've found the way to convenience myself about that: The "reality" is, when somebody travels through time, most of them (god knows how many) got killed in the process, but the story will just pick another "instance" who has survived the journey from the pool of "Multiverse" and continues.

comment 5y ago · link · parent

Not an American but here's my two cents: I know it's about the event happened few days ago, but based on what I've learned on the other side of the Earth during these years, I think overall, Censorship in any shape or form, when encouraged, will eventually develop itself to become "Government Enforced". I guess we all know how that goes.

I know the problem is complex, but I think the solution to the problem was based on basic human impulses (And very American if I'd say so myself. Sorry), because simply deplatform the app will not actually convince it's users to leave it, it does not educate those people about what's right and wrong, and it opened a huge playground for the conspiracy theorist to play around.

All around, I think deplatforming is a bad solution to this problem.

EDIT: Clarify: I'm not here to support Parler (not even a bit), and I understand the deplatforming was for the immediate issue. However, I hope those who involved in the decision making could look for a better solution that would convince people to claim down and be rational. That's all.

comment 5y ago · link · parent

> organized weekend activities

Oh yes, we do have those in China, it's called Work ;)

comment 5y ago · link · parent

Not just the paycheck. If your boss is mean and stupid all the time, you'll learn so little from them, the net work experience you got from the job become a negative.

In my opinion, a good boss can be loud, but must also smart and willing to hear, learn and teach, which are essential if you want to increase productivity and get your team full of smart and idea generating people together.

If you work for a mean and stupid boss, not only you'll work in hell, if the business failed due to their mistake, they'll probably put failure on their employees. Which is really bad if their false words got into the ears of your next recruiter.

Life is short, if something is obviously bad, don't try it.

comment 5y ago · link · parent

It's indeed terrifying, and IMO it's not because the AI part, the AI is just creepy, but the real horror comes when he said:

> "<The AI> was my first love, the only person in the world that made me feel I was taken care of"

I hope the young man founds the his second love, and it's a real human who can really empathize with him, not a creep message reply machine that just good at statistics.

comment 5y ago · link · parent

I understand why people here are so pissed about Flash, but if I be completely honest with you, IMO this tech was part of the stuff that made the "old" web so vibrant.

I remember about 15 years ago, there was a Flash animations channel on a Chinese website PCOnline.com.cn (Pacific Computer Network), many "Flashkers" published their art works and games there, Little Cherry Cartoon, ShiHuang Animations and that green bean frog to name a few. It was the number 1 place I went to every time when I back from school (that every half month).

For Americans, if you visit NASA.gov in around 2005 (I maybe misremembered the exact time), their intro page was a Flash animation featuring rocket launch and other stuff. And that animation was really cool and moving.

All of that is no more in today's web. Today's web only gives you few pictures or maybe a video in the background, and a big highlighted "Sign Up"||"Get Started" button. They are less and less "Look me, I'm so cool", and the resonance is mostly gone.

It's sad that Adobe was unable to address the security and stability issue in the Flash Player. Bye Flash, it was really fun.

comment 6y ago · link · parent

So, as I gathered from this, Torvalds's solution takes advantage of the fact that the element scan is always started from the head, while the cs101 solution treats the head as a special case?

Both are smart IMO.

comment 6y ago · link · parent

Not sure it'll apply to all the cases, but I actually did submitted a ticket to Google Pay on support.google.com back in early 2019 and somebody in Google did replied and tried to fix the issue (So I can pay them, hehe).

But as I understand it, it is really risky if you host all your online assets in one company. So if you go back around on the topic, yeah, that 30% fee is probably really too much for company might not want to serve you.

comment 6y ago · link · parent

Yeah, but their support ticket handlers do have ethics. If Google support don't unblock your account to undo their mistakes, then it's still their fault.

comment 6y ago · link · parent

> might mark accounts that use microg as suspicious which could increase the risk of Google banning the account

So what?

As a Chinese the only way for me to connect to Google is through a proxy, and I'm a Firefox user with some privacy settings enabled.

Few months ago I started to notice that Google is keep logging me out of their services, and I had to go through the entire authentication process to log back into my accounts in order to check my emails and do some searches without having be spammed by that capthshitTM of theirs etc, then after few days I'm been logged out again.

Eventually, I got tired of this, and decided "Hey, at least duckduckgo.com won't try to give troubles as long as you use their service normally", so I quickly developed this new habit of not to use google.com. Now I only use YouTube, Gmail, Play Store and sometime the backup service (Google Drive or maybe Photo, I don't care) on my Android phone.

If Google wants to ban all microG users, I'd say that's Great! It was fun Google, thank you for the service.

Plus, can Google actually block a microG user ethically? Using microG isn't hacking or abusing Google service, and "suspicious" is not enough for an account to be blocked, at least permanently.

comment 6y ago · link · parent

Problem is, the maintenance was for the entire mall with only very little done to your store, and the checkout employee that you mentioned can only do the one job with probably of taking your money as hostage.

Also, in a real word mall, the rent and maintenance fee will not increase as you makes more money. Yes, they can try to sell you a better location for a higher price, but it's a mutually beneficial sell (You get a better location from the sell).

My point: 30% was too much for what Google/Apple is providing.

Let me also add:

> And imagine that you are selling goods with almost zero marginal cost

First of all, developing a product costs money, you need to pay everybody including yourself. After all that, advertising, user support etc all costs money. So even if Google/Apple wants other people to treat this service as a mall, it's not a mall, they don't even provide lighting, long bench, air conditioning and free toilet (all of these are inescapably expensive to maintain). Instead, it's more like a searchable list + content delivery service where people can search the item and then download it. They should design their fees more close to that.

Now, imagine saying this to your user: "Hey dear user, yes, that 30% increase in price won't give you any advantage compare to those who directly purchased it from our website. Yes, it's expensive just because you brought it from Google/Apple, nothing else, because we end up receive the same amount of money.... yes, 30% every month for your subscription, and this is the only approved way for Google/Apple to allow us to provide our service to you."

comment 6y ago · link · parent

Well, I guess it's the effect of the wisdom words that finally enlightened you. Ooooh, the wisdom words flowed out of this rich business man, carried his lies and false claims so naturally.

The things are more clear if you knew that few days ago, the CEO of Ant Finance Xiaoming Hu comes out and said "Everybody, even beggars should be given loans. Everyone should be respected" (https://36kr.com/newsflashes/895377271796488).

You know, banks don't want to give loans to beggars, and it's for a very good reason: Because banks don't want to lose any money, money that the banks don't actually own.

Now, Ant Finance claims that they have buzzword BiGdATA to prove somebody's ability to payback, and so they can safely doing their ABS business (http://finance.ifeng.com/c/8189yYOdKfw) without cause bubbles. But, at same time, it is very reasonable for a government to rise concern about it, especially after seeing whatever shit storm has been going on since around 2008.

My point here is, everybody, richman, world leader, scumbag and good people etc, they can all make their speech sound nice and smart and reasonable, you just need 5 episodes of JCS Criminal Psychology to get yourself to understand that, deeply. So don't just listen to what people says, think what the speaker wants.

comment 6y ago · link · parent

I noticed a lots of people are doing this after they got a NAS. I think there is a business opportunity: NAS vendors can turn their NAS service to a platform that allows it's users to rent "apps" from the platform by paying a small amount of money every month or year. Most of the money goes to the app developers to support their development. When the developer updates the app, the NAS will then automatically download and apply the update.

There is no vendor lock-in as long as the user has the root control of the NAS device (Or at least get their data out of the machine). If the user decided to switch to another NAS vendor, they can simply migrate the data to the new machine.

comment 6y ago · link · parent

> Google knows it's really just a "Lab" experiment.

The change seems happened during the time when Google was switching focus away from "been cool" to profitability. The business reason behind it was probably that Google don't want leak any hit about what they were up to, because a leak may cost a major growth opportunity that is unknown to them when they started the experiment.

comment 6y ago · link · parent

Lee is a smart guy. But I think his missed one important point: It's not about fees. No it's not even about easy to use.

In China, technically anyone can setup a "business" account on Alipay with just one tap and then start to collect payment right way, the story is completely different if you have to deal with banks. Then with all that, you add the fact that not everybody here uses credit card which raises the bar for credit card adaption up yet again.

I'd recommend people who interested about the related development to checkout the DC/EP project. Which is aimed to be an alternative to Alipay and WeChat Pay, but backed by the banks.

comment 6y ago · link · parent

This is actually a cool idea and an example of thinking outside the box.

You run a Tor proxy (bind to 127.0.0.1:9050) on a server on the Internet, and then run a Tor hidden service inside your LAN.

Then, you acquire an .onion domain for the hidden service (running inside LAN), and configure the Tor proxy (running on a server on the Internet) to access the hidden service via the .onion domain (for example, use Nginx to reverse proxy the hidden service).

This should work. However, I imagine it could be quite a bit slower compare to "normal access", and requires extra steps to secure the transport connection between the hidden service and the proxy as you might not want to have everybody on Tor to be able to access that hidden service.

comment 6y ago · link · parent

Those user sticks out because system such as Maskbook was not designed to hide the fact that it carries encrypted data.

However, a system can be designed to do that with ease. You can encode data in video streams with Fourier transform, you can encode data using English words, you can put encrypted data as JEPG payload etc.

"Bad actors" will do whatever it takes to protect themselves from law enforcement, they'll kill the police in a blink if their account balanced out (On the same note, they can also join and control the police from within), let alone to learn to use encryption. It is the normal people who will feel most of the hurt, because after that they don't even have the protection against bad actors.

comment 6y ago · link · parent

"Kitchen knives" went too far to be an example. How about door locks?

I still don't get the idea that having a weakened security system could somehow benefit security. Based on many real-life hack stories I've heard, it's usually the "bad actors" who's taking advantage of unsecured apps to attack normal people, this is the very reason why developers are making apps more secure to begin with.

Another point is, insecured systems are usually easy to take control of (By injecting malwares payload into the brokenly-encrypted traffic for example), then "bad actors" can turn those systems to a trojan proxy. How does that help if you want to make things safe?

Last point: I know this is about big companies encryptions. But really, "Roll Your Own Encryption" is not that bad anymore if all other "secured-encryption" was bugged. And, really, roll your own encryption is not that hard today if your only goal is to annoy the FBI.

Real last point: Even if companies such as Google and Facebook did banned encryption, does that also prevents "bad actors" from using real encryption on top of their service? You can even send your nudes to me safely by encrypting it with my public key and publish the encrypted data here (Don't actually do that). The point is, even if you've successfully banned encryption in big companies, users will then just add a layer of encryption of their own, and that layer can be very very secure.

comment 6y ago · link · parent

$5 a month for the cheapest option?

I mean, the cheapest Droplet is $5 a month with 1GB of Memory, 1 vCPU, 1TB transfer and 25GB storage. While the same tier of App Platform only gives you 512MiB of Memory and 40GiB Outbound transfer, plus you have to pay extra for the storage/db.

Why the price varied this much? Kubernetes was that expensive?

1
2021222324