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
1209
votes
18 answers

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 --save and -dev keywords?
nfort
  • 12,234
  • 3
  • 13
  • 13
929
votes
15 answers

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 have made requires the following table to be dropped…
Arash
  • 9,705
  • 4
  • 18
  • 12
521
votes
19 answers

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 to take a bitmap and just save it to the SD card…
Chrispix
  • 17,941
  • 20
  • 62
  • 70
394
votes
4 answers

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
  • 3,949
  • 2
  • 15
  • 3
364
votes
6 answers

Saving an Object (Data persistence)

I've created an object like this: company1.name = 'banana' company1.value = 40 I would like to save this object. How can I do that?
Peterstone
  • 7,119
  • 14
  • 41
  • 49
340
votes
9 answers

Create and save a file with JavaScript

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 to do this all client-side. Basically I want to…
user1756980
  • 3,807
  • 4
  • 16
  • 13
305
votes
10 answers

Storing Python dictionaries

I'm used to bringing data in and out of Python using CSV files, but there are obvious challenges to this. Are there simple ways to store a dictionary (or sets of dictionaries) in a JSON or pickle file? For example: data = {} data ['key1'] =…
mike
  • 22,931
  • 31
  • 77
  • 100
204
votes
14 answers

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 wrong with it? //My canvas was named…
Wardenclyffe
  • 2,401
  • 3
  • 19
  • 17
202
votes
10 answers

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 someone please explain a simple solution to…
arvindch
  • 2,385
  • 2
  • 13
  • 17
182
votes
5 answers

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, eps? Or some other? I can't do pdf, because…
dustin
  • 4,309
  • 12
  • 57
  • 79
153
votes
5 answers

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 code works fine but it just wont save the resulting…
user1999274
  • 1,557
  • 2
  • 10
  • 6
143
votes
2 answers

Save byte array to file

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 still can't save it to a brand new file.
Daniel Möller
  • 84,878
  • 18
  • 192
  • 214
132
votes
5 answers

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
  • 5,483
  • 10
  • 40
  • 49
129
votes
4 answers

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 Atom not to leave trailing white spaces?
124
votes
7 answers

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 each variable When I want to retrieve the…
user10
  • 2,126
  • 5
  • 19
  • 26
1
2 3
99 100