All Questions

0
votes
0answers
2 views

Python 3, pdfminer. Error while converting pdf to text, NameError: name 'file' is not defined

I'm having error: NameError: name 'file' is not defined. I'm not using function file() since that is not supported by Python 3 but I'm not sure why I'm still having that error. from io import ...
0
votes
0answers
2 views

How can I run a console application within my Delphi console application?

I want my console application to start another console application, display everything this another application wants to display then do something after this another application finishes and exit. ...
0
votes
0answers
8 views

Finding average of elements with the previous elements and summing it and averaging

I have a set of numbers: import numpy as np A = np.array([0, 1, 2, 4, 8, 9, ...]) I want to: ((0+1)/2 + (2+1)/2)/2 ... I am not sure how to go about this. What I got so far: B = (A[:1]+A[:-1])/...
0
votes
0answers
3 views

Excel vba macro to move portion of column down one row when condition is met

I have a working brute-force macro which, when a condition is met (values in two other cells are not equal), moves the cell values of rows 9 to 243 of two particular worksheet columns downward one row ...
0
votes
0answers
4 views

PHP Geoplugin not working

I need to redirect if the user is from United States or from any other country that does not speak Portuguese. My code: require_once('geoplugin.class.php'); $geoplugin = new geoPlugin(); $...
0
votes
0answers
3 views

How to employ type member constrains for use with type classes?

I have a function with signature currently like so: def runInSystem[J](job: J) (implicit ev: Job[J] {type M <: SysJobMetaData}, asys: ActorSystem, jobContextService: JobContextService ): ...
0
votes
0answers
2 views

My ubuntu 18.0.4 will not create a “matlab” file from installation

So I installed Matlab from their site. I got the latest Linux .zip file, MCR_R2018a_glnxa64_installer.zip, unzipped it via "unzip" and ran install. It worked, I got the different paths at the end as ...
0
votes
0answers
3 views

link current nodejs api listening to port localhost:8080 to angular which is localhost:4200

recently my project was on localhost:8080 and the api service posted below worked and listened to that port. now i madea change to angular and want to change it so that it listens to the angular ...
0
votes
0answers
5 views

Firebase Queue slow performance on Firebase Hosting

I have a requirement where the client app (iOS app) will hit my API in a loop without waiting for the response (from 12 to 48 times). With eah request, I need to process the request data and write it ...
0
votes
0answers
2 views

ReactTable and custom server side data update

Has anybody ever used this awesome react components processing server side data? The solution given here is excellent if you don't need to manually update the data. I would need to refresh the ...
0
votes
0answers
3 views

NullPointerException in creating ProvisioningJob for headless update of eclipse rcp application

I am implementing headless force update of the eclipse application. I have used the P2Util class from https://help.eclipse.org/neon/index.jsp?topic=%2Forg.eclipse.platform.doc.isv%2Fguide%2Fp2_startup....
0
votes
0answers
2 views

DBLookup parameter values as registry entries doesn't work

WSO2 EI 6.3.0 DBLookup parameter values as registry entries are evaluate like literal. I read https://docs.wso2.com/display/EI630/DBLookup+Mediator but is not working for me. Me dblookup ...
0
votes
0answers
7 views

MsSQL Trigger on Table vs Trigger on view

Iam working on project where my college wants only newly inserted or updated data . It concerns cca 5 sql tables. Values in many columns could be updated/changed (surname, id, department, exit date, ...
0
votes
0answers
8 views

Disambiguate the diamondproblem in c++ to access the top level member

First I would like to acknowledge that there are many questions with similar titles and subject matter. I'm fairly certain mine is unique from them. Given the code struct Top { int get() { ...
0
votes
0answers
2 views

angular map open bootstrap modal on marker click

I am using Angular Maps and am trying to open a Bootstrap 4 modal on markerClick. Needless to say I haven't had any luck. Here is the agm-marker snippet of my component.html file <agm-marker *...
0
votes
0answers
20 views

Why is my list comprehension not showing same result as the for loops?

Below is my code to triplets that sums to a give value (using for loop) def triplet(array,num): for a in range(len(array)): for b in range(a): for c in range(b): ...
0
votes
0answers
3 views

Fetching API data with Material-UI expansion panel

I am trying to generate expansion panels based on fetching API, which I have done successfully. The problem that I am having is that when I try to generate the data on the expansion panels, it shows ...
0
votes
0answers
4 views

Pyqt Nested QTextEdit NOT updating properly when resized

Issue when resizing I have an issue with the QTextEdit, it's not updating properly when resizing my window. It's nested in a QFrame inside a QSplitter. I attached a image of the problem. I have ...
0
votes
0answers
3 views

Issue with Tabman to switching between two ViewControllers

i hope you can help me. I use the Tabman Framework to implemente Android-Style-Tabs to my iOS-App. But i have a problem with that: I can't switching between my two ViewControllers. I always see the "...
0
votes
0answers
3 views

package-lock.json contains non-exact versions

According to package-lock.json's documentation It describes the exact tree that was generated, such that subsequent installs are able to generate identical trees, regardless of intermediate ...
0
votes
0answers
3 views

How to make a browser phone using Twilio and Node.js?

I am trying to create a browser phone(from twilio number) to call my own phone. I grab the quick-start code from here. https://github.com/TwilioDevEd/client-quickstart-node However, I can make the ...
0
votes
0answers
4 views

Why Sqlite return only last row not all rows data?

I don't know what's wrong with my code I follow the rule but I get wrong result. I want to search db and find all rows data but I only get last row from sqlite. my code to search database is bellow: ...
-2
votes
0answers
24 views

A level computer science project [on hold]

My Task for A2 is to create a Romanian translator for a certain book in python however i have no idea how to do this only clue i have so far is to create it based on a dictionary if anyone could help ...
0
votes
0answers
22 views

C# While loop not working

New programmer working on a little file mover. Not sure why my while statement is not working. I am trying to have the program check if the file exists in the directory and if so, counter++ until it ...
0
votes
0answers
10 views

How can I cast a variable with the `object` type to class with generic type in c#?

I have a project written in C#. I am trying to cast an object to a class that accepts enum object as a generic argument. I have the following class public class GenericEnumViewModel<TEnum> ...
0
votes
0answers
3 views

how to call a sql script or query in background for a Karate feature?

I have Karate feature with a long list of operations. I need to manually have some test data setup before running these tests which is essentially one sql query. Is there a way we can have this query ...
0
votes
0answers
5 views

Python 3, pdfminer. Error while converting pdf to text

PDF to TEXT with pdfminer, using Pyhton3 The following is the code: from io import StringIO from pdfminer.pdfinterp import PDFResourceManager, PDFPageInterpreter from pdfminer.converter import ...
0
votes
0answers
7 views

Unable to use protocol with class type where AnyObject is expected

I have a class with a generic type that needs to be an object. And I cannot use a protocol with an class type as type for this class. class Holder<T: AnyObject> { var value: T? = nil ...
0
votes
0answers
7 views

When I splice @Input variable, it reflects parent component's variable

I have array of objects and i'm passing that into my child component. In my child component, I need to list the objects that has attribute "selected:true". In my child component I collect the object ...
0
votes
0answers
9 views

Python Pandas and Spearmanr rowwise run faster

I'm trying to take two dataframes and run row wise spearmanr correlation. I've set the code up so it runs but it is taking a very long time, and I was hoping that there is a better/faster way to run ...
-1
votes
0answers
4 views

Sequence visualization

What would be the best tool to visualize a timeline for a sequence of letters ? I have this data: User1: AAAABBAACCDD User2: ABABCDDDCDAA And I would like to represent each letter as a different ...
0
votes
0answers
2 views

Sample size of each resample

I am calculating a performance metric based on the resamples obtained from cross-Validation and bootstrap using the R-package caret: control <- trainControl(method = "cv", number = 10, ...
0
votes
0answers
8 views

Function to create a non equally spaced array in numpy

I would like to create an array with the form [1, 2, 4, 8, 16, 32, ...]. Not always with that spacing between numbers. Is there a linspace/arange type function which allows me to create vector of non ...
0
votes
0answers
4 views

What happens to my local project files when I create a new git branch?

Suppose I have a repository on my local machine, a working directory where I make changes and push to remotes, and I decide I would like to add a new feature which will in time replace an in place ...
0
votes
0answers
6 views

How to write a Unix Shell Script for CSV file and print columns

In the CSV file there are many datasets like temperature, light, air quality etc of different cities. So i want to write a script by which i can search any of the above data of different cities. More ...
0
votes
0answers
5 views

Sharing session between EC2s with DynamoDB

I'm currently working on setting up DynamDB to store my PHP sessions. The reason I want to do this is I want to do a blue-green-ish deployment from one server to another, i.e. setup a second EC2 ...
0
votes
0answers
7 views

Audio not working properly with cookies

I'm trying to save an audio into cookies, but for some reason it's not working. When I execute the codes, in the console it says "ERROR: Execution of script 'play audio' failed! temp1.play is not a ...
0
votes
0answers
2 views

How to set view in nested ViewPager?

I am having an application with one ViewPager(child_view_pager) nested in another ViewPager(parent_view_pager). When I am navigating from one view to another view in child_view_pager, I am getting the ...
0
votes
0answers
6 views

Button content blocks ability to click the button

I am building a react app using Button from material-ui. I want to be able to drag and drop a component containing a button. For the drag and drop ability I am using react-sortable-hoc. The button ...
0
votes
0answers
8 views

BITMAP to mat/2d array

my goal is to have a program which screen captures a game and then to read the picture from code. i'm realy new to the win api + never used bitmaps, so im having a hard time, im a complete noob. the ...
-1
votes
0answers
10 views

Microservices architechture

Hi I am using microservices architecture and rabbittmq broker to pass data between microservices. I am Sending hashmaps as message. I don't know if it is the best industrial practice or not. Please ...
2
votes
2answers
33 views

Java - String.lastIndexOf(str) logic I cannot understand

I used two different string to test the last index of "\t", but they both return 4. I thought it should be 5 and 4. I checked the oracle docs and I could not understand why. Could someone please tell ...
-1
votes
0answers
5 views

What's the best way to learn web/Android development offline?

Does anybody know about a way to learn web/Android development offline? I've been searching for a while and haven't found anything. (I am working on an Android tablet) Thank you!
0
votes
0answers
4 views

Odoo 10 - Building Dynamic Web Forms

I'm attempting to create a dynamic web form in odoo 10. But I can't figure out how in the inherent web design. Is there currently a way to do this? More specifically, we're using the odoo helpdesk ...
0
votes
0answers
3 views

Keep MongoDB connection open while running tests using mocha framework

I'm using something akin to How to properly reuse connection to Mongodb across NodeJs application and modules to keep my mongoDB Connection open. This requires all the code to go into a MongoDB....
0
votes
0answers
19 views

user input string with arraylist

How do I Compare user input string to array list then remove user string letters from the arraylist here's my code: I want to get user input as string e.g Apple then I want to remove the letters "a" "...
0
votes
0answers
7 views

Is Controller.HttpContext (HttpContextBase) thread safe?

If you have the following code in a (non Core) ASP.NET MVC 5 project: using System.Diagnostics; using System.Threading; using System.Threading.Tasks; using System.Web.Mvc; namespace ASPApp....
0
votes
0answers
3 views

Need help connecting my Arduino to my Firebase

I am having an issue trying to connect my Arduino Uno integrated with a PHPoC Wireless shield, model P4S-348, not an ESP8266. I genuinely no idea how to do so as this is the first time I have tried ...
0
votes
0answers
13 views

Motors not stopping in between delay! HELP! Arduino

I am making an incubator as a personal project, i have figured out the temperature and humidity regulation part, all that is left is this motion that i have been trying to achieve for like a week now. ...
0
votes
0answers
8 views

SQL Server 2017 : Invalid length parameter

INSERT INTO #NEWSTATICFILTER SELECT DISTINCT (SELECT STATICNAME FROM #STATICFILTER WHERE IDNUM =@ic) AS STATICNAME, (SELECT 1 FROM [CoSD].[ERSCommodityDataSeries] ...

15 30 50 per page