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
0
votes
2 answers

How to persist an Edit in MVC3?

public ActionResult Edit(int id) { var productBrand = brandRepo.FindProductBrand(id); ProductBrandModel model = Mapper.Map(productBrand); return View(model); } [HttpPost] public ActionResult…
Only Bolivian Here
  • 35,719
  • 63
  • 161
  • 257
0
votes
1 answer

How to show user dialog box after recyclerview item click

I have an image button in my recylerview and when users click it, I want a dialog box to pop up and allow the user to edit the data in the reyclerview and save the changes. My Adapter code class Adapter(private var records: ArrayList,…
Khumo Mashapa
  • 390
  • 1
  • 4
  • 13
0
votes
0 answers

Moving and editing multiple text files in a loop in python

I have a directory with 71 folders named lifecyc1, lifecyc2, ..., lifecyc71. Each folder contains a folder /data and a text file script1.sh. The script is short: #!/bin/bash #PBS -A UQ-BEL-Economics #PBS -N lifecyc1 #PBS -l…
David Smerdon
  • 59
  • 1
  • 6
0
votes
1 answer

Saving the edited image in camera roll

I'm working on an Acne app in which I have to choose image from UIImagePicker and after adding subViews to it I want to save it in camera roll. Problem: If I add UIImageView as a subView to the superView, the pickerImage does not save with…
0
votes
1 answer

how to loop through multiple lists for one command

i'm writeing a program in python thats used for sorting files but i have run into the issue that i need to run though 2 lists for a command i have a list of files and a list of file destinations and i need to combine the 2 lists but i couldn't find…
0
votes
0 answers

WordPress Check if user_url exist

In my function I have a check if email exist: if ( !empty( $_POST['email'] ) ){ if (!is_email(esc_attr( $_POST['email'] ))) $error[] = __('The Email you entered is not valid. please try again.', 'profile'); …
redblade
  • 29
  • 6
0
votes
1 answer

Vim Find Wildcard Value and Replace With same wildcard with small pertibation

I wish to find an occurrence of a specific symbol inside a large string and prepend a space to that symbol. NOTE: I also have occurrences in the file with the space already prepended to that symbol. input 6890 4 2.025 12.219883 -80.86158 6891 1…
0
votes
2 answers

How do I edit and use a string containing double quotes and escape characters?

How can I edit a string with double quotes and backslashes like this one "i love \"programming\"" and print like this i love "programming" I found this online but no luck: for (int i = 0; i < lineLength; i++) { if (line[i] == '\\') { …
0
votes
0 answers

How to update any kind of selected rows in datagridview?

I have created a form where can list all diseases in DataGridView. I can add or delete any kind of diseases, but I still can't edit any diseases which already added into the database. Here is my code: if…
Marcell Nemeth
  • 97
  • 3
  • 4
  • 13
0
votes
0 answers

How to show the type of a variable in Visual Studio Code in the editor

I'm wondering which setting needs to be enabled in Visual Studio Code so that the variable type is viewed besides the variable declaration in the editor. On my Mac this works perfectly, on my Raspberry PI it does not work and I can't remember what I…
Horowitzathome
  • 359
  • 3
  • 13
0
votes
0 answers

I Deployed a website through Hostinger and want to edit it

I recently deployed a website through Hostinger and wish to edit the code I have written. I am unable to view and or edit my code through Hostinger and would like to know how. I can get into my File Manager through Hostinger and go into my website,…
0
votes
1 answer

How to merge all the lines into single line in BBEDIT

How can I merge all the lines into single line by using BBEdit (MAC) Example: Sunday Monday Tuesday Wednesday Expected output: Sunday Monday Tuesday Wednesday
Varun K M
  • 57
  • 1
  • 9
0
votes
1 answer

file.write() sometimes (but not always) writing text to file

I was using file.write() to add numerical data to a text file. However, after 516159 characters, something interesting happens: about half of the time I run my code, it drops the last 7k characters. The other half, it works fine. Here is some…
TheeElm
  • 17
  • 6
0
votes
1 answer

How to edit/rename "project" link on Wordpress website?

I'd like to rename projects link. By default WordPress makes them appear: http://www.example.com/project/specific-project-name/ I would like to customize the projects URL so that they appear under that ex:…
vondrix_v
  • 3
  • 1
0
votes
2 answers

Editing a message that has already been edited in Discord.py

I have a Discord bot coded in Python, and I have a setup command for it where it creates different colour roles in the server. Instead of it sending a message every time it creates a role (which would fill up the chat), I want it to edit the current…
A person
  • 33
  • 6
1 2 3
99
100