Newest Questions
24,150,604 questions
Tooling
0
votes
0
replies
2
views
Jooq convector with enum polymorphism
I'm migrating from JPA to jOOQ and have a problem with enum persistence.
In my JPA implementation, I have 50+ enums that all implement a common Encodable interface with a code field (int):
public ...
0
votes
0
answers
3
views
Moodle 5.1 "The Moodle root directory must not be publicly accessible" error on XAMPP
I am installing Moodle 5.1 on Windows using XAMPP.
Apache and MySQL are running correctly, and I created a database named `moodle` in phpMyAdmin.
I configured `config.php` with:
$CFG->dbtype = '...
0
votes
0
answers
7
views
Placing own variable inside existing Windows executable
I'm modifying a behavior of an existing Windows app and need to keep my own variable somewhere. This variable is calculated in one subroutine and then should be accessed from another one. It means, it ...
Advice
0
votes
1
replies
11
views
Is there a name for this 2-out-of-3 Venn shape?
Does this shape have a name?
If you have a Venn diagram of 3 overlapping circles, it's the area where at least two of those circles overlap. The union of pairwise intersection, in math terms.
I'm ...
0
votes
0
answers
8
views
Why does until *<addr> fail with a memory error while tbreak *<addr> works in GDB?
TL;DR: Despite the documentation stating they accept the same arguments, until *<addr> calculates an incorrect target breakpoint address (e.g., 0x1) using the expression evaluator, whereas ...
0
votes
0
answers
9
views
X32dbg Parsing Command Line Failures
I'm attempting to set a breakpoint on kernel32.WriteFile (or KERNELBASE.dll export) and have the breakpoint automatically print the stack return address and the nNumberOfBytesToWrite argument (which ...
Advice
0
votes
1
replies
28
views
How to find name matches exact, partial or no match from two list
I need to match two name lists and identify if the record is found in another list with full, partial or no match and extract the row id for the match. For simplicity, the lists are unique but the ...
0
votes
0
answers
19
views
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
...
-1
votes
0
answers
18
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
17
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
24
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
26
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
2
replies
22
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
4
replies
59
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
21
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 ...