All Questions

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

How to handle a back button in a screen that has a tab navigator React Native

So I have a general drawer menu for the app, and in one of the screens there is a tab navigator. I'm trying to handle the back button because it throws an error that there is no screen to go back to. ...
0
votes
0answers
2 views

Castle dynamic proxy object to original object conversion with keeping proxy intercept

I had a similar question to this post. Castle dynamic proxy object to original object convertion I was able to get the target object back from the proxy object, but it lost the interceptor. Here is my ...
0
votes
0answers
2 views

How can I use Ruby on Rails and Knockout.js in data-bind?

I currently have following codes <code data-bind="text: xxx, highlightable: true"></code> And I want to bind something like App::Application::CONFIGURATION[:url] into text of ...
0
votes
0answers
2 views

How do I use SimpleITK's ExpandImageFilter?

I have 2 SimpleITK images, and I want to use their package's ExpandImageFilter to upsample one of my images to match the other. Does anyone have any idea on how to use this? I took a look at their ...
0
votes
0answers
3 views

Deploying Django to AWS

just wondering if you ever had an issue when trying to deploy a Django application to Elastic Stalk beans AWS. I finally was able to follow all the steps to get to this point. enter image description ...
0
votes
0answers
5 views

(Basic) Why is the output returning this as not an integer, when the inputed value is, in fact, an integer?

So i'm new to python, but used to code in Lua a lot. I'm having an issue with something basic that should be working but isn't. def test(): age = input("Enter Age:") if type(age) is ...
0
votes
0answers
2 views

Is there a regular expression to validate a EIN number in JavaScript?

Is there a regular expression to validate a EIN number in JavaScript? The expression below does not work. /^\d{2}-?\d{7}$/
0
votes
0answers
2 views

any good algorithm for shared memory exist?

typedef struct protocol { int clientstate; int serverstate; uint64_t data[10]; } I made two processes to communicate using shared memory. How should I configure it to have better ...
0
votes
0answers
2 views

Custom Message in docusign using XML tags using API

[enter image description here][1] here i want to remove tat default tags that shows email address, name and default path..instead of this path add new custom message using tags in xml..pls help me &...
0
votes
0answers
3 views

Typescript replace generic for object keys and value

I have several code blocks that look like this. Is there any better way to do this with generics or some other typescript feature? const { authors } = book if (authors?.author) { if ...
0
votes
0answers
2 views

Data is getting duplicated when fetched from Firebase in a ListView

I am trying to fetch all children of the "Students" instance in Firebase Real-Time Database in a ListView using addValueEventListner. But when I add a new entry it starts duplicating the ...
0
votes
0answers
3 views

Why does the compiler allocate excess memory when reading a text file?

I'm trying to read a text file into a dynamic string (char * array). Initially, I get the length of the file using fileLength = ftell(textFile); and the debugger reports the fileLength = 214. I've ...
0
votes
0answers
5 views

Can't remove my view with 'null object reference'

I'm developing on a popup activity. When this class activated, addView is worked well but removeView isn't work with error. public class act_popup extends Service { WindowManager wm; View mView; ...
0
votes
0answers
3 views

VirtualBox executer fails with “prepare environment: Process exited with status 1”

I registered the VirtualBox CI runner using gitlab-runner register and by choosing virtualbox as an executor. However, if I start the runner pipeline in Gitlab, it fails with the following error: ...
0
votes
0answers
6 views

Get count of rows returned by a locked Stored Procedure WITHOUT @@rowcount

As part of an automation script that I'm writing in Microsoft SQL Server, I need to count the rows returned by a Stored Procedure, unfortunately this Stored Proc is locked/encrypted and it has a DROP ...
0
votes
0answers
5 views

How to configure my smartphone with intellij idea

how do I use my smartphone as a debugger device in intellij Idea ide for debugging android apps.
0
votes
0answers
3 views

Difference between r2_score and score() in linear regression

I am a beginner in machine learning and tried to practice linear regression. I found the results of score() in LinearRegression is different from r2_score(). I expected them to return the same results....
0
votes
0answers
2 views

Nil Attributes Causing Save Inconsistency in Core Data

I have created a parent/child setup with core data where I have multiple entities that each get their own managed object context when performing any sort of save/read operation (network and core data)....
0
votes
0answers
7 views

how to handle `Type | boolean` return values in typescript and error checking / tests

I have a function that can return a found object, or fail. What's the best value to return in the failure case? {}|null|undefined|false The problem is my test rely on this object, but I get typescript ...
0
votes
1answer
6 views

Coercing a Data to a Matrix for network analysis R

I'm trying to create an undirected network graph as part of a project I'm working on. The data I have is qualitative results. Order here doesn't matter. I'm trying to do this in igraph - mostly ...
0
votes
0answers
3 views

Heroku cant find PyNaCl in my discord bot

2020-07-25T01:12:27.370500+00:00 app[worker.1]: Ignoring exception in on_voice_state_update 2020-07-25T01:12:27.371718+00:00 app[worker.1]: Traceback (most recent call last): 2020-07-25T01:12:27....
0
votes
0answers
9 views

How do I export article data (id, title, content article and published date) in CSV file?

I access the sitecore database using SSMS. I tried using sql query to get data. After that I save as csv file and it works. But my problem is the article content contains html tags How do I delete the ...
0
votes
0answers
4 views

I tried to create model in tensorflow 2.x using functional API, but got AttributeError

Error reads: TypeError: Value passed to parameter 'indices' has DataType float32 not in list of allowed values: int32, int64 I am new to tensorflow 2.x, I didn't get what is the meaning of datatype ...
-1
votes
0answers
12 views

problem with converting javascript object to array

I have a object const List = { {id:1, Name: 'John'}, {id:2, Name: 'Kevin'}, {id:3, Name: 'Mary'}, {id:4, Name: 'Bob'}, }; now I want change it into array const List = [ {id:1, ...
0
votes
0answers
4 views

Angular Material Input/FormField has strange behaviour if it is first page loaded

My inputs are not working as intended when loaded as the first page. i.e. When I load to another page, then route to the form -- everything works fine. However, when I load directly to the route that ...
0
votes
0answers
4 views

Using Deployment Template resource and receiving resource group not round but all other deployments work

When deploying the following the final deployment always fails with resourcegroup not found. The previous for will work. { "$schema": "https://schema.management.azure.com/schemas/...
0
votes
0answers
4 views

Can I use two highlight_keys with ggplotly in r, or is there a better way?

I have a question similiar to this one ggplotly and multiple highlight functions For context, my plot is rendered in an RShiny app. I have lines and points that I want to dim on hover, however I can ...
0
votes
0answers
5 views

Sequelize bulkCreate method is not working properly

I'm using Sequelize bulkCreate method and below is the format I want to save records in table notes_flavors. {id:1,note_id:1,flavor_id:1},{id:2,note_id:1,flavor_id:2} Records for the table flavors ...
0
votes
0answers
5 views

KeyListener on EditText in Android :

I have a editText and I want its input type only number(float). When a user write some code(less than 2 && greater than 4) I want replace their value into it.
0
votes
1answer
19 views

error: unknown type name 'V' in C++ struct

I checked other answers but they didn't work for me, I am getting error: unknown type name 'V' in my C++ code while using struct. I am unable to decipher why this error is occurring, please help.enter ...
0
votes
0answers
5 views

My EC2 server implicated in activity that resembles a Denial of Service, How that happened?

We have a Linux EC2 instance with the following: web application in a Tomcat 8.5. ssh accesible only via a .pem file. security group with outbound rules: All - All - 0.0.0.0/0 Amazon sent us a mail ...
-2
votes
0answers
9 views

How to “stick” a div to another [closed]

I have a content generated by shortcode (WordPress). How to "stick" a div always beside to another, independant of its position? The red square is the result for generated content, the green ...
0
votes
1answer
11 views

How to filter a list of posts based on category

Hi I'm pretty new to django. I'm building my first web app and I've hit a bit of a snag. I have a template that shows a paginated list of posts. I have a side bar which also dynamically populates a ...
0
votes
0answers
6 views

visual basic opening a spreadsheet and then saving it; sometimes the file is locked

I write Visual Basic (not VBA) programs that access Microsoft Excel spreadsheets. Unfortunately, they sometimes open a spreadsheet without closing them. (E. G. when debugging a program.) At that ...
0
votes
1answer
8 views

React SSR: SyntaxError: Invalid or unexpected token when importing image

I'm currently running into [SyntaxError: Invalid or unexpected token] when trying to import image and load it onto src attribute. Here's the code: import * as React from 'react'; import * as logo ...
0
votes
0answers
12 views

Insert a vector inside another vector without using the former vector's begin and end (C++20)?

Currently I am inserting a vector inside another like this: #include <vector> int main(const int argc, const char** argv) { std::vector<int> old_elements{1, 2, 3}; std::vector<...
1
vote
0answers
6 views

React Reach Router - Reload the entire tree

I've the following main class const MainApp = ({ children }) => { return ( <UserProvider> <div className="h-screen pb-14"> <Header /> {...
0
votes
0answers
17 views

how to count number of file with a matching pattern using python

import os, glob HOME_FOLDER = 'path_to_directory' pattern = '*2019*' f = os.listdir(HOME_FOLDER) c = 0; for root, dirs, files in sorted(os.walk(HOME_FOLDER)): for file in files: if glob....
0
votes
0answers
4 views

react-virtualized infinite loop of scrollbar disappearing/reappearing

I've had an issue I've been stuck on for a quite a while. I am currently using react-virtualized to render huge lists. When I resize and reach a certain width, there is a point where the scrolling bar ...
0
votes
0answers
11 views

Im getting an error with my catch that i cant seem to figure out

I am fairly new to react but I think I'm starting to get the hang of it, and just as I thought that I ran into an issue that I cant seem to figure out. when logging in to the app I get this. Unhandled ...
0
votes
0answers
5 views

R: root phylogenetic tree 'ape'

I have generated a tree and I'm having difficulty rooting it in 'ape', and I am unsure if my method of specifying an outgroup is correct. Here is the species list: Agaricus_silvicola Amanita_citrina ...
0
votes
1answer
9 views

why a[:,[x]] could create a column vector from an array?

why a[:,[x]] could create a column vector from an array? The [ ] represents what? Could anyone explain to me the principle? a = np.random.randn(5,6) a = a.astype(np.float32) print(a) c = torch....
0
votes
0answers
5 views

How discover the main monitor?

Recently i saw a video where explain How to make a display the 'Main' display in Windows. So, knowing that any monitor can be the 'main', how he can be indentified programatically? exists some windows ...
0
votes
0answers
11 views

How to eliminate the ambiguity between an initialization list and a char* in C++?

I have a class that can be initialized with a null-terminated string, and has a default constructor also. As following: class Symbol_t { public: Symbol_t() : m_V( 1234 ) {}; constexpr Symbol_t( ...
0
votes
1answer
7 views

error about 'list' object has no attribute 'split'

The code below does not run. The parameter passed to the function is a list of strings. AttributeError: 'list' object has no attribute 'split' base_train = [ ('este trabalho e agradável','alegria'), ('...
0
votes
0answers
8 views

How To Create Record with many2one, many2many data in JAVA ODOO XMLRPC

Here is my function for creating record with Mpa Data This function take as input the model name and the data to create record. My data: {"categ_id":[1,"All"],"...
0
votes
0answers
6 views

Binary Crossentropy accuracy of keras model is not changing

I have seen many questions of this problem online, but there are no definitive solutions and my case might be different, as it is with time series data and a LSTM architecture. model = Sequential() ...
0
votes
0answers
6 views

Mongodb group epoch to YYYY-MM-DD

So currently store start and end time that a user listens to our stations in epoch format, however now I need to do a query that groups listeners if they where listening with an hour block. For ...
0
votes
0answers
5 views

JXA: Create a Mailbox to an Account in Apple Mail

I'm trying to get a new mailbox to a specific account, in Apple Mail, using JavaScript. I've followed a post on this site, but the new mailbox always appears "On My Mac" instead of in the ...
-1
votes
0answers
13 views

how to sum each array if number of an array element is 10 quickly in python3?

a_h= np.array([1,2,4,6]) b_h=np.array([7,12,19,11,17,18,1,13,17,2]) c_h=np.array([20,5,4,8,14,10,8,13]) d_h=np.array([18,20,16,1,20,18,20,17,15,9]) e_h=np.array([20,20,17,12,20,14,9,5,16,9]) f_h=np....

15 30 50 per page
1
2 3 4 5
397710