Newest Questions
24,163,874 questions
0
votes
1
answer
11
views
Google Custom Search JSON API returns 403 - project does not have access with billing enabled
I have a Google Custom Search JSON API returning 403 error despite having billing enabled.
I have tried:
Created 2 different Google Cloud projects
Enabled Custom Search JSON API in both
Activated ...
0
votes
1
answer
11
views
iOS 26 UITabBarController: make tab bar full width without showing bottomAccessory?
I’m testing on iOS 26 / Xcode 26 with UITabBarController.
I noticed this behavior:
If I set bottomAccessory, the tab bar becomes full width
If I do not set bottomAccessory, the tab bar stays floating/...
0
votes
1
answer
18
views
rocksdb crash because of file length limit [File name too long]
I submit Flink SQL jobs on native Kubernetes operator in Application Mode (Flink 2.2.0, Kubernetes operator 1.4.0)
I regularly run into these issues (Stack trace below) and I cannot figure out how to ...
-1
votes
1
answer
14
views
Print both the key and the value for a specific key-value pair
Given the below JSON
{
"k1": "v1",
"k2": "v2"
}
Print the key and value for k1.
What have I tried?
cat data.json | jq '.k1'
This produces and output that ...
0
votes
0
answers
8
views
How does Zarr structure multivariate gridded data?
Can Zarr organise different gridded variables (or sets of gridded variables) into different files in the same directory structure?
E.g., t.x.y/A and t.x.y/BC assuming my spatiotemporal variables are A,...
Best practices
0
votes
1
replies
23
views
How to read line from stdin with timeout on Windows?
I want to read a line from stdin with timeout on Windows. The following code uses WaitForSingleObject without success. Creating a blocking thread seems only transfer the problem to canceling the ...
Advice
0
votes
2
replies
26
views
Performing calculations on elements of lists within a list
I have 12 separate dataframes for 3 subjects and 4 activities for each subject. Using the following code, I have created a list of lists containing indices or "markers" from the 12 separate ...
0
votes
0
answers
18
views
How to handle negative texture coordinates in a CPU raytracer
Years ago I implemented a CPU raytracing software and things work properly. I then implemented a DirectX 12 viewer. I just found out there is some discrepancies between my 2 implementations when i t ...
Advice
0
votes
3
replies
56
views
Pearson HW Chapter 6 Functions
I need help with my homework. I'm not sure what I'm doing wrong. Here is what the homework prompt is: Write a complete C++ program that allows the user to input and sort two values of a selected data ...
0
votes
1
answer
50
views
Random dotted box appears inside div with padding
I have a grid of identical boxes, but some of them seem to appear with dotted lines, corresponding to the padding of the box. It appears to be the same boxes in the grid each time, and each box has ...
-1
votes
0
answers
28
views
Why is my app applying a BiquadFilter without being prompted?
Im using JavaScript Web audio API.
The good news is that the filter I created works as expected.
The bad news is that my app applies the filter without being prompted.
The flow is like this: user ...
0
votes
1
answer
22
views
Azure OpenAI Realtime API: Token usage from `response.done` event does not match Azure Cost Management meter data
Problem
I'm using the Azure OpenAI Realtime API (gpt-realtime-mini-2025-12-15) via the .NET OpenAI.Realtime SDK to measure token consumption. The response.done server event includes a usage object ...
-1
votes
0
answers
22
views
problem with electron app and docker container on localhost
Ok i have an ongoing problem with a project I'm working on. I made an ElectronJS app that I'm going to be installing in the users desktop. This electron app will communicate with an MCP server via ...
Best practices
0
votes
3
replies
30
views
How to prevent DuplicateKeyException when using MongoDB upsert with optimistic concurrency (versioning)?
I'm using MongoDB with the .NET driver and trying to implement an optimistic concurrency pattern with versioning using UpdateOneAsync and IsUpsert = true.
Here is my code:
public Task UpsertAsync(User ...
0
votes
0
answers
84
views
what search algorithm does fread() use
I'm looking at the built-in methods that C has, like fread(). I'm wondering what search algorithm fread() uses to return the number of bytes from a file? I looked on Google, and it says "it ...
-4
votes
0
answers
53
views
Coding a website - cant get it too run on shared hosting [closed]
https://llamacoder.together.ai/share/v2/6X7H_oBvFLd6p-GK
Using AI to help me code - I have this - cant get it to work. It runs perfectly fine n their website- but blanks on my host. Can anyone assist
0
votes
1
answer
44
views
OpenAI Moderation API returns 429 Too Many Requests even with no prior usage
I’m trying to use the OpenAI Moderation API for text moderation, but every request returns a 429 Too Many Requests error — even though I haven’t made any prior requests with this API key.
Error ...
0
votes
0
answers
26
views
Add Two Different Page Numbering Styles to Parent Page
My document is made up of several smaller "sections" compiled into one large document. Each section has its own page-number prefix and is numbered 1 through whatever. They look like MD-23 or ...
0
votes
1
answer
30
views
How Do You Retrieve a Video Output's Preferred Resolution? (BIOS Bootloader)
I am building an operating system for the x86_64 ISA. I am to the point in my development where I want to begin to display things graphically for the user, and therefore wish to retrieve the monitor/...
0
votes
0
answers
24
views
Django on Azure App Service: got an unexpected keyword argument allow_abbrev
I am deploying a Saas with Django 5.2.10 application on Azure App Service (Linux). During container startup, my startup script runs database migrations before launching gunicorn. The container crashes ...
Advice
0
votes
2
replies
60
views
Why people use "src" variables in make instead of just an "obj"?
I always created makefiles like this:
src = file1.c file2.c
obj = $(SRCS:.c=.o)
and never really thought much about it, but now that I want to understand more about make, I do not really see why I ...
0
votes
0
answers
23
views
Qt Creator fails to run application in debug mode
I am developing a desktop application in C++ using Qt Creator. My app runs fine in release mode, but it started to quit after making (perfectly) one display cycle, in Debug mode, without issuing any ...
Best practices
0
votes
2
replies
37
views
Simple PHP API example
<?php
include "./db_functions.php";
$method = $_SERVER["REQUEST_METHOD"];
$uri = parse_url($_SERVER["REQUEST_URI"], PHP_URL_PATH);
$uri = explode("/", $...
0
votes
0
answers
16
views
Connecting from DBX to SAP HANA to Insert in HANA
I want to upload dataFrame records from DBX to SAP HANA and it fails with DBX 16.4 giving error Could not initialize class com.sap.db.jdbc.Driver . Any solution appreciated
Connect to HANA (hdbcli ...
0
votes
0
answers
23
views
Lag by treatment number, multiple rows
How do I add a variable to my dataframe in R, that has lagged values based on previous treatment rows?
I wish to set a variable "previous_treatment_stop_date_missing" as TRUE when there is ...
Advice
0
votes
2
replies
27
views
How do I use INDEX and MATCH instead of VLOOKUP in Excel?
I’m trying to learn how to use INDEX and MATCH instead of VLOOKUP in Excel.
I have a table where:
Column A = Employee IDs
Column B = Names
Column C = Salaries
I want to look up a salary based on an ...
Best practices
0
votes
1
replies
35
views
Simple SQL (Get and Edit Data)
<?php
// get data or modify data
function getData($sql){
$db = new mysqli("localhost", "root", "", "database");
if($db->...
Best practices
0
votes
2
replies
40
views
Metadata-based deepfake detection
I want to develop an mvp metadata-based deepfake detection tool under one month for my final year project and I am still a beginner in Python. Any advice on how I can accomplish this without failing ...
0
votes
0
answers
24
views
Does slick-pg support this PostgreSQL feature?
Using the PostgreSQL-specific slick-pg extension of slick, which supports multi-upsert. Let's consider a small example.
CREATE TABLE foo (id INT PRIMARY KEY, name TEXT DEFAULT 'foo');
The ...
Advice
0
votes
1
replies
34
views
why do need multiple from clauses in a docker file?
to reduce the image size it's claimed:
creating efficient and secure final images by separating the build environment from the runtime environment
The first stage uses a bulky golang image to compile ...
-9
votes
0
answers
66
views
How to guarantee that vector element will not be found? [closed]
I believe this picture will indicate the problem I'm experiencing:
Only when the string is not found then the loop should perform. And clearly this is not the case here.
So how to ensure that the ...
Best practices
0
votes
2
replies
28
views
Identify type of command: alias, command, function
How can I identify what a command is in PowerShell? Is it a function, alias, command, or something else?
For example, the PSWindowsUpdate module seems to include a command WUList which does not ...
Tooling
0
votes
1
replies
29
views
how to find a code of Geometric transformation
**
"What is the code to reflect a triangle across a line y=mx+b**
in an orthonormal coordinate system?
**
"What is the code to reflect a triangle across a line y=mx+b**
**in an orthonormal ...
3
votes
2
answers
59
views
UserDict.popitem is not LIFO
Consider the following snippet:
from collections import UserDict
class D(dict): ...
d = D(foo="bar", baz=42)
print(d.popitem()) # ('baz', 42)
class UD(UserDict): ...
ud = UD(foo="...
0
votes
0
answers
40
views
VBA incorrectly saying a cell is blank
I am writing a code to copy info from a single sheet into a new workbook with separate tabs for each month based on the date in a column titled Date on the source sheet. The code continues to tell me ...
Advice
0
votes
0
replies
19
views
In sieve filters, is it possible to split a string into a list of strings?
In sieve, suppose I have the following variable:
set "thevariable" "a bb ccc dddd eeeee ffffff";
Is there a way to split the value of this variable into the following list of ...
-3
votes
0
answers
33
views
Difficulty stripping track ID from Spotify web API search [closed]
I'm trying to to get the track ID in Python for a track in Spotify (https://open.spotify.com/track/track_id) after returning search results for a track using artist and track name but just keep ...
1
vote
0
answers
20
views
Keycloak EventListener: how to send a custom email template to an email address without creating a user?
I’m implementing a custom EventListenerProvider in Keycloak 26.
When a RESET_PASSWORD_ERROR event occurs, I want to send a notification email to the entered email address.
The important part is:
• ...
Advice
0
votes
2
replies
66
views
How to unescape HTML entities in python
I’m working with text data in Python that contains HTML-escaped entities such as &, <, and >. These entities appear in strings retrieved from external sources like web pages or ...
2
votes
1
answer
62
views
integrate() returns 0 for large finite upper bounds but correct result for Inf
I'm observing inconsistent behavior with integrate() in R when using large finite upper bounds versus Inf.
Consider the integral:
integrate(\(x) x^2 * exp(-x), 0, Inf)
# 2 with absolute error < 7....
Advice
0
votes
2
replies
29
views
Interface and @overflow topic
If an interface cannot extends a class then who it is possible to override to String method, equals method and hash method? As it is Interface it cannot implements the class property and doesn't have ...
0
votes
0
answers
50
views
Mariadb query to get information from two tables when a string match occurs in a certain column in ether of the tables
I'm trying to improve my mariadb knowledge. I have dabbled in it over the years, but all fairly simple queries, sometimes using INNER JOINs, sometimes linking more than two tables and that has been ...
0
votes
1
answer
27
views
For which urls is the http-authentication-factory name="application-http-authentication" from elytron used?
I have an example from wildfly, wildfly-widgets. There credentials are in a realm which is added to ApplicationDomain. The following urls work:
https://<myhostname>:8443/wildfly-widgets/...
0
votes
0
answers
38
views
SwiftUI MapKit- Pitch
I'm building a navigation app and I want the map to follow the user's location and heading with a specific pitch (e.g. 60 degrees...) , similar to how Apple Maps looks during navigation, or Google.
...
-2
votes
0
answers
65
views
After logging in, the user is not updated in the UI until a reload
I have a separate backend I'm building, and I basically have the main auth endpoints. I was making a frontend for it with Next.
The thing is, there's a problem with after I login. When I login, it ...
0
votes
0
answers
21
views
Spark SQL MERGE/INSERT on Iceberg Recomputes Upstream Join Instead of Reusing Cached DataFrame (MEMORY_AND_DISK)
Spark SQL + Iceberg: MERGE and INSERT appear to ignore cached DataFrame and re-scan source
I am trying to optimize an SCD2 flow in Spark SQL (Python API) using a cached intermediate DataFrame.
...
0
votes
1
answer
61
views
Why does tkinter not accept self=None in this case?
Given:
for i in range(5):
if comparisonGuess[i]==word[i]:
print(f"{guess[i]} is in the word at position {i+1}. hooray")
ctk.CTkLabel.place(self=None, text={guess[i]},x=...
0
votes
1
answer
30
views
Git (2.53.0) Credential Manager Not Found on WSL2 Ubuntu 24.04
I have installed Git for Windows on my Windows 11 machine and a fresh Ubuntu 24.04 (as of 3/31/2026) .
I then updated to the latest git within WSL (git version 2.53.0)
Next I configured git on the WSL ...
-6
votes
1
answer
63
views
pip error "Defaulting to user installation because normal site-packages is not writeable" [closed]
This is a writeup of a problem that pussled me a bit. On
pip install ipython
I got an error "Defaulting to user installation because normal site-packages is not writeable".
The error ...
Advice
0
votes
1
replies
46
views
how to use the last file in?
Code of how the web application picks the file:
#Load Data
this_dir = Path(__file__).parent if '__file__' in locals() else Path.cwd()
wb_file_path = this_dir / 'vital_log_2026-03-13_21-20-51.csv'
data ...