data-storage

Android Application saving data when app in background

☆樱花仙子☆ 提交于 2019-12-07 20:43:19
问题 currently I'm developing xmmp client which is working quite fine when app is in foreground. But due to the fact that im keeping quite lot of data in Application class (complex ArrayList, Strings and booleans as public statics) when app is in background every field is being garbage-collected. So my question is what is the best way to retrieve this data when i get app from background? Its quite a problem because I use this public statics in every class so far and it causes my app to crash. The

Using two different Core Data Models in the same iPhone app. How can I do it?

倾然丶 夕夏残阳落幕 提交于 2019-12-07 14:24:44
问题 I am trying to use two different Core Data Models in a iPhone application, I created and correctly set up the first Core Data Model that uses SQLite as persistent object store. This one works very well and the pre-populated default store loads correctly in a Table View. Now I want to create a different Core Data Model with a different pre-populated SQLite default store to load it in a different Table View in the same iPhone application. How can I do this task? I read the Core Data

How to use NSURLIsExcludedFromBackupKey Or kCFURLIsExcludedFromBackupKey?

只愿长相守 提交于 2019-12-07 13:24:43
问题 My App had been rejected because I save in-app purchase data in Documents folder on iPhone. Data that can be recreated but must persist for proper functioning of your app - or because customers expect it to be available for offline use - should be marked with the "do not back up" attribute. For NSURL objects, add the NSURLIsExcludedFromBackupKey attribute to prevent the corresponding file from being backed up. For CFURLRef objects, use the corresponding kCFURLIsExcludedFromBackupKey attribute

Share data across multiple apps on iOS

守給你的承諾、 提交于 2019-12-07 13:15:25
问题 I know there are quite a few threads on this, but it seems none of them would satisfy what I am trying to look for. Here's my constraints: not a hack that uses private API/framework or undocumented directory access that would run the risk of app being rejected because of that being able to share data across different vendors / app developers data can persist outside the lifecycle of the app (even after app is deleted) UPDATED: I was in general trying to stay away from using a 3rd party cloud

Postgresql vs. MySQL: how do their data sizes compare to each other?

烂漫一生 提交于 2019-12-07 08:59:08
问题 For the same data set, with mostly text data, how do the data (table + index) size of Postgresql compared to that of MySQL? Postgresql uses MVCC, that would suggest its data size would be bigger In this presentation, the largest blog site in Japan talked about their migration from Postgresql to MySQL. One of their reasons for moving away from Postgresql was that data size in Postgresql was too large (p. 41): Migrating from PostgreSQL to MySQL at Cocolog, Japan's Largest Blog Community

Safely Storing sensitive data client side

蹲街弑〆低调 提交于 2019-12-06 09:20:16
Back Story I work at a small-mid size company and we are reworking our customer facing accounting portal and my manager wants to make single click payment option with the Credit Card info stored in cookies on the end users computer. I'm not in love this the idea.... at all (in fact I'm still trying to change his mind). That being said I am trying to make it as secure as I can, I think I've got a way to minimize the risk, here it is: using SSL for all exchanges encrypt the data in a number of cookies that are stored locally having the cipher as a confirm password that must be entered each time.

PHP Session-like storage global across all users

天涯浪子 提交于 2019-12-06 06:11:43
问题 What is a good method to retain a small piece of data across multiple calls of a PHP script, in such a way that any call of the script can access and modify its value - no matter who calls the script? I mean something similar to $_SESSION variable, except session is strictly per-client; one client can't access another client's session. This one would be the same, no matter who accesses it. Losing the value or having it corrupted (e.g. through race conditions of two scripts launched at once)

Share data across multiple apps on iOS

北战南征 提交于 2019-12-06 02:29:43
I know there are quite a few threads on this, but it seems none of them would satisfy what I am trying to look for. Here's my constraints: not a hack that uses private API/framework or undocumented directory access that would run the risk of app being rejected because of that being able to share data across different vendors / app developers data can persist outside the lifecycle of the app (even after app is deleted) UPDATED: I was in general trying to stay away from using a 3rd party cloud-based service to achieve the goal as this would introduce additional external dependency. But if I have

How to use NSURLIsExcludedFromBackupKey Or kCFURLIsExcludedFromBackupKey?

一笑奈何 提交于 2019-12-06 01:35:12
My App had been rejected because I save in-app purchase data in Documents folder on iPhone. Data that can be recreated but must persist for proper functioning of your app - or because customers expect it to be available for offline use - should be marked with the "do not back up" attribute. For NSURL objects, add the NSURLIsExcludedFromBackupKey attribute to prevent the corresponding file from being backed up. For CFURLRef objects, use the corresponding kCFURLIsExcludedFromBackupKey attribute. But I want the user to use the data even if they are offline, so I'll use

Using two different Core Data Models in the same iPhone app. How can I do it?

ⅰ亾dé卋堺 提交于 2019-12-05 20:49:33
I am trying to use two different Core Data Models in a iPhone application, I created and correctly set up the first Core Data Model that uses SQLite as persistent object store. This one works very well and the pre-populated default store loads correctly in a Table View. Now I want to create a different Core Data Model with a different pre-populated SQLite default store to load it in a different Table View in the same iPhone application. How can I do this task? I read the Core Data documentation and downloaded the sample codes but I did not find anything about this task. Any sample code useful