11,421 questions
0
votes
2
answers
44
views
AutoCad ObjectArx VB.Net sub-routine to Insert a Block Reference does not include Custom Attributes
The following function is called as shown. The "CIRCUIT" Block exists but none of the Predefined Custom Attributes of the Block are copied into the newly added block in model space. So to ...
Advice
0
votes
6
replies
96
views
Python append list
I am a beginner learning GCSE level python, but stuck on this book problem
Here, the num1.txt file data is appended to the temp1list
num1.txt file data:
10,20,30,40
20,30,40,50
30,40,50,60
40,50,60,70
...
1
vote
1
answer
126
views
How to append all content between valid numbers
I am newer at coding and can't wrap my mind around what I'm doing wrong. This function takes in text from pdf's and starts collecting text only after a certain "search phrase" is found. Then ...
3
votes
1
answer
130
views
Why is appending to User Environment Variable PATH without duplicating is not working for the last path in Windows 11 command line?
I looked through a few solutions here and found an almost working script to append to the user Environment Variable PATH without overwriting the existing path and not clutter it with system's EV's ...
0
votes
0
answers
134
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 ...
2
votes
2
answers
88
views
Why is my code not appending into my dictionary a value under a key despite complying with the loop parameters? [closed]
I'm sorting grades by number ranges and adding them to my dictionary keys. For some reason my code is ignoring value 68 altogether.
My code:
import numpy as np
exam_results = np.array(
[
...
1
vote
3
answers
92
views
I need to add a row of zeros to an array. This would resize the array by another row. How do I accomplish this? I am using Excel VBA
Dim tempIn As Variant
tempIn = wsData.Range("Z" & lastRowData - 6 & ":AN" & lastRowData).Value
This creates the array and passes 7 X 15 data of longs into it.
I now ...
1
vote
3
answers
111
views
What is the R equivalent to Python's ZipFile.writestr
In a Python script, I have:
import zipfile
mytext='abcdefghijklmnopqrstuvwxyz'
zip=zipfile.ZipFile('filename.zip','a')
zip.writestr('a.txt',mytext,zipfile.ZIP_DEFLATED)
I have several python scripts ...
1
vote
2
answers
71
views
Append Text With Newest Entry On Top
I have this code to save data in array as txt file on computer.
Dim path As String = "C:\Users\Desktop\Test.txt"
Dim appendText As String = (Array(0) & Now & Environment.NewLine)
...
1
vote
1
answer
52
views
Appending values to a list and summing the total
I am trying to append values from a dictionary to a list to find out the total Value of the items from a vending machine.
I have tried matching, listofkeys(selection) from user input/selection == to a ...
1
vote
2
answers
62
views
Python DataFrame structure breaks when appending the File
I am trying to get user inputs to create a file where users can store website, username, and password in table format whenever users hit a button. I made the function below, and it looks okay to me. ...
0
votes
1
answer
155
views
Attempting to add an Azure append blob, failing due to The specified blob does not exist
I want to create a AZURE append blob
with the blob name changing once an hour
and append log text to it during the hour.
My problem is that
I have been able to create / upload new BLOBs.
But when I ...
0
votes
2
answers
104
views
Unable to write lookup output to Pandas dataframe using append loop [duplicate]
I want to lookup column in dataframe (Lookup item) using pandas (or anything else). If the value is found in that column then corresponding value in another column (Corresponding item) of same ...
3
votes
3
answers
89
views
how to continue to append starting from a pattern using sed or awk?
How to add consecutive lines using sed (or awk) untill a pattern is found?
I have this data:
max system cycles: 9087AED
max system scans: 900
Secure connection
date:....
1: ID = ...
0
votes
0
answers
213
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 ...
-3
votes
1
answer
45
views
Why do these two lists become the same (python)?
Python query. why does req1 end up being the same as req2? How do I preserve req1 with 3 original values? I would have thought req1 would still be [23,24,25]
the following code displays
[[23, 24, 25, ...
0
votes
0
answers
104
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
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, ...
-1
votes
1
answer
139
views
Submitting Rails form through stimulus controller after using append_to_body
I used append_to_body to avaoid filter dropdowns overlape eachother, but now the option list items are not send hitting request to submit the form in stimulus controller in rails, can anyone help me ...
0
votes
0
answers
39
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
1
answer
84
views
How to append proxies items to an existing /etc/docker/daemon.json file with yq
I have the following /etc/docker/daemon.json file :
$ yq . /etc/docker/daemon.json
{
"dns": [
"a.b.c.d1"
]
}
$
I tried this command to append proxy lines to this file with ...
0
votes
0
answers
86
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 ...
0
votes
1
answer
75
views
MS EXCEL - Identify and Append Duplicate Values in Range/List with Unique Identifier
With the use of a MS Excel formula (Not VBA, etc.), I have a list of values in Column A, which also contains duplicates. I would like a formula in the adjacent column, to identify, match and return ...
0
votes
0
answers
55
views
Creating Multiple New Records at Same Time in Existing Access/SQL Table [duplicate]
I have been asked by our company to begin work on a new Sample Register for test pieces we handle. I have found a way to append information to a list of samples once they have been allocated a number. ...
0
votes
1
answer
228
views
Get Max date value from append variable array - azure synapse pipeline
In my Synapse pipeline, I am looping through a set of filenames. Inside the loop, I use a "Get Metadata" activity to retrieve the last modified date of each file and append these dates to an ...
0
votes
1
answer
46
views
Inner element is not visible within appended div in LinkedIn
I try to append programaticaly a div that contains a checkbox like this :
appendedDiv = $("<div><input type='checkbox'></div>");
$(document.body).append(appendedDiv);
In ...
0
votes
2
answers
41
views
TCL - A condition for an item while appending items to a list
I have this list
set csv [list]
lappend csv [list \
a \
b \
c \
[expr {[cfg::get enable_all_columns]
? {
d
}
: {}
}] \
e \
f \
g]
I need to add element d only if enable_all_columns is 1. The problem ...
2
votes
1
answer
94
views
How can I delete a "." from a list in Common Lisp?
I'm new on lisp and I'm finding a difficulty while working with "append". I have to reorder a list and put the first element of the input list as the last of the output list. I've trying ...
0
votes
2
answers
51
views
Append a value to a single df column, without concatenating a row
I have a pandas df where each column have some numerical values, followed by some NaNs. The number of values and NaNs differ between columns. I want to append a single value at 'first non-NaN position'...
-1
votes
1
answer
44
views
Why is the pop function not popping the correct index, after the append function?
So I was working on this exercise:
In a given sequence the first element should become the last one. An empty sequence or with only one element should stay the same. So I quickly wrote a function ...
-2
votes
1
answer
279
views
tee -a command not appending to file in stringed commands
I have the following command that works fine however writing this command in a "more proper" manner, the tee -a fails to append each line to the .log file. (Instead it overwrites the file ...
0
votes
1
answer
67
views
Appending a .docx file to another .docx file in node
I have two files: doc1.docx and doc2.docx
Does anyone know how I can append doc2 to the end of doc1 programmatically? Imagine doc1 is a template front page and doc2 is a page of data. The end product ...
-2
votes
1
answer
69
views
How do I append to slice in struct of multidimensional in Go? [duplicate]
New to Go...
I have the following:
type class struct{
Name string
Age int
Address string
Phone. int
}
SchoolClassList := [12][4]class{}
NewStudent := class{}
To start, I initialize ...
1
vote
3
answers
91
views
Append Queries not in qdefs collection? [closed]
I want to compile a list of metadata about queries within an MS Access DB. For each query I want a listing of the query's fields. The database I'm working in has three kinds of queries: Append, ...
0
votes
1
answer
478
views
How to concatenate two arrays in nunjucks
I have two arrays, arr1 and arr2. I want to concatenate (append all items if arr2 in arr1) both arrays and store in arr3. How to achieve this with nunjucks?
0
votes
1
answer
74
views
Update data based on ID or append new row if ID not on list
I have a Google Sheet with report data that needs validaiton. I have created a User Form (Validation_1 tab) to pull the report data into for ease of reading. On the User Form the data is validated ...
-1
votes
1
answer
33
views
Efficient append / event logging in simulation model in R
Context:
I'm building a simulation model in R which runs for ~5200 timesteps with ~1000+ individuals. Each timestep, individuals can experience some events with random chance and dynamic rates (~9 ...
-1
votes
1
answer
73
views
I tried to save some strings in csv file but it gets distorted [duplicate]
this is my code it gets an string from user via cin and opens a file and appends it to the file resembeling a simple phonebook.
what am I missing ? where am I going wrong? by the way I am using code ...
0
votes
1
answer
35
views
.append function writes to all players variables even though it should only write to one players variables [duplicate]
Im making a blackjack sorta thing that supports several players. It does this by having a list of player objects, that each have a cards variable, where the player's cards are stored.
I want to draw a ...
0
votes
1
answer
239
views
Godot 4 Array append changes all existing records as well
I was able to solve this but I dont understand how.
When I perform an append to an array, the last value appended becomes the value for all the records in the array.
var myBus=BusinessType.new()
func ...
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
1
answer
74
views
How to deal with ´append´ like functions in lapply?
I have a function (more specifically prophet::add_regressor()) which appends values to an object. I recreated a similar function to make sure my point is clear:
add_to_a_list = function(object, ...
1
vote
1
answer
97
views
How can I append duplicated groups of a dataset with changes to existing data in R efficiently?
I have data like this:
key_data <- data.frame(orig_letter=c("A","A","A","A","C","C","F","B","B","B&...
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 ...
-3
votes
2
answers
79
views
How to skip first element of each row in csv file without changing csv file
I am using a for loop in python to convert the values from the csv file into integer and float then putting them in a list in the code itself but the problem is with that the csv file doesn't only ...
1
vote
2
answers
57
views
How to join all rows of one table to a column of another table that is not in the first table?
First table is only one column, just customer ID:
ID
___
1122
2222
3333
Second table is the product information:
| State| User | Limit
| CA | JM21 | 100
| OH | JD11 | 200
| ...
0
votes
0
answers
340
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
1
answer
137
views
Mongoengine: Atomic [create or modification]
I have the following MongoDB document-class defined with mongoengine:
class Archive( mongoengine.Document ):
user_id = mongoengine.StringField()
transaction_ids = mongoengine.ListField(...
0
votes
1
answer
87
views
Creating Custom Select at Run Time
I recreated my issue on Fiddle: https://jsfiddle.net/RayLove21/k05xhgaL/30/
This is the function I'm utilizing to append the custom select.
function CREATE_OPTION() {
var varForm = '<...
1
vote
3
answers
127
views
Appending to a list by adding to the previous value in Python
I have some repeat scenarios where I have an initial list, then I want to add some additional values to the end of the list by taking the last value and adding a constant to it.
I want to repeat this ...