Skip to main content

Questions tagged [save]

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

Filter by
Sorted by
Tagged with
1268 votes
18 answers
513k views

What is the difference between --save and --save-dev?

What is the difference between: npm install [package_name] and: npm install [package_name] --save and: npm install [package_name] --save-dev What does this mean? And what is really the effect of --...
nfort's user avatar
  • 12.8k
964 votes
15 answers
710k views

Sql Server 'Saving changes is not permitted' error ► Prevent saving changes that require table re-creation

When I create a table in SQL Server and save it, if I try to edit the table design, like change a column type from int to real, I get this error: Saving changes is not permitted. The change you ...
Arash's user avatar
  • 10.1k
525 votes
19 answers
582k views

Save bitmap to location

I am working on a function to download an image from a web server, display it on the screen, and if the user wishes to keep the image, save it on the SD card in a certain folder. Is there an easy way ...
Chrispix's user avatar
  • 18.2k
404 votes
4 answers
278k views

How to save as a new file and keep working on the original one in Vim?

Whenever I use the :sav command, it saves the file with a new name and opens the new file open in Vim. Is it possible to save the file with a new name but keep the original one open for editing?
vimguy's user avatar
  • 4,049
351 votes
9 answers
1.0m views

Create and save a file with JavaScript [duplicate]

I have data that I want to write to a file, and open a file dialog for the user to choose where to save the file. It would be great if it worked in all browsers, but it has to work in Chrome. I want ...
user1756980's user avatar
  • 3,917
212 votes
14 answers
545k views

How To Save Canvas As An Image With canvas.toDataURL()?

I'm currently building a HTML5 web app/Phonegap native app and I can't seem to figure out how to save my canvas as an image with canvas.toDataURL(). Can somebody help me out? Here's the code, what's ...
Wardenclyffe's user avatar
  • 2,491
203 votes
9 answers
375k views

Basic http file downloading and saving to disk in python?

I've been going through the Q&A on this site, for an answer to my question. However, I'm a beginner and I find it difficult to understand some of the solutions. I need a very basic solution. Could ...
arvindch's user avatar
  • 2,395
187 votes
6 answers
396k views

Saving images in Python at a very high quality

How can I save Python plots at very high quality? That is, when I keep zooming in on the object saved in a PDF file, why isn't there any blurring? Also, what would be the best mode to save it in? png, ...
dustin's user avatar
  • 4,386
160 votes
5 answers
473k views

How can I save an image with PIL?

I have just done some image processing using the Python image library (PIL) using a post I found earlier to perform fourier transforms of images and I can't get the save function to work. The whole ...
user1999274's user avatar
  • 1,627
147 votes
2 answers
346k views

Save byte array to file [duplicate]

I have a byte array (an IEnumerable actually), and I need to save it to a new file containing this data. How do I do that? I found some answers telling how to create a MemoryStream from that, but ...
Daniel Möller's user avatar
133 votes
5 answers
82k views

android fragment onRestoreInstanceState

Am I missing something or do Fragments not have a onRestoreInstanceState() method? If not, how do I go about attaining something similar?
Shaun's user avatar
  • 5,521
129 votes
4 answers
51k views

Atom text editor remove trailing whitespace on save

I use Sublime text. Now I am trying Atom. When I save any file in sublime text it does not include any trailing blank line. But saving any file in Atom leaves a trailing blank line. How do I force ...
Nasif Md. Tanjim's user avatar
128 votes
7 answers
141k views

How to save all the variables in the current python session?

I want to save all the variables in my current python environment. It seems one option is to use the 'pickle' module. However, I don't want to do this for 2 reasons: I have to call pickle.dump() for ...
user10's user avatar
  • 2,166
117 votes
6 answers
99k views

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 ...
forgot's user avatar
  • 2,160
115 votes
6 answers
97k views

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 ...
Unknown Coder's user avatar
97 votes
17 answers
136k views

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 ...
Michael Kessler's user avatar
91 votes
5 answers
183k views

How to save & load xgboost model? [closed]

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....
Pengju Zhao's user avatar
  • 1,509
90 votes
7 answers
209k views

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(...
MaiaVictor's user avatar
  • 52.4k
87 votes
3 answers
160k views

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's user avatar
82 votes
8 answers
28k views

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 ...
Léo Léopold Hertz 준영's user avatar
81 votes
15 answers
108k views

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 ...
dr jerry's user avatar
  • 9,938
78 votes
3 answers
154k views

how to save DOMPDF generated content to file? [closed]

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 = '<html><body&...
TomTom's user avatar
  • 1,143
72 votes
3 answers
37k views

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() ...
andres's user avatar
  • 1,109
70 votes
5 answers
90k views

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/...
papr's user avatar
  • 4,767
67 votes
3 answers
193k views

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 ...
Felix's user avatar
  • 3,951
65 votes
3 answers
161k views

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. ...
Jonathan Charlton's user avatar
60 votes
7 answers
75k views

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 ...
user3820991's user avatar
  • 2,530
54 votes
4 answers
277k views

Saving image to file

I am working on a basic drawing application. I want the user to be able to save the contents of the image. I thought I should use System.Drawing.Drawing2D.GraphicsState img = drawRegion....
Victor's user avatar
  • 14.5k
51 votes
8 answers
58k views

iPhone: How do I get the file path of an image saved with UIImageWriteToSavedPhotosAlbum()?

I'm saving a merged image to the iPhone photo library using: UIImageWriteToSavedPhotosAlbum(viewImage, self, @selector(savedPhotoImage:didFinishSavingWithError:contextInfo:), nil); And getting the ...
Ben's user avatar
  • 1,555
51 votes
6 answers
20k views

How can I save opened tabs and tab groups in Visual Studio 2012?

I need to have different set of open tabs and tab groups for each of my tasks. Import and export setting not helping me to do this, neither does this SO question that has been asked similarly but for ...
Nam G VU's user avatar
  • 34.5k
50 votes
5 answers
140k views

How to save a bitmap on internal storage

this is my code I and I want to save this bitmap on my internal storage. The public boolean saveImageToInternalStorage is a code from google but I don't know how to use it. when I touch button2 follow ...
Marius Hincu's user avatar
50 votes
2 answers
37k views

Manipulating Data in Django's Admin Panel on Save

Ok, so here's the skinny: # models.py class Article( models.Model ): title = models.CharField( max_length = 255 ) author = models.ForeignKey( User ) published_at = ...
Collin Klopfenstein's user avatar
50 votes
4 answers
121k views

TypeError: Mismatch between array dtype ('object') and format specifier ('%.18e')

I have the following array: X = np.array([image_array_to_vector1,image_array_to_vector2,image_array_to_vector3,image_array_to_vector4]) A print out of X looks as follows: [array([167, 167, 169, ...,...
Simplicity's user avatar
  • 48.5k
50 votes
1 answer
42k views

Java Eclipse turn off auto build workspace on save

Suddenly my Eclipse have started to automatically build the workspace whenever I save and it take ages for just a single save (I tend to save very often). It has never done that before so I was ...
Rasmus's user avatar
  • 1,665
49 votes
6 answers
92k views

Save a dictionary to a file (alternative to pickle) in Python? [duplicate]

Answered I ended up going with pickle at the end anyway Ok so with some advice on another question I asked I was told to use pickle to save a dictionary to a file. The dictionary that I was trying ...
wakey's user avatar
  • 2,376
49 votes
9 answers
133k views

Saving numpy array to txt file row wise

I have an numpy array of form a = [1,2,3] which I want to save to a .txt file such that the file looks like: 1 2 3 If I use numpy.savetxt then I get a file like: 1 2 3 There should be a easy ...
Palle's user avatar
  • 493
49 votes
10 answers
319k views

How do I enable saving of filled-in fields on a PDF form?

Some PDF forms can be saved, including all filled-in field data: Some others can not be saved, and all filled-in field data are lost: How do I enable saving of filled-in fields on my PDF form?
eleven81's user avatar
  • 6,361
49 votes
1 answer
72k views

python3-numpy: Appending to a file using numpy savetxt

I am trying to append data to a file using numpy's savetxt function. Below is the minimum working example #!/usr/bin/env python3 import numpy as np f=open('asd.dat','a') for iind in range(4): a=...
Meenakshi's user avatar
  • 591
47 votes
4 answers
162k views

PHP mPDF save file as PDF

I have a page which uses mPDF which when you run displays a PDF in the browser, it can also be saved from here as a PDF no problem. What I would like to happen is when the page is run and generates a ...
Paul's user avatar
  • 2,505
47 votes
3 answers
70k views

rendering and saving images through Blender python

I am trying to render and save multiple images through python script in blender. I know how to render and save the image through the Blender GUI but I want to do it all through my script since I am ...
user2047506's user avatar
45 votes
3 answers
57k views

Savefig cuts off title

Hey I try to savefig my plot, but it allways cuts off my title. I think it is because of y=1.05 (to set a distance to the title). I can not fix it. Is there a way to save the entire graph? time=round(...
qwertz's user avatar
  • 449
44 votes
6 answers
76k views

How can I change a Django form field value before saving?

if request.method == 'POST': userf = UsersModelForm(request.POST) username = userf.data['username'] password = userf.data['password'] passwordrepeat = userf.data['passwordrepeat'] ...
cola's user avatar
  • 12.4k
44 votes
2 answers
72k views

How to save a trained model by scikit-learn? [duplicate]

I am trying to re-create the prediction of a trained model but I don't know how to save a model. For example, I want to save the trained Gaussian processing regressor model and recreate the prediction ...
Long's user avatar
  • 453
42 votes
2 answers
150k views

Setting the fmt option in numpy.savetxt

I am looking at the numpy.savetxt, and am stuck at the fmt option. I tried looking at here and also the reference in the link below all the letters that can be used for the fmt option sort give me a ...
leb's user avatar
  • 554
41 votes
9 answers
116k views

How do I get the coordinate position after using jQuery drag and drop?

How do I get the coordinate position after using jQuery drag and drop? I want to save the coordinate to a database, so that next time I visit, the item will be in that position. For example, x: 520px,...
user avatar
40 votes
6 answers
79k views

Save current page as HTML to server

What approach could someone suggest to save the current page as an HTML file to the server? In this case, also note that security is not an issue. I have spent endless hours searching around for this,...
user avatar
40 votes
6 answers
33k views

Get the html of the javascript-rendered page (after interacting with it)

I would like to be able to save the state of the html page after I've interacted with it. Say I click a checkbox, or the javascript set the values of various elements. How can I save the "javascript-...
user420667's user avatar
  • 6,662
39 votes
4 answers
73k views

MySQL : retrieve a large select by chunks

I have select with more then 70 milion rows I'd like to save the selected data into the one large csv file on win2012 R2 Q: How to retrieve the data from MySQL by chunks for better performance ? ...
Toren's user avatar
  • 6,796
38 votes
7 answers
43k views

Swift: save video from NSURL to user camera roll

I have a variable videoURL of type NSURL. If I call println(videoURL) it would return something like this: http://files.parsetfss.com/d540f71f-video.mp4 I have a button set up that should take this ...
George Poulos's user avatar
38 votes
7 answers
158k views

How to save a figure in MATLAB from the command line?

Is there a command in MATLAB which allows saving a figure in FIG or JPEG or both formats automatically?
ABC-biophi's user avatar

1
2 3 4 5
201