1
54
418teapot

@lemmy.world

418teapot 53 points 3 years ago

I would have more sympathy for Youtube if 1. it wasn't the de-facto standard where essentially all video media gets uploaded to (which Youtube itself has done everything in its power to make happen) and 2. the company that owned it didn't also own the most popular phone OS, most popular search engine, most popular email provider, most popular ad network, most popular maps, most popular online office suite, most popular airline booking, 2nd most popular cloud hosting... The list goes on

Until a federated solution like peertube gains more traction I have no problem paying content creators directly via patreon, and do everything in my power to not pay Google a dime. Trust me, they can afford it just fine.

path: 0 4379982 4381474, hotness: undefined, score: 53, children: 0
418teapot 30 points 2 years ago

It's kind of insane how bad this whole is-number thing is. It's designed to tell you if a string is numeric, but I would argue if you're ever using that you have a fundamental design problem. I hate dynamic typing as much as anyone else, but if forced to use it I would at least try to have some resemblance of sanity by just normalizing it to an actual number first.

Just fucking do this...

const toRegexRange = (minStr, maxStr, options) => {
  const min = parseInt(minStr, 10);
  const max = parseInt(maxStr, 10);
  if (isNaN(min) || isNaN(max)) throw Error("bad input or whatever");
  // ...

Because of the insanity of keeping them strings and only attempting to validate them (poorly) up front you open yourself up to a suite of bugs. For example, it took me all of 5 minutes to find this bug:

toRegexRange('+1', '+2')
// returns "(?:+1|+2)" which is not valid regexp
path: 0 11496677, hotness: undefined, score: 30, children: 2
418teapot 24 points 2 years ago

Wait, is he serious? I thought for sure this sign was satire...

path: 0 10360542 10360711, hotness: undefined, score: 24, children: 5
418teapot 23 points 2 years ago

Who controls the British pound? Who keeps the metric system down? We do! We do!

path: 0 11698364, hotness: undefined, score: 23, children: 0
418teapot 17 points 2 years ago

On my machine at least man openssl shows that -k is for specifying the password you want to derive the key from, so in that case I think you are literally using the string /etc/ssl/private/etcBackup.key as the password. I think the flag you want is -kfile.

You can verify this by running the command in strace and seeing that there is no openat call for the file passed to -k.

Edit: metiulekm@sh.itjust.works beat me to it while I was writing out my answer :)

path: 0 11501394, hotness: undefined, score: 17, children: 0
418teapot 15 points 2 years ago

Yeah good point. I suppose the problem is this function that operates on numbers allows numeric strings to be passed in in the first place. The only place where I would really expect numeric strings to exist is captured directly from user input which is where the parsing into a numeric data type should happen, not randomly in a library function.

path: 0 11496677 11498132 11501580, hotness: undefined, score: 15, children: 0
418teapot 10 points 2 years ago

Best I can do is

"\ude41🙂".split("").reverse().join("")

returns "\ude42🙁"

path: 0 12060926, hotness: undefined, score: 10, children: 0
418teapot 8 points 3 years ago

Hah, too late. You're already being linguistically fingerprinted by your grammar and word choice. Only option now is to not comment on public forums anymore I guess. đŸ˜©

path: 0 709847 718077, hotness: undefined, score: 8, children: 0
418teapot 8 points 3 years ago

I've felt gross for years, ever since they switched from old reddit to the new trash design. I used old.reddit.com for a bit, but stopped once I saw how much tracking garbage ublock was blocking, even on old reddit.

Before lemmy I was using teddit as a privacy focused frontend for reddit which worked great. But now the API changes will kill teddit so no more reddit for me!

path: 0 464249, hotness: undefined, score: 8, children: 0
418teapot 8 points 2 years ago

It is likely not worth your effort as whatever you come up with will likely result in discord deactivating your account for breaking their ToS, or them breaking their API forcing you to constantly play catch-up.

This is why open communication protocols are so important. Email is still as ubiquitous as it is because it's a protocol, not an API.

I personally think it would be less overall effort to get your friends to switch to an open protocol like matrix, or XMPP than it would playing cat and mouse with proprietary APIs. But you do you, I wish you the best of luck!

path: 0 12269603, hotness: undefined, score: 8, children: 1
418teapot 8 points 3 years ago

The problem isn't the version control itself. Obviously git continues to function and I can commit things offline in a plane. What I can't do is create/review PRs or read/open issues. That's easy to brush off, but the most egregious thing is the fact that this used to be federated over email!

All we needed was more user-friendly tooling to make it easier for new college grads to start contributing to FLOSS, but instead of better email based tooling we got the centralized trash that github is today.

path: 0 1193966 1195903, hotness: undefined, score: 8, children: 6
418teapot 6 points 3 years ago

Yes, it uses the Linux kernel, but usually when people are talking about running Linux on their mobile they're talking about running GNU/Linux, which is way more free (as in freedom) than any android garbage is. For example it is impossible for me to run arbitrary POSIX compliant shell scripts on an android phone.

path: 0 445539 464584, hotness: undefined, score: 6, children: 1
418teapot 6 points 2 years ago

I can't find a keyboard with them, or a copy/pastable line where they've been typed

Maybe use combining diacritical marks?

I'm using 0x326 (Combining Comma Below), but you may need the CGJ in there to render correctly in all contexts

e.g.

Foo!ÌŠ Bar?ÌŠ

Edit: Combining grapheme joiner, not zero width joiner

path: 0 11458125 11458833 11459225 11462633, hotness: undefined, score: 6, children: 2
418teapot 6 points 3 years ago

I hate that Google is exerting even more control on the internet with their TLD, but I don't really think this attack is made all that much worse with .zip TLD. I can already bury a .com in a long URL and end it in .zip just fine like so:

https://example.com/...

Or even use a subdomain to remove the @:

https://github.xn--comfoobarbaz-ji5gdd.example.com/...

The truth is most people don't look much at URLs outside of a domain to verify its authenticity, at which point the .zip TLD does not do much more harm than existing domains do.

For mitigation, Firefox already doesn't display the username portion of the URL on hover of a link and URL-encodes it if copy-pasted into the url bar. It also displays the punycode representation when hovering or navigating to the second example.

Edit: looks like lemmy now replaces 0x2215 which is a character that looks like forward slash with an actual forward slash, so my comment is a bit more confusing. For clarity, the slashes before example.com in the above urls were 0x2215 and not "/".

path: 0 6890814 6894864 6905874 6906586, hotness: undefined, score: 6, children: 0
418teapot 6 points 3 years ago

There's no way of knowing, which is the whole problem with their model and why a lot of us self host things in the first place. Even if they super duper promise not to use the data, they could be lying. And if they are actually true to their word today, that could change tomorrow.

path: 0 1123391 1124675 1129261, hotness: undefined, score: 6, children: 0
418teapot 5 points 3 years ago

While I agree that first party systems suck, as someone with neither an iOS or Android device I personally prefer something work rather than a screen that says "connect iOS/Android".

path: 0 5135954 5144751, hotness: undefined, score: 5, children: 1
418teapot 5 points 3 years ago

It's a VFX shot duplicating I10 in downtown LA a few times to make it look way wider than it actually is by Corridor Crew.

path: 0 577694 578482, hotness: undefined, score: 5, children: 0
418teapot 5 points 3 years ago

The way I remember the order is that the parentheses around the link would make grammatical sense outside of markdown (the goal of markdown is to still be fully readable even when looking at the raw source).

For example if I were posting on a forum that didn't have markdown support which one of these would make more sense:

  1. You can find that on this lemmy instance (https://lemmy.world).
  2. You can find that on (this lemmy instance) https://lemmy.world.

Option 2 makes no sense grammatically. Then you just need to use the square brackets (which rarely show up in non-markdown text) to denote the link range.


Alternatively, if you still have a hard time remembering the order, you can use reference-style links which make it even more readable outside of markdown rendered contexts (note that there are no parentheses in this version, nothing to get confused):

[Here is a link][1] and [here is another link][2].

[1]: http://example.org
[2]: http://example.com
path: 0 886116 886768 891284 891384 893481, hotness: undefined, score: 5, children: 0
418teapot 5 points 3 years ago

it has a nice working sync of connection profiles (even of ssh keys
encrypted!)

Sorry, but what on earth does this have to do with a terminal emulator? Something like this makes way more sense as a separate tool. It's like if I was making a decision of what video player to use because it can sync my browser bookmarks.

path: 0 884192 907462, hotness: undefined, score: 5, children: 0

thanks for using Leebra!

go to feed...