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
51
votes
8 answers

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 callback using: - (void)…
Ben
  • 1,565
  • 1
  • 10
  • 11
51
votes
4 answers

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.CreateGraphics().Save(); but this does not help me for…
Victor
  • 13,914
  • 19
  • 78
  • 147
50
votes
2 answers

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 = models.DateTimeField( auto_now_add = True ) …
Collin Klopfenstein
  • 2,265
  • 4
  • 21
  • 22
50
votes
1 answer

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 wondering: how do I to turn it off?
Rasmus
  • 1,605
  • 3
  • 16
  • 20
49
votes
9 answers

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 solution to this I suppose, any suggestions?
Palle
  • 493
  • 1
  • 4
  • 4
49
votes
10 answers

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
  • 6,301
  • 11
  • 37
  • 48
49
votes
6 answers

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

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 to save to the file was members = {'Starspy' :…
wakey
  • 2,283
  • 4
  • 31
  • 58
49
votes
1 answer

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=np.random.rand(10,10) …
Meenakshi
  • 591
  • 1
  • 4
  • 3
49
votes
5 answers

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 the button1 action. public class MainActivity…
Marius Hincu
  • 525
  • 1
  • 7
  • 13
47
votes
4 answers

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 PDF that the page is saved as a PDF on the…
Paul
  • 2,465
  • 8
  • 35
  • 60
45
votes
3 answers

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 using a set of nested loops and need to save…
user2047506
  • 461
  • 1
  • 4
  • 4
44
votes
4 answers

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, ..., 1, 1, 1], dtype=uint8) array([42, 43, 43,…
Simplicity
  • 47,404
  • 98
  • 256
  • 385
44
votes
5 answers

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 windows/tools layout - i.e. NOT for the…
Nam G VU
  • 33,193
  • 69
  • 233
  • 372
41
votes
6 answers

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'] email = userf.data['email'] I tried this: …
cola
  • 12,198
  • 36
  • 105
  • 165
41
votes
9 answers

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, y: 300px? EDIT: I am PHP and mysql programmer…
michael