save

iPhone saving game using P-Lists

Hello! I am currently using a P-List to save data in a game I'm developing. I'm curious about something though. Maybe this is a stupid question: but each time I write to the P-List, is it overwritten? If that is the case, and it just doesn't automatically ADD (i.e. appending) values to it, then that would be perfect. Thank you for you...

Rails: restful_auth and saving users

Hi Guys, when creating users with restful_auth everything works fine, but changing the user in his lifetime doesn't work. I already added the concerning attributes to the attr_accessible list. It all doesn't help. Any ideas? Yours, Joern. ...

Saving files to a VPN in Visual Studio 2010 very slow

I'm connecting to a VPN so I can work at home, but when I open small ASPX files and make minor changes and save them, it's incredibly slow. Also even doing simple things like clicking a different line in the file to move the cursor is lagged noticeably. Is this a known issue, or is this as I 99% suspect just down to network connection....

How to dynamically insert images to docx template?

Hi. In my web-application i'm using phplivedocx for text changing. But i also need to dynamically change images in my docx template. What tool do you recommend? Thanks in advance. ...

How to save BitmapImage / WriteableBitmap in png format (Silverlight/windows phone)?

How can i save an image (BitmapImage / WriteableBitmap) in png format using Silverlight for windows phone? ...

how to save switch state with user defaults?

Hi, Is there a method to store the state of a UISwitch with NSUserDefaults? If the state is ON I'd like to set some action... Can I do this? Thanks! ...

Entity Framework 4 Code-First many to many insert

I'm using code-first pattern for database layer. I have two POCO classes: public class Order { [Key] public int OrderId { get; set; } public virtual ICollection<Item> Items { get; set; } // other fields } and public class Item { [Key] public int ItemId { get; set; } public virtual ICollection<Order> Order...

android how to save an object to file ?

Does someone know how to save and restore an object to a file on android ? ...

android how to save a bitmap - buggy code...

Hi, Im trying to serialize a class in wich i have a bitmap variable. Here is the code that is a bit working.... I need help to find out what is still wrong..... private Bitmap myVideoScreenshotBm; private void writeObject(ObjectOutputStream out) throws IOException{ out.writeInt(myVideoScreenshotBm.getRowBytes()); out.writeInt(...

how to detect "hidden files extension" (windows system ) from flash/as3 app?

hi, i'm working on an app (flash/As3) that lets the user upload and edit an image, and then save it to the computer, using FileReference. it's posible to know if the user computer have the option "hidden file extensions" (windows system) selected? How can i do it? thanks ...

How to save my own object with NSKeyedArchiver??

Hi, i've got problems using the NSKeyedArchiver/NSKeyedUnarchiver for saving my object. I added the methods - (id)initWithCoder:(NSCoder *)decoder and - (void)encodeWithCoder:(NSCoder *)encoder. The problem is when i try to save the object it doesn't work correctly. I could imagine a problem (but I'm not sure if it is the problem ;) ). ...

Symfony problem when need to save file before saving an Entity

I have an Entity on Symfony that has also a file "attached" to it. I want to save the file with the id of the created Entity. The problem is, that I will know the Entity's ID only after doing "dosave()" on that Entity form. Is there any way to save the file after doing the "dosave()" but still write the code as an override for the Ent...

C++ WinAPI save and open dialogues

Hey, How do I implement a save and load dialogue box into my current project? I only need to know how change the basics, like the filename mask and default path. Any help appreciated, or even a link to a helpful website. Thanks. ...

org.springframework.dao.InvalidDataAccessApiUsageException when using grails dynamic finder

Using Grails i'm trying a dynamic finder like this one Policy.findAllByResourceAndUser(resource,user) But When i call this, grails raise this exception Caused by: org.springframework.dao.InvalidDataAccessApiUsageException: object references an unsaved transient instance - save the transient instance before flushing: gmedia.User; nest...

Entity Framework 4 update and insert one function

I'm migrating from SubSonic to EF4. In SubSonic models had a function called Save, if the key of the model was 0 an insert was done, otherwise an update. Is there a way to make a generic Save function like in SubSonic? For exmaple using an extension method? ...

HowTo make restoreState() and saveState() work correctlly to QTableView class?

Hello, there. First of all, I wanted to say, that my problem was already discuss here, on SO, and here it is. But the answers are not the good ones... So, here is the problem: I have a QTableView class, with a simple model, connected with tableView->setModel(model); method. For example, I have 4-5 columns. I started up my project appli...

Save HTML code in MySQL

I am going to save a HTML code base page as my data in mysql.... can i do it or I have to save it as a html file and get it again? ...

How to access request in ModelForm for adding request.user as foreign key

I am trying to override save in the modelform to add the current user as the owner of a vehicle. But I am receiving 'NoneType' object has no attribute 'user' What am I forgetting? forms.py: class VehicleForm(ModelForm): class Meta: model = Vehicle exclude = ('slug', 'owner', ) def __init__(self, *args, **kwargs...

Saving a dictionary to the iPhone is not working?

Been a tough week, will try to make this as clear as possible. Appreciate you taking the time to read. Hi, I'm sending a registration request to a server. A user object in jSon is returned, I parse the jSon and save the jSon dictionary phone as a method on my User class. However, whenever I load the user from the phone - by reading the ...

Problems with the NSKeyedArchiver

Hi, i've still have got problems with the NSKeyedArchiver. I implemented everything I was told to do, but it still does not work. I'm kind of frustrated. So could anyone help me out? Here is the .h file: #import <Foundation/Foundation.h> #import "JFIdentifier.h" // This is my own class to create a unique identifier for every JKDataObj...