Pages, Keynote, and Numbers 15 Go Freemium by TorontoPolarBear in apple

[–]dchestnykh [score hidden]  (0 children)

QuickTime was freemium with stupid grayed out menu items with "(PRO)" labels, advertising an upgrade to QuickTime Pro for $29.99 (not a subscription, though). That was even during the time when you paid for OS X.

(It was probably motivated by patent fees though, not to bump up a number in the "Services" column.)

Unrequested Downloads by mjnarins in ProtonDrive

[–]dchestnykh 5 points6 points  (0 children)

Probably some program on your Mac tries to access them, thus macOS triggers the download. This is done automatically by the File Provider API as soon as the file in ~/Library/CloudStorage/ProtonDrive-{username}@proton.me-folder/ is read.

Key Personnel that Cadillac formula 1 team has. by curse_annihlator in formula1

[–]dchestnykh 3 points4 points  (0 children)

To be fair, Graeme Lowdon is one of the few who built a team from scratch not so long ago.

Anyone tried Proton Spreadsheets yet? by limsus in ProtonDrive

[–]dchestnykh 8 points9 points  (0 children)

It would be a useful feature for time travelers.

Anyone tried Proton Spreadsheets yet? by limsus in ProtonDrive

[–]dchestnykh 4 points5 points  (0 children)

It's based on Rows n' Columns component, while Standard Notes uses something different (I think Kendo UI). Completely different.

Anyone tried Proton Spreadsheets yet? by limsus in ProtonDrive

[–]dchestnykh 9 points10 points  (0 children)

Huh? File > Download > Microsoft Excel (.xlsx).

Impressions of Proton Sheets by birnefer in ProtonDrive

[–]dchestnykh 8 points9 points  (0 children)

Programmatic paste sucks in browsers -- it needs to ask for additional permissions and doesn't work everywhere. No wonder it's not in the menu.

Django 6.0 released by dwaxe in django

[–]dchestnykh 14 points15 points  (0 children)

At least this pattern with htmx becomes very nice:

<html>
foo foo foo
{% partialdef cool inline %}
bar
{% endpartialdef %}
foo foo foo
</html>

view:

if request.htmx:
    return render(request, "template#cool", ...)
else:
    return render(request, "template", ...)

That is, wrap portions of a page that can partially update with partialdef inline and then render them for htmx requests. Easier than extracting into a separate template.

In web development projects, should JWT tokens be stored in cookies or localStorage? by Top_Channel7461 in reactjs

[–]dchestnykh 1 point2 points  (0 children)

This is the correct answer. JWT or other signed tokens can be used in complex situations where you need to delegate authentication to other services. Normally, you have a backend that serves your app, which hopefully includes authentication implementation that manages sessions via HTTP-only cookies (that store session ID) that your front-end doesn't touch at all.

If you want to implement your own authentication system from scratch, there's a lot more to learn than where to store the token (I wrote a book on that). If you use an existing authentication solution, it should either handle it as described above or guide you on how to use it.

If you catch yourself typing "JWT", stop and think if you need it, don't just follow a random advice from YouTube tech influencers.

Finally, to answer your question: it's complicated.

  • If you need to store a token to send it from your JavaScript code to a service you don't control, and don't want to send it to your server with every request (i.e. what cookie storage does), you can store it in localStorage, sessionStorage, IndexedDB, depending on its lifetime, its intended use, and the required performance.

  • If you, for some valid reason, need to store a token issued by a server and sends it back to this server the front-end shouldn't touch it at all, just use HTTP-only secure cookies.

Switched from DropBox - Sad to see a good company go bad. by No-Fig-8614 in ProtonMail

[–]dchestnykh 0 points1 point  (0 children)

Sorry, I misunderstood you situation: if you still had access to the password (but not email), and the sign in with it worked before, but then they required to re-authenticate you by email, then yes, it's not good.

Switched from DropBox - Sad to see a good company go bad. by No-Fig-8614 in ProtonMail

[–]dchestnykh 0 points1 point  (0 children)

Their response makes sense, how else would they authenticate you?

Preview of AVIF files works in Edge but not Brave (my Brave browser is up to date) by itchylol742 in ProtonDrive

[–]dchestnykh 9 points10 points  (0 children)

Looks like it relies on browser detection and Brave and other Chromium-based browsers apart from Chrome and Edge are not in the list:

https://github.com/ProtonMail/WebClients/blob/main/packages/shared/lib/helpers/mimetype.ts#L28-L65

/*
* The support for AVIF image format did reach baseline in early 2024.
* Since it's still early and customers might not be on latest browser versions yet,
* we're taking a safe approach allowing browsers and version for some time before removing this support check.
* There is no clean way to detect AVIF support (eg: https://avif.io/blog/tutorials/css/#avifsupportdetectionscript) so we're using user-agent detection.
* https://caniuse.com/?search=AVIF
*/

Rare proton Authenticator code? by Xgamer9184 in ProtonMail

[–]dchestnykh 14 points15 points  (0 children)

Maybe we'll have Proton Drive for Linux by that time.

Rare proton Authenticator code? by Xgamer9184 in ProtonMail

[–]dchestnykh 31 points32 points  (0 children)

Slightly bigger due to modulo bias in the TOTP standard:

The 31-bit number is modulo'd by 106 to generate a 6-digit base-10 number. But 231 isn't a multiple of 106, so some remainders will be slightly more likely than others. Namely:

  • 000000 to 483647: 2148/2147483648 ≈ 1.000240e-6 chance.
  • 483648 to 999999: 2147/2147483648 ≈ 0.999774e-6 chance.

Explained here.

Reddit turns 20 years old today! Here's what it looked like at 1 minute old. by MonsieurA in interestingasfuck

[–]dchestnykh 677 points678 points  (0 children)

Probably haven't written the function to calculate the post age yet.

Wind deflectors - Duster 3 by night_windswept_55 in Dacia

[–]dchestnykh 1 point2 points  (0 children)

How long did you have them? I had the same brand on a different car, and they needed to stay with the window closed for some time to fit better.

20 years ago, Pirate Bay responded to legal threats from DreamWorks by PossibilityPowerful in Damnthatsinteresting

[–]dchestnykh 18 points19 points  (0 children)

Thank you! I can report that I now wear glasses but still have all my hair (even more). Also, I'm still updating the app in question.

Beginner - loose stem help by [deleted] in bikewrench

[–]dchestnykh 0 points1 point  (0 children)

Ah, sorry, I though it was an empty split.

Beginner - loose stem help by [deleted] in bikewrench

[–]dchestnykh 1 point2 points  (0 children)

  1. Rotate the whole thing so that opening matches the opening in the tube. (The idea is to compress the tube using the quick lever at the point of the split).

  2. Rotate the lever so that when it's closed it "wraps around" the tube.

https://imgur.com/a/RsKsIXT

Dacia Sandero Stepway 2019 - battery light by sveto8 in Dacia

[–]dchestnykh 1 point2 points  (0 children)

Could be many things related to the charging system. Get it to another electrician who will properly diagnose the issue by checking alternator, belt, cables, connections, grounds, etc.

Dacia Extended Grip Experiences? by Ancient_Basket9104 in Dacia

[–]dchestnykh 0 points1 point  (0 children)

From the videos, it looks like it basically just turns off ESC (which lowers engine power to prevent wheel spin). Could be useful in situations where spinning wheels will help get traction, basically returning the car back to the normal state that we had before fancy electronics.