He/him. Chinese born, Canadian citizen. University student studying environmental science, hobbyist programmer. Marxist-Leninist.

  • 67 Posts
  • 32 Comments
Joined 3Y ago
cake
Cake day: Oct 03, 2019

help-circle
rss

Ubuntu is the stepping stone from Mac/Windows to Linux. Like the tutorial level. It’s also one of the most “corporate” Linux OS vendors outside of RedHat. Of course it’s shitty lol.


The most popular non-Canonical derivatives, Linux Mint and POP OS, have both totally rejected and vocally criticize Canonical’s bullshit, Snap or otherwise. This isn’t going to make the fall in line, this is going to make them finally get serious about ditching Ununtu and switching directly to the upstream Debian base.


And Snap isn’t? If you think Flatpak is bad how exactly is locking you into an objectively worse universal package manager the solution?







Without changing anything else about how the code is managed, which, doubtful considering Musk (at least not for the better), a rewrite will end up just as dysfunctional as the original codebase by the time it’s reimplemented all the features.

And if you were committed to changing your coding practices, a rewrite would almost invariably be unnecessary as slower incremental revisions will invariably cause the codebase to turn over and shed the problematic parts while keeping the working stuff.

When larger codebases than Twitter have managed to completely shift languages without a full rewrite, this idea is coming from ego and Elon’s savior complex, and not a place of logic and actual necessity. Not even shift languages like Java to Kotlin (which, Twitter is written in Scala which is another primarily JVM language) I’m talking full ecosystem shifts like PHP to Python or JavaScript to Rust while keeping the codebase continuous. Not saying it’s easy, but it can at least be mostly painless if and only if it’s managed correctly. For context, Google has switched from Python to Go for its core infrastructure, Firefox is switching from C to Rust and Tor is following the same route, Patreon changed from PHP to Python a few years ago, and Discord is also switching its core infrastructure code from (IIRC) Node.js to Rust.


Elon Musk Wants to Relive His Start-Up Days. He’s Repeating the Same Mistakes.
A great TLDR of why this is a bad idea: https://mastodon.online/@parismarx/109982182514133646
fedilink



I’m still manually doing HTML includes for jQuery and Bootstrap. Not from CDNs either, I download the files to my repository with the correct license and attribution notices and host them on the same static file server as all my custom assets. It’s really not hard to do and also means your website has one less tracker for users to worry about (yes CDNs track you, even the ones that swear they deliver files anonymously because how exactly do you plan on proving that they actually deliver files anonymously).

Also, never really found PWA frameworks any better than good old jQuery and Bootstrap, so yeah I still use those two. This also mean my webpages do not require JS to load, making them lighter, more compatible with legacy browsers, as well as working most of the way with JS disabled if the user is not comfortable with allowing JS from some rando’s blog (which, as a rule, users shouldn’t be).


Also, now that I think about it browser compatibility might be an issue if you change the standard library willy nilly.


Fair enough, but I also think it’s really sad that the open source community, namely the web/JS community, is so averse to copyleft.


I haven’t checked but I am 99% sure that is licensed under MIT which is the darling license of the node ecosystem. When you do that you are basically opening yourself to being abused by corporations.

To be fair, if they’re just distributing the source code, not even AGPL can stop them, since they’re distributing the entire codebase, unchanged, under the same license. Plenty of other reasons not to use MIT, like you said it’s easy for corporations to exploit, but I don’t think this would have helped.

If I had to do something like that I would most likely copy paste the code from a stack overflow answer. Having a whole module for one small function seems ridiculous to me.

Moreover, the JS ecosystem is notorious for its use of helper libraries with a ton of primitives that you then use in your code so you don’t even need to deal with the standard library. The most famous and infamous being jQuery. This couldn’t have been rolled into one of those?


Thoughts on the Leftpad debacle?
Pocket reposted an older QZ article about Leftpad and it's sort of reignited the controversy, at least for me. [Here's the link.](https://getpocket.com/explore/item/how-one-programmer-broke-the-internet-by-deleting-a-tiny-piece-of-code?utm_source=pocket-newtab) I'd love to hear what you think of this, but here are my thoughts: One, why is this not in the JS standard library? It's a *super commomly used* method with equivalents in every programming language, right? JS is pretty notorious for being bloated (which isn't necessarily a bad thing IMO), but the fact that it lacks this basic function is kind of ridiculous? Two, people were calling him out as the villain for having the *audacity* to delete a method he knows powers most of the internet, and to those people I ask: Have you even looked into why that happened? The most common story was just that he was butthurt because "NPM didn't treat him like royalty like he wanted", but, what actually happened was Kik, yes, the messaging platform notorious for being infested with child groomers, that Kik, wanted to publish their own library (I think it was an API for their app), and Koçulu already had a library called kik. So what does Kik do? Are they like any other programmer who would go "aw man, that name is taken, better come up with another name for my thing then!" No! They go to fucking NPM and essentially allege trademark violation (which is bullshit because Koçulu's kik was not a commercial product, and trademarks only apply to names used in commerce). But NPM still removes Koçulu's kik package, at which point Koçulu removed all his libraries and deletes his account in protest, and the rest is history. Long story short, it ends with NPM restoring his packages against his wishes, and as far as I know he never released anything on NPM again. So, generally I see two hiveminds when it comes to this controversy. One is of course people mocking Koçulu for being a snowflake or whatever, that he needs to control his anger and not withdraw his packages because he didn't get his way. Obviously, I disagree with that. I think Kik was being a snowflake for throwing a hissy fit that their name was already taken for something completely unrelated, by someone who almost certainly did not even use their app. They could have named their library kik-chat, kik-app, kik.com, whatever, and it still would have been the same library and people still would still have discovered it. NPM claims that they did this to "reduce confusion", but at best that is massively underestimating the intelligence of people who *already know how to program*, and is a complete lie cooked up by their PR team at worst. Needless to say, I don't think he was in the wrong at any point of this. The other hivemind was really mad at NPM, which is a step in the right direction, but they were mad that they restored his package. That makes no sense either, because one of the pillars of open source is that anyone can publish or distribute it as long as they distribute it with the original license and give credit. NPM is an asshole, but they still have the right to distribute an open source library. What we *should* be mad at NPM for is that they threw him under the bus by removing his package in the first place. Again, Kik has no legs to stand on and NPM was never in any legal trouble because of this, trademarks do not apply to non-commercial products. They're called *trade* marks. Trade. As in commerce. Also, it really highlights their priorities that they hold a corporation infamous for enabling children to be victimized in higher regard than someone making code used by the entire internet and not getting paid for it. I also don't see enough people being mad at Kik. What they did was absolutely unacceptable and they should have faced the brunt of the hate. Then again they've already shown themselves to be horrible so they probably would have shrugged it off or maybe even played into it for publicity. What can the open source world learn from this? Well, for one, I think it has become clear that having your open source dependencies managed by a for-profit company is bad. I wouldn't be surprised if Kik paid NPM a ton of money and essentially "bought" the kik name like a fucking NFT. The solution would be a combination of package repositories managed by worker co-op nonprofits with transparent financial reports, and decentralized/independent package sources hosted by the authors themselves. If JS took inspiration from Java just a bit more and also made their dependency naming system work by domains, we would have gotten `com.koculu.kik` and `com.kik.kik`, and no conflict. Almost like a federated package manager. Especially now that NPM is owned by Microsoft and Yarn was always owned by Facebook, we really do not have a good, trustworthy JS dependency repo, which is a problem because like the language or hate it, it is still extremely important for our modern computing environment. I think it's long overdue to break their duopoly. IDK, that's the end of my rant. Didn't really mean to write a wall of text, just saw this article and got me wanting a retrospective, but yeah. What do you think? Do you agree? Disagree? Why or why not?
fedilink

Thoughts on the Leftpad debacle?
Pocket reposted an older QZ article about Leftpad and it's sort of reignited the controversy, at least for me. [Here's the link.](https://getpocket.com/explore/item/how-one-programmer-broke-the-internet-by-deleting-a-tiny-piece-of-code?utm_source=pocket-newtab) I'd love to hear what you think of this, but here are my thoughts: One, why is this not in the JS standard library? It's a *super commomly used* method with equivalents in every programming language, right? JS is pretty notorious for being bloated (which isn't necessarily a bad thing IMO), but the fact that it lacks this basic function is kind of ridiculous? Two, people were calling him out as the villain for having the *audacity* to delete a method he knows powers most of the internet, and to those people I ask: Have you even looked into why that happened? The most common story was just that he was butthurt because "NPM didn't treat him like royalty like he wanted", but, what actually happened was Kik, yes, the messaging platform notorious for being infested with child groomers, that Kik, wanted to publish their own library (I think it was an API for their app), and Koçulu already had a library called kik. So what does Kik do? Are they like any other programmer who would go "aw man, that name is taken, better come up with another name for my thing then!" No! They go to fucking NPM and essentially allege trademark violation (which is bullshit because Koçulu's kik was not a commercial product, and trademarks only apply to names used in commerce). But NPM still removes Koçulu's kik package, at which point Koçulu removed all his libraries and deletes his account in protest, and the rest is history. Long story short, it ends with NPM restoring his packages against his wishes, and as far as I know he never released anything on NPM again. So, generally I see two hiveminds when it comes to this controversy. One is of course people mocking Koçulu for being a snowflake or whatever, that he needs to control his anger and not withdraw his packages because he didn't get his way. Obviously, I disagree with that. I think Kik was being a snowflake for throwing a hissy fit that their name was already taken for something completely unrelated, by someone who almost certainly did not even use their app. They could have named their library kik-chat, kik-app, kik.com, whatever, and it still would have been the same library and people still would still have discovered it. NPM claims that they did this to "reduce confusion", but at best that is massively underestimating the intelligence of people who *already know how to program*, and is a complete lie cooked up by their PR team at worst. Needless to say, I don't think he was in the wrong at any point of this. The other hivemind was really mad at NPM, which is a step in the right direction, but they were mad that they restored his package. That makes no sense either, because one of the pillars of open source is that anyone can publish or distribute it as long as they distribute it with the original license and give credit. NPM is an asshole, but they still have the right to distribute an open source library. What we *should* be mad at NPM for is that they threw him under the bus by removing his package in the first place. Again, Kik has no legs to stand on and NPM was never in any legal trouble because of this, trademarks do not apply to non-commercial products. They're called *trade* marks. Trade. As in commerce. Also, it really highlights their priorities that they hold a corporation infamous for enabling children to be victimized in higher regard than someone making code used by the entire internet and not getting paid for it. I also don't see enough people being mad at Kik. What they did was absolutely unacceptable and they should have faced the brunt of the hate. Then again they've already shown themselves to be horrible so they probably would have shrugged it off or maybe even played into it for publicity. What can the open source world learn from this? Well, for one, I think it has become clear that having your open source dependencies managed by a for-profit company is bad. I wouldn't be surprised if Kik paid NPM a ton of money and essentially "bought" the kik name like a fucking NFT. The solution would be a combination of package repositories managed by worker co-op nonprofits with transparent financial reports, and decentralized/independent package sources hosted by the authors themselves. If JS took inspiration from Java just a bit more and also made their dependency naming system work by domains, we would have gotten `com.koculu.kik` and `com.kik.kik`, and no conflict. Almost like a federated package manager. Especially now that NPM is owned by Microsoft and Yarn was always owned by Facebook, we really do not have a good, trustworthy JS dependency repo, which is a problem because like the language or hate it, it is still extremely important for our modern computing environment. I think it's long overdue to break their duopoly. IDK, that's the end of my rant. Didn't really mean to write a wall of text, just saw this article and got me wanting a retrospective, but yeah. What do you think? Do you agree? Disagree? Why or why not?
fedilink

Higher death rate per capita than:

  • Weed

  • Heroin

  • Meth

  • Cocaine

But NOT higher death rate than:

  • Sugar (In a way, Coke® is deadlier than Coke)

  • Cars (even if no one drove drunk)

  • Poverty

  • Climate change

Obviously not saying we should legalize every single drug, but just saying there are way worse things than the most fear mongered stuff that most people don’t give a shit about.


the fediverse was using discord to run a hate campaign against the organization

Why do I doubt that if the Fediverse was going to run a hate campagin, they’d use Discord




This is an aggressively Japanese invention.


Interesting. Xiaomi (and Huawei IIRC) seem good about allowing bootloader unlocks as well, so will definitely have to look into this avenue.


What's a good tablet and touch screen oriented Linux distro or desktop environment? Can any of them compete with something like Android?
I'm looking to get a straight tablet (not a 360-hinge laptop with a keyboard) that will mostly be used for mobile centric applications like when I'm out and about or when I want to binge shows in bed. Ideally it will be a device that I can exclusive use the touchscreen with for when I'm either too lazy or can't practically prop it up and use it as a proper laptop. I want to keep at least the software as open source as possible, so my options are either an Android tablet that I can sideload an AOSP de-googled ROM like Lineage OS, or a Windows tablet with an x86 CPU that I'll install a Linux distro on (inb4 "Android is technically Linux"). I currently use KDE Plasma which is my favourite environment when I'm on my desktop, and I quickly found through testing on my touchscreen laptop that it's practically unusable without a mouse and keyboard. Here are some things that I found KDE lacking that I need: * Integrated onscreen keyboard that automatically pops up when you're in a text field, and/or can easily be brought in and out of frame when needed. * Smooth swipe-based scrolling. I find that swiping up on many KDE apps just selects text or drags an element, or does nothing, and you have to drag the tiny scroll bar to scroll. * Pinch to zoom * A terminal that works well with touch screen, namely one that makes it easy to use special characters and control keys with an onscreen keyboard. Termux on Android is what I consider one of the best implementations of this. * Active stylus support with palm rejection is a plus, like the Surface when running Windows or the iPad Pro. I consider myself very knowledgeable with Linux, and I do tinker with my computers a lot, but for this one, I do simply want something that "just works", because I'll either be using it at school/work and can't afford to start diving into conf files and searching up cryptic error messages because something broke, or I'll be in bed just wanting to relax before going to sleep. Finally, is this futile? If we're considering stock Android as a benchmark for a decent user experience on a tablet, can anything on the non-Android Linux side even compare?
fedilink


Like, they don’t need this for spying. Have you seen surveillance satellite technology lately? Like, we’re down to sub-centimeters of spatial resolution and clear enough images for a picture of a person taken from outer freaking space to be recognized by humans and facial recognization alike.

Also, as far as I know there was never anything in the way of steering it right? So if they wanted intel on anything specific like a military base or a research/development institution, this is totally useless. Depending on how far away they released it they wouldn’t even be able to know if it would pass over the American continents, let alone any specific target, and if they released it really close to the US coast wouldn’t the US have found out by now? High atmosphere winds are so unpredictable that there’s a reason it’s the poster child for what is called a “chaotic system”.

Also also, do you think China’s stupid? What, they just didn’t think the US would find it hovering in their airspace eventually and trace it back to them? If this was how they spy on other countries, then they’re so comedically bad at it that they post no threat to anyone, yet China’s supposed to be this super spying powerhouse? And then as soon as news broke out they just proceeded to acknowledge it was theirs? You’re allowed to lie and deflect in espionage. It’s a thing.









The device, part of a sensor used in mining, is believed to have fallen off the back of a truck while in transit.

Oh yeah, we got this tiny extremely dangerous thing that we need to make absolutely sure doesn’t get lost and kill someone by essentially rotting their bones and organs from the inside out.

I know, let’s just throw it in the bed of the truck!


So they’re not going to complain about China banning YouTube or Facebook or whatever anymore right?

That would be hypocritical. And everyone knows the West is never hypothetical!