All Questions

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

What's wrong with this NGINX rewrite rule (regex issue?)

had an nginx rewrite rule written, but when I implemented it, it didn't work properly. Website 1: # "best" added // $rewrited_best_added "~/(?<rewrited_best_added>widget1|widget2)/$" "/...
0
votes
0answers
4 views

How does spring find bean for Environment?

I have this correct code. And I don't understand how spring find bean for Environment interface. Help me. Thank you @Configuration @ComponentScan(value = "ru.itis") @PropertySource("application....
0
votes
0answers
2 views

Sound Frequency to Octave and Key Number

Given the Frequency of a wave, determine the octave from 0 to 7 and the key number, where 0 is C, 6 is B, C# is 7 and A# is 11. You could solve it with a series of if statements, but there has to be ...
0
votes
0answers
4 views

Is one-passed-end pointer OK for on object types?

Is this valid C++? int main() { int i = 0; int* pi = &i; ++pi; } I know that one-past-end pointers are allowed for array types, but I'm not sure in this case. Does that code ...
0
votes
0answers
3 views

How do I use a custom function to Boost Keras model output during training of the model?

I am using Python. I have created a model in Keras where I took VGG-16 and removed the top few layers. I then inserted a ?x1x100 layer. The final prediction is a multi-label prediction with 6 labels. ...
0
votes
0answers
6 views

C program not writing correctly into a variable

I am making a program which calculates the minimum spanning tree of each vertex in a graph. And in this piece of code: int _i = 0; int j = 0; int max=0; // Initialize min heap with ...
0
votes
0answers
4 views

MongoDB calculate rank of the student

Hi I've a project of online quiz portal web site. This is my models look like. User model const userSchema = new Schema({ firstName: { type: String, required: true, maxlength: 15 }, lastName: { ...
0
votes
0answers
3 views

Using python ftplib i get error “425 Security: Bad IP connecting.” on Sage Maker

I am using ftplib on sage maker to connect to an FTP. I use the credentials in filezilla and it work, but when i try to connect with ftplib i get the error. 425 Security: Bad IP I try to do this ...
0
votes
0answers
3 views

Room relation between table issues

I am quite familiar with the relation among tables, especially when used SQLite. Recently I moved to Room with MVVM clean architecture in mind, I came to a lot of confusion during establishing a ...
0
votes
0answers
3 views

Passing list as a parameter in url routing in Django

I have a Business model in Django where I need to insert information from an API. However, I want to avoid the duplicates in the database. So, whenever user clicks on a specific link of business I ...
0
votes
0answers
4 views

How to add (Listen on Apple Music) link on a website?

So basically, i am only trying to embed affiliate links of songs to my website that i am working on as an university project. The website fetches the lyrics of the song along with the albumart and ...
0
votes
0answers
3 views

‘Not Found’ error when deploying Shiny app to shinyapps.io

I would greatly appreciate help with tricky ‘Not Found’ error in shinyapps.io deployment. Would you please see: https://community.rstudio.com/t/not-found-error-when-deploying-to-shinyapps-io-whereas-...
0
votes
0answers
2 views

calling web service returns an error that says wrong xml

I need to consue a wsdl web service methods in my project web service address is: https://sep.shaparak.ir/payments/initpayment.asmx?WSDL i generated initial codes with jaxb2 and now when i call ...
0
votes
0answers
4 views

useContext is declared at top level but value is not updated in another function

I am taking value using useContext at the top in myComponent. I have a few numbers of public API function which uses its value. It can be invoked and updated useContext value any time in parent ...
0
votes
0answers
5 views

I get the error: TypeError: expected str, bytes or os.PathLike object, not NoneType

I am new with python and google colab. I get this error when running below part of code. expected str, bytes or os.PathLike object, not NoneType... I think error is irrelevant to those lines of code ...
0
votes
0answers
2 views

How to add a field to an existing type (and change the methods according to this new field)?

(cross posted on Reddit) What would be the most rustacean way to "extend" the ndarray::ArrayBase type? For instance, I'd like to add an unit field (not unit in the sense (), but Unit in the sense ...
0
votes
0answers
2 views

What are lookup tables and control tables in data structure?

I am not getting the explanation and implementation for lookup and control tables. How to implement it in data structure?
0
votes
0answers
6 views

Progress bar with multiple levels

I have a simple problem but for the life of me i can't figure out the math involved. I will try my best to explain it and I hope you can help me. So, I need to plot a normalized value on a Progress ...
0
votes
0answers
6 views

Detection of change in variance and mean in time series in R

I am trying to to detect change in variance and mean in the time series the code I am using is as follows d1_markets_series<- ts(d1_markets[,3], frequency=7) library(changepoint) out=cpt....
0
votes
0answers
2 views

K^2-Partitioning method for web graph

I am working on your paper "Practical Representations for Web and Social Graphs" as a part of my research seminar and I have been facing some difficulties in understanding of K^2-Partitioning method. ...
0
votes
0answers
11 views

How to add onclick event to dynamically generated HTML elements

Im trying to develop a chat app that allows for users to create a new chat room. I already have code that runs for each item in the list, on click, will add users to the new room Javascript: ...
-2
votes
0answers
10 views

How to fix the error “Cannot make a static reference to the non-static method”

in my program I am trying to call a method in another class but I get the error: Cannot make a static reference to the non-static method So then it tells me to make this method in the other class ...
0
votes
0answers
7 views

How can I avoid pressing a button 2 times to change the boolean?

package app.playstore.boulderspot.Login_SignUp; import android.content.Intent; import android.os.Bundle; import android.support.annotation.NonNull; import android.support.annotation.Nullable; import ...
0
votes
0answers
5 views

Delete post from another controller?

I have two controllers in my app. as of now- User & Post.The user controller has only these methods as of now are - index,new,create and show. I show users posts in users#show view page only. I ...
0
votes
0answers
6 views

Can a pipe (from pipe syscall) have bi-directional communication?

From https://pubs.opengroup.org/onlinepubs/9699919799/functions/pipe.html: Data can be written to the file descriptor fildes[1] and read from the file descriptor fildes[0]. A read on the file ...
0
votes
0answers
4 views

I cant use update method in 'multidict._multidict.MultiDictProxy' object in Aiohttp server

I am posting some data into AIOHTTP server. before submitting I m checcking this data and update data with some default data. Here is a bit from the code. I m valiadting it with perint. Please see the ...
0
votes
0answers
11 views

Why the name of my <a> is not changing with the for loop?

I'm working with django and I need to create dynamically some links <a>. My code is, {% for node in Last_val_nodes %} <a href="#" class="nodeInfo" name="{{node.0}}">{{node.0}}</a&...
0
votes
0answers
4 views

How to fix failed: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:661) error

I am trying to send real-time sensor data to aws iot using mqtt protocol and raspberry pi 3 so, when i am running my code pub.py in terminal iam getting errors like this:: Traceback (most recent call ...
0
votes
0answers
6 views

Porting RDPY to Python3 - AttribueError

I decided to take over a project on my own to fix some issues that the original author seems to have abandoned. The effort is to port the code to Python3 and to update libraries accordingly. Below ...
-1
votes
0answers
8 views

Header to Payment in Paypal Redirecting to Home Page

My code is redirecting to the Paypal homepage it's supposed to be to the payment page. please help me to fix this thank you. if(isset($_POST['pay_now'])){ $email = "business=sb-plbkj468857@business....
0
votes
0answers
4 views

Python Tkinter: bind complex events

For example, I want to print something in the console when I hold the mouse left click and 'S' key at the same time. How can I do this? Is this possible? def foo(event): print('foo') ...
0
votes
0answers
5 views

Write integer to an array in VBA windows form

In the code below I open a .txt file, I'm getting the itemNr from this file. Because I want to do calculations with this itemNr soon (still need to add) I want to get this ItemNr as an integer. After ...
0
votes
0answers
3 views

Angular Material Editable Table with Checkboxes - Get only Arrayed Values

I created an Angular Material mat-table in my project that draws its datasource from an array, pulled from a webApi. All of that is working well. I am also using checkboxes to select the rows that I ...
0
votes
0answers
3 views

Why USART2 send a garbage value to the PC terminal?

Hello i'm using stm32f103c8 and i'm trying to use usart2 but it does not work . when i'm using USART1 with the same configuration of USART2 it works with me well . but USART2 send garbage to the PC ...
0
votes
0answers
4 views

Should DTOs have the same hierarchy of the original entity?

I am developing a restful APIs and we have animal kingdom entities where Animal is an abstract class and we have 2 sub-classes Dog and Cat. Should the DTO has the same hierarchy as the original ...
0
votes
0answers
3 views

Use K/N libraries installed via KLIB

How do I use libraries that I've installed to the local repository by using klib install <libname>.klib? I can link it to the folder the klib is located in, but I don't see a point in ...
0
votes
0answers
5 views

Jinja 2 template use value of variable quoted in for statement

I am using a jinja2 template in flask. It is being rendered using the following command: return render_template( "index.html", data=data, running=running, restarting=restarting, ...
0
votes
0answers
9 views

How to change Angular themes default text color?

I am using Angular 8 and @import '~@angular/material/prebuilt-themes/indigo-pink.css'; theme, and want to change the default gray color of texts but I am confused about it and seems it's so hard! I ...
0
votes
0answers
4 views

Trying to load two autocomplete csv databases in Python (one gui). Is it possible? Getting an error every time I try

This is at the bottom of my code: import sys app = QtWidgets.QApplication(sys.argv) w = Window(autocompleteList3, autocompleteList2) w.show() I need to be able to import both ...
0
votes
0answers
3 views

Can't make an entity in gmod

I'm mkaing an addon for Garry's Mod, but inorder for it to work, I must spawn an entity first, which is not working for me. I followed numerous tutorials on how to create an entity and spawn it and I ...
0
votes
0answers
6 views

Remove empty accolades in mongo shell

I wanted to know if there was a way to remove empty accolades in my query result. I have this code: db.employees.aggregate( { $group: { _id: "$department.name" } }, { $...
0
votes
0answers
4 views

Restriction in Kotlin generic class

I have: open class Fruit open class Apple : Fruit() class SmallApple : Apple() Now I trying to use covariance class FruitBox<out T>(fruit: T) So with "out" in my opinion I should can ...
0
votes
0answers
4 views

What could cause cross validation to show high variance in AUC score

I'm using the following code to crossvalidate an XGBOOST classifier on a dataset consisting of 380,000 rows. newxgb = XGBClassifier(base_score=0.5, booster='gbtree', colsample_bylevel=1, ...
0
votes
0answers
3 views

How to filter current data without making remote call? - Material Table(mbrn/material-table)

I am using mbrn/material-table with filtering on a column and remote data feature. When I filter by a term, the table makes an API call to the server with filter criteria in query object. My ...
-1
votes
1answer
15 views

How can I SELECT the nth element within SQL Server 2008?

I am trying to select a specific row in a 131,000 valued SQL column. Unfortunately the SQL server is running the 2008 version and I cannot use OFFSET and FETCH, so how can I do this in an older ...
0
votes
2answers
18 views

how would you delete the repetitiveness of these 4 lines in python?

Most_Recent_Net_Income = float(json_r['financials'][0]['Net Income']) Net_income_1_year = float(json_r['financials'][1]['Net Income']) Net_income_2_year = float(json_r['financials'][2]['Net ...
0
votes
0answers
3 views

why qml Camera Not Saving the Image?

I updated Qt from version 5.9 to 5.12.5 Recently.Now I have a problem,the signalimageSaved of Camera Not work(not run)? I'm not sure that this problem for updating the Qt,but I remember that before I ...
0
votes
0answers
3 views

Encountering a problem with CORS policy, response to preflight request doesn't pass access control

I'm building an app, Back-end on Springboot and Front-end on Angular 7, I am encountering a problem with Preflight request which doesn't pass the access control of CORS. I can't create an account or ...
0
votes
0answers
8 views

how to override storage class methods 'Storage::has()' and 'Storage::get()' in Laravel?

I need to extend the storage class methods so i can have my own definition of has() and get() methods, as i need to perform additional checks too, because when i use S3, the has() method errors out ...
0
votes
0answers
7 views

How to pop up soft keyboard and input numbers into android DatePicker or TimePicker in spinner mode?

I have a dialog with both Android default DatePicker and TimePicker in spinner mode. If a user touch the number in middle of spinner, the soft keyboard pops up and the user can input number directly. ...

15 30 50 per page