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.

1342 questions
24
votes
10 answers

How can I overwrite/print over the current line in Windows command line?

On Unix, I can either use \r (carriage return) or \b (backspace) to overwrite the current line (print over text already visible) in the shell. Can I achieve the same effect in a Windows command line from a Python script? I tried the curses module…
Aaron Digulla
  • 297,790
  • 101
  • 558
  • 777
23
votes
1 answer

How to Save/Overwrite existing Excel file without message

I need to export excel from viewlist, I used this code Excel.Application app = new Excel.Application(); //app.Visible = true; Excel.Workbook wb = app.Workbooks.Add(1); Excel.Worksheet ws =…
didodido
  • 233
  • 1
  • 2
  • 7
21
votes
4 answers

How do I overwrite a log file in log4j?

I have a log file that has the following appender added to it : logger.addAppender(new FileAppender(new PatternLayout(),"log.txt")); the thing is, each time I'm running my application, additional logging information gets appended to the same log…
Geo
  • 85,654
  • 109
  • 315
  • 497
21
votes
1 answer

Overwriting an existing Heroku app

I have a Sinatra app, hosted on Heroku. Lately, I've been developing that same app from a different folder. It's not a branch, it's just a parallel app / directory with identical contents but different code. I want to push this new app to Heroku,…
fullstackplus
  • 951
  • 1
  • 14
  • 27
20
votes
1 answer

WiX-- always overwrite the previous version

I have an installer of an application that needs to install over any existing version, regardless of version number. Instead, I've got an installer that constantly says that I need to go to add/remove programs. That's very frustrating behavior for…
mmr
  • 14,271
  • 28
  • 89
  • 142
20
votes
3 answers

Gradle Copy Task: How to overwrite existing files?

The Copy api doesn't mention a flag/property that can be set. So what's the default action and how can one modify it? According to this, As of Gradle 0.9.1, the Copy task always overwrites files. The other strategies are not supported yet.
user1329572
  • 5,460
  • 5
  • 26
  • 39
19
votes
1 answer

Fake navigator properties

I would like to fake Navigator platform property of CasperJS(/PhantomJS). I found the easy solutions of overwriting the Navigator Object at page load which is suggested in many other places on the web: casper.on('page.initialized', function(){ …
Alex
  • 1,498
  • 3
  • 20
  • 37
19
votes
1 answer

Hive Insert Overwrite Table

I'm new to Hive and I wanted to know if insert overwrite will overwrite an existing table I have created. I want to filter an already created table, let's call it TableA, to only select the rows where age is greater than 18. Can I achieve this using…
Anna Mai
  • 203
  • 1
  • 2
  • 7
18
votes
4 answers

How to import a MySQL dump from command line WITH overwrite

i googled a lot and i can't found nothing about it ! [root@someday backups]# mysql -u username_1 -p db_1 < tables_to_import/tables.sql ERROR 1050 (42S01) at line 19: Table 'ps_customer' already exists with mysql -f is the same. i wish simply…
CalfCrusher
  • 283
  • 1
  • 2
  • 11
17
votes
3 answers

Java overloading vs overriding

Hi I just want to make sure I have these concepts right. Overloading in java means that you can have a constructor or a method with different number of arguments or different data types. i.e public void setValue(){ this.value = 0; } public void…
user69514
  • 24,321
  • 56
  • 146
  • 183
16
votes
3 answers

Java overwriting an existing output file

My program is currently using FileOutputStream output = new FileOutputStream("output", true); A while loop creates the output file if it is not yet created and appends some data to this file for every iteration of the while loop using …
john stamos
  • 961
  • 5
  • 15
  • 32
16
votes
3 answers

Is there any way to prevent override/overwrite of functions/variables in singleton instance?

Consider this pseudo code: (function(window){ var options = { /*where everything goes */ }; var instance = (function(options){ for (var i in options){ if (options.hasOwnProperty(i)){ this[i] = options[i]; } …
pocesar
  • 6,379
  • 6
  • 49
  • 83
16
votes
2 answers

Python inheritance - calling base class methods inside child class?

It baffles me how I can't find a clear explanation of this anywhere. Why and when do you need to call the method of the base class inside the same-name method of the child class? class Child(Base): def __init__(self): …
user1369281
  • 161
  • 1
  • 1
  • 3
15
votes
5 answers

Force SVN update / checkout to overwrite local files

i'm planning to run (on my server!) svn update to update my LIVE website with updates. However, i'm worried about 'C' conflicts which will prevent my site scripts from functioning. How can I force the checkout / update process to overwrite all…
siliconpi
  • 7,593
  • 15
  • 64
  • 105
15
votes
5 answers

C++ Overriding... overwriting?

I know what overriding is in C++. But, is there overwriting? If so, what does it mean? Thanks.
Simplicity
  • 41,347
  • 81
  • 231
  • 358
1
2
3
89 90