Questions tagged [save]

To store (data) in a computer or on a storage device.

To store data/state in a computer or on a storage device.

Tag Usage

Tags should reflect the mechanism rather than the goal - "saving" has little - if any - taxonomic value.

10023 questions
117
votes
6 answers

Save An Image To Application Documents Folder From UIView On IOS

I have a UIImageView that allows a user to place and hold an image until it can be saved. The problem is, I can't figure out how to actually save and retrieve the image I've placed in the view. I have retrieved and placed the image in the…
forgot
  • 2,160
  • 2
  • 19
  • 20
115
votes
6 answers

How do I show a Save As dialog in WPF?

I have a requirement in WPF/C# to click on a button, gather some data and then put it in a text file that the user can download to their machine. I can get the first half of this, but how do you prompt a user with a "Save As" dialog box? The file…
Unknown Coder
  • 6,625
  • 20
  • 79
  • 129
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
97
votes
17 answers

Image, saved to sdcard, doesn't appear in Android's Gallery app

I save an image to the sdcard and it doesn't appear in the Gallery application until I pull off the sdcard and return it back. Do you have any idea why is it so? Seems like the Gallery application has some cache that isn't updated on file…
Michael Kessler
  • 14,245
  • 13
  • 50
  • 64
87
votes
5 answers

How to save & load xgboost model?

From the XGBoost guide: After training, the model can be saved. bst.save_model('0001.model') The model and its feature map can also be dumped to a text file. # dump model bst.dump_model('dump.raw.txt') # dump model with feature…
Pengju Zhao
  • 1,439
  • 3
  • 14
  • 17
83
votes
3 answers

Laravel: Listen for Model save or update (after or before they're done)

I need to generate a function to call after or before save() or update() but i don't know how to do. I think I need a callback from save() update() but I don't know how to do. Thanks
Daniele Longheu
  • 840
  • 1
  • 7
  • 9
83
votes
7 answers

How to make a browser display a "save as dialog" so the user can save the content of a string to a file on his system?

How can I make a browser display a "save as dialog" so the user can save the content of a string to a file on his system? For example: var myString = "my string with some stuff"; save_to_filesystem(myString,"myString.txt"); Resulting in something…
MaiaVictor
  • 51,090
  • 44
  • 144
  • 286
80
votes
8 answers

How can I save a text block in visual mode to a file in Vim?

The title is very descriptive. Just in case, I will give an example: START BLOCK1 something END BLOCK1 START BLOCK2 something somenthing... END BLOCK2 I select the BLOCK1 in visual mode I yank it by pressing y How can I save the yanked BLOCK1 to…
Léo Léopold Hertz 준영
  • 134,464
  • 179
  • 445
  • 697
80
votes
15 answers

How to save svg canvas to local filesystem

Is there a way to allow a user, after he has created a vector graph on a javascript svg canvas using a browser, to download this file to their local filesystem? SVG is a total new field for me so please be patient if my wording is not accurate.
dr jerry
  • 9,768
  • 24
  • 79
  • 122
78
votes
3 answers

how to save DOMPDF generated content to file?

I am using Dompdf to create PDF file but I don't know why it doesn't save the created PDF to server. Any ideas? require_once("./pdf/dompdf_config.inc.php"); $html = ''. '

Put your html here, or generate it with your…

TomTom
  • 1,113
  • 1
  • 10
  • 20
70
votes
5 answers

The easiest way to write NSData to a file

NSData *data; data = [self fillInSomeStrangeBytes]; My question is now how I can write this data on the easiest way to an file. (I've already an NSURL file://localhost/Users/Coding/Library/Application%20Support/App/file.strangebytes)
papr
  • 4,717
  • 5
  • 30
  • 38
69
votes
3 answers

recover dict from 0-d numpy array

What happened is that I (by mistake) saved a dictionary with the command numpy.save() (no error messages shown) and now I need to recover the data in the dictionary. When I load it with numpy.load() it has type (numpy.ndarray) and is 0-d, so it is…
andres
  • 1,079
  • 1
  • 10
  • 17
65
votes
3 answers

How to dump raw RTSP stream to file?

Is it possible to dump a raw RTSP stream to file and then later decode the file to something playable? Currently I'm using FFmpeg to receive and decode the stream, saving it to an mp4 file. This works perfectly, but is CPU intensive, and will…
Felix
  • 3,783
  • 5
  • 34
  • 53
65
votes
3 answers

How to save a data frame as CSV to a user selected location using tcltk

I have a data frame called, Fail. I would like to save Fail as a CSV in a location that the user selects. Below is some example code that I found, but I don't know how to incorporate Fail into it. require(tcltk) fileName <-…
Jonathan Charlton
  • 1,975
  • 6
  • 23
  • 30
54
votes
7 answers

save numpy array in append mode

Is it possible to save a numpy array appending it to an already existing npy-file --- something like np.save(filename,arr,mode='a')? I have several functions that have to iterate over the rows of a large array. I cannot create the array at once…
user3820991
  • 2,310
  • 5
  • 23
  • 32