storage

Program communicating with itself between executions

I want to write a C program that will sample something every second (an extension to screen). I can't do it in a loop since screen waits for the program to terminate every time, and I have to access the previous sample in every execution. Is saving the value in a file really my best bet? ...

best way to store "doodle" data?

On one of the applications that I am writing, I was asked to provide the feature for "pencil and eraser" to allow the user to doodle randomly on a document (for proofreading, note-taking, etc.) What would be the best way to store such data? I was thinking of using an image with transparency for each doodle (so that I can also support m...

Document management system: what to use as document storage backend?

I want to make a document management system. What do profesional sollutions (Alfresco, Liferay social office, others) use for storing and versioning documents? What else can I use? Key points: storage space optimization (deltas, compression ...) versioning ability to index docs (can be external) ...

browser game map storage and implementation

I'm writing a simple browser based game with a 2d tile map. I'm implementing this map as an HTML table (ok, you can yell at me for using tables later, but it works) with background images. The map could be very very large, but it won't change much, if at all. I could eventually make more maps though. The map cells will not only have a b...

Direct product of two tables

When is direct product of two tables useful? Seems like an academic thing. ...

Best approach: MMS to Server to DB to WWW

I want to find an existing service, or set one up with available tools, that will do the following: Receive MMS message from a cell phone (picture/video/text/sound/anything else possible) Store attachment(s) into a structured dynamic filesystem Log their respective path, filename, filetype, filesize, timestamp, the sender's phone numbe...

What is the cheapest cloud non-BLOB storage?

I have an iPhone app that must use external cloud db to sync data between users. Data is structured, so BLOB storage will not do. So far the only alternatives that i see are Amazon SimpleDB MS Azure Storage (Tables). I didnt get if i could use just Storage and no Azure instances. Are there any other similar providers? ...

C string literal storage between multiple copies of process or library

What is the behavior of various systems when you have more than one copy of a particular program or library running, do string literals get stored once in RAM or once for every copy of the process/library? What if they are stored in an array like: static const char *const foo[] = { "bar", "baz", "buz" }; Does the static change the beh...

Efficient memory storage and retrieval of categorized string literals in C++

Note: This is a follow up to this question. I have a "legacy" program which does hundreds of string matches against big chunks of HTML. For example if the HTML matches 1 of 20+ strings, do something. If it matches 1 of 4 other strings, do something else. There are 50-100 groups of these strings to match against these chunks of HTML (usu...

Data storage with javascript on clients computer?

Anybody knows ways to store data with javascript clients computer? Except using cookies. May be there is such lib ? By the way the data I want to be stored isn't secret if that matters. ...

Storage with Amazon S3

My website publishes news along with photos and videos. Right now my videos and images are being hosted on the web server only and they are occupying HDD space day by day. Adding or increasing HDD will not solve my issue as this will also create similar problem in future again. Here are some doubts to be clarified. Can I utilize Amazo...

create an array from df command

hi all I have this script ... !/bin/sh ADMIN="[email protected]" set alert level 20% is default ALERT=20 df -H | grep -vE '^Filesystem|tmpfs|cdrom' | awk '{ print $5 " " $1 }' | while read output; do #echo $output usep=$(echo $output | awk '{ print $1}' | cut -d'%' -f1 ) partition=$(echo $output | awk '{ print $2 }' ) if [ $usep...

Good way to store a wide variety of structures which sizes also vary?

The title is a bit confusing, so i will explain a bit more using examples. Just a note: i am parsing a file format. Say we have a structure like this: struct example { typeA a; typeB b; typeX x; typeY y; typeZ z; }; So far its ok. Now the problem is, that typeX, typeY and typeZ can vary in size. Depending on flags in th...

Collecting Credit Card Information - not to collect payment

I am working in PHP on a Linux server with MySQL. I have a requirement (that I have attempted to talk them out of) to collect credit card information from users so that our company can use the card numbers to hold hotel rooms for a conference. We will not be charging the cards ourselves at all, but instead just sending them to the ho...

Removal of SQLite Database when Application is un-installed.

I'm creating an app that uses SQLite as a data storage on BlackBerry OS 5.0. When it is removed from a device, I'd like to be diligent and remove the database from the phone. Although I can seem to find out plenty of information on Persistant Storage being removed on the removal of an app, I can't find anything about an SQLite database....

Why do du and Perl's -s give different values for the file size?

Updated According to comments: I have outlog.txt file which contains multiple filenames, e.g: 2345_535_Dell&HP_3PAR_DEAL.txt, similarly there are many filename but not the actual folder where the files are located and so in code am appending filenames to folderpath to get actual file location. Now,I want to get disk usage of all the fil...

Storage quota for app in iPhone / iPad

Hello all I am just wondering what's the storage size for an iPad/iPhone app to use? For memory, it is sure that every app can only use 100MB-like memory. How about the storage? I mean the file system in iPad/iPhone app? Use as much as I want until the file system is full? or something like that? ...

compression, defragmentation, reclaiming space, shrinkdatabase vs. shrinkfile

[1] states: "When data is deleted from a heap, the data on the page is not compressed (reclaimed). And should all of the rows of a heap page are deleted, often the entire page cannot be reclaimed" "The ALTER INDEX rebuild and reorganize options cannot be used to defragment and reclaim space in a heap (but they can used to defragmen...

Using TinyPic.com (or another site) to store user's images in my iPhone app.

I'm writing an iphone app and don't really have the resources to rent sql server space to store user's pictures. Is there another way? Could a site like TinyPic.com be used? What objective-c code could I use to send/store a picture there... and then later retrieve it as needed? ...

Can Oracle be used to store billion record dataset to implement efficient MOVE and COPY operations for EMC ATMOS?

Hi, Basically I have two questions. I investigate means of implementing WebDAV interface for EMC ATMOS storage. There will be billion(s) of files with thousands simultanous reads and probably hundreds creations/deletions. The problem is with COPY/MOVE/DELETE operations. If the structure is stored in ATMOS (using namespace interface wh...