836 questions with no answers
0
votes
0
answers
372
views
Append an image into JTextArea that will be in the generated document
I am trying to make an application that creates documents based on input variables that represent the keywords in a "template". Basically I created on the left of the GUI a few JTextFields ...
0
votes
0
answers
128
views
What am i doing wrong appending lists in pandas?
I have two csv files in the folder. My output for each loop iteration is avg_mtf. I have been successful in creating lists and concatenating them in the other loops within glob but my comb list is ...
0
votes
0
answers
50
views
How to Build a Structured AQL Query from an Image List with Python?
I am trying to build a script that generates Artifactory queries for an automation task.
An AQL query would look like the one below.
For each image block, there are 2 curly braces followed by a comma, ...
0
votes
0
answers
102
views
In Python, what is the fastest way to append numerical tabular data to a data file?
I am trying to write a script that appends new rows of a table to an existing file of tabular data, so that not all progress is lost if an error is encountered. Here are several ways to do this in ...
0
votes
0
answers
196
views
Python insert values in DuckDB with lists off tuples
I am trying to add 2 lists to an INSERT command in Python.
I'm looking for the simplest smart method.
The DuckDb table is constructed with fields: Timestamp,Job, 10x real fields, 10x Boolean
I know ...
0
votes
0
answers
14
views
Stop appending multiple times in Jupyter Notebook
I have a for loop that appends defined holidays to USFederalHolidayCalendar.
from IPython.display import clear_output
from datetime import date
from pandas.tseries.holiday import Holiday, ...
0
votes
0
answers
38
views
excel circular references append list
Hi and thanks in advance,
Using circular references (scripting is not currently an option so I want to give it a go) I can create a timestamp:
=IF(AND(C2<>"",C2<>0),C2,IF(ISBLANK(...
0
votes
0
answers
83
views
How to stop duplicating form submissions on a master database google sheet/ APPSCRIPT and data appendage
I have several google forms on my website that customers fill in. All of the responses to these different forms have been linked to go to one spreadsheet. I then used APPSCRIPT to merge all responses ...
2
votes
0
answers
79
views
How to send append data using axios?
The problem occur when I am trying to send append data it accept in object form and I'm unable to get data from server it show request parameter invalid
function Traveller() {
const formData = ...
0
votes
0
answers
43
views
JQuery - How to append to element during each iteration of a loop
This is a question that seems to have been asked a number of times here by different people using a number of different coding languages, but no one seems to have come up with a clear definitive ...
0
votes
0
answers
303
views
Powershell out-file throwing a file in use error
I have a script that has been running for several years. In the past week, it has started throwing file-in-use-by-another process errors: Out-File : The process cannot access the file '\OB-UTIL-PRD-01\...
0
votes
0
answers
261
views
C++: push_back() function doesn't append double values: segmentation core dumped
I am having trouble with the push_back() function in C++. For a reason which I don't understand, the push_back function will "not accept" the value I am telling it to append, but the code ...
0
votes
0
answers
28
views
Dropping the redPieces in vertical orientation
// Function to create grid
function createGrid(containerId, numRows, numCols, colorClass) {
const gridContainer = document.getElementById(containerId);
for (let i = 0; i < numRows; i++) {
...
0
votes
0
answers
54
views
Regular Expression extracting strings between matches
I am trying to assign the text of a PDF to columns and using a regular expression to get the values in between matches in column headers. Ultimately for CSV.
I am getting the Year data printed twice, ...
1
vote
0
answers
51
views
VBA find matching Excel files with a subtext - and merge them into single new file
I have excel files with suffixes like this. Final_38200_1.xls, _2.xls, _3.xls etc. I also have files with a _0 suffix.
The _0 suffix files are for purposes of this question done. don't need touched....
1
vote
0
answers
350
views
Add variation price to WooCommerce swatches (using append)
I use a WooCommerce variation swatches plugin to convert the default select dropdown to clickable text buttons.
Now I would like to add the price of that variation to the swatch. The plugin does not ...
0
votes
0
answers
38
views
How can I add together list items that I got from a dictionary?
So this is a simple program I am doing for a homework assignment that I am getting stuck on somewhere in the middle.
Create a program in Python to display a menu on the kiosk at the coffee shop and ...
1
vote
0
answers
83
views
Getting 'QuerySet' object has no attribute 'append' when making a function that automatically add a certain value from a ManyToManyField in Django
I am making a dictionary, and one of the features is to detect any input that is similar in the Censorships model. The reason for that is to give a tag for vulgar words.
This is my Word model the tag ...
1
vote
0
answers
126
views
PyPDF2 Merge/Append pages to end of document
I can't figure out the function to get PyPDF2 to merge PDF files dropped into a watched folder to the END of a file rather than the beginning. I'm VERY new to python so I'm sure I'm missing something ...
0
votes
0
answers
52
views
python list.append with for loop
I was wondering if it is possible to add a for loop in a append function.
used code now:
for Master_ii in ExcelSheet_IO.iter_rows(min_row=3):
if Master_ii[0].value != '': #Collect column A to S from ...
0
votes
0
answers
44
views
Appending to bibliographic collection in OpenalexR
I would like to combine two bibliographic collections that I have downloaded with openalexR, by appending the second to the first.
In my minimal example, I download only one work for each collection ...
1
vote
0
answers
27
views
appending multiple datasets from the same excel
After uploading into r (with openxlsx) an excel with hundreds of tabs I am left with hundreds of dataframes with 6-9 variables each.
The name of each tab (now dataset) is a date (like 080720).
How do ...
0
votes
0
answers
69
views
A way to sort files into tibbles based on filename in R?
I have a large list of files and want to sort columns from certain files in the list into two tibbles. The file names contain the phrases I need to identify which files go where, but I can't figure ...
0
votes
0
answers
80
views
Trying to concatenate a specific row from multiple XML files into a single file
I am trying to create a single file that contains a specific row from a little over 1000 XML (GPX) files. More specifically, I am trying to return row 13, which is the first row that contains GPS ...
0
votes
0
answers
24
views
Append route IDs to unique stores
I have 8 stores that have route ids for shipment schedule. I.e: store 4552 = D1 store 4860 = D2.... I want to append the route number to all my unique stores but i have to idea how to do that for all ...
0
votes
0
answers
50
views
How do I define a file name key in a for loop?
Probably a basic question, I need the formData.delete(key) function to delete the value of the "file[]" filename key. It's my understanding the the "file" value in formData.append ...
0
votes
0
answers
59
views
How to add an SVG pattern in d3 latest version
I have gone through the pattern example and tried that example in the latest d3 version. It shows me an error:
Uncaught TypeError: Cannot read properties of null (reading 'append')
at index.html:61:9
...
0
votes
0
answers
36
views
Saving from for-if loopas numpty array or panda dataframe
I have datasets that have a length of 60 Minutes, I'm trying to add all of the data of the data files together in one pandas dataframe or a numpty-ndarray. In the end I want to use cumsum on the data.
...
0
votes
0
answers
142
views
Multiple use text file
I am creating an online store, and want to add a text file while the user is still "shopping", and then use it on a different form as like a form summary.
I am struggling to find a way to ...
0
votes
0
answers
249
views
How to append new rows to .RDS file in Rstudio using write() function
I have an example myfile.rds file below:
X
firstword
secondword
thirdword
I execute the below line in RStudio to append the word 'mytext' text to myfile.rds but without overwriting the original ...
1
vote
0
answers
56
views
Getting different output with append and +
Code to get k step separated set of the given string
s = 'AABCAAADA'
k = 3
samp = []
for i in range(0, len(s), k):
samp.append(subsamp)
Using samp += subsamp gives different output
for i in samp:
j = ...
1
vote
0
answers
264
views
Append Flink job name to every log statement
In every specific Flink app I can use whatever logger (logback, log4j2, etc.) with appropriate configuration.
But in standalone mode, the actual configuration used is not the one in my jar file ...
1
vote
0
answers
114
views
Lua - Appending function properly
First I defined the AppendScript function
local mt = {
AppendScript = function(self, handler, method)
local func = self:GetScript(handler)
self:SetScript(handler, ...
0
votes
0
answers
134
views
QList assignment directly [cause crash] or append [okay]
What is the difference between these two options?
Option 1:
QList <double> arr_tmp = arr_one; //arr_one also QList <double>
Option 2:
QList <double> arr_tmp;
arr_tmp.append(...
0
votes
0
answers
35
views
append is randomly causing errors
I am trying to append the new user inputs and for some reason it will give me a NoneType error when I try to use addAccount more than once but then will randomly work more than once.
def ...
0
votes
0
answers
42
views
'str' object has no attribute 'append' when trying to append to a json file
When I try to use the .append operator in python to append to a read json file it returns an error 'str' object has no attribute 'append. I've tried multiple different ways to go about it and I can't ...
0
votes
0
answers
47
views
JS function to append an external icon and how to position it
I'm trying to create a JS function that appends an icon(from font-awesome(I got it linked to the html file)) to the far-right side of the "li" row when the mouse hovers on it. But something ...
1
vote
0
answers
43
views
Put multiple datasets names into a list saved as objects of class pointer
I have a function that saves dataframes as pointers. This saves time and space to execute large dataframes.
newPointer=function(inputValue){
object=new.env(parent=globalenv())
object$value=...
1
vote
0
answers
30
views
append with focus textbox and delete dynamic
I am trying to create the append and delete input in jquery, my code is working perfectly but as I delete any input and try to again append the box it not working properly, and also autofocus in ...
0
votes
0
answers
119
views
How to append a underlined word to a list?
I want to append a consonant letter to a list, but whenever I do, I keep getting the ANSI code in the list. Any idea on how to do it?
underline = "\x1B[4m"
end = "\033[0m"
def ...
0
votes
0
answers
39
views
how to keep on adding rows to the dataframe
I am running a loop through all the genes present in my datasets and creating a matrix.
The matrix columns is 49 and rows will depend upon rsid.
I want to create one big matrix in which all the genes ...
0
votes
0
answers
247
views
How do I append values to ulab ndarray in micropython?
I want to append values to ulab array. ulab is numpy implementation in micropython.
I am reading values from ADC and I want to append these values to ulab array like we do in numpy.
import numpy as np
...
1
vote
0
answers
851
views
I receive (OSError: [Errno 9] Bad file descriptor) when attempting to open and append a file in python
I am creating a simple flask website with a login and register page. The login page works fine with login information stored in a csv file. On the register page, after validating username and password,...
0
votes
0
answers
28
views
Write a value to existing CSV file without prompting user to select csv file
i have a code which on selection of region should update the contents of a variable known as csvContent to an existing csv named data.csv.
but currently when i run it prompts the user to select the ...
0
votes
0
answers
27
views
Hpw to add sl number to the generated csv file
data=query to fetch data from MySQL with for loop .
fileName="abcd/2022"
fieldNames = [
"SL NUMBER"
"NAME",
"PLACE",
"AGE&...
0
votes
0
answers
65
views
Appending a vector inside a double for loop in R
I am trying to edit the values inside a vector determined before the loop. I want to append every element in the vector sequentially but can't figure out how to do it.
So here I tried
hr <- seq(0,5,...
0
votes
0
answers
116
views
Binding the outputs from a function within a loop into a single file and naming columns
I currently have a folder with 151 files in it. Within a loop I want to read in each file, carry out a function on each file and then combine the function returns for each file into a single csv with ...
0
votes
0
answers
69
views
How to empty an appended array after a widget timeline update
I am transitioning from UIKit to SwiftUI in my app and am updating network calls to async await as well. I created a Large size widget that displays the weather for 7 airports. The airports ...
0
votes
0
answers
137
views
I want to append() to a nested list, but end up appending to all my lists, why?
I have my object:
def NewShip(length, width, height):
frontLeft = [] #ship[5]
frontRight = [] #ship[6]
midLeft = [] #ship[7]
midRight = [] #ship[8]
backLeft = [] #ship[9]
...
0
votes
0
answers
43
views
Swift: define custom array sorting
As part of a network layer for a specific API call, we have a function which builds a required URL. As part of this we have an array of query items e.g.:
component?.queryItems = [
...