All Questions

Filter by
Sorted by
Tagged with
1
vote
1answer
15 views

Update IMG SRC value with the .load() return with jQuery

The following puts whatever I echo in whatever.php into the myDiv div, and it's fine. $('#myDiv').load('whatever.php'); If I do document.getElementById(id).src = 'newpic.jpg'; If id points to a ...
0
votes
0answers
3 views

how to use oql search map value

I have a heapdump object. I know the key of the map. How can I find the corresponding value? such as select s from java.lang.String s where /mail.user/.test(s.value.toString()) But the ...
0
votes
0answers
40 views
+50

Qt 5.7.1 / gcc 6.3.0: error: body of constexpr function 'static constexpr int QMetaTypeId2<T>

This piece of code namespace Config { class Value { public: enum Type { Null, Integer, String, Map, List, Boolean }; Value(); Value(int v); ...
0
votes
0answers
2 views

Error inflating class of binary xml file in Cardview

This is my Java file which is not opening package com.impwala.impwala; import android.content.Intent; import android.os.Bundle; import android.view.View; import androidx.appcompat.app....
0
votes
0answers
2 views

How to access GraphQL API with token using httpPost in java

I am working on one requirement. We need to hit one GraphQL API to send data from our end. For getting token, we need to hit one more API. I am getting the token but when i am providing that access ...
1
vote
2answers
179 views

GCP endpoints: The caller does not have permission after requesting API key in query

Trying to use Google Cloud platform with a GKE deployed backend. I have a swagger file for the endpoints that works fine when not using security. I added the api key definition in the swagger file: ...
0
votes
0answers
4 views

how to inline two border

this is my code: * { padding: 0; margin: 0; box-sizing: border-box; font-family: Arial, Helvetica, sans-serif; } body, html, #app, .Main { height: 100%; } .Main { display: flex; ...
0
votes
1answer
59 views

Seekbar/Seek Buttons are disabled in Exoplayer for .mkv files

In an Android App, I am trying to play videos from URL. For .mp4 files it plays fine including seeking features. But when I try with .mkv videos it plays but seekbar (Timebar) looks like progressbar (...
1
vote
4answers
797 views

Parsing CSV to list of tuples without using CSV module

I'm working on an assignment in a Python class at the moment, and one particular part is asking me to import a CSV file (with data in the format of "text, number, number, ..., number, number") without ...
0
votes
1answer
13 views

Initialize and print each element in new line of a list inside list

Take the list given below:st=[[1,2,3,4],[5,6,7,8]] Tried using for loop
0
votes
1answer
15 views

Using `sort` based on a regex-matching beginning

I would like to sort an output similar to the following: [drwxrwxrwx user group 64] /Volumes/Sample\ Disk/ [-rwxr-xr-x user group 8.0K] /Volumes/Sample\ Disk/file.txt [drwxr-xr-x user ...
0
votes
1answer
17 views

Pass session variable as Key-Value pair to PHP file using AJAX post

I have a session variable, say $_SESSION['Current_User']. I want to pass it to a URL as a key-value pair using AJAX. I have some HTML inputs as follows: HTML is: <INPUT type='text' name='input_1' ...
0
votes
0answers
31 views

Memory leaks in InkEdit control

I can't destroy InkEdit without memory leaks. The Dispose method helps a little, but still, a lot of unmanaged resources are not freed. // Create 16 InkEdit components for (...
1
vote
1answer
62 views

Using MS Project VB Macro for Obtaining Custom Field Value at Assignment Level

In our Project Enterprise installation there is a task level custom field called Billing Rate, but in the plan it is populated at the assignment level, like the following: Task Name Billing ...
0
votes
0answers
4 views

gtest - linker finds `libgtest.a` but still complains undefined reference to `testing::Test::Test()`

I am new to google test for C++. I installed google test by downloading source code from GitHub. I built it with CMake and installed it into $HOME/.local. Then I test with the following code. #include ...
0
votes
0answers
3 views

Entity framework core vs Stored procedure implementation in dot net core Api?

For performance and development time cost which is better? I have found some difference in stack overflow or in some other websites. But these are very old and saying almost every where that store ...
0
votes
0answers
3 views

Android MP3 PCM Hook to Bluetooth

I want to make a DAC/AMP for my HiFiman HE 5Se Headphones. I'm using parts from an Onkyo. It didn't have a Bluetooth chip. So I've learned a lot about bluetooth. One thing I've learned is that it only ...
0
votes
0answers
3 views

Select M items from N items such that completing these M item's tasks take the minimum time

I'm trying to solve the following problem: You are given N items. Each item contains three tasks A, B and C. The time required to complete task A is TA, task B is TB, task C is TC. Now, we must select ...
1
vote
0answers
19 views

ValueError Length mismatch Expected axis has 2 elements, new values have 3 elements

def bar1(): df=pd.read_csv('#CSVFILELOCATION#',encoding= 'unicode_escape') x=np.arange(11) df=df.set_index(['Country']) dfl=df.iloc[:,[4,9]] w=dfl.groupby('Country')['SummerTotal' , 'WinterTotal'].sum(...
0
votes
1answer
46 views

Laravel Testing Fails with “… ReflectionException: Class config does not exist …”

I searched StackOverflow and the web tried everything I found out there to address the issue below to no avail. The error only happens during phpunit testing. If run the Laravel application (php ...
0
votes
1answer
18 views

Error when user sequence for primiary key in postgres and Hibernate

I'm using JPA/Hibernate and postgres as my DB I created a sequence in postgres like this : CREATE SEQUENCE player_sequence INCREMENT 20 START 1; I want Hibernate to use the above sequence for primary ...
0
votes
0answers
4 views

Every time i start empty activity, i get the following 13 error. This is my 6th time trying every possible solution out there

Information:Gradle tasks [:app:generateDebugSources, :app:generateDebugAndroidTestSources, :app:mockableAndroidJar] C:\Users\cheik.gradle\caches\transforms-1\files-1.1\appcompat-v7-28.0.0.aar\...
0
votes
0answers
2 views

C++ udp boost client doesn't receive udp messages

When I run: nc -ul <ip address> <port> I receive messages from the udp server. However when I try to reproduce the equivalent using the below C++ program with boost it just freezes on ...
0
votes
0answers
4 views

I don't know why the same code works for Julia but not work for Mandelbrot?

I have the following code that generates a Mandelbrot image. The white spaces around the image, which has to be gotten rid. import numpy as np import matplotlib.pyplot as plt from pylab import * from ...
2
votes
1answer
30 views

Given two integers m and n, where m >= n, how can you create a generator to return all the sliding windows?

To clarify consider two strings, one of length m and the other of length n. As an example m = 3 and n = 2, with s1 = abc and s2 = de. First we compare: abc de and generate tuple (0, 1) (as a and e ...
0
votes
0answers
4 views

Unable to plot images

I am trying to plot the 3 images(img.jpg) belonging to the 3 classes in my dataset with the following code: plt.figure(figsize=(10, 10)) for images, labels in train_dataset.take(1): for i in range(9)...
0
votes
0answers
5 views

Is YouTube API dependent on a specific browser?

I am using the YouTube API to search for YouTube videos using the yt_search() function. I am wondering whether searches made using the API are dependent on or unaffected by local browser history or ...
2
votes
1answer
19 views

connecting list view and detail view -django

i am trying to create class based detailed view, which can be accessed by clicking listview items.. the problem is it was easly achieved in function based views but cant do the same in class based ...
0
votes
2answers
30 views

Layout file cannot resolve android.support.constraint.ConstraintLayout in Android Studio

Screen shot Click here Click here for the screen shot. In Gradle I have already included: implementation 'com.android.support.constraint:constraint-layout:1.1.3' and Gradle sync went out fine. But ...
0
votes
0answers
7 views

Need help to send HTML/Js page result to mailbox?

I have created js/html page and result of this page i am trying to send to mail box.Currently i am using <a id="toemail" class="btn btn-link" href="mailto:youremail@domain....
0
votes
1answer
10 views

Using api key for getting a data using node express from bitcoin average

I am trying to get data from bitcoin average. I searched and found that All of our request are get request and they must contain our x-ba-key header: Example: 'x-ba-key': '...
0
votes
0answers
3 views

Flutter: Where to place sqflite code inside my application?

I want to use sqflite in my app. To do this, I'm trying to follow this tutorial: https://flutter.dev/docs/cookbook/persistence/sqlite. However, I don't know where to place the code inside my ...
18
votes
5answers
30k views

How to access a file from asset/raw directory

with this below code i'm trying to access the file which is stored in asset/raw folder, but getting null and E/ERR: file:/android_asset/raw/default_book.txt (No such file or directory) error, my ...
0
votes
2answers
20 views

React Native- image wont fill screen?

This is frustrating. I have an image the exact same dimensions as the screen (of this device) and moreover same dimensions as the splash image. I just want it to fill the whole screen, above the other ...
15
votes
5answers
16k views

dyld: lazy symbol binding failed: Symbol not found: _node_module_register

I have tried reinstalling and rebuilding npm, but the problem still persists. Initially, the problem is with the module mongodb: I don't have that package, so I installed mongodb using this command ...
-1
votes
0answers
7 views

How to make Countdown auto reset

I'm newbie in Javascript. Let me ask a question This is my code on HTML5 banner var targetDate = moment.tz("2020-09-10 00:00", "Asia/Ho_Chi_Minh"); //Get TimeZone name here - ...
2
votes
1answer
465 views

Firebase unable to retrieve value to class

I have a working line of code retrieving each single data, but failed to apply them all to a class. This line is working perfectly. double value = (double) ds.child("player1score").getValue(); But ...
0
votes
1answer
13 views

Pseudocode to PHP

This is what I'm working with: FUNCTION findHighest(dataArray returns array) BEGIN FOR items in dataArray IF highest[1] is already set IF value > highest[1] ...
0
votes
0answers
5 views

Calculate number of days from date time column to a specific date - pandas

I have a df as shown below. df: ID open_date limit 1 2020-06-03 100 1 2020-06-23 500 1 2019-06-29 300 1 2018-06-29 400 From the above I would like to ...
1
vote
0answers
22 views

Need help about wildcard generic types in Java

I am learning generic programming in java. I saw these charts in Core Java (Edition 9): And I saw these charts in Introduction to Java Programming Comprehensive Version Tenth Edition: But I believe ...
1
vote
0answers
4 views

react-native-image-to-pdf gives atempt to invoke virtual method error

Whether I use react-native-image-to-pdf or react-native-pdf-lib to create a pdf in my react-native app, I get the error [Error: Attempt to invoke virtual method 'int android.graphics.Bitmap.getWidth()...
0
votes
0answers
3 views

Get Output of “wc -l” into variable or if statement

i am trying to get count of branches in which the commit exist using the following git branch -a --contains <SHA> | wc -l and then filter only commits that are on this branch when trying to ...
0
votes
1answer
47 views

Is there a way to change the format of a date picked using Elementor's Form widget?

I have a form with a date field and have set the field id like this: [field id="date"] The date field allows the user to use the date picker with Native HTML5 enabled. Actions After Submit ...
0
votes
0answers
9 views

C Inserting into linked list

I have a cmd line program which loads a file, counts occurances of words and then prints a list. I'm using a linked list for this implementation. I keep getting Illegal instruction: 4 Attempted to use ...
0
votes
0answers
3 views

StopIteration wont be catched main()

I want to raise a StopIteration exception when the number I send is larger than 999999999. When I sent to print(check_id_valid(1234567980)) function parameters directly, the exception is catched at ...
0
votes
0answers
9 views

Actuator health check for SOLR giving Error creating bean with name 'solrClient'

I have a simple Spring boot app and want to include Actuator health check for SOLR but seems to be giving error when running it. Anything else that needs to be added a=or configured. org....
0
votes
1answer
18 views

I want an image to be displayed in tkinter

I have a dropdown list. For each item I select from the dropdown, I was an image related to that item to show below the dropdown. I can do them separately but not sure how to put them together in ...
0
votes
0answers
4 views

Filebeat initialize failed with 10.96.0.1:443 i/o timeout error

In my k8s cluster, filebeat connection is failing after a node restart. Other k8s nodes work normally. logs from filebeat pod: 2020-08-30T03:18:58.770Z ERROR kubernetes/util.go:90 kubernetes: ...
0
votes
0answers
3 views

How to check values in an expected range in TypedDict, Python3

I would like to find a clean and concise way to check if a value in TypedDict is within correct range. from enum import Enum from typing import TypedDict class MarketKind(Enum): EAST = 'East' ...
0
votes
0answers
4 views

Docker git remote deploy lock

I am attempting to push code to a remote git repository. After committing the code, when I run git push plotly master command, I run into this error. remote: + local LOCK_TYPE=exclusive remote: + ...

15 30 50 per page
1
2 3 4 5
…
401221