2,087 karma · joined Jun 12, 2019 (7y ago) · 706 submissions
[ my public key: https://keybase.io/nirui; my proof: https://keybase.io/nirui/sigs/oi8UKCZcYxKij-Pi43fDt35S1cHWmEKrFeMHZ4wW5Mo ]
comment 4y ago · link · parent
I played Freelancer before I moved to Linux, that's a few years of fun experience, and as a bonus I also met many interesting people in that game. It's just a good investment for my entertainment.
The primary problem that Star Citizen faces at this moment is not poor management of money, instead it is that the fun the game provides is not unique any more.
For example, Elite Dangerous, which you can download and play right now, can deliver I'd say 70% of the fun that Star Citizen promises. There is no reason for me to lock my eyes on Star Citizen anymore, especially when you consider the fact that gaming is just a small part of ones live and spaces games are naturally grindy (maybe not correct, but the space game that I played, Freelancer, EVE Online and Elite Dangerous all require some level of time investment), you can only play so much.
All things considered, Star Citizen is not on top anymore. And that's .... scary if I'm Chris Roberts.
comment 4y ago · link · parent
I was once quite confident about my knowledge on PHP (version 5), thought I learned it all. Then I brought a book from O'Reilly for the newbies in the team, flipped a few pages before handover, learned a few new damn things myself.
I would totally recommend to read a book while learning a big topic (such as a language, framework etc). There are so many things that if you know, you'll be a better user.
Yes, so many things change, but, so many things don't. Plus, you can buy another book to learn the new knowledge.
With that said, I want to go back and remind: know the author and read the review before you buy, don't waste your time on bad books.
comment 4y ago · link · parent
It's a part of the examples for the statement "you don't always have to return an error", so... you don't return a separate error, you just abort at that point. Sorry I should have described it more clearly :)
comment 4y ago · link · parent
It's not just about
res1, err1Error = canFail()
it's also about res1, successful1Bool = canFail()
and many other ways that communicates an abort event. Current Go syntax handles every case in a consistent way, while the Rust-like syntax could only apply to error type specifically. But you don't always have to return an error if something failed (say Hashmap lookup, strings.Index, or even just `if res1.IsValid()` without `err1` all together), right?Another thing to add is that, syntax sugar such as `canFail()?` cannot help you with situations when you need to do something if the error happened, say:
res2, err2 = canFail()
if err2 != nil {
res1.Drop()
return err2
}
you still have to write the flow in the old way. Rust can do that safely because it can automatically/magically drop things, Go can't and don't.All and all, the application for sugars such as `canFail()?` is very narrow. IMO not worth to consider add.
comment 4y ago · link · parent
In layman's logic, someone who's already committed something bad in the past are likely to commit it again. Based on that logic, it's not completely unreasonable to use a critical point of someone's history to define that individual.
Of course it might be unfair, but the cost of error testing can be high, and your empathy might be exploited. Plus, if someone indeed did something wrong in their past, maybe they're the one who should put in the effort to redeem themselves.
That said, while I think it's not fair to judge someone based on few decisions they've made, I also don't blame labelers when they have good reasons.
comment 4y ago · link · parent
This limit sounded reasonable. In fact, I would rather set such limit myself to prevent leaks (for example, my Telegram account is set to delete if I'm inactive for 60 days).
IMO, private chat message SHOULD be temporary by default, and made persistent only if user decides to achieve it. I also don't use chat services to share my PPTs/PDF/other files in general, there are way better place to do such thing than in an IM.
As long as Slack don't delete my account and chat rooms (and it's settings), it's fine by me.
Also... Smart move, Zulip
comment 4y ago · link · parent
So how to actually prove that they do care and protects user privacy instead of just use the word to make their ads more appearing?
comment 4y ago · link · parent
Sad news is, according to my test, the latest kernel Fedora 36 offered, which is kernel-5.18.16-200.fc36.x86_64, does not come with the keyboard (IRQ override) fix.
Another thing is the mce errors, or more specifically, errors similar to:
[ 332.990256] mce: [Hardware Error]: Machine check events logged
[ 332.990267] [Hardware Error]: Corrected error, no action required.
[ 332.990276] [Hardware Error]: CPU:0 (19:44:1) MC15_STATUS[Over|CE|MiscV|AddrV|-|-|SyndV|CECC|-|-|-]: 0xdc204000000c011b
[ 332.990299] [Hardware Error]: Error Addr: 0x00000000efcf8bc0
[ 332.990304] [Hardware Error]: IPID: 0x0000009600050f00, Syndrome: 0x000001ff0a240701
[ 332.990312] [Hardware Error]: Unified Memory Controller Ext. Error Code: 12
[ 332.990316] [Hardware Error]: cache level: L3/GEN, tx: GEN, mem-tx: RD
It was never fixed by both patched and unpatched kernel.Of course, those were just the most annoying two. There are many smaller problems such as: 1) Screen won't turn off after timeout if an external display is plugged in via HDMI, 2) Linux S2 (Suspend-to-RAM) never wakes up, 3) Builtin mic don't work, 4) Fingerprint scanner crashes when you put your finger on.
I guess it takes time for those engineers in Lenovo to address those problems, and Lenovo is not a Linux-friendly company (they are more like a Linux-meh company).
Framework on the other hand, cares about Linux more. Sadly they don't operate in my country :(
comment 4y ago · link · parent
The machine that I'm currently using comes with a Ryzen 6800H CPU and LPDDR5-6400 RAMs, made by Lenovo. On Linux, the builtin keyboard don't work because of IRQ problems (See [1], a fix is also available at [2]), and it constantly spams out "mce: [Hardware Error]: Machine check events logged" messages.
[1]: https://bbs.archlinux.org/viewtopic.php?id=277260
[2]: https://lore.kernel.org/all/20220712020058.90374-1-gch981213...
If you read the code in [2], the patch basically disables IRQ override for every new Ryzen machines (`boot_cpu_has(X86_FEATURE_ZEN)`). Based on that, I assume every new Ryzen CPU has the same problem(???)
Edit: wait... blaming it on the CPU might be unjust, it's more like a kernel adoption problem.
Luckily, compiling Linux kernel with 16 threads is not really too big of a struggle, you can just apply the patch manually every time the kernel updates :-) :-| :-(
comment 4y ago · link · parent
When GitHub took off, they were not offering private repository at all. Instead, they added it in slowly when they can afford to do so. This is one of the reason why GitHub has now become the #1 platform for open source projects around the world.
GitLab is trying a different approach by focusing on offering repository hosting as service, but as time progresses and GitHub grows, this business model became less and less attractive. As a result of it, now days GitLab mainly attracts people who thinks GitHub isn't the right option for them, and that's not a big market. No matter how many cost they cut, if this remain unchanged, GitLab is already on it's dead bed (by that, I mean stop growing, not close for business).
GitHub is smart because at very beginning (before allowing private repositories), they knew that if they want to attract good programmers and projects, they must also accept and respect garbage, because that's what it takes to build their trust.
Deleting user data however, always destroy trust. If storing those repositories creates unbearable cost for GitLab, then maybe introduce a reasonable cap and then rejects new commits once the cap is exceeded (while asking user to buy more spaces). Making the entire repository just disappear is too much.
I'm glad that they did not end up choosing that route, but at the same time, not choosing that route should be the default, not something you just realized after it went to the media.
comment 4y ago · link · parent
[1]: https://about.gitlab.com/support/gitlab-com-policies/#name-s...
That knowledge about GitLab left a weird and confused taste in me. It gives me an impression, that is if a free tier user becomes inactive, they're no longer valuable for GitLab and can be treated as second-tier.
For that reason, I cannot seriously being myself to use GitLab. If you knew that all of your investments will rot to nothing as soon as you stopped paying, you'll probably consider to stop investing it.
Sadly, this idea of removing "dormant" projects followed the same train of logic: If you're not constantly contributing (paying/publising content) to our platform, you're second-tier, and we can just kick you out.
From the previous article where they announced the plan:
> GitLab is aware of the potential for angry opposition to the plan, and will therefore give users weeks or months of warning before deleting their work...
GitLab don't seemed to understand their users well. "Angry opposition" is what might happen if GitHub decides to remove dormant repositories, not GitLab. GitLab users will just feel disappointed and leave (to self-hosting, or maybe host it (back) on GitHub).
GitLab should seriously re-learn what's more important for their service: user engagement or the code hosted on it. Tip: GitLab is not running a social network business.
comment 4y ago · link · parent
The international supply chains of today's world was grown organically, driven by the market where inferior company and their products gets replaced by better (sometime just slightly) ones.
However, I do agree that a Plan B is required in many fields, but I guess you need huge amount of government subsidies to keep them running.
comment 4y ago · link · parent
If Putin really wants to, he can just buy the tech from China, and Xi is more than happy to sell since it gives him a grip on Russia.
Tor is not an anti-censorship tool all by itself, it's just a privacy protection tool. An anti-censorship program will have features that obscures it's traffic pattern, not 512-bytes fix-sized frames (cells).
Also I want to point out that, even through the firewall might allow the traffic through, it does not mean that the user is undetected. As the firewall might record the behavior and notify law enforcement to manually investigate the usage.
comment 4y ago · link · parent
Not trying to be corky, but six weeks and the logo look like an airport booking service? I mean, a pilot should be a person, not a machine. I don't really know where the designer got that inspiration, but it's just not right.
comment 4y ago · link · parent
Based on my understanding of astronomy, the real research starts when scientists zoomed way in, thus the "enterprise upgrade" (increased resolution I assume?) is exactly what they're looking for.
Those published pictures are probably just for show (/to proof that the taxes you paid is have been used on a real project).
comment 4y ago · link · parent
In this case, the top priority should be display name, (verified) source address and time of reception. The To and BCC line is not that important, thus can be folded under description such as "To you and another...".
I hear that product design in Google is data driven, I'm not really sure what UX data Gmail team has been consuming.
comment 4y ago · link · parent
The law has also stated that if an institution violated the law, and civil damages is generated as result, the institution is also responsible for the damage.
There is another law which might also apply to this case, it's called Data Security/Safety Law. This law also stated that the institution is responsible for civil damages if the institution has violated the law.
But, I'm not a lawyer and certainly not a Chinese lawyer. This situation is fairly complex already, it's hard for me to tell which direction this case would go.
I guess they'll investigate it first, but the company/team which worked on the project has probably already read the laws before, thus I assume they're well-prepared for this. Another twist is the programmer who accidentally published the secret database API key to the public network, this needs to be investigated as well to determine whether or not the key has actually been used in the attack.
So I guess in the meantime, the husbands must wait.
comment 4y ago · link · parent
The altitude of most people here (I'm a Chinese BTW) is "I did nothing wrong, so why should I care?".
But, it's one thing to hear the humor, it's another thing when you can actually see it. People will have different opinions about privacy when their wives asks them why their business trip to another city showed up as a hotel night 500 meters away from home on the government database.
comment 4y ago · link · parent
Someone/some team in the police department is probably in serious panic right now. Not only because the data is leaked, but also because the leak has displayed an example of what they are actually recording.
For example, according to the posts that other people has posted online (probably rumor and speculations), the `address_merge_with_mobile_data.json` file is a collection of external data submitted to the police database. In the file, there are data source types such as:
- shga_dwd.base_shangyun_lhrytbxx_df
- shga_dwd.base_wahlw_base_teladsllibrarytab_df
- shga_wa.ods_nb_tab_goods
- shga_wa.ods_nb_app_icpoof_expressdelivery
- shga_wa.ods_nb_app_icpoof_delivery
- shga_wa.ods_nb_app_icpoof_expressdelivery
- shga_wa.ods_nb_app_icpoof_foodorder
That's a lot of data that are not directly related to census, social safety, or law enforcement.I guess if you're ordering food online in China, probably need to give yourself a nice nickname first instead of just using your real name then.
comment 4y ago · link · parent
Let me start by telling you a story about me trying to buy clothes for the first time:
Back then, I have no idea of branding and the symbolism behind, I don't even have the idea of quality.
After many hours of browsing and comparing, I picked what I liked based on showcase pictures and user reviews, completely brand-blindly.
A week later when they arrived, I quickly discovered that few of them are false advertisments, some of them are in the wrong size and one got damaged during shipping. And for the rest items that were "just right", half of them ripped/deformed after half-year of use.
So, as a normal person would do, I created a table which consist of factors such as durability, price and styles etc to help me increase my "success rate". And after few years of iteration, that table ended up points me to just few brands that happens to be well-known and big.
I eventually settled on those brands with membership cards etc, and now whenever I need new clothes, I open their store page.
What I learned from my experience is that discovery itself generates cost, and the cost is nonrefundable. It is reasonable for an user to settle on a trusted brand. It's not brand loyalty, it's just rational decision making.
For most users, choose GitHub is rational, because it's the most trusted platform out there, and it provides good services (including the infrastructures and socials). You already knew what to expect before you even sign on, that's the level of trust GitHub delivers.
It's really hard to ask users to discover and move to the alternatives once their needs are well-fulfilled by the current one, even when the alternative provides the same level of service.
What makes it even harder is that services such as BitBucket, GitLab, SourceHut, Gitea etc can't provide the same level of service that GitHub offers for free. At this circumstances, the megacorp such as GitHub will always win even when the user is pro-indies by default.
But we are not completely dead in the water here. GitHub succeed because they created something new at the time, something better than what SourceForge offered.
I assume if someone wants to beat GitHub, they need to do the same. Don't just create alternatives, create something new that also does old things better.
comment 4y ago · link · parent
The downside is that, JSON codes creates redundancy, sometime the redundancy is bigger than the meaningful data itself. But on the other side, you can now host an email server behind a web CDN. I like the development overall.
comment 4y ago · link · parent
Best of the both worlds can be achieved, for example, with good extension support. That way, Thunderbird devs can focus on a set of core features, while the community handles the rest.
Also, why not look Thunderbird as a Communication Software instead of just an Email Client?
Let's just face the fact here: email is dying. Once it was one of the most important tools for communicating on the Internet, now days for majority of people, it's just something comes with a Google/Microsoft/Apple account.
The protocols (POP3/SMTP/IMAP) are heavily outdated as well, and no one is seriously improving it in order to make them more fitting for today's needs (by improving, I mean to make it more real-time, more multi-media friendly, and more efficient so it can transmit a huge amount of data simultaneously at lighting speed). Just take look how many improvement has been done to HTTP as a comparison, it's sad that email protocols received so little loves.
At this circumstances, I would say any optimization done to the ecosystem is welcome. Also, I like the new interface more, IMO it makes Thunderbird at least 10 years younger.
comment 4y ago · link · parent
I'm feeling that the initial interview might not be completely fair. But of course, many things in life are down to lucks. Good luck helps, I guess.
comment 4y ago · link · parent
Don't blame yourself, it took me quite awhile to figure out the benefits as well.
Docker, or containerization in general is not a system that only helps you manage dependencies and isolation. It's about dependencies management, isolation (to a degree), fast and expectable deployment, automatic scaling and so on.
Now days, application backend are expected to run on multiple nodes. Sure, you can manually code your app to automatically deploy/update itself on multiple servers and so on, but that is a huge task, and the maintenance responsibility comes with it is even bigger.
Containerization platform such as Docker and Kubernetes provides a standard operating environment for operators and developers to manage the lifecycle of a scalable application, IMO that's where the gold is. Dependency management and isolation etc is just a natural part of that.
Of course, you're still responsible in creating a scalable application, but once you did that, deploying the application will be as simple as running a `git push`, then a remote system takes over, creating a container image according to your Dockerfile, and then deploy those containers onto necessary amount of servers. It all happens automatically, like a dream :)
comment 4y ago · link · parent
In one command you pipe the output to `sh` which will run whatever instruction it receives. In another command you just ask for an output from `curl`, doing so should not cause any side effect than the output action itself.
comment 4y ago · link · parent
Well, that picture captioned "DALL·E or Dalí?" is almost certainly drawn by an AI, because most humans have learned that you don't draw weird shapes anywhere near ones crotch, it's just something a half-decent human won't do.
Joke aside, the AI generated pictures are amazing. See those radishes? Most human-drawn radishes are happy. And those generated ones are happy too, even without explicit instruction to tell the AI to do so. I guess it really captured what humans collectively want.
comment 4y ago · link · parent
I'm not agree with this. I think physical health should absolutely be the number one priority.
Let me just put it coldly here: career can be re-established, friend can be re-found, losing family is a painful struggle but it's not impossible to start from scratch. But physical health, once you lose it, you'll likely lose everything else too. The same thing is also true for mental health.
That said, I would not put my health on any kind of trading table, it's the only thing that I actually own, and I can't afford to dis-own it.
Also, I don't think it's a "three buckets problem", someone probably invented it so they can talk about such thing safely in front of their boss.
You work to improve your life, and you need a good life so you can and know how to improve the life of the others (through the product you helped making). It is hard for someone to generate good results if they're living in miserable condition. A good boss should know this.
comment 4y ago · link · parent
comment 4y ago · link · parent
However, based on my research (1), "扒饭" is likely a meal type rather than an action. For example, "鸡扒饭" consists of a bowl of rice covered by a layer of pre-cooked chicken breast plus some veggies. The rice itself seemed normally cooked, not grilled. And yes, this sounded very similar to "盖浇饭" which is also a meal type.
1: https://duckduckgo.com/?q=%E6%89%92%E9%A5%AD&iax=images&ia=i... yes, quite literally a re-search
(Me been a local to the country, you would assume that I knew this kind of things. Well...no, this is the first time I learned this term. But if someone asks me "Hey do you want some 鸡扒饭?", I'll take my chances.)