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
7
votes
3 answers

How to overwrite text by yank in Emacs?

I want to overwrite text by yank as following. Is there any way to do this? kill-ring: text-i-want-to-paste Before: abcdefghijklmnopqrstuvwxyz ^ corsor After: text-i-want-to-pasteuvwxyz
Kei Minagawa
  • 4,395
  • 3
  • 25
  • 43
7
votes
1 answer

Python CSV Overwrite

I'm trying to write this code so that once it ends the previous answers are saved and the code could be run again without the old answers being overwritten. I moved the how, why and scale_of_ten variables into 'with open' section and I had some…
Robert Birch
  • 251
  • 2
  • 4
  • 16
7
votes
0 answers

Artifactory: Avoid overwriting already existing release package?

is it possible to avoid overwriting (lock) an existing release package in Artifactory? We have already backups, but it is complicated to restore all release packages, that belongs to a specific release version. We want to avoid an release…
pan40
  • 317
  • 1
  • 5
  • 15
6
votes
2 answers

Magento: Rewrite Block is not working

I try to rewrite core file from magento. Somehow it does not overwrite the code. I try to overwrite the function getProduct(). Tipfix/Block/Product/View.php
Lexperts
  • 353
  • 2
  • 7
  • 19
6
votes
4 answers

Wrapping functions and function.length

Let's consider I have the following code /*...*/ var _fun = fun; fun = function() { /*...*/ _fun.apply(this, arguments); } I have just lost the .length data on _fun because I tried to wrap it with some interception logic. The following doesn't…
Raynos
  • 166,823
  • 56
  • 351
  • 396
6
votes
5 answers

Overriding hashCode in Java for a specific case

I know there are other questions about the general best practices while over riding hashCode and equals, but I have a very specific question. I have a class that has as an instance variable, an array of the same class. To be more explicit, here's…
efficiencyIsBliss
  • 3,043
  • 7
  • 38
  • 44
6
votes
2 answers

How to overwrite React.Component state type from inherited class?

I have a component class that extends another component, and I'm trying to figure out how to overwrite the type of the state that I'm inheriting from. Here's an example: class MyComponent extends React.Component { //…
Kyle
  • 132
  • 8
6
votes
2 answers

BigQuery - Transfers automation from Google Cloud Storage - Overwrite table

Here's the case: Our client daily uploads CSVs (overwritten) to a bucket in Google Cloud Storage (each table in a different file). We use BigQuery as DataSource in DataStudio We want to automatically transfer the CSVs to BigQuery. The thing is,…
6
votes
1 answer

Ansible -> How to force execution of all tasks?

We would like to reset server installation. We already have Ansible script to setup our server, so we want to execute it. However Ansible checks, that e.g. some files are existing and then skip steps where those files are prepared, but we would like…
6
votes
1 answer

Programmatic Access to Apple Watch Crown

I know it has been available for literally less than 48 hours, but I was wondering if anyone has figured out how to programmatically access the digital crown on the Apple Watch in watchOS 2? Is there not an Objective-C method, such as…
6
votes
1 answer

Python: Define array as instance class attribute

I need to have several objects that each one has an individual array. I have written this code: read_values = list() for read_unit in read_units: read_value = ReadValues.objects.all().filter(ReadID=read_unit.ReadID) element…
Happy Ahmad
  • 1,072
  • 2
  • 14
  • 33
6
votes
2 answers

overwrite parent method partially in python

I have a situation when I need to overwrite parent method but only in one line. My initial code is quite big so I clarify what I mean in an example. I have method from parent: class parent(): def method(self): bla bla …
6
votes
3 answers

Appending text in write function [R]

I am trying to append a line in an already existing .txt file. But my syntax overwrites this file :( fileConn <- file( "realization1.txt" ) write(x =as.character(max(cumsum( rnorm( 10^7)))), file = fileConn, append =…
Marcin
  • 7,834
  • 8
  • 52
  • 99
6
votes
4 answers

Ambiguous call to overloaded function 'pow'

I'm having some problems runnning the following code. I got this: error C2668: 'pow' : ambiguous call to overloaded function. I've tried to manually cast the arguments to the appropiate type using static_cast, however I think I get some pointer…
Stefan
  • 83
  • 1
  • 6
  • 20
6
votes
1 answer

operator const char* overwrites (?) my another variable in strange way

#include #include class Vector { double _x; double _y; public: Vector(double x, double y) : _x(x), _y(y) {} double getX() { return _x; } double getY() { return _y; } operator const char*() { …
Marcin
  • 422
  • 6
  • 17