Newest Questions
24,150,599 questions
0
votes
0
answers
1
view
How to disable bfcache and browser disk cache for a page?
I'm trying to prevent a page from being restored from the browser's Back/Forward Cache (bfcache) in a Drupal site.
I have the following response headers set:
Permissions-Policy: unload=()
Expires: 0
...
0
votes
0
answers
3
views
Hard drive ditection is throwing an error such as error mounting /dev/sde1 . how to fix this?
I have been facing this issue after updating the Linux version.
Unable to access "Seagate-Portable-Drive"
Error mounting /dev/sde1 at /media/sindhukumari/Seagate-Portable-Drive:
wrong fs ...
0
votes
0
answers
10
views
Cookie Receiving Bug
This is my Middleware for cheking token am getting cookie in browser but still Problematic what can be the issue anyone know about this bug
import type { NextFunction, Request, Response } from "...
Best practices
0
votes
0
replies
4
views
Should I keep separate DAO methods for entity listing and lookup search, or merge them with flags in TypeORM?
I working as a backend developer in Node.js with TypeScript and TypeORM, and I'm trying to decide on the best repository/DAO design.
I have a TPA entity and currently two separate DAO methods:
1. ...
0
votes
0
answers
6
views
Getting 401 instead of 200 as HTTP response
So I have created a REST API. Some of it protected and some are not. Strang thing is, even if I use permitAll() for these endpoints, I'm getting 401 response, instead of 200.
SecurityConfig:
public ...
0
votes
0
answers
18
views
Flexbox individual items not centred
I have an animated flexbox whereby any item you're pointing at gets more space. This does happen, except the item only gets space to its right rather than on both sides. Also, the flex-grow ratio is 2:...
Advice
0
votes
0
replies
14
views
Accept pipeline input: False
I run Powershell PSVersion: 5.1.26100.8457; PSEdition: Desktop; BuildVersion: 10.0.26100.8457. I'm a learner of PowerShell and try to understand the pipeline input of cmdlets.
The help files of all ...
Best practices
1
vote
3
replies
36
views
In C# 14 how to sort an array in reverse order?
What is the most idiomatic way to sort an array in reverse order in C# 14? Arrays now have methods from the MemoryExtensions class.
For example, given the following array:
int[] arr = [3, 1, 2, 5, 9];
...
-1
votes
0
answers
18
views
How to scale text to fit the phone's dimensions in the new WebPage and WebView introduced in iOS 26?
I am trying to display a website using the new WebPage and WebView introduced in iOS 26 but I am not sure how to scale the text. I want to add two buttons in the toolbar that will allow the user to ...
0
votes
0
answers
23
views
Center window in Python
I'm currently encountering a problem in my code: when I set the resolution to 1600x900 in Python, the window opens at the top and is not centered, and the window also appears to be larger than the ...
0
votes
0
answers
7
views
Avalonia StorageProvider crashes in webassembly when selecting files on local system
I'm developing a simulation program in Avalonia 12. It works well on desktop but there are a few issues with the webassembly version. Biggest challenge is local file access. I'm using the ...
0
votes
0
answers
13
views
Where to fetch and store global data (user, venue, socket) in React
My question is , in large applications we need global data, means some data needs to be fetched first/globally,
For example user data needs to used in whole app
Current Selected Venue Data needs to be ...
Best practices
0
votes
0
replies
11
views
What is the practical approach to become an AI Developer to Build AI powered apps/products?
I request Senior AI Developers to give answer take this question very seriously as most of the students trying to embark in AI your time and advice is very valuable for us so I request all the AI ...
0
votes
0
answers
11
views
Identify Column Clicked in Gtk.Treeview
I have been trying to the column number / id of the column that is clicked in a Gtk.Treeview (in Python...but that is really irrelevant).
I looked at the following sites:
https://docs.gtk.org/gtk3/...
-1
votes
0
answers
24
views
Tags in Django With MariaDB
I'm trying to make a website and part of that is having tags much like this site has. I'm trying this:
def index(request):
storylist = Story.objects.order_by("id")
tagslist = []
...