Questions tagged [edit]

to modify (a computer file) by, for example, deleting, inserting, moving, or copying text.

Edit can be done as part of coding or changing configuration files.

The tool which is used for editing is called an Editor. Common editors include vi, emacs etc.

3207 questions
790
votes
24 answers

How do I edit a file after I shell to a Docker container?

I successfully shelled to a Docker container using: docker exec -i -t 69f1711a205e bash Now I need to edit file and I don't have any editors inside: root@69f1711a205e:/# nano bash: nano: command not found root@69f1711a205e:/# pico bash: pico:…
Igor Barinov
  • 21,820
  • 10
  • 28
  • 33
266
votes
12 answers

How do I delete an item or object from an array using ng-click?

I am trying to write a function that enables me to remove an item when the button is clicked but I think I am getting confused with the function - do I use $digest? HTML & app.js:
175
votes
19 answers

Android Studio Collapse definitions and methods

How can I collapse all definitions and methods within the Android Studio editor? Visual Studio has that option on Edit-->Outlining, but I cannot find a similar feature in Android Studio. I am sure that this feature exists. How can I access Android…
Devsined
  • 3,363
  • 6
  • 30
  • 48
103
votes
5 answers

How to edit/save a file through Ubuntu Terminal

This is quite a simple question: I just need to open a file (this filename is galfit.feedme). I can view the file with view galfit.feedme when I'm in the directory, but I do not know how to edit this file and then save the edit. How do you do that?…
vdogsandman
  • 5,289
  • 8
  • 21
  • 21
102
votes
10 answers

Android EditText view Floating Hint in Material Design

Does API 21 provide a method to use the following feature: http://www.google.com/design/spec/components/text-fields.html#text-fields-floating-labels I'm trying to float the EditText hints. Thanks!
xsorifc28
  • 5,112
  • 6
  • 16
  • 24
97
votes
14 answers

Can I edit an iPad's host file?

I doubt this is possible without extensive jail-breaking, but is it at all possible to edit the iPad's (or any iOS device's) hosts file?
Ahmed Nuaman
  • 12,662
  • 15
  • 55
  • 87
75
votes
5 answers

How edit multiple lines on Xcode (shortcut)

I'm sorry, I don't find an already asked question for this problem... in Xcode, what is the shortcut to edit multiples lines like the "CMD+click" of sublime text?
Damien Romito
  • 9,801
  • 13
  • 66
  • 84
72
votes
8 answers

Write byte at address (hexedit/modify binary from the command line)

Is there any straightforward way to modify a binary from the commandline? Let's say I know that my binary contains 1234ABCD and I want to change it to 12FFABCD or FFFFABCD or maybe even FF34FFABC0 (you get the idea) :-) How might I achieve that…
Josh
  • 721
  • 1
  • 5
  • 4
71
votes
4 answers

How can I alter this computed column in SQL Server 2008?

I have a computed column created with the following line: alter table tbPedidos add restricoes as (cast(case when restricaoLicenca = 1 or restricaoLote = 1 then 1 else 0 end as bit)) But, now I need to change this column for something like: alter…
André Miranda
  • 6,420
  • 20
  • 70
  • 94
67
votes
6 answers

How to edit JavaScript in Firebug?

I am only able to view the JavaScript files of the website via the Script panel. How can I edit it? I tried everything like double clicking the line that i want to edit etc., but it doesn't let me edit it. If I move to the HTML tab, I am able to…
TCM
  • 16,780
  • 43
  • 156
  • 254
61
votes
2 answers

Change span text?

Possible Duplicate: How do I change the text of a span element in javascript Well, I've searched a lot for the answer to this, but still I couldn't find it. What I did find didn't work. What I'm trying to do is, basically, using JavaScript: At…
user1053018
  • 653
  • 1
  • 5
  • 5
60
votes
11 answers

Edit Distance in Python

I'm programming a spellcheck program in Python. I have a list of valid words (the dictionary) and I need to output a list of words from this dictionary that have an edit distance of 2 from a given invalid word. I know I need to start by generating…
Mel
  • 1,075
  • 1
  • 14
  • 24
59
votes
2 answers

Android: Edit Text Go Button

I have an Edit Text that is defined as follows. I want…
Corey Alexander
  • 905
  • 1
  • 7
  • 15
57
votes
1 answer

How do you edit a dependency/external library in android studio?

There is a lot of information about adding libraries and dependencies, but I haven't been able to find any useful information on being able to actually edit a library. I have added https://github.com/jdamcd/android-crop as a dependency in my…
Micah Simmons
  • 2,078
  • 2
  • 20
  • 38
55
votes
4 answers

Edit In Place Content Editing

When using ng-repeat what is the best way to be able to edit content? In my ideal situation the added birthday would be a hyperlink, when this is tapped it will show an edit form - just the same as the current add form with an update button. Live…
Jess McKenzie
  • 8,345
  • 27
  • 100
  • 170
1
2 3
99 100