Questions tagged [variable-length]

Refers to anything whose length can vary

Refers to anything whose length can vary

290 questions
0
votes
1 answer

Cypher - Gantt chart from variable length relationships

I'm new to Cypher, self taught so far. I've managed to get creative with basic queries but am now hitting something I have no idea how to achieve.... Given a list of job ID dependencies: │"A"│"Rel" │"B"│ │29 │"DependantOn" │8 │ │21…
0
votes
1 answer

Getting wrong answer from data length calculation

I have a list of 41 data from a functioned I defined, but I only want to access the first 40 of them. So, the index positions I am looking for are from 0 - 39 forecast_price(10)[:len(forecast_price(10)) - 1] I also made it a variable for easier…
Ejin
  • 13
  • 4
0
votes
1 answer

gcc is too smart to generate __strcpy_chk

My code looks like struct MyData { int len; char data[1]; }; MyData *d1 = malloc(1024); strcpy(d1->data, a_string); I use it as variable-length buffer and guarantee the buffer not overflowing manually and carefully. But the program…
Pan Ruochen
  • 1,990
  • 6
  • 23
  • 34
0
votes
2 answers

How do I select 3 character in a string after a specific symbol

Ok, so let me explain. I have some string like this : "BAHDGF - ZZZGH1237484" or like this "HDG54 - ZZZ1HDGET4" I want here to select the triple Z (that are obviously 3 differents character but for the example I think it's more comprehensible for…
0
votes
0 answers

R data into column stock symbols

I'm downloading stock data with 5 symbols in stock_list. The following code works: stock_list <- c("ZM", "XLNX", "XEL", "WDC", "WDAY") master_df <- NULL for (idx in seq(length(stock_list))){ stock_index = stock_list[idx] getSymbols(stock_index,…
posti
  • 1
  • 1
0
votes
1 answer

Predicting with new data having greater length

I would like to make a prediction on a dataset which is longer than the dataframe in which my training set is present. Df<-data.frame(MW=c(192700,117900,99300,54100,37800,29500,20200,740), …
Ginko-Mitten
  • 304
  • 1
  • 11
0
votes
1 answer

can we make no of features in Keras Input shape as variable and not fixed?

I'm implementing a chain classifier which takes the lstm model as chain of binary classifiers for a multiclass problem. As the output of one binary classifier is fed into next binary classifier as a feature so we cant make the input shape fixed in…
0
votes
1 answer

Find the longest characters string in list with tuples

I am looking for the longest characters string in a list with tuple couples. But only on the first element of all tuples. VMT = [('T_WIN2019_04.2020', 'Microsoft Windows Server 2016 (64-bit)'), ('T_CENTOS_7.8_04.2020', 'CentOS 7 (64-bit)'),…
0
votes
1 answer

How to parse a string?

So I'm trying to get the user to enter text into a text box and my program will tell the user how many letters the word contains. I initialized the variable String1 (String String1;) to be the word the user entered. Now the part I'm confused about…
user13566910
0
votes
1 answer

Width of the element depending on the width of another element - WITHOUT JavaScript

I need the length of the .divider element to be equal to the length of the text (.topic class) + 2em, so that divider is a bit longer than the text. Is this possible using CSS only (no JS)?Here's the code (and JSFiddle):
HexenSage
  • 117
  • 2
  • 10
0
votes
0 answers

Determine the length of a float in SQL Server

I want to change float columns to decimal columns, so I use max(x) to determine the numbers of digits I need before the decimal, but how can I check the length after the decimal? For example: float number: 300,9886722 How can I see that they are 7…
0
votes
0 answers

What does the error message mean when using lm linear regression command - error in the model.frame.default... variable lengths differ?

I tried to run a bivariate regression. I want to examine the association between level of education (IV) with views on immigration (DV). The DV is an interval level variable and the IV a dummy variable. I label the regression as reg. The code is as…
0
votes
1 answer

How can I use an if-else statement with a variable length argument list?

My method uses a variable length argument list, and I would like to like to check each variable using an if-else statement. Is this possible? I'm unsure if my syntax is correct. def buy_choice(*choice) loop do input = gets.chomp if input…
Richard
  • 164
  • 7
0
votes
3 answers

Issue with jagged array lengths

So I'm working on a project in Unity in C# and I have to get information from a csv file. I made a test file to develop the code, but I have a little issue. The test csv file contains (3 rows, each have 5…
0
votes
0 answers

Get ROW number which store Math.min VALUE in CSV file(JavaScript)

How can I get the row number of the lowest value in csv file column 4? Notes: Price = Points[4] = column 4 in Csv. file lowestv: find lowest value in Points[4] j = the row number that I want to get (lowestv.length is fault; it's just an…