1,482 questions
0
votes
1
answer
176
views
Intercepting and redirecting calls of a nested class structure in python
I have a very deeply nested class structure spanning multiple files and multiple levels of definitions. You can imagine this as a class describing some hardware system where each hardware component is ...
-1
votes
1
answer
60
views
Save and overwrite if necessary GD file in PHP [closed]
I modify a file using GD in PHP and am currently saving it with the code below. However, the code below does not overwrite an existing file.
What do I need to do to overwrite an existing file or one ...
0
votes
2
answers
115
views
coding problem with inheritance and variable shadowing in java [duplicate]
I have a problem regarding this code that contains a Counter class, and MyCounter1 class, and a MyCounter2 class in Java;
I am wondering why the two outputs in the main method result in
output 1:
...
0
votes
1
answer
713
views
Delta Table Overwrite Not Working as Expected with Partitioning in PySpark
I'm working with a large dataset, which is why I need to partition by a specific id.
I have two notebooks that transform data in stages, and I'm confident that the issue lies with the first notebook. ...
1
vote
1
answer
90
views
fgets() Overwriting part of a struct's data
So I am having a bit of trouble with this coding project, It is supposed to be a linked list with a bunch of fake students. I can get the first student in correctly, but when the fgets() runs again it ...
1
vote
0
answers
99
views
What is the fastest way to overwrite everything on SD card with 0s
I have this class method that handles the writing of 0s to an SD card via dd:
def run(self):
try:
print("[DEBUG] Starting zeroing process...")
# Get the ...
0
votes
1
answer
126
views
Overwrite files msgbox within a loop using Solidworks vba
I have a script that saves x amount parts of a SW assembly into step/xt, based on the input of a userform.
This works really well. However, I want to add a messagebox that asks "Do you want to ...
0
votes
0
answers
159
views
How do I get the VBA Code to stop overwriting when I copy the data to another sheet
I have a VBA macro which is supposed to copy data from one sheet to another when the row is highlighted.
It sort of does this, but it defaults to overwriting the end row, I've tried changing it but it ...
0
votes
1
answer
85
views
Overwrite a hive table without downtime
I have a hive table which is associated with an HDFS path. The table is overwritten by a periodic job and has a few downstream consumers. The table gets dropped while being overwritten and if a ...
0
votes
0
answers
40
views
How to avoid data loss with File.rename in Dart / Flutter?
Future<File> File.rename(String newPath)
doc: If [newPath] identifies an existing file or link, that entity is removed first. If [newPath] identifies an existing directory, the operation fails ...
0
votes
0
answers
101
views
How can I Overwrite things that are written in my appsettings.json with the information the user of my programm gave me
So this is my Main Program i have separated classes but they do not matter for this problem (Im
sorry the Programm outputs are German)
using System;
using System.IO;
using System.Net;
using System....
0
votes
2
answers
46
views
Custom cursor and typeover text box
I need a text box and cursor so that I can type over existing image numbers as shown in this picture.
0
votes
0
answers
61
views
How can I save the current date without overwriting it? Pandas Python
I have a .csv database with names. Every month it is updated and I've created a code that breaks down the names that have left and those that have entered the database, generating two .csv's at the ...
0
votes
0
answers
48
views
How do I insert multiple input data from my data entry form to my data sheet in multiple rows?
I am a beginner exploring coding due to a task requirement. My form aims to input 10 data per person, per row (A2:J2) , per entry (trigger) for 6 persons. (A2:J7 for the 6 people in 1 trigger)
My ...
0
votes
1
answer
227
views
Azure Archive tier overwrite files [Java]
I was testing to overwrite any file stored with archive tier on Azure and i'm getting next error (there is no problem for other tiers):
ERROR: File upload failed com.azure.storage.blob.models....
-1
votes
1
answer
182
views
Table tbody merges with thead on scrollable HTML table
On a hybrid web page, one section includes a scrollable table of names with some information about them. Ideally, this table would have fixed headings with scrollable rows below. But I cannot seem ...
-1
votes
2
answers
130
views
Overwrite specific JSON values but keep the ones that aren't overwritten
I'm currently working on an application where I receive data from server-sent-events. the data stream sends everything once in the beginning and updates only the fields that need to be updated. My ...
0
votes
1
answer
397
views
Deleting a Table in Word via Excel VBA
I built a program that transfers cells from Excel into a Word Document as a table. But everytime I use my macro, the table gets pasted above the older one(from a macro usage before) and it stays there....
1
vote
1
answer
527
views
Python: re-open file on each iteration or truncate to overwrite?
In Python, if you have a loop, in each iteration of which you want to write to a file (pickling in my case), overwriting whatever data is already there, one option is to open the file before the loop, ...
0
votes
1
answer
117
views
How To Keep Turtle From Overwriting Previous Shape
I am trying to create multiple shapes in Turtle but it overwrites the previous shape that I created. For Example:
import turtle
#Setting Up Turtle:
ws = turtle.Screen()
ws.bgcolor("White")
...
0
votes
0
answers
53
views
Overwrite JPG file if it already exists Python script
I cannot figure out why the following script will not overwrite a file with the same name. I've used chmod 777 and the directory is writeable. The script executes perfectly when a new file is ...
-1
votes
2
answers
793
views
Python won't overwrite files / directory if already exists
I'm using Python to download image attachments from gmail using the following script:
#!/usr/bin/env python3
# read emails and detach attachment in attachments directory
import email
import getpass, ...
0
votes
0
answers
54
views
What is wrong with my code? Everytime I run it, my csv file won't write. The first time it did, then it doesn't :/
This is the People-Counting-in-Real-Time-master code i get from github that i'm trying to use for my project. I've changed the cv function from this :
if not args.get("input", False):
...
0
votes
0
answers
1k
views
How can I get back an overwritten R document?
I managed to overwrite an essential R script in R Studio. If I open the document now, I see the previous version from one month ago. As the versions had the same name, the new version got overwritten ...
0
votes
1
answer
72
views
How to overwrite values in array inside object
there.
I am recently learning JS and I get into the trouble, rn.
I use this method to overwrite values:
const person1 = {name: 'Jack', age: 10, job: 'developer'}
const person2 = {name: 'Su', age: 20}
...