storage

How to keep data persistent throughout the application

戏子无情 提交于 2019-12-08 09:54:42
问题 I'm designing an app which involves parsing a large XML and keeping the serialised data accessible throughout the application. I intend to have a data object which will keep the data stored and each component (though not every one) can access the data. I would like this data to be non-persistent, whereby the application parses the XML and keeps the data in memory. Note this data will be large (XML file is >2MB). Also, I would like the data to be there when a user switches to another app. I

Blob data in huge SQL Server database

给你一囗甜甜゛ 提交于 2019-12-08 09:39:22
问题 We have 20.000.000 generated textfiles every year, average size is approx 250 Kb each (35 Kb zipped). We must put these files in some kind of archive for 10 years. No need to search inside textfiles, but we must be able to find one texfile by searching on 5-10 metadata fields such as "productname", "creationdate", etc. I'm considering zipping each file and storing them in a SQL Server database with 5-10 searchable (indexed) columns and a varbinary(MAX) column for the zipped file data. The

Android local storage

女生的网名这么多〃 提交于 2019-12-08 09:03:28
问题 I have a problem with a webview which may access to the localStorage by app. My index.html informs that local storage is'nt supported by my browser (ie. the webview). If you have any suggestion.. Please take a look at my code : Activity.java : package com.exercise.AndroidHTML; import android.app.Activity; import android.os.Bundle; import android.webkit.WebSettings; import android.webkit.WebView; public class AndroidHTMLActivity extends Activity { WebView myBrowser; ; /** Called when the

Where to store larger data for Outlook Web App?

左心房为你撑大大i 提交于 2019-12-08 08:14:37
问题 I am developing my first add-in for the Outlook Web App. It's not clear to me where I should store larger pieces of data provided by the user (e.g., big chunks of text, images) and to be associated with the add-in (as opposed to belonging to a particular mail item). My impression is that RoamingSettings is supposed to be for relatively small stuff, and therefore not a good fit. I could store the data on OneDrive, but I prefer not to expose the data to the user outside of the add-in UI. I

Storing a set of values in Delphi

别来无恙 提交于 2019-12-08 08:10:18
问题 I am trying to store a set of values in delphi, but i want to be able to address them using their name, instead of an assigned number. For example, an array of 'OldValues' would let me do OldValue[1] := InflationEdit.Text; Ideally however, i would like to have a value stored in 'Data.Inflation.OldValue' for example. For each identifier, such as Inflation, there is an OldValue, NewValue and StoredValue. There are about 12 of these identifiers. Is there some way i could store the values like

How does neo4j perform in time and space complexity for given type of nodes, relationships and queries?

眉间皱痕 提交于 2019-12-08 07:37:45
问题 Consider I'm going to have following things in my graph: 100 Million nodes, More than 1 Billion connections/relationships Node properties: around 10 properties, mix of int, doubles, strings, HashMaps etc. Relationship properties: around 10 double values and 2-3 string (with avg 50 chars) values Now, Suppose I want to update all node and relationship property values, by querying neighbors on each node once. i.e. say as, step1: search a node, say X, with given Id, step2: get it's neighbours,

Android failed to mkdir() on SD card

守給你的承諾、 提交于 2019-12-08 07:27:12
问题 I have some code to create/get a folder on SD card: if( hasSDCard() ){ UUID uniqueFileName = UUID.randomUUID(); mediaStorageDir = new File( getExternalImageStoragePath(), "MyApp"); if ( ! mediaStorageDir.exists() ){ if( ! mediaStorageDir.mkdirs() ){ MyLogger.Error("Create image directory FAILED. path: " + mediaStorageDir.getPath()); return null; } } and I have the permission registered in my Manifest file: <uses-permission android:name="android.permission.WRITE_EXTERNAL_STOREAGE"/> <uses

Can not save camera's captured photo in application's “files” folder

拥有回忆 提交于 2019-12-08 07:14:40
问题 I create a folder called "myImage" in my application's Internal Storage "files" folder. When i take a photo with the camera i want the photo to be saved in "files/myImage" folder. It seems that the camera has not the permsission to write in that folder because the folder remains empty. On the other hand, when i create "myImage" folder in the external storage, the photo is saved normally. Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE); UUID myPhotoGuid = UUID.randomUUID();

ATA Trusted commands in Linux

大憨熊 提交于 2019-12-08 07:06:51
问题 Colleagues, I'm implementing support for ATA trusted commands 0x5C, TRUSTED RECEIVE, 0x5D, TRUSTED RECEIVE DMA, 0x5E, TRUSTED SEND 0x5F, TRUSTED SEND DMA, for Linux (two hosts, Fedora 12 and 14) to support self-encrypting drives. I took a code from this page http://www.jukie.net/bart/blog/ata-via-scsi as the base code. For trusted receive (on this layer it is identical to IDENTIFY, 0xEC): sg_io.interface_id = 'S'; sg_io.cmdp = cdb; sg_io.cmd_len = sizeof(cdb); sg_io.dxferp = data_in_buffer;

How to get exact capacity from storage

醉酒当歌 提交于 2019-12-08 06:19:36
问题 I want to read the exact capacity from the intern storage programmatically. I's a Samsung Galaxy S7 Edge 32GB device what I am using. In the preinstalled Samsung FileManager (In German: Eigene Dateien) it shows me the total capacity of 32GB. Even in the menu => settings => Storage it shows me 32GB. (Showed in screenshots) When I use my code below it shows me a total capacity of 24,4GB. (Showed in Log at the end of the post) Question: How to get the exact 32GB total capacity of my device?