All Questions
21,728,403
questions
0
votes
0answers
2 views
WPF Radio button: Clicking on selected button deselects it
I have a group of Radio Buttons in WPF. What is the nicest solution to implement a mechanism where clicking on an already selected button, deselects it so that no radio button is selected. Some kind ...
0
votes
0answers
2 views
How to render different maps (diffuse, depth, specular, shaded) of a 3d model from different camera angles, in Blender?
My task is to render a 3d model from different camera angles. Along with the original snapshot, my script should also render depth/normal/albedo/diffuse/mask/specular maps of the object in view.
I ...
0
votes
0answers
2 views
Downloading video from website using python
I am trying to download a video from the website, but I am unable to download the video specifically. I am unable to download the video. I don't see any error but I also don' see a downloaded video. I ...
0
votes
0answers
4 views
Understanding Code::Block C++ project dependencies, linker, compiler, and static libraries
So currently I am following a tutorial on writing sockets using ASIO on youtube https://www.youtube.com/watch?v=2hNdkYInj4g&ab_channel=javidx9, really great guy. I am not sure the proper way to ...
0
votes
0answers
2 views
How can I hide my gmail.smtp password when using SMTP.js?
I want to send an email from my website. It's a static website so I only have JavaScript. Gmail has an SMTP service that is free to use and allows to send messages from the browser using smtp.js.
The ...
0
votes
0answers
2 views
SSE Eventsource Asp.net Core 3.1
[ApiController]
[Route("/SSE/[action]")]
public class SSEController : Controller
{
private static ConcurrentBag<StreamWriter> clients;
static SSEController()
{
...
0
votes
0answers
3 views
problem installing canvas on ubuntu,Bundler could not find compatible versions for gem "bundler"
I'm trying to install canvas lms , but am have faced with the following issue. Any help. enter image description hereplease
Bundler could not find compatible versions for gem "bundler":
In ...
0
votes
0answers
3 views
UICollectionView lag when scrolling With GIF Images
In my collection view, I'm using the FLAnimatedImage library to load the GIF images. But every time when I'm scrolling the collection view there is considerable lag is there. I'm pretty sure that is ...
0
votes
0answers
3 views
Execution failed for task ':rtmp_publisher:compileReleaseKotlin'
When compiling project(build apk) it returns error:
e: C:\Users\1\FlutterSDK\flutter\.pub-cache\hosted\pub.dartlang.org\rtmp_publisher-0.3.7\android\src\main\kotlin\com\app\rtmp_publisher\Camera.kt: (...
0
votes
0answers
3 views
How do I make a date to date calculator with assigned value per month for daily charge
I want to make a php calculator.
First i want it to have an assigned value per day for every month. For example marchs daily value is $12 and January is $7.
Based on these values I want the calculator ...
0
votes
0answers
3 views
Ansible : 'NetworkManagementClient' object has no attribute 'private_endpoints'
I try to deploy a private endpoint for a storage account with Ansible. I am using azure.azcollection.azure_rm_privateendpoint. My playbook code is as below:
- name: Create PE
hosts: localhost
...
0
votes
0answers
4 views
Set spinnerMode programmatically
I can make a button to check which spinnerMode on another but I don't know much how to do it.
Let's say I have a spinner like below
val setSpinnerMode = findViewById<Spinner>(R.id.Spinner)
I ...
0
votes
0answers
7 views
Is there a way to check specific key presses in the Java command line?
Is there a way to check key presses when working with the CLI? For example I have a function where I want the user to enter an Integer input via Scanner, but I'd like to be able to have them press ESC ...
0
votes
0answers
4 views
"ERROR webdriver: Request failed with status 404 due to invalid session id: invalid sessio"
I am using webdriver.io for automation testing but i am getting error ERROR webdriver: Request failed with status 404 due to invalid session id: invalid session"
and this is my code
describe(&...
0
votes
0answers
3 views
display woocommerce latest orders in dashboard.php
I'm trying to show customer last 3 orders in woocommerce dashboard.But get_template() does not work at all and shows nothing. I also tried to put orders.php form table in to the dashboard.php but It ...
0
votes
0answers
3 views
About Grpc and tensorflow
I recently get a chance which working with my professor about reform Grpc. So my question is probably very naive but I really appreciate if someone could explain the relationship between Grpc and ...
-1
votes
0answers
4 views
IntelliJ error when package name different than the folder name
I was writing a simple class HelloPrinter3.java. It's in directory src/two. Now IntelliJ is giving me an error, saying Package name 'three' does not correspond to the file path 'two'. But it also ...
0
votes
0answers
13 views
Why is unique=True not enforced when using create()?
I have a model with a unique charfield:
class EmailTemplate(models.Model):
name = models.CharField('Name',
max_length=255,
help_text=_(&...
0
votes
0answers
6 views
What would be an efficient way to solve this?
What algorithm should I use to solve this efficiently, I tried multiple ways using nested loops but they're length and don't seem to work.
0
votes
0answers
3 views
Custom 'OR' Request.Query for epilogue
I have an Epilogue Ressource (i.e an API endpoint).
let actionPlanResource = epilogue.resource({
model: orm.models.action_plans,
include: [
{
model: orm.models.plannings,
...
0
votes
0answers
8 views
Why isn't my validation working in my template function for C++?
I have attempted to make a program which allows the user to input 2 values as integers and 2 as doubles, to find the maximum of the two, respectively, using template functions in C++. I can't seem to ...
0
votes
0answers
2 views
How to disable angular mat-dialog "disableClose" property for specific components?
I have one functionality in which I need to disable specific component screen. for ex - I have one component called task-list and in that I'm using my modal popup I'm using disableClose:true for ...
0
votes
0answers
8 views
how to insert an element to the beginning of a vector and not end without using insert?
how to insert an element to the beginning of a vector and not end without using insert?
this is what I have in mind:
for(int i=vector.size();i>0;i--)
{
vector[i]=vector[i-1]
}
vector[0]=value;
...
0
votes
0answers
4 views
Upload file with Flask using request json data
Express.js backend is getting an uploaded file from client and it should pass this file to Flask service. I am able to get uploaded file as JSON in Express backend and then I can pass it to Flask ...
0
votes
0answers
4 views
How to return a value from the while/for loop in Scala
I am a newbie in Scala. I have a function that finished with this code:
var ret = " "
while(resultSet.next()) {
for (i <- 1 until 8 by 1) {
ret = ret.concat(resultSet.getString(...
0
votes
0answers
5 views
React Native Dynamic module with native app gives "couldn't find DSO to load: libjsc.so"
We are trying to load a module dynamically that contains all the react-native related files. but unfortunately, we are getting the below error
We searched a lot but couldn't find the proper fix for ...
0
votes
0answers
3 views
After migrating to rails version 6.1.. i am getting PG::InsufficientPrivilege: ERROR: permission denied for relation user on production env
Prior to this migration, I used Makara gem to split DB connections for writing and reading as follows:
production:
<<: *default
url: postgresql-makara:///
makara:
sticky: true
...
0
votes
0answers
11 views
How to log table information using python
I have the following table (df):
Col1
Col2
Col3
A1
finished
1234
A2
ongoing
1235
A3
NaN
1236
A4
finished
1237
A5
started
1238
A6
finished
1239
I would like to log the information from that ...
0
votes
0answers
3 views
Issue with inspecting QJsonObject in QtCreator with CDB
Recently updated to Qt 5.15.0.
But now, I see some problems displaying JSON objects in the watchlist. Found nothing while digging google last few hours.
See the screenshots:
Any ideas what is wrong ...
0
votes
0answers
7 views
Scan page and find missing header tags
We're implementing accessibility on our site. As the content on the site is authorable, one of the requirements asked by the client was to be informed if the header tags are skipped on a page. For eg. ...
0
votes
0answers
6 views
Normal , reverse, alternate, alternate-reverse in Android Animation
The animation-direction CSS property sets whether an animation should play forward, backward, or alternate back and forth between playing the sequence forward and backward. Is it possible to write a ...
-1
votes
0answers
7 views
change color of unfilled area of tkinter image
When the image size does not match the frame size, it seems that Tkinter just put a gray area as a background.
Is it possible to change this unfilled background? Or make the image fill entire frame?
...
0
votes
0answers
8 views
python web request scrapping return error 404
iam trying to web scrap this yellow page website to get contacts detail below iam trying to do a POST requests but return with a 404 error message. iam using https://curl.trillworks.com/ to convert my ...
0
votes
0answers
5 views
How to correctly inject local JS in android-webview redirected url
I am loading a url in android webview which asks user to sign-in and then redirects to a new url webpage. I want to add js script in body of final html webpage on webview.
The html of final webpage ...
0
votes
0answers
4 views
Running yarn run docker:setup && yarn run docker:install gives me "The engine "node" is incompatible with this module."
I'm trying to run the following command inside a project:
yarn run docker:setup && yarn run docker:install
But I keep getting the following error:
The engine "node" is incompatible ...
0
votes
0answers
6 views
@SqsListener Not consuming the messages in the queue
I'm using my spring boot code to connect to an AWS SQS service. Right now I'm using Localstack but the problem remained even in the AWS console. I'm able to send the messages to the queue but my ...
0
votes
0answers
5 views
sqlite - Multiple records referenced to single row
I created a "tasks" program (python3.6) which has the following sqlite DB structure:
date, time, project, task, owner, comment
Each row represents a task and its working fine. Now I want ...
0
votes
0answers
5 views
Page tracking not working Google Analytics
The problem can be described as this:
The web-page i am tracking is located inside a frame. I am using gtag.js, "page_title" and "page_path" are overwritten with custom values. ...
0
votes
0answers
3 views
Azure SingalR Service connection ended without reason on Blazor Server App
We have a Blazor Server App which is connected to the Azure SignalR Service. More or less randomly we get a disconnect and our clients need to reload to establish the connection again. I added logs to ...
0
votes
0answers
4 views
Removing View with EnvironmentObject causes crash (SwiftUI)
I have an array of structs, which ForEach uses to generate SubViews. When I delete one of object from that array, one of SubViews disappear as expected. But when I pass an EnvironmentObject to the ...
0
votes
0answers
4 views
Trying to send emails with user-input through the php mail function, but cant get it to work
This is my first time learning php, and I wanted to create a simple newsletter, that would take the user's email as input and proceed to send a mail to that particular email, using the php mail() ...
0
votes
0answers
3 views
How to build a Gantt chart in Python using the matplotlib library?
I got data like this (title, status, end time and start time):
data = [('address', 'fail',
datetime.datetime(2020, 5, 7, 7, 7, 15, 345861, tzinfo=datetime.timezone.utc),
...
0
votes
0answers
5 views
Adjust existing json file using python
I'm very new to programming and using Python in particular. Just been following a course for the past couple of weeks. Now i'm trying to adjust a provided json file using python.
But since i'm new to ...
-1
votes
0answers
10 views
Async action function in reduce return promise, but I want an object instead [duplicate]
I am new in React Native, and I have a problem with reducer action
const handlers = {
'loadEpgDay': async(state, payload) => {
let epgDays = state.epgDays;
if(...
0
votes
0answers
12 views
Merging two dataframes that have only one column that names the same
I am new at merging dataframes.
I want to compare two dataframes:
left:
A
0 a
1 b
2 d
right
A
0 a
1 b
2 c
3 d
I want something like this:
A A_1
0 a a
1 b b
2 ...
0
votes
0answers
18 views
In JavaScript, how to get back the results of a callback function for all the elements of an array, and execute some logic on them?
I have a function that calls an API, and the API accepts a callback:
const callApi = async (param1, param2) => {
api.doSomething(param1, param2, (result) => {
// I want to return the ...
0
votes
0answers
7 views
Angular - Accessing child components services
In an Angular app I have a situation where a component A holds an unspecified number of children of component type B (via *ngFor). I would like for component A to
push and receive data to and from the ...
0
votes
0answers
7 views
Jenkins Kaniko Failed to Push to GCR
I have Jenkins running in Kubernetes along with Kanika to build image, and I want to push to GCR.
And for the service account, I use "owner" level service account (just for PoC).
My pipeline:...
0
votes
0answers
5 views
How to set values in cell to write in android studio
here is my code , and I managed to set label for my excel .
but i want to set values to cells witch is an array and i want to set values with For loop but with this code my for loop doesnt work and ...
0
votes
0answers
3 views
Cypress in Docker can't connect to angular localhost on port 4200
In Jenkins I am running the frontend angular service in Docker and want also run Cypress and connect to the running angular server.
In Angular Dockerfile is EXPOSE 8080, what I can't change, but the ...