All Questions

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

deserialisation of maps and arrays if flutter with firebase as a backend

I am unable to deserialise a document map from firebase using flutter, I can deserialise single items but when I try to access a map object testMap:{hello:'Hello'} I get no value, I am just trying to ...
0
votes
0answers
3 views

Voice recognition failed miserably: Wrong status code 401 in Bing Speech API / token

When I was trying to translate a sample audio from English to some other language using Azure Bing Speech to Text Api, I am getting Error: Voice recognition failed miserably: Wrong status code 401 in ...
0
votes
1answer
21 views

How to run and watch local server at the same time?

I've been having some issues setting up my local server. I can get it to run with php artisan serve, but I can't add npm run watch at the same time. I've done npm install and updated my node too. It ...
0
votes
0answers
7 views

Difference between instance variable and non static member

I am studying C++ from different sources and I find confusing that sometimes I encounter the term "Non-static member" and sometimes the term "Instance Variable". For me, they can be used ...
-2
votes
0answers
11 views

Select mysql data

I have query like this SELECT * FROM npcs_items WHERE id IN (SELECT shop_items FROM shops WHERE id = ?) But only output is 1 item, what is wrong?
-1
votes
0answers
12 views

How to serialize and send object over network? (currently using cereal and winsock2)

I'm setting two projects (one is tcpServer, the other is tcpClient. EventManager is server side wrapper and have main, EventBusUtil is client side wrapper and also have main too.) In client, trying to ...
0
votes
0answers
9 views

How handle multiple textfields in cell and get textfield data

How to handle multiple textfields in a single row and also having one or more same type of cell which generates single cell per click on an outer button anywhere on controller in swift? Unable to ...
-2
votes
0answers
13 views

#1064 - You have an error in your SQL syntax: add a primary key to my table admins

I want to add a primary key to my table admins But a get this error: #1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right ...
1
vote
0answers
20 views

android data binding error: cannot find symbol

I am trying to use Recycler and swipeRefreshLayout in my Main Activity but it just cannot find RecyclerView. This is my activity_main.xml <?xml version="1.0" encoding="utf-8"?> <layout ...
0
votes
0answers
12 views

How to redirect to a newly created object in Django?

I'm trying to redirect to the created object by filling the form below. I've tried the solutions that I found on these posts: How to redirect to a newly created object in Django without a Generic ...
0
votes
0answers
5 views

How to download linphone submodules? gitlab.linphone.org is down

I want to build the linphone-desktop project (cloned from https://github.com/BelledonneCommunications/linphone-desktop), but when I run git submodule sync && git submodule update --init --...
0
votes
0answers
6 views

Is there a way to use joyzoursky/python-chromedriver in other container?

I have a selenium test written in Python using headless Chromium. Now I'm trying to dockerize this test. I have found a great repository: https://github.com/joyzoursky/docker-python-chromedriver . It ...
0
votes
0answers
6 views

Splitting nested arrays as separate entities

I have some JSON data which contains attributes and some array elements. I would like to push a given set of fields into the array elements and then separate the arrays as separate entities. Source ...
-1
votes
1answer
7 views

How to convert array of Highcharts to PDF in angular7?

I have an array of objects to render highcharts. Now I need to implement the functionality to convert an array of highcharts to pdf in a single pdf document.
0
votes
0answers
12 views

How to fix wrong format of number when writing df to csv?

I have a problem writing my pandas dataframe to CSV. I could not find a similar question in the other topics. In my command line output I have numbers varying from -4.5 to +4.5 and these numbers ...
0
votes
1answer
11 views

Will GLSL compiler remove unnecessary variable initialization?

For example, I have a code like this (fragment shader): Option 1 #version 330 core uniform sampler2D baseImage; in vec2 texCoord; out vec3 fragColor; void main() { fragColor = texture(...
0
votes
0answers
5 views

Computing classifier evaluation using confusion matrix

I trying to design classifier and compute its evaluation using confusion matrix, but all of the evaluation metrices resulted in a same result. My code is as the following: if system_decision == ...
0
votes
0answers
4 views

Can Queryql-playground be installed in Gatsby globally?

I would like to replace the default Gatsby Queryql feature with the newer QueryQL-playground. Can the change be made globally or does it have to be done on a per project basis? I have installed it on ...
0
votes
0answers
21 views

Why is my input validation from jquery wont work?

I want a validation onkeyup from an input form, I've made a jquery. I'm having a hard time finding why is it not checking? I need to go to a php page in checking. What could be wrong to my code that ...
0
votes
0answers
5 views

Response decoding failed with xmpp sasl authentication

I am trying complete the SASL authentication in XMPP server. I have connected to the xmpp server using gen_tcp socket I have registered a user 'test4' with password '123' Encode the username password ...
-1
votes
1answer
15 views

Errors In image uploading Code at Android platform

I have develop code on android to upload the image, but facing some errors in code. I search out solutions on internet but could not successful to fix the problems? The following code I have used: ...
0
votes
1answer
12 views

Test not running

simple code written in Visual Studio needs to be tested however the test doesn't return anything: no error, pass or fail. CODE: `public class Calculator { public int Add(int a, int b) ...
0
votes
0answers
4 views

Entries' DN missing the value in spring.ldap.base

I'm using spring-boot-starter-data-ldap to manager ldap entities. I set the property of spring.ldap.base which value is dc=tonny,dc=name, and then I created an entity class called LdapUser using the @...
-3
votes
2answers
25 views

I have a main method, however I'm getting a Static Error: This class does not have a static void main method accepting String[] [on hold]

This is my code. It compiles but will not run and this pops up: "Static Error: This class does not have a static void main method accepting String[]".What is the issue and how can I fix it? Thanks ...
1
vote
0answers
12 views

Is it required to removeEventListener on an unmounted element/component?

If I attached event listener to a component, do I need to explicitly to remove it when it's unmounted? For e.g. componentRef = React.createRef(); handleWheel = (e) => { e....
-1
votes
1answer
15 views

Why is echarts not loading?

I have a completely blank page, with the follow call to a js file: <script src="https://echarts.baidu.com/dist/echarts.min.js"></script> I am not able to even load the file, I get the ...
0
votes
0answers
5 views

Connecting to Impala from R without Impala JDBC driver

For an undisclosed reason, my Impala does not have a JDBC driver installed. This is making the connection from R to Impala challenging. I am able to connect (and query) to Impala shell via Putty. E....
0
votes
0answers
7 views

C# to pause, turn on ssas server, backup cube… how to?

I'm building some function apps in C# (via REST API) to make refreshes of tabular cube located on a azure ssas server. So far, no problem. However, I can't find a way to pause/start the ssas server (I ...
0
votes
1answer
11 views

Unable to set property of individual object

On using a local variable like I have used, I can set sizeSelect for a product in the mapped list and add another product to cart since sizeSelect changes.I want to give each product in the list a ...
0
votes
0answers
8 views

How to get Base64 image URL of Fusion chart in Angular 7

I am using Fusion chart in Angular 7 and i want to export this chart in Base64 Image format. I already used batchExport method. i am using this method for export chart in image format. app.component....
0
votes
0answers
5 views

How to use the workerData correctly when using worker threads without isMainThread?

I'm setting up a server and i'm trying to use working threads in it, for some reasons, I can't use the the same file for the main thread and the worker thread (pass __filename at new Worker), so I'm ...
1
vote
1answer
16 views

Why Named Function Expression itself cannot assign Name to another Value? [duplicate]

var functionVariable = function functionExpressionName() { functionExpressionName = 1; console.log(functionExpressionName) // function }; functionVariable(); If You run this example you can ...
-2
votes
0answers
17 views

C++: Creating a new objects inside a function and copy him to another object class

I have question which have confused me for a while. I did do some searching online and read through much c++ tutorials, however I cannot find concrete answers. I have a class named 'Word' which look ...
1
vote
0answers
5 views

uWSGI server sometimes hung up for unknown reasons

Problem I've operated Django + uWSGI apps for a year on AWS, and it was working well until two weeks ago, but I run into the problem that the specific uWSGI process sometimes hung up and rarely ...
0
votes
0answers
6 views

email working on local server but not working on live server AWS using zf3

Description: sending mail from localhost mail working but sending from AWS server mail not working giving error below as i mentioned. Code: $options = new SmtpOptions(); $options-&...
1
vote
1answer
22 views

cannot cast 'android.support.v4.app.Fragment' to 'com.google.android.gms.maps.SupportMapFragment'

I created one new project with google maps activity and i installed google play services. I added the permissions of internet,fine location and coarse location. I copied the URL which is mentioned in ...
0
votes
1answer
18 views

How to reset scroll position on single page pagination

I try to fix scroll location. When clicking on another pagination, scroll location does not be reset. Front : React css framework : semantic-ui-react Paragraph = () => ( <p style={{...
0
votes
0answers
9 views

What's the difference between a page load in a new tab or in a new window ,in terms of modal popup form functionality

Mvc modal popup form doesn't work when the page is opened as a new tab ,But its works when the page is opened as new window In Main page, I have dynamic tab which loads #Rep_Contracts , And in #...
0
votes
0answers
7 views

Is there a way to sort strings inside an array, based on parts of the string?

I'm trying to program a simple Italian dictionary. I want to be able to sort by parts of the string. I'm keeping the Italian, English, and information together. Here's a link to the full code: https://...
-1
votes
0answers
6 views

XML Tag Replacement using Python

I have a xml file as shown on below. Recently started working on Python. I need to replace the ... element to .... I have a coding but it replaces the closing element too. Please advice. XML File: &...
0
votes
0answers
9 views

LaTex document does not show up correctly

I am following an example for LaTex documentation in markdown and it begins with the following : \documentclass{article} \begin{document} Hello, \LaTeX! \end{document} when I run the cell, I ...
-1
votes
0answers
10 views

Generating random Bootstrap patterns [on hold]

For my research project, I need templates of webpages with Bootstrap and their screenshot, templates are in HTML format and are composed of different Bootstrap elements (navbar, cards, ...) in a ...
0
votes
0answers
12 views

Can I use “model.fit()” in “for” loop to change train data in each iteration

I have a large dataset and it doesn't fit in memory. So while training, SSD is used and epochs take too much time. I save my dataset 9 part of .npz file. I choose first part (part 0) as validation ...
0
votes
0answers
3 views

Read multiple TFRecord files with keras::tfrecord_dataset

I am getting started with Keras, and would like to create a dataset from multiple TFRecord files. Below is the code I have so far. dataset <- tfrecord_dataset(filenames) %>% dataset_map(...
0
votes
0answers
5 views

Vuex - mapGetters et al but mapping by parameter

I'm trying to create a general filter component which get's it's data from the store Right now, I'm using mapGetters like so ...mapGetters({ items: 'filters' }), But I would like to be able to ...
0
votes
0answers
10 views

How to initialise 'MutableMap' from constructor of data class in kotlin?

I have a data class which has a constructor like this (source): data class MyDataClass ( val myArr: ArrayList<Char> ) { constructor(n: Int): this( ArrayList((0 ...
-1
votes
0answers
18 views

shell using multiple if elif, I cannot make it work [duplicate]

I am a newbie in bash writing. I need to use a bash file to create a program in Stata (using printf). My problem, though is in the initial if, elif, then condition. I first run the following bash !./...
0
votes
0answers
7 views

Is there blackhat morphological Method in “Jimp” that I can apply on image?

I'm trying to prepare image to be ready for tesseract.js and I'm using Jimp for that. So I need something like Blackhat morphological Method to convert image like this to something like this If you ...
0
votes
0answers
9 views

have SSL problem with post my parameters to server

i want post my parameters to server with alamofire everything is ok til added a base64 image to parameters,Then Error will be received with the text below : 2019-08-17 13:24:42.661401+0430 DiarForm[...
0
votes
0answers
4 views

Swarm healthcheck sets task to complete state

A have created a swarm and running a simple nodejs app on it. I would have liked to test how the healthcheck works in swarm environment. I have set the healthcheck block int the compose file like this:...

15 30 50 per page