All Questions
23,924,886
questions
0
votes
2
answers
26
views
How to 'refresh token' using RTK Query
I have a set of API calls written with Redux Toolkit. For example:
import { createApi, fetchBaseQuery } from '@reduxjs/toolkit/query/react'
import { Contacts } from '../datamodel/Contact';
import { ...
260
votes
32
answers
142k
views
Android room persistent: AppDatabase_Impl does not exist
My app database class
@Database(entities = {Detail.class}, version = Constant.DATABASE_VERSION)
public abstract class AppDatabase extends RoomDatabase {
private static AppDatabase INSTANCE;
...
0
votes
0
answers
3
views
Soft-reboting ESP32 DEVKIT1 establish HTTP client POST requests to remote hosting server SQL database, WiFi re-booting doesn't
I just implemented in my sketch communication to remote hosting server SQL database with visualisation of my data based on this example: https://randomnerdtutorials.com/visualize-esp32-esp8266-sensor-...
0
votes
0
answers
3
views
Hand user instance to ModelForm in Admin
I want to access the currently logged in user, show the username, but make it unchangeable:
models.py:
class Comment(models.Model):
desc = models.TextField(max_length=512)
created ...
1
vote
2
answers
4k
views
How to insert a table into a cell in poi word?
I want to insert a table into a cell,I did a demo but failure, can anyone give some advice?
XWPFDocument document = new XWPFDocument();
XWPFTable tableTwo = document.createTable(1,1);
...
-1
votes
1
answer
54
views
Multiple table-based replacement in a SQL function
I need to create a function that performs multiple replacements in a string based on a lookup table. However, the result is always the last replacement as if the previous replacements don't happen. ...
0
votes
0
answers
7
views
why does my page and local host, appear like this "This page is not working"
why does my page and local host, appear like this "This page is not working"
php, i want to fix my page of localhost ?
I am trying to send mail from gmail account to any other email But when ...
1
vote
2
answers
1k
views
Understanding access to NodePort from outside environment
I was reading k8s docs at https://kubernetes.io/docs/concepts/services-networking/service/.
NodePort: Exposes the Service on each Node's IP at a static port (the
NodePort). A ClusterIP Service, to ...
0
votes
0
answers
58
views
js, css, png files are not able to get from memory cache or disc space which result in slowness of application
Recetely upgraded my application and updated application is not able to store js, css, png etc files in cache which result in slowness of application
old application where cache is working
new ...
0
votes
0
answers
7
views
Regex to extract Google Sheet URL where the ID contains a hyphen
I use the following regex to identify multiple GSheet URLs in a string (using Google Apps Script/Javascript):
var urls = str.match(/\b(https:\/\/docs\.google\.com\/document\/d\/)[-\w\\]+\b/g)
However,...
0
votes
4
answers
37
views
convert file json in pandas dataframe
I would like to turn a json file into a dataframe, but I get the error:
ValueError: Mixing dicts with non-Series may lead to ambiguous ordering.
Can anyone help me?
The json file is as follows:
{
&...
0
votes
1
answer
33
views
Managed Kafka instance | OpenShift Developer Sandbox | Denied Permission /deployments/run-java.sh
I have been following this tutorial on how to install a Managed Kafka instance:
https://developers.redhat.com/blog/2021/04/23/connecting-to-your-managed-kafka-instance-from-the-developer-sandbox-for-...
-1
votes
0
answers
10
views
How often will client hit the nextjs server?
How often will client hit the nextjs server if I add the node-cache npm package in app's middleware which uses rewrites and all my pages have getStaticProps along with getStaticPaths and middleware ...
0
votes
0
answers
3
views
How does RSA encode/ decode cyphertext
I am studying the RSA Algorithm. I found that the following properties are given.
$p$ and $q$ are prim
$n = p \cdot q$ and $z = (p-1) \cdot (q-1)$
an $e < n$ is choosen in a way that $e,z$ do not ...
0
votes
0
answers
27
views
Keras validation loss not equal to sum of separate output branch validation loss
I am tuning a neural network which is built using the Sequential API, the output layer looks something like, I am using MAE as my loss function as well:
out1 = tf.keras.layers.Dense(1, name=name1)(x)
...
0
votes
1
answer
123
views
Difficult time trying to figure out where the row operations are going wrong. Following the operations given
I am taking a Linear Algebra for Data Science class through DeepLearning.AI, and one of the exercises has a linear system of equation problem, where you define 3 functions (MultiplyRow, AddRows, ...
0
votes
0
answers
14
views
Remix Fix Zoom Autoscaling TextField
I'm using Remix and I wanted to prevent auto zooming of input textfield on focus mode.
I've successfully made it work. But on non-iphone devices, the ability to manually zoom it doesn't work anymore.
...
1
vote
1
answer
54
views
AWS S3 PDF file upload via PutObjectCommand results in empty pdf
I have an api gateway with a lambda and a s3 bucket. All I am trying to do is upload a PDF file via the API POST request form-data.
When I upload a super simple PDF, for example: https://www.africau....
0
votes
1
answer
28
views
Can I get the values of st_ino and st_dev that used in <sys/stat.h> but in my java code?
I want to replicate this code part that used to convert file to key in my java project in order to access SharedMemory data.
so the code in c looks like that:
key_t ftok(const char *path, int id)
{
...
0
votes
2
answers
279
views
Create a pivot table with ORM Django
I'm working on Django project. This is my model.
From that model i would like to display a pivot table, like the one below.
I want to do a pivot table with Django ORM
0
votes
0
answers
7
views
Jenkins not taking provided Gmail credentials instead of that it is taking System user
In email configuration, Jenkins NOT taking smtp gmail credentials and it is considering System user credentials.
enter image description here
Please help me, what is the reason for this issue.
Test ...
0
votes
0
answers
5
views
Get last used path from explorer in powershell
Is it possible to get the path of the folder that was used by the user in the file explorer last in powershell?
For example, if you have the folders "Programming/Projects" on your desktop ...
0
votes
0
answers
3
views
Postgresql - pg_stat_statements shows only users' records
When I query pg_stat_statements it shows only mine queries/records. Even if I query the view under superadmin I still see only the records of the same user.
How to see queries of all users?
5
votes
1
answer
4k
views
Overriding simple-jwt's TokenObtainPairSerializer to implement 2FA
I am currently trying to implement 2-Factor Authentication in my Django Application. The first thing I've done is to modify the Meta class in the UserSerializer class to add two fields enabled (...
0
votes
0
answers
3
views
Can't install MuMIn package in R
I have come back to some old code from last year and I can't seem to install the MuMIn package. It keeps coming up with this error
install.packages(MuMIn)
Error in install.packages : object 'MuMIn' ...
0
votes
0
answers
5
views
GA4/Looker Studio: not able to filter older data on newly added custom dimension
I have a GA4 property for a website. The data from this property is visualized in a Looker Studio report/dashboard via the standard Google Analytics connector.
At some point in the lifetime of the ...
0
votes
0
answers
6
views
Running 2 Jenkins jobs alternately
I have 2 Jenkins jobs and I want the first job will run every two hours at 0:00, 2:00, 4:00. 6: 00 and so on.
And I want the second job will run also every two hours but at 1:00, 3:00, 5:00, 7:00 and ...
0
votes
2
answers
26
views
How to create a composite key with all but on columns nullable?
I have an entity which does not have any natural primary key. A unique row is identified by three columns, any one of which can have a unique value and other columns will be null.
For the sake of an ...
0
votes
1
answer
13
views
How much CPU & memory to allocate to a ECS task to fully utilise EC2 instance (1 task per instance)
I am running the ECS Cluster using EC2 t4g.micro. This has 2VPCPU and 1GB Memory.
As these tasks will be running in daemon mode (i.e. 1 task per an instance), how much memory and CPU units should I ...
2
votes
2
answers
2k
views
React toastify toast appears 4 times with every single call
I recently started using react-toastify and everything worked fine until I noticed this odd behavior.
Here is my code:
this.adderrorNotification('Error: Please try again!')
adderrorNotification(...
0
votes
0
answers
30
views
Using npm libraries with Office add-in - Cannot read properties of undefined (reading 'length') at Proxy.onMouseMove
I'm trying out a basic example to use Cropperjs within an Office Excel add-in inside a Vue 3 app using the vue-cropperjs library which I installed using npm inside my project. The issue is that ...
-1
votes
3
answers
51
views
How to populate a Multi-Dimensional array (2d matrix) in js?
I wrote a function that creates such a Multi-Dimensional array(2D matrix) with zeros, and then tried to replace zeros in this matrix with digits of populateArr[ ... ] writinga new function ,but ...
0
votes
0
answers
5
views
AWS EMR: Where can I find the Flink jobmanager.log file?
I've setup a flink cluster using AWS EMR. I've attempted to locate the logs files responsible for generating the log output in the Flink UI for both the taskmanager and jobmanager. I've been able to ...
0
votes
0
answers
8
views
How to generate an Espresso test report from the command line
When running Espresso tests from the command line, I need to also generate a test report.
I run my tests from the command line in the standard way:
adb -d shell am instrument -w -e log true -e package ...
0
votes
0
answers
5
views
How to read these regex expressions and how to understand what strings are these looking for?
After extensive search I am unable to find explanation for How to read these regex expressions and how to understand what strings are these looking for?
My main goal is to fetch the branches from git ...
0
votes
1
answer
67
views
How to call Azure Private Zone custom URLs points to AKS from App Service?
Previously have public domain with two subdomains created. Two API services on AKS points to these two subdomains and calling from App Services (UI application) via Nginx ingress controller. ...
0
votes
0
answers
4
views
New to pinescript - function reference 'all'
Am new to pine script and have the following error with a function reference:
// Calculate if volume has decreased for vol_length bars
is_volume_decreasing = all(na(volume[1]), volume < volume[1])
...
0
votes
0
answers
8
views
2 @click events for 1 html element using vue.js 3
I'd like to bind 2 mouse click events to a div field. One of them is a shift+click, the other is a regular click, eg.
<div @click.shift="aaa()" @click="bbb()">...</div>
...
0
votes
1
answer
19
views
How can I create a static portfolio on Shopify and avoid 404 errors?
I am currently trying to create a static portfolio for myself on Shopify. However, I am facing an issue with keeping all the content within the theme itself. My goal is to have specific content for ...
0
votes
0
answers
3
views
Setting Up Webhooks for Git Branches 'main' and 'dev' and Managing Merges
I have a Git repository with two branches, 'main' and 'dev'. And 2 websites main and dev.
I set up a webhook for pushes, which sends a request to the dev website. If it's a push to the 'dev' branch (...
0
votes
0
answers
3
views
ESLint Plugin Not Functioning as Expected on GitHub
When I create a pull request (PR), I don't receive any error message related to the order of props, even though there is an error in the code that violates the rule requiring props to be sorted ...
0
votes
0
answers
4
views
Meeting scheduler algorithm
I have created a function which, given an array of free/busy statuses 101100101110100 (where each 1 or 0 represents free/busy on a 30 minute interval), for each of n people in meeting, will output a ...
0
votes
2
answers
67
views
Console logging not logging variables in Maestro
While debugging API calls I'm making in a script within a Maestro flow, I've discovered that console.log(), which is supported in Maestro as of 1.26.1, doesn't seem to be working as expected - the ...
0
votes
0
answers
4
views
.net c# dapper why possible null return after update
i have this code:
public async Task<T> QuerySingleOrDefault<T>(string sqlStatment, object parameters, CommandType commandType = CommandType.StoredProcedure, int timeout = 90, ...
-6
votes
1
answer
15
views
Issue with game loading on gettingoveritapks.com
I have developed a website called gettingoveritapk.com where I host the Getting Over It game for users to play online. The game has been working fine so far, but recently I noticed some users ...
0
votes
0
answers
4
views
SSO Authentication using supabase and okta not successful
I'm Working On SSO Okta Auth With Supabase and it just redirects to url then bring me to localhost:3000#access_Token=xyz
is the solution to get the data from query URL or there is something wrong ?
...
0
votes
0
answers
28
views
How to increase software rendering video performance in Vue js?
Let's assume I have a thousand of object array which includes .mp4 came from cloudinary. I've also tried to transform into .webm type to compress file sizes but somehow it still didn't much reduce the ...
0
votes
0
answers
8
views
While angular upgrade 12 to 13 getting issue
An unhandled exception occurred: Cannot read property 'styles' of undefined;
For this above issue, suggested to add ng update ngx-build-plus@13 --force from internet, so I have add that again getting ...
-2
votes
0
answers
18
views
An Efficient way for Data Processing Locally
I am trying to solve a problem using local computer resource, an i5 CPU, with 8G of ram and non SSD hard disks. The problem is I want to parse millions of folders, aka items containing XML files from ...
0
votes
1
answer
8
views
Erlang using action id, wait function is not working
I just tried to run a simple function in the terminal:
A1 = async:new(fun(Args) -> lists:seq(1, Args) end, 10).
It is showing the output like this: "#Ref<0.2297416181.3164864513.214889>&...