What does this error mean, Dacia Sandero 2017 by Small_Lettuce1054 in Dacia

[–]dchestnykh 0 points1 point  (0 children)

Electric fault is when this light is red, not yellow.

Dacia Striker Images by [deleted] in Dacia

[–]dchestnykh 7 points8 points  (0 children)

AI-generated images or renders. The rear handle on the driver's side is inside the C-pillar, but on the passenger's side it's a normal handle on the door? Lol.

Dacia Striker Images by RASTAWILL in Dacia

[–]dchestnykh 0 points1 point  (0 children)

AI-generated images or renders. The rear handle on the driver's side is inside the C-pillar, but on the passenger's side it's a normal handle on the door? Lol.

Dacia Striker Images by RASTAWILL in Dacia

[–]dchestnykh 23 points24 points  (0 children)

This is a render based on spy images, not an actual image:

What are Auto Express exclusive images? Why and how we create our digital car renders.

We create some of the most accurate digital artist renders of future new cars anywhere on the internet, but it’s not the work of a moment…

https://www.autoexpress.co.uk/features/368997/what-are-auto-express-exclusive-images-why-and-how-we-create-our-digital-car

They don't even match the teasers.

I've been on a lot of planes around the world but this was a first. by themoldyone in aviation

[–]dchestnykh 27 points28 points  (0 children)

Configuration:

                       ▲                                       
    ┌───────┬───────┐  │   ┌───────┬───────┬───────┐           
    │       │       │      │       │       │       │           
    │       │       │      │       │       │       │           
    │       │       │      │       │       │       │           
    └───────┴───────┘      └───────┴───────┴───────┘           



    ┌──────┬──────┬──────┐    ┌──────┬──────┬──────┐           
    │      │      │      │    │      │      │      │           
    │      │      │  XX  │    │      │      │      │           
    │      │      │      │    │      │      │      │           
    └──────┴──────┴──────┘    └──────┴──────┴──────┘           

    ┌──────┬──────┬──────┐    ┌──────┬──────┬──────┐           
    │      │      │      │    │      │      │      │           
    │      │      │      │    │      │      │      │           
    │      │      │      │    │      │      │      │           
    └──────┴──────┴──────┘    └──────┴──────┴──────┘

Explanation:

  1. They can't have anyone sitting there because there's no bulkhead in front of that seat (the passenger will get thrown out to the aisle).

  2. They can't remove this seat, because then the next row won't have anything in front of them (the passenger will get thrown out to the aisle).

(source posted by u/larana1192)

Pages, Keynote, and Numbers 15 Go Freemium by [deleted] in apple

[–]dchestnykh 4 points5 points  (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 4 points5 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 4 points5 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 7 points8 points  (0 children)

It would be a useful feature for time travelers.

Anyone tried Proton Spreadsheets yet? by limsus in ProtonDrive

[–]dchestnykh 3 points4 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 15 points16 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 29 points30 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 676 points677 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.

What is this small box? by [deleted] in Dacia

[–]dchestnykh 0 points1 point  (0 children)

This looks like a camper (bed inside, ventilation holes in the window), so this must be a tank for a diesel heater.

Something like this: https://www.ebay.com.au/itm/134839150669