All Questions

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

cannot reshape array of size 2352 into shape (1,28,28,1)

During the classification of MNIST data, I am not able to upload the custom image from myself and gives ValueError cannot reshape array of size 2352 into shape (1,28,28,1) import numpy as np from ...
0
votes
0answers
2 views

Problem in exporting and importing certificate in windows server

I have a problem in certificate programming in C# and the details are as below. 1- I want a export a certificate(private and public key) and import this certificate in other server. So i exported that ...
0
votes
0answers
2 views

IntelliJ IDEA can not recognize the class of the variable at the beginning of the line

enter image description here enter image description here The rest of the settings are the same, as shown above, when this variable is at the beginning of the line, its class is not recognized
0
votes
0answers
2 views

Mantis notification mails not being sent

Mantis notifications where working properly till 16th Jan' 20. Due to some reasons our email server team changed the password of the email id configured in mantis. After that error logs are added in ...
0
votes
0answers
5 views

How to select similar values together in same query?

I have the database as below, i need to get all the zeros and ones in separate list from the below table, that is to get all the zero together in a column and all the ones together in separate column ...
0
votes
0answers
8 views

Why is my code receiving undefined when writing a file?

I am trying to log all messages in a file for the bot on my server. However, whenever I run my bot and someone sends a message, I get this error: UnhandledPromiseRejectionWarning: TypeError [...
0
votes
0answers
3 views

C questions about gets()and scanf()

this code cant work properly . but after replacing scanf("%s",str);getchar(); with gets(), the code works.I dont know what went wrong. the code can compile but it just isnt working. what should i do ...
0
votes
0answers
5 views

how do i make the is_unique on edit form to only works when a value of input text has been changed and didn't works when it was still the old value?

I am using form validation for validating my project and i have some problem on is_unique when i edit my data...how do make is_unique only works when the value of the input has only change to new ...
0
votes
0answers
2 views

ESLint configuration and peer dependencies

It's considered a good practice to add all plugins/parsers of a custom eslint config as peer deps. The reasoning behind it is something about having multiple versions of the same package. My question ...
0
votes
1answer
5 views

'Android property not found.' error while building Flutter aar

How to fix Android property not found error while flutter build aar? FAILURE: Build failed with an exception. * Where: Initialization script '/Users/username/sdk/flutter/packages/flutter_tools/gradle/...
0
votes
0answers
4 views

Get application information at SQL Server level for auditing

I'm writing a SQL trigger on a table that will update an audit table upon any change to specific fields with details of old value, new value, changed by, and timestamp. That is moving along nicely. I'...
0
votes
0answers
8 views

What do I do after integrating Google Pay API?

I have successfully intergrated the Google Pay API into my android app, and i am confused where to go from here. I understand i need to fill out this form "https://services.google.com/fb/forms/...
0
votes
0answers
4 views

How to search on a single OR multiple columns with TSVECTOR and TSQUERY

I used some boilerplate code (below) that creates a normalized tsvector _search column of all columns I specify (in searchObjects) that I'd like full-text search on. For the most part, this is fine. ...
0
votes
0answers
6 views

How can i get response size of REST API

I know in headers we can get content length, But I need Response size For example: API Response = { "1": 1 } If I print console.log(res.getHeader('content-length')); it gives 7. But I need ...
0
votes
0answers
3 views

How use jaydebeapi call store procedure oracledb and pass 4 argument in and out

this problem i don't know step for pass out argument to store procedure def get_store_procedure(due_id,due_date): print("connect to oracle server") try: conn = jaydebeapi.connect('...
0
votes
0answers
9 views

Is it possible to use both React context API and React router in a SPA?

Is it possible to use both React context API and React router in a SPA? If so which jsx element would we wrap first around our main root component <BrowserRouter> or <Provider>? ...
0
votes
0answers
3 views

how to send a message to direct line chat bot from the UI using JavaScript

I'm developing a chat bot (v4 using MS Azure bot framework & QnAmaker), I've added a feature in that, i.e. while the users starts typing the questions, the bot will get prompt and show the ...
0
votes
0answers
7 views

Exported nested modules in Nodejs - TypeError: is not a function

This is a case of exported nested modules: BaseTutorial.js // exports module makes the functions public such that they can be accessed in other modules in Node.js. var exports = module.exports={}; ...
0
votes
0answers
4 views

Starting Jupyter notebook on a node of my cluster (High Performance Computation or HPC facility )

I wanted to run jupyter notebook on a node of our cluster, NOT on the login node. I could remotely run the jupyter notebook on the login node, but it would unnecessarily slow down the cluster usage. ...
0
votes
0answers
4 views

API throttling limits for graph-api

Are throttling limits different for invoking Graph-APIs with and without expanded properties example without expanded properties : https://graph.microsoft.com/v1.0/users//mailFolders? example with ...
0
votes
0answers
9 views

How to fetch json data and separate it based on a Parameter?

I have a json object here - { "error": "0", "message": "Got it!", "data": [ { "status": false, "_id": "5e2fbb74d465702288c54038", "group_id": "...
0
votes
0answers
4 views

How to sum older data with new one in firebase

I have table named nilai and kegiatan, when I input score to kegiatan, its input to nilai too, the problem is when I input score to nilai and sum it with older data in nilai, its will looping over and ...
0
votes
0answers
3 views

How to plot geometry rings on map arcgis javascript

I am using the below code to plot the geometry on map but its show the simple line var myPolygon = new esri.geometry.Polygon(new esri.SpatialReference({wkid:4326})); myPolygon.addRing([[8359759....
0
votes
0answers
4 views

How does elasticsearch sort the document with the same score?

I am using Elasticsearch6.8 and I get a list of document in the response. Some of the document have the same score but they appear on the same order in the response list consistently. I wonder what ...
0
votes
0answers
9 views

elementwise operations on a multindex column failing due to join or level confusion

I have a three-level multindex column Name, Period, Measurement In my toy example, I have weight and height for two time periods 'before' and 'after' for three different people. I want to ...
0
votes
0answers
9 views

Laravel 6 relationship conflict

I need roomtypes list with inventoryRatePlans & inventoryRoomRates; The problem is inventoryRatePlans have multiple inventoryRoomRates; But i need only one inventoryRoomRates that have RoomType ...
0
votes
0answers
3 views

multiple notification using NToastNotify in .net core 2.2

I was using SignalR before but was getting server time out issues so replacing SignalR with NToastNotify.I replaced most of the signalr code with NToastNotify. I am using view to display all the ...
0
votes
0answers
4 views

Have a custom primary key for users.id in flask-security

I want to have a custom key for the field id, for example, id_user, I've tried the following class UserModel(db.model, UserMixin) ... @property def id(self): return self....
0
votes
0answers
3 views

Timezone issue in Hive

We are ingesting data in a Hive parquet table from oracle database using an ETL tool. Database is storing time stamps in UTC format however when we see this in Hive table it is showing time stamp ...
0
votes
0answers
7 views

Comparing other rows with current row and do conditional sum in R

Sample data is shown below. data <- data.frame(Name=c('John','John','John','Mary','Mary'),First_value=c(1,3,2,4,5),Second_value=c(3,4,2,7,5),To_sum=c(1,2,3,4,5)) # Name First_value ...
0
votes
0answers
11 views

SELECT Unique words separated by comma in a row entry

I have a database of movie and serie and I have stored genres for each row. The multiple genres of each row are stored in String Sentence separated by a comma e.g. Action,Adventure,Animation,Comedy,...
0
votes
0answers
6 views

Handling Urban airship notification from a Library module

I am developing a library module and I need to handle push notification from the library side. I am using UrbanAirship as my notification provider. I have a class that handles all my API calls and I ...
0
votes
0answers
3 views

How to redirect all connection system-wide especially TCP to go through proxy in Mac OS laptop?

In my case, to connect to the internet from my college wifi, I must redirect connection through some proxy with username and password. Actually, I have try Proxifier to do this task and work ...
0
votes
0answers
6 views

XPATH - return contents of specifi div based on an attribute name above

I want to return the values within these divs: <div class="key"> But I only want the values based on the name above. So I want to return: Privacy Glass - Rear Windows and Tailgate Rear ...
0
votes
0answers
3 views

CSV export problem with filename japanese language in MS EDGE

enter image description here I have a problem when exporting CSV using PHP, filename uses Japanese and it becomes messy when using MS EDGE. this code that I wrote: $filename = $this->lang->...
0
votes
0answers
6 views

Application-defined or object-defined error VBA Copy between workbooks

Sub Macro1() Dim for_S3 As Long, d As Long Dim wb1 As Workbook Dim wb2 As Workbook Dim wb3 As Workbook Set wb1 = Workbooks("1.xlsx") Set wb2 = Workbooks("2.xlsx") Set wb3 = Workbooks("3 ...
0
votes
0answers
8 views

Does type='button' even do anything?

I just noticed this and am curious. I have two <span>s with onClick events that do basically the same thing; one had type='button', but the other did not. They were both behaving exactly the ...
0
votes
3answers
19 views

I am trying to pass object property in console.log but output says undefined

name = { first: "kyle", last: "Simpson", age: 39, }; console.log(`My name is ${ name.first}`);
0
votes
0answers
5 views

How to pass app version to front end with Spring and Angular?

I need to be able to show in the front end the version number of the application that I get from pom.xml. My solution at first was to have a api call to back end. But then I thought it would be ...
0
votes
0answers
3 views

mediawiki wysiwyg ckeditor - change table background color style on copying from html page

When i'm copy a table from HTML page to ckeditor, backgground color style change white How can keep the whole style when copying from HTML page to ckeditor? i'm tried config.allowedContent = true
0
votes
0answers
7 views

Warning: mysqli_stmt_close() expects parameter 1 to be mysqli_stmt, bool given in C:\xampp\htdocs\CS\update.php on line 66

I am getting the error above on a CRUD application that I am using. I tried the previous suggestion on this website but the problem continues. I took the code from tutorialrepublic. my code is as ...
0
votes
0answers
6 views

Datatable header does not align after columns.adjust().draw()

I have a three column html table. with style="width: 100%;". My Datatable does not want to align when I use scrollX. I draw my tables with table.columns.adjust().draw() yet the columns don't fully ...
-1
votes
0answers
4 views

plot model accuracy and model loss with this tutorial

I'm follow this tutorial:https://pytorch.org/tutorials/beginner/transfer_learning_tutorial.html and I'm new with pytorch please tell me how to plot model accuracy and model loss
0
votes
0answers
5 views

What is this TSQL V() method/syntax/function?

I have just come across this syntax for defining an inline view... SELECT myAlias, myAlias1 FROM ( SELECT myCol, myCol1 FROM myTable ) V( myAlias, myAlias1) I can see what the V is doing, but what ...
0
votes
0answers
7 views

vba: legend formatting changes when chart is copied and pasted

The following VBA code successfully changes the format of the legend on my charts to what I need: With ActiveSheet.ChartObjects("Chart 1").Activate ActiveChart.Legend.Height = 136.876 End With ...
0
votes
0answers
4 views

How to change value of module_param parameter in the device driver?

I wrote a simple program for taking a value through command line into my driver. I used module_param for this and gave permission argument( i.e third arg of module_param) as S_IWUSR. This I guess ...
0
votes
1answer
7 views

getting error as The generate command requires to be run in an Angular project, but a project definition could not be found

have a projejct that uses webpack .It is an angular project https://github.com/cornflourblue/angular-8-registration-login-example howw to generate service for that When i used like this ng g ...
0
votes
0answers
5 views

How to remove background color of a checkbox in java

when I run this code it runs error. Checkbox term3 = new Checkbox("SENG 12213 - Data Structures and Algorithms"); term3.setFont(new Font("Arial",Font.PLAIN,13)); term3.setSize(...
0
votes
0answers
5 views

how to add validation for angular material from inputs

I have two input fields. HTML: <mat-form-field class="example-form-field" > <input matInput type="text" placeholder="First Name" name = "user_first_name" [(ngModel)]="...
0
votes
0answers
9 views

Responding to an http request with JSON in Python

I have several Python scripts that are used from the CLI. Now I have been asked if I could provide a web API to perform some of the work normally done from the CLI. I would like to respond with JSON ...

15 30 50 per page