Questions tagged [preserve]

A process of keeping a particular fragment from entity while replacing the rest of it.

136 questions
3
votes
1 answer

Android Preserve View visibility when screen orientation changes?

I'm new to this how to handle app when you turn your gadget and I have a problem. I'm inflating table rows into a table. They are gone (View.GONE) when onCreate(). They appear on a click of a button. but disappear when screen orientation…
PacQ
  • 334
  • 1
  • 7
  • 16
3
votes
2 answers

Is there a simple way to preserve trailing tabs in java during file in?

BufferedReader and Scanner's nextLine() seem to be helping a little too much by removing all trailing whitespace. I need to preserve columns, which at the moment are allowed to be empty values, but hesitate to loop through each row using next() or…
brwnj
  • 105
  • 2
  • 8
3
votes
2 answers

how to prevent emacs from changing cursor position when scrolling the page

there is this annoying behavior in emacs which I don't know how to get rid of it. lets say the current cursor position is on line 10 column 15. now I need to quickly look up something far down the same buffer, I scroll down to that location and as I…
sepisoad
  • 2,201
  • 5
  • 26
  • 37
3
votes
1 answer

Converting VB code to C# using array and redim preserver keyword

This is my VB code: If TxtStr(i) = "#" And TxtStr(i + 1) = "]" Then RefStr = RefStr & "]" ReDim Preserve RefStrLinks(1, RefStrLinkIndex) RefStrLinks(0, RefStrLinkIndex) = RefStr RefStr = RefStr.Replace("[#", String.Empty) RefStr…
3
votes
1 answer

Why `git rebase -p` does not preserve conflict resolutions?

Has the man page states about git rebase --preserve: Merge conflict resolutions or manual amendments to merge commits are not preserved. Is there any good reason for that?
Tom Esterez
  • 21,567
  • 8
  • 39
  • 44
3
votes
1 answer

How to preserve the new lines with Jsoup?

Is there a way to preserve the new lines , (not < BR >) with Jsoup? Document pdsc = Jsoup.connect("http://drafts.bestsiteeditor.com/promoters/dsc1387266263.txt").get(); String strText = pdsc.body().ownText(); tv.setText(strText); The TXT files…
3
votes
2 answers

How to preserver the order of elements in a list when serializing with SimpleXML?

I want to serialize a list using SimpleXML, so that i can deserialize it again later. I need to preserve the order of elements, or at least achieve the same order everytime i serialize it, so that i can sort it, like, simply reserve the deserialized…
2
votes
1 answer

how to preserve zoom and position level in webview android between different pages?

I created an app that uses a webview with different url-pages with back and forth arrow buttons. My problem is that when the user zooms in, in a particular region of the webview and then presses the forth or back button, the new url is loaded with…
D3us3x
  • 51
  • 5
2
votes
1 answer

Android: Preserve complex view data of Fragments

In my application I have a FragmentActivity that uses a FragmentViewPager. The Fragments have a quite complex structure of views with ListViews and Adapters. The FragmentViewPager appears to destroy the Fragments that are out of sight, and to…
Terry
  • 14,529
  • 13
  • 63
  • 88
2
votes
2 answers

Cypress preserving cookies over for a complete test suite

I am testing that requires you to be logged in while performing tests. In order to stay logged in I am preserving Cookies during a test run. I use a custom function: Cypress.Commands.add('preserveAllCookiesOnce', () => { …
cypher_null
  • 632
  • 8
  • 22
2
votes
1 answer

How to Preserve Data in Specific Tables/Entities when using Doctrine2 Fixtures?

I have three tables/entities for which I want to preserve their data when I load Doctrine2 fixtures. Of course, right now, when I run doctrine:fixtures:load, it purges the entire database (except migration_versions) and then loads the fixtures…
Stephen Watkins
  • 25,047
  • 15
  • 66
  • 100
2
votes
2 answers

How to preserve user data from library directory on updating the iphone app?

According to Apple's iOS Application Programming guide, application preserves documents and library directories. My question is what exactly library directory preserves? Does it copy user created files/data (if stored in library directory) as well…
Hassan
  • 21
  • 2
2
votes
2 answers

how to make WIX not to delete particular files while performing major upgrade

I have two components in which one component have simple.exe and another component has sample.dll in one MSI. If i install MSI both simple.exe and sample.dll will install and in program files under some folder it is having two one is .exe and .dll.…
saran
  • 41
  • 1
  • 1
  • 8
2
votes
2 answers

Spliting on every character except for preserved substring

Given the string word = "These" that contains the tuple pair = ("h", "e") the aim is to replace the word such that it splits on all character except for the pair tuple, i.e. output: ('T', 'he', 's', 'e') I've tried: word = 'These' pair = ('h',…
alvas
  • 115,346
  • 109
  • 446
  • 738
2
votes
1 answer

Bash - Remove duplicates preserve order

i have a file that looks like 1254543534523233434 3453453454323233434 2342342343223233535 0909909092324243535 Is there a way / command in bash to remove duplicates on the file above, based on a specific substring, without changing their order in…
onlyf
  • 767
  • 3
  • 19
  • 39
1
2
3
9 10