All Questions

0
votes
0answers
1 view

Why is this loop infinite? Fortran

I have this code and i dont know why it never ends, it's just a DO statement do i=1,100 call random_number(x) x=f(x)*100 write(*,*) i p=int(x) histo(p) = 1 end do
0
votes
0answers
2 views

Spyder is suddenly unable to import anything

Getting ModuleNotFoundError when I try to import anything. Spyder was working very fine three hours ago. I closed it and returned an hour later and this problem started. I did make one change in ...
0
votes
0answers
2 views

Modify interval´s variable according to 2 other dummy variables

I am new in Python. I need to change variable intervals (in a Dataframe) according to two other variables (dummies) that actually indicate when each interval starts. How can I do it? preferably ...
0
votes
0answers
4 views

How to insert a line between two other lines in Console with Java?

I am setting up a Console Command interface where the input line should always be the line which is below every other line. So if an other thread prints something while I write something in the input ...
0
votes
0answers
3 views

Postgres group by newly defined column with ambiguous name

I'm trying to create a view with some column with the same name as the original table. The query looks like this. SELECT mmo.model_id AS model_id, mmo.location_id AS location_id, COALESCE( ...
0
votes
0answers
2 views

How to use GeckoSessionSettings correctly

I am totally new to Java but tried to make a really simple app which displays a website inside a GeckoView. I could archive to load a website inside a GeckoView but once I try to change some Settings ...
0
votes
0answers
3 views

Check Cell value Matches Sheet Name

would like to copy a sheet and name it from the cell value, however want to stop a new sheet being added if that name is already there howver I keep getting ant error message Eroor 1004 that name is ...
0
votes
0answers
2 views

How to transcode 50 H264 Streams with FFMPEG more efficient?

i need to (Re-)Transcode ~ 50 Live-Streams. These streams are in H264 with 720p to 1080p and bitrates up to 10M. I just want to reduce the quality and bitrate of the streams to up to 720p with max. 2M ...
0
votes
0answers
6 views

C# - Why does it give everyone vip?

I am making a project and i thought i had everything working. i am trying to make it to where if the user has vip (or if vip is equal to 1) it will open a new form. the problem though is that when one ...
0
votes
0answers
3 views

Can't Adjust the camera position

I can't change the camera position in my game, the camera back to it's original position, I think its something wrong with my code, but i have no idea what is causing it. Here's my Camera code: ...
0
votes
0answers
4 views

Read one column as json strings and another as regular using pyspark dataframe

I have a dataframe like this: col1 | col2 | ----------------------- test:1 | {"test1:subtest1":[{"Id":"17","cName":"c1"}], "test1:subtest2":[{"Id":"01","cName":"c2"}]} test:2 | {"test1:...
0
votes
0answers
2 views

ClassifierCompositeItemWriter rollback on exception but data is partially committed to the database

I'm using a ClassifierCompositeItemWriter to insert different kinds of registries that exists in one fixed length flat file, writing it into a postgres database with multiple JdbcBatchItemWriters ...
0
votes
0answers
2 views

how to compare current event with old event in kafka streams

I have a sequence of events in a topic T1 with key as employee Id, value as employee object. eg: Key: Value (JSON) 1000: bob,24,department1,etc 1002: sam,35,department2,etc 1003: anna,...
0
votes
0answers
2 views

How to get the peer IP address and encryption domain IP address from Vultr

I was assigned to integrate a web recharge gateway and I am required to setup a VPN and subsequently submit the peer public IP, encryption domain public IP, test IP and production IP of the VPN to the ...
0
votes
0answers
2 views

Jekyll compare strings

I have my current page.url in jekyll: /chorals/2018/01/12/post.html I would like to extract the word chorals alone so that I can compare it. What I am doing is: {% assign postcategory = page.url | ...
0
votes
0answers
2 views

Pass 2d array to rest api

I am using scala to interact with a rest api which expects to receive a 2-dimensional array of floats. Doing this naitively with scalaj does not see to be possible I have only seen examples that pass ...
0
votes
0answers
3 views

How to Check if an Email Exist Through Python 3?

I want to check if an email address exist before I send an email. I've tried pip's validate_email package and it doesn't work at all. It returns true for every string that include '@' in the middle ...
0
votes
0answers
2 views

DynamoDB query nested map value

Probably this question was asked a trillion times already but the search didn't result in anything useful 1) I'm querying DynamoDB using low level API due to platform limitations. So my request's ...
0
votes
0answers
2 views

Apply spectrum color on the SVG (Fabricjs)

I am currently trying to apply colors on all object present in svg by using spectrum color. First i am storing all unique color of objects in SVG in a array and then displaying in a spectrum which is ...
0
votes
1answer
6 views

grey line with no explanation in Java how to find the problem?

image what the problem is? priceMessage doesn't show me the problem so i can fix it why it's show a grey line with no red warning? i tried to figure what's happening nothing work so what's wrong with ...
0
votes
0answers
5 views

Angular firestore get value of observable

i'm downloading data form my firestore database. Afterwards i want to iterate through my Observable and get one specific value. To do so i tried the following: interface Note{ imageUrl: string; ...
-2
votes
0answers
12 views

wrong number of template arguments (0, should be 1)

Still learning and going through assignments so bare with me for any flaws. I'm hitting a template issue with my current assignment where it expects 1 but is getting 0, I have gone over the ...
-5
votes
0answers
14 views

Creating and selling Java business software

I heard from a manager at work that you can create a business software and sell it. Much like in I.T you can sell I.T services by setting High Availabillity and backups/storage on Rackspace and start ...
0
votes
1answer
7 views

Javascript Best way to deal with server returning enum numbers? Am I only limited to use switch statements to convert them to string?

Server returns me things like 0,1,2,3,4..etc corresponding to something like: 0 = "Hello", 1 = "How", 2 = "Big Data" that I would need to display on the front end. Sorry if this was asked before, ...
0
votes
0answers
3 views

How scheduler talks to API server?

I would like to know, in which parts of the codes in kubernetes ( https://github.com/kubernetes/kubernetes) the scheduler talks to the API server and then the API server sends out the scheduling ...
0
votes
1answer
11 views

How can I find an element in an array whose index equals another element's value?

Say I have an array of [5,4,9,3,1,6,2]. I take the first element at index 0, which has a value of 5. Next, I want to find the element whose index is 5. This corresponds to the value of 6. And then I ...
0
votes
0answers
5 views

H2 completely ignores IFEXISTS=false in jdbcUrl

I've got the following code to start an H2 daemon and connect to it with Hikari: // Start H2 daemon server = Server.createTcpServer("-tcpDaemon").start(); // Connect Hikari to H2 server HikariConfig ...
0
votes
0answers
3 views

compile qt 5.12.4 with open ssl static fail

I am trying to compile qt with open ssl statically I could compile openssl using vs2017 after install perl and configuring it i used nmake and it worked with -no-shared smoothly. Then i open the ...
0
votes
0answers
7 views

Scala inheritance with recursion

I am going through some example scala code and couldnt figure out the outcome of the code. I tried adding prints in the code to understand the code flow abstract class MyList { /* 1. head ->...
0
votes
0answers
5 views

Console input same line as System.out.println [duplicate]

I was playing around with Scanner in Java as I started to learn it, coming from Python. I noticed that if I use Scanner and I ask the user for an input, the cursor goes to the next line. For instance: ...
0
votes
0answers
4 views

Lifetime: return get_mut result from a HashMap (or a HashSet)

I'm trying to wrap a HashMap, as defined below, to return a mutable reference from a HashMap: struct Id<T>(usize, PhantomData<T>); pub struct IdCollection<T>(HashMap<Id<T>, ...
0
votes
0answers
12 views

Is there a query that can add only business days , I used Date Add function but its still counting weekends?

I'm setting up web-page to display Date for scheduling. Currently I'm using Date-add to add 5 business days, using Week , but it still takes into consideration of the weekend. I've tried the ...
-1
votes
0answers
11 views

Find nearest match of objects in JavaScript array

I have an array of non-sorted objects: const participants = [ {code: '222222', is_winner: true}, {code: '444444', is_winner: false}, {code: '777777', is_winner: false}, {code: '555555'...
0
votes
1answer
6 views

Multiple Choice Quiz: Need to set title of each button to each question multiple choice answer

I am developing a multiple choice quiz. All of the data is being parsed through json. I have 5 questions and each question has 5 multiple choice answers. Currently I set the question number, title of ...
0
votes
0answers
12 views

How can I assign factor levels to empty categories?

I have a factor that theoretically can assume any value between 0 and 8. I wish to assign levels to each of these values; i have chosen birds as an example. However, some categories are empty which ...
0
votes
0answers
3 views

Failed to sign xmlsec with named reference URI

I tried to use python-xmlsec to sign an xml document from a template. It works fine if URI="". However, if URI is not empty, then I got error "failed to sign" python 3.6 xmlsec from https://github....
0
votes
0answers
3 views

How can I make a transition-group element disappear on timeout?

I have a transition-group with elements being added on certain events, but I would like them to fade-out after 10 seconds. How can I achieve this? <transition-group name="list"> <...
0
votes
1answer
5 views

.* not capturing commas correctly

My regex does not properly handle commas in a line. if line =~ /^.*,(\d{4}-\d{2}-\d{2}),(\d+:\d+),.*,(\d+),.*,(.*) && (.*),Other,Other.*$/ I am reading a file line by line that should look ...
-1
votes
0answers
7 views

Need help creating a login system using arrays that read a username and password from two separate txt files

I need to create a login system that prompts the user for a username and password, and then compares two text files that have usernames(UN.txt) and passwords (PW.txt). UN.txt: asb123 dfd322 gbd433 ...
0
votes
0answers
3 views

how to create function in Apache Pulsar for docker

Step 1: Copy Jar in container pulsar: docker cp name.jar {ID_CONTAINER}:/pulsar/name.jar Step 2: Create function in container pulsar : docker exec -it {ID_CONTAINER} bin/pulsar-admin functions ...
0
votes
0answers
9 views

How to get multiple column data from two tables in one view

I am trying to get data from two tables(brands and raw_materials), connected by a foreign key (brand_id). A brand can have multiple raw materials. I want it all displaying under its respective brand ...
-1
votes
0answers
9 views

Get one result displayed in the UI from JSON file in Angular 7

I'm using a json file in Angular 7 to hold all the menus for my application. I need to only show the data for one menu in each of the re-usable menu components. I originally set this up with the ...
0
votes
0answers
9 views

Temporarily modifying PATH variable from R session

Background I've generated a plotly object that I would like to export using plotly::orca function. The function has dependency on a command line utility orca that, I've installed and can find running ...
0
votes
0answers
5 views

Why can't you add a Vue.js reactive property directly to root model?

Here is some code that uses $set() to add a new reactive prop to the model. It works fine. <template> <div id="app"> <div> Prop1: {{ x.prop1 }} </...
0
votes
0answers
10 views

How to determine the display count of a Swift String?

I've reviewed questions such as Get the length of a String and Why are emoji characters like 👩‍👩‍👧‍👦 treated so strangely in Swift strings? but neither cover this ...
0
votes
0answers
3 views

System Notes old value is x% greater or lesser than new value

I'm trying to create a saved search that compares the old value vs the new value of a specific system notes field. Basically, I want to be able to search on if a Freight Cost new value is greater than ...
0
votes
0answers
8 views

Error loading .mat file using scipy.io.loadmat for machine learning

So I've downloaded the vgg19 model from a link provided by a stanford course on coursera (trusted link), the problem is whenever I try to load the model using model = scipy.io.loadmat(filename) it ...
0
votes
0answers
7 views

How to stop scrolling in general on iOS for Chrome or Safari - CSS/ JavaScript or jQuery

I created an input element, which contains a click eventlistener, that when it fires it runs a function, that makes an element visible by the css rule "display:block;". This element contains the ...
0
votes
1answer
13 views

Socket incoming connections can not push_back elements concurrently to a globally defined std::vector

I am new in socket programming and at this moment I am confronted with a problem that I can not solve. I have read from several sources that the C++ standard template (STL) containers are not thread-...
0
votes
0answers
6 views

parsing MIME types corrupts .pdf data via Node

I've been tasked with parsing MIME type data from an api in a middleware application via NodeJS and TS. The parser works as expected but whenever I handle the actual attachment data before encoding it ...

15 30 50 per page