All Questions

Filter by
Sorted by
Tagged with
0
votes
0answers
3 views

How do i change React Google Charts background color?

I am trying to change the background color of the charts to match my body background color. I have tried to do the two following backgroundColor styles below but it doesn't seem to work. Any ideas on ...
0
votes
0answers
6 views

“Precision error in FLOAT type constant or during implicit conversions” in Teradata SQL query

Cannot get a query to run in Teradata. Getting the error mentioned in the title, but cannot crack it. Pasting the query below. Any advice would be extremely appreciated. Got it from a co-worker who ...
0
votes
0answers
4 views

Error loading ThreeJS examples in local browser

I am trying to get the examples provided by three js to run locally. I have setup a local python server as described in the docs to serve my files but I am getting this console error when I load the ...
0
votes
0answers
3 views

Paging with left inset on small cells in UICollectionView

I have a UICollectionView filled with dates ranging from one date to another. I have implemented the UICollectionView with IGListKit. I would Like to enable paging on each cell so that each cell will ...
0
votes
0answers
7 views

How to setup ANTLR grammer for a C constant structure?

I'm trying to use ANTLR4 in a C# console application to parse out a version number out of an auto-generated C file (compiled with IAR). For some reason it doesn't seem to like my constant declaration. ...
-1
votes
0answers
9 views

How is this dictionary passed throughout the stack? Why does pass by reference still take a lot of memory in recursion?

I am attempting to answer this question Problem: Imagine a robot sitting on the upper left corner of grid with r rows and c columns. The robot can only move in two directions, right and down, but ...
0
votes
0answers
6 views

Watching a vuex state does not give me access to it's value

In my store.js, I have: state: { User: false }, I am not using getters and User will be an object once it's set. In my component, I have: export default { name: "ConversationsList"...
0
votes
0answers
9 views

Assembling block matrix with Numba support

In my code (written in Python 2.7), I create two numpy arrays, A and B. I then use them to assemble a larger matrix, H, with the following code H = np.block([A, B], [-B, -A]) Various computations ...
0
votes
0answers
9 views

how to fix the cannot find simbol compiler error

i am following a tutorial on how to make client/server programs in java (here it is: https://docs.oracle.com/javase/tutorial/networking/sockets/clientServer.html) and i got to the last part of the ...
0
votes
0answers
5 views

Android: Add thousands of contacts in phonebook in bulk

Want to add thousands of contacts in phonebook through a content provider in Android. I have implemented of adding a contact in the following way: ArrayList<ContentProviderOperation> ops = ...
0
votes
0answers
7 views

On Back Button shows errror

I have four activity for my application.Main Activity->second Activity->Third Activity->Fourth Activity.Each Activity contains on back pressed method.Every time when the on back pressed method called,...
0
votes
0answers
7 views

(click) event not working if I use property binding

I am working with Ionic 4 project and I have problem. My Click it not working if I use property binding in the same page. I tried to do it excluding property binding from page and it worked, but I ...
0
votes
0answers
5 views

How to make localhost rest api work with react-native?

I have been trying to fetch some values from my spring boot localhost restapi. It is throwing a network error. I have tried to fetch with Axios.get() too but no result.I have given CORS(origins='*') ...
1
vote
0answers
8 views

Python: How to escape special __setattr__() in the __init__() method

I want to use a Python class that recomputes certain attributes whenever other attributes are changed. In an older question (for Python 2) Martijn Pieters♦ suggested using setattr hook , whenever ...
0
votes
0answers
6 views

How do you get the Unicode code of a character in a SQL Server database table?

I've been given a string of characters in a SQL Server DB table, in a column of datatype nvarchar(510). I'm trying to get the Unicode code of the first character in the string using this SQL: select ...
0
votes
0answers
7 views

Trying to attach closed saved files to an email using excel vba

I am trying to get my code to save 2 worksheets in a workbook as seperate files to company network locations and then attach those files to an email. This isn't the first time I have written code ...
0
votes
0answers
3 views

droid@screen runs into error ' Unsupported protocol: 2' when taking screenshot from Samsung TAB A 2108

On Ubuntu and Windows I get the same error. When I start droid@screen 1.2 (same with 1.1) and connect the device, droid@screen shows the device in the main screen and the device's window appears, but ...
0
votes
0answers
9 views

Why AtomicBoolean needs to use int as a class fileld variable [duplicate]

When I read the source code, I wondered why AtomicBoolean used variables of type int as its atomic class. AtomicBoolean source code like this: public class AtomicBoolean implements java.io....
0
votes
0answers
5 views

Do animations use juice while the view is hidden?

I have this small view V v: UICrazyView which has wildly complex animations on it, which go on continuously, and which follow various annoying states and inputs. Now on top of that, from time to ...
1
vote
1answer
8 views

Why does selecting multiple elements CSS work differently?

I was trying to create a responsive menu but selecting a specific element worked out differently. For example, when I selected "nav ul li" for list styles in the default size and selected "ul li" for ...
0
votes
0answers
4 views

Django restframework as a backend for offline first mobile app

I've just finished django app for multiple choice questions. However, I wanted to develop Ionic android app version of the web app. It's my first app and I am still learning web development. I'm not ...
0
votes
0answers
6 views

How to run an Express app locally and connect to a remote Heroku Postgres instance

I have an Express.js app running in a Heroku instance and it connects just fine to the Heroku PostgreSQL instance I have connected to it when it is running in the Heroku app itself. But when I try to ...
0
votes
0answers
11 views

Assert exception message?

I'm using pytest in a project with a good many custom exceptions. pytest provides a handy syntax for checking that an exception has been raised, however, I'm not aware of one that asserts that the ...
0
votes
0answers
5 views

QuizCreator: Whats the best way to safe Questions and Answers?

I want to code a QuizCreator, and i dont really know how i should safe my Questions and Answers. Should i safe them in the same File or seperate them? And how would it work to display the questions ...
0
votes
0answers
4 views

Path on subprocess check_output

When executing a python script with crontab, the script lacks environment variables. The script calls an executable which some Linux distributions ship under /usr/bin and other under /sbin. ...
0
votes
0answers
3 views

Connect to USB Device when Device shows up under different manager in Device Manager

In vb.net the device i'm looking for doesn't show up under my.computer.ports.ect....... but the I know it is connected since it i can use the device software I installed.... how would i access the Usb-...
-2
votes
0answers
4 views

How i can learn django class based views

Please help me by giving some links , which can guide me . And you can also past the links of some free video lectures . Iam tring to find out the codes but it is getting very hard please help me.
0
votes
0answers
6 views

HTTP error 403 in Python 3 while Web Scraping

I am aware of this related question but that was 6 years ago and urllib was upgraded. Now the solution for that question does not work. When I try to define headers I got the following error: ...
-1
votes
0answers
8 views

How to find words in text which relates to key words in python

I have text and I would like to find every word in the text that relates to some key word, for example the key word - skills. For this I would like to find words like "engineer", "painter", "swimmer" ...
1
vote
0answers
14 views

Is there a way to prevent an iframe from making any HTTP requests?

I have a peculiar use-case where I want to prevent an iframe from communicating. Parent page is of xyz.com/index.html Frame source is abc.com/widget.html Once loaded, xyz.com/index.html ...
0
votes
0answers
8 views

Accurate filter in Obj of Array?

I simply want to optimize my current filter this is the database i wanted to filtered out "a": [ { "value": "1", "type": "Kabupaten", "label": "Aceh Barat" },{ ...} ], "b": [...
0
votes
0answers
3 views

Connect to private API Gateway from on premise using AWS direct connect

I am trying to call a private API Gateway endpoint from an on-premise server. I have Direct Connect setup between my on-premise network and my AWS VPC. The AWS documentation here says the following: ...
0
votes
0answers
3 views

Can i Run/install android sdk without installing Android Studio?

i am interested in working with vs code because its lightweight and i'm trying to learn flutter. but not able to use emulator without installing the android studio. is there a way to install android ...
-3
votes
0answers
18 views

Where is the POSIX documentation for MacOS? [on hold]

I need to design a cross-platform API in C++, which will include some POSIX file descriptors. The problem is that I don't know what exact data types do relevant POSIX functions (like "read" and "write"...
0
votes
0answers
8 views

Errors while transforming points in an image after rotation

I am trying to transform points in an image after rotating it. So far the function works but when i try to run the function by looping over a list, i get error : IndexError ...
1
vote
0answers
8 views

Can't read the file's content

I try to read file content, using the following code: <?php $fname = "test.txt"; $fh = fopen($fname, 'a+'); if ($fh) { fwrite($fh, "test"); $cont = fread($fh, 1024); } else { $cont = "FAILED"...
0
votes
0answers
2 views

error 429 not going away after reducing request/waiting days

I used the following code succesfululy previously to estimate distances, but suddenly I started receiving the 429 error (HTTP status was '429 Unknown'). Apparently it has to do with the number of ...
0
votes
0answers
4 views

Update VM HW version from V11 to V13

using below PowerCLI command unable to update VMs HW version from V11 to V13. ESXi 6.5 VM OS : Windows Server 2012 VMs are already turned OFF state foreach($v in $VM){ Set-VM -VM $v -Version v13 -...
0
votes
0answers
7 views

Is there is a function that helps to predict missing values using k-NN in R?

I have a dataset DF1 that has 9 missing values and I want to use k_NN to approximate those missing values. Firstly, I create two datasets DF2(without missing values) and DF3 (with only missing values)....
-2
votes
0answers
5 views

Ideas for Computer Graphics and Shader programming interview questions

I am interviewing for a few computer graphics and shader programming positions requiring prior experience. I have a good gfx, perf and c++ background, but it is hard to find online resources for ...
0
votes
0answers
3 views

Providing an array of dependencies results in 'Invalid provider for NgModule - only instances of Provider and Type are allowed' during prod build

I am trying to implement a library which has an HttpClient wrapper. It also allows to provide the same service with different API urls (multiple instances of the same service, each one of them ...
0
votes
0answers
5 views

Using global search and column filteres conflict

i am truing to implement React Grid Filtering and React Grid - Searching in same component, but Searching confict with Filtering and table not updates as expected i am using material-ui:4.3.0 and ...
0
votes
0answers
9 views

BigInt literals are not available when targeting lower than ESNext

I install react and typescript using yarn create react-app my-app --typescript. Then I wrote here is such code. import React from 'react'; const App: React.FC = () => { const theBiggestInt = ...
0
votes
0answers
6 views

local Wordpress installation stuck at information needed screen

I am attempting to run a local wordpress installation into a sub-directory called blog in a docker container. Everything appears to work fine however wordpress won't complete the installation. When ...
0
votes
0answers
4 views

How do I change position of significance bars to match fill comparisons?

I am currently using ggpubr to add significance comparisons to my ggplot2 boxplots. There are two things I want to do that I can't seem to do. 1) My boxplot currently has two comparisons per factor. ...
0
votes
0answers
4 views

How to keep the same session on the app side during the Facebook OAuth authentication process?

Authenticating with the Facebook OAuth involves the user clicking a login link on the app side (in my case it's a website) – that is, (1) making a request to the app, getting redirected to Facebook (...
0
votes
0answers
4 views

Show loader while component is loading

I am working on a Vue app where we have one Vue instance that extends several other components. //import <Loader/> const componentOne = Vue.extend({ mounted: function() { this.$root.$data....
0
votes
0answers
23 views

I can't find a way to solve this problem without bruteforcing it

This is the exercise I am trying to solve: Problem statement Jack, the pirate finally found the treasure.He found that there were infinite numbers of coins but he can collect only N coins and the ...
0
votes
0answers
4 views

Return multi-level aggregate in same query

I need to return the weighted average for the BRANCH_CODE_SRC and DEAL_SRC_NAME in the same query. I can return one or the other, but can't figure out how to return both. SELECT T1.BRANCH_CODE_SRC ...
0
votes
0answers
6 views

How to Instantiate and store values in List<JAXBElement<?>>

I have generated java client from a Wsdl. I am stuck at following code where I have to set some setters values in following List<JAXBElement<?>> public class SampleVerificationDomain ...

15 30 50 per page