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

remove only the last extension from file name

I have file names that look something similar to this name_1.23.ps.png or name_1.23.ps.best or name_1.23.ps I want to take off the random file extensions on the end and be left with just name_1.23.ps Other questions similar to this use '.' as…
user1958508
  • 605
  • 3
  • 7
  • 10
6
votes
1 answer

How to combine TF-IDF with edit distance or Jaro-winkler distance

I am looking for ways to improve the accuracy of TF-IDF weighing scheme in string matching (similarity). The main issue is that TF-IDF is sensitive to typographical errors in stings, and most large datasets tend to have typos. I realised variants of…
user2274879
  • 349
  • 1
  • 5
  • 16
5
votes
1 answer

Extract/modify video frames on Android

I have a video file. I want to get each frame of the video and do some modifications to the frame, such as drawing another bitmap in that, putting some text etc. Is there any API/framework available to get frames from video in Android? I've done…
user867662
  • 1,091
  • 4
  • 20
  • 45
5
votes
0 answers

iPhone modify image of CMSampleBuffer

I am writing an iPhone application that capture video from iPhone back camera and edit that video and record edited video. The following are the functions to perform. Get video from back camera. Record the video to some location in iPhone. Get the…
user867662
  • 1,091
  • 4
  • 20
  • 45
5
votes
2 answers

windows forms: textbox with history

does anyone know about a windows forms control that acts like the address bar of a browser? it is just like a textbox, but to the right there is a dropdown menu that shows the history of previously entered text. thanks a lot!
clamp
  • 33,000
  • 75
  • 203
  • 299
5
votes
2 answers

Access "Page Tab Edit URL" from the page

I added "Page Tab Edit URL" to my application, and then added the application the my fan page. How can I access the edit url directly from my facebook fan page?
Dotan Simha
  • 742
  • 1
  • 5
  • 12
5
votes
2 answers

How can I output the whole document in jq while replacing an item based on a field's value?

I am attempting to use jq to parse a AWS CloudFront configuration JSON file and change a few values so that I can then issue an update statement with that configuration. The Document The document format snippet that matters, with redacted values,…
SeanKilleen
  • 8,809
  • 17
  • 80
  • 133
5
votes
2 answers

Rails 3 Devise manually change password

I try to usung devise in my rails app. But i don't understand how can i give user functionality to change his password. I need a form with fields "old password", "new password" and "new password confirmation". How can i do it? If i use default…
Ardentum
  • 137
  • 1
  • 2
  • 10
5
votes
0 answers

How to remove a PDF annotation using JavaScript or Node.js?

I found some libraries to add annotations for pdf documents like pdf-lib but I cannot find at the documentation anything about how to remove an annotation from the pdf document. Is this possible using pdf-lib or any other library in the browser or…
Zuhair Taha
  • 2,808
  • 2
  • 35
  • 33
5
votes
1 answer

drupal hide account email and password change for non admin user

is there a way to block from user to change his password/email / username after he signed up?
amirash
  • 2,419
  • 5
  • 24
  • 26
5
votes
3 answers

jq conditional update an array element

I want to conditionally update an element value based on the value of another element within the same array. For example, I want to find name=="weather" and change checked from "true" to "false" [ { "originalSourceId": null, …
CLO
  • 103
  • 8
5
votes
4 answers

How can I write to multiple lines simultaneously in Geany?

I want to modify the beginning of every line of a txt file in Geany. Somehow it is possible to write in multiple lines at the same time (maybe with box selection?). How to do this?
zabop
  • 6,750
  • 3
  • 39
  • 84
5
votes
1 answer

Conditionally allow editing in the list view for Flask admin ModelView

I can have a property like so in the view class: class MyExampleView(ModelView): @property def can_edit(self): # Return True or False based on some conditional logic How can I access the row's attribute so I can for example…
user1087973
  • 800
  • 3
  • 12
  • 29
5
votes
2 answers

How do I edit the search text in vim?

I've searched online for this a while, but I couldn't find an answer. What I want to do is to edit the previously entered search text in vim. For example, say I just searched for "FooClass". Then I want to search for "FooMethod", but rather than…
steve
  • 51
  • 1
5
votes
2 answers

Editing a function in R using trace?

I noticed there is a bug in a function from a package I want to use. An issue has been made on GitHub, but the creator hasn't adressed this yet, and I need the function as soon as possible. Therefore I want to edit the code. Apparently this is…
MHeydt
  • 135
  • 8