Questions tagged [overwrite]

Overwriting is a process of replacing content with other content in place. It can be physically replaced on storage, or overridden with newer version of content type.

Overwriting is a process of replacing content with other content in place. It can be physically replaced on storage, or overridden with newer version of content type.
Not to be confused with Override in Object Oriented Programming.

1479 questions
5
votes
1 answer

How do I keep a JFormattedTextField in non-overwrite mode?

I have a problem with JFormattedTextField, namely keeping it in non-overwriting mode. I found out how to set it to non-overwriting, namely with setOverwriteMode(false). However, although this function lets me type in the field without overwriting,…
Tim Kuipers
  • 1,705
  • 2
  • 16
  • 26
5
votes
2 answers

strange issue when overwriting $_SESSION variable types

I've summarized the crux of problem to be as brief as possible: A simple script:
Joey
  • 409
  • 1
  • 3
  • 11
5
votes
2 answers

file overwrite in java -- user-mapped section open error

The following function in a java program is written with the intent to read from a file and overwrite back to the same file after. public static void readOverWrite(File dir) throws IOException { for (File f : dir.listFiles()) { String[]…
leba-lev
  • 2,788
  • 10
  • 33
  • 43
5
votes
5 answers

Why piping to the same file doesn't work on some platforms?

In cygwin, the following code works fine $ cat junk bat bat bat $ cat junk | sort -k1,1 |tr 'b' 'z' > junk $ cat junk zat zat zat But in the linux shell(GNU/Linux), it seems that overwriting doesn't work [41] othershell: cat…
Alby
  • 5,522
  • 7
  • 41
  • 51
5
votes
5 answers

Check if a global property/function has been overwritten in JavaScript

JavaScript makes it easy to overwrite properties and functions of the global object. I'd like to find a way to check if the original version of a global property has been replaced. Consider someone putting this in their HTML:
GOTO 0
  • 42,323
  • 22
  • 125
  • 158
4
votes
2 answers

Overwrite Zend_Config and access parents nodes

I want to overwrite Zend_Config method __set($name, $value), but I have same problem. $name - return current key of overwrite config value, eg: $this->config->something->other->more = 'crazy variable'; // $name in __set() will return 'more' Because…
BlueMan
  • 687
  • 2
  • 10
  • 23
4
votes
3 answers

c++ Overwriting an already defined variable

I have the following main function, creating a product of coefficients using pointers. It's only a small part of the project, which is used to create polynomials: #include "header.h" int main() { TermProd x = TermProd( new Coeff(4), new…
user1173818
  • 41
  • 1
  • 2
4
votes
0 answers

How to unit test a utility function for Python pyspark

I have a utility function written in Python to write parquet files and json files to s3 bucket. This is the function: def write_to_s3(data1, data2, s3_path): try: data1.write.mode("overwrite").parquet(s3_path) …
wawawa
  • 2,835
  • 6
  • 44
  • 105
4
votes
3 answers

Gradle cannot overwrite task with overwrite:true

i want to create a build.gradle file which will load another into it. The second file just should have the "defaulttasks" which means that they should execute when the task doens't exist in the first one. File one: apply from…
4
votes
1 answer

Rotate svg text around central text position using css

I want to apply a single css rotation transformation to a set of elements in an SVG, such that each element is rotated independently, without having to calculate the centre of each element in the css. For example, I have an SVG that looks like the…
user2667066
  • 1,867
  • 2
  • 19
  • 30
4
votes
3 answers

C++ how to overwrite a character in console, return carriage to start of line doesn't seem to work

My question is, how do I get the numbers 10 - 0 to print out on the same line, overwriting each other using either a WIN32 or GNUC compiler in a simple manner like my code below: This is what I have so far: #include #include…
CodingIsAwesome
  • 1,946
  • 7
  • 36
  • 54
4
votes
1 answer

Shiny: overwriting rhandsontable, invalid (NULL) left side of assignment

In Shiny App, I want to read a table from my local, display it as an rhandsontable, and overwrite one of the columns with Sys.Date(), and display the updated table as rhandsontable. the table function_table looks like this. client fun …
Makoto Miyazaki
  • 1,743
  • 2
  • 23
  • 39
4
votes
1 answer

if file exists overwrite (c#, winform, batch file)

I am new to c# and I have a doubt about using a WinForm to complete a batch file with the arguments received by the form, execute the batch and create the specific files. What I have: WinForm -> 2 string variables (ip and user) Batch file ->…
galactica15
  • 43
  • 1
  • 6
4
votes
1 answer

git merge: overwrite untracked files

I have a branch with some untracked files in it. I want to merge another branch onto it. The second branch contains a tracked file, which is untracked for the first branch. Following error occurs: error: The following untracked working tree files…
ibot3
  • 41
  • 2
  • 5
4
votes
1 answer

Use of isinstance() can overwrite type

Use of isinstance() changed the class type of dict Why is this happening? I know using builtins would prevent but I want to understand better why this is happening. 250 def printPretty(records,num,title='Summary:'): 251 import pdb;…
user113411
  • 69
  • 1