save

How to improve system that saves div dimensions to css with jquery.

Warning: I'm not a good person to explain things, my english isn't perfect and I'm a bit noob with php, javascript and jquery. If you think you can handle that, keep reading. So, I have this small system where you can add divs to a website, drag them and scale them. This is easy with jquery. However I'm trying to save the changes to css...

Saving strings to disk under Delphi 2009

Hi. I have a structure like below that needs to be saved and loaded from disk. RSecStructure= packed record Name : string[255]; {NEED UNICODE SUPPORT HERE} ScreenName : string[255]; OrigFileName : string[255]; Prim : string[255]; ...

Android : Bitmap save to location

I am working on a function to download an image from a web server, redisplay 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 in a folder of my choice? My issue is that I can download the image, display it on scre...

How to add increasing number to saved files in Delphi?

I'm making a program that takes a snapshot of the screen, and saves it to a folder as a Bitmap picture. I seem to be running into a problem though, the picture just overwrites itself. Can anyone tell me how I can make it so when it saves, the number will be one higher than the last? For example: Save 1: Screenshot0001.bmp Save 2: Screen...

Save modelForm to update existing record

I create a modelForm with instance to existing model (Book). I am not able to update the Books record. Adding a new record is fine but when I attempt to update, it appears to be unable to find the publisher (which is a foreign key). Error is "No Publisher matches the given query." models.py class Publisher(models.Model): name = models...

swt.graphics.ImageLoader.save() not flushed?

I'm using this class swt.graphics.ImageLoader to save a file as a PNG: ImageLoader loader = new ImageLoader(); loader.data = new ImageData[] { m_imgdat }; loader.save(selected, SWT.IMAGE_PNG); Yet sometimes the file I get is incomplete. the last line of pixels is black and some programs (photoshop) refuse to open it altogether. Is the...

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) ...

Saving/Loading RichTextBox Content with other data using C#

Hello, I am currently trying to figure out how to save the content from a RichTextbox into a stream(currently using FileStream) and do this alongside a bunch of other data. Then of course I want to be able to load from this file. I was currently trying to use something along the following lines. FileStream stream = new FileStream(); //t...

Saving and Stack Overflows

I'm having a problem saving a vary large database type in Delphi. It contains an array[1..3500] of TItem, which in turn has two arrays[1..50] and [1..20]. I get a stack overflow unless I set the variable as a Pointer and use the GetMem, FreeMem commands below, but then I can't save it. Code is below. procedure TDatabase.SaveDB; var ...

Saving a TObject to a File

How can one save an Object, in its current state, to a file? So that it can immediately be read and restored with all its variables. ...

What is the best way I should go about creating a program to store information into a file, edit the information in that file, and add new information.

I'm about to start on a little project i'm trying to do where I create a C++ program to store inventory data into a file ( I guess a .txt will do ) • Item Description • Quantity on Hand • Wholesale Cost • Retail Cost • Date Added to Inventory I need to be able to: • Add new records to the file • Display any record in the f...

Delphi Component Saving

How best could I save this component and all internal variables? Examples of code would be appreciated. TSmall = record fName: string[30]; fAge: integer; fID_Number: string[30]; end; TRec = record ArraySmall: array[1..10] of TSmall; end; TBigComponent = class(TComponent) private fSmallArr: TRe...

How to save xslt applied xml file in .net compact framework webbrowser in PDA

Hi please help me for windows mobile ... I am using stylesheet in an xml file and load this xml file into webbrowser control in PDA application made in C#(.net 2.0 compact framework) . Now I want to save this xml file with changed node value with same or diffent file name. Javascript for document.write is not working in PDA. WebBrowser c...

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 ) body = models.TextField( ) def __unicode__( self ): return self.titl...

Disable Save button in WPF if Validation fails

I've adopted what appears to be the standard way of validating textboxes in WPF using the IDataErrorInfo interface and styles as shown below. However, how can I disable the Save button when the page becomes invalid? Is this done somehow through triggers? Default Public ReadOnly Property Item(ByVal propertyName As String) As String Imple...

C# Saving/Loading richtext speed issue

Hello, I am currently trying to tackle a speed issue involving loading and saving richtext. Here are the details. In my application I have a Question class which needs to be able to store two richtexts. At the moment these two richtexts are being stored in the Question class as TextRanges. As far as saving/loading goes I am using TextRan...

Java save function doesn't work

hey, I have this code that should save a java.util.Vector of custom serializable classes: if(filename.equals("")){ javax.swing.JFileChooser fc = new javax.swing.JFileChooser(); if(fc.showSaveDialog(this) == javax.swing.JFileChooser.APPROVE_OPTION){ filename = fc.getSelectedFile().toString(); } } try{ java.io.FileOutputStream fos =...

How do I save a reference to a specific photo on iPhone for loading without picker?

A user can select a photo from their library using the image picker - I want to remember this selection and display this picture in future without the user having to pick it. How can I reference the specific photo or is there a way I can copy the photo to my application's storage? ...

Hibernate doesn't save and doesn't throw exceptions !?!

Hi, I'm stuck with this already for some weeks and I don't have the faintest idea what's going wrong. I'm quite desparate as I've wasted so much time already I use the data model described below (MySQL). I have created the hbm.xml and java classes by reverse engeneering (Eclipse/JBoss Tools) (see example below). When I try to save tw...

Save image in database?

Possible Duplicate: Storing Images in DB - Yea or Nay? Duplicate: http://stackoverflow.com/questions/766048/store-image-in-database-or-in-a-system-file http://stackoverflow.com/questions/713243/should-i-store-my-images-in-the-database-or-folders http://stackoverflow.com/questions/3748/storing-images-in-db-yea-or-nay Hi, ...